Hello everyone
I am asking if there is a workaround for this issue.
thank you
I am asking if there is a workaround for this issue.
Code:
Sql = "Select * from tbl1 where DName= ?"
Set Rs = Cnn.OpenRecordset(Sql)
With Cnn.CreateSelectCommand(Sql)
.SetText 1, IIf(Text.Text = "", Text2.Text, Text1.Text)
Set Rs = .Execute
End With