I have posted the same question in an other forum also because of its "emergency"..
I am using below code in my new Access 2007 db. Backend on a SQL. Exactly same code runs in my previous DB with the same backend. However, the wildcard search is not executed correctly in the new DB..but works prefectly in the older version...
I have posted the same question in an other forum
[A] = nvarchar(50)
SearchX = unbound control
What am i doing wrong?
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "FRUITS1"
If DCount("*", "dbo.FRUIT_BASKET", "[FRUITS] = '" & Me!SearchX & "*'") > 0 Then
DoCmd.OpenForm stDocName, , , "[FRUITS] like '" & Me!SearchX & "*'"
Else
MsgBox "Sorry, this FRUIT does not match any record in the DB"
End If
I am using below code in my new Access 2007 db. Backend on a SQL. Exactly same code runs in my previous DB with the same backend. However, the wildcard search is not executed correctly in the new DB..but works prefectly in the older version...
I have posted the same question in an other forum
[A] = nvarchar(50)
SearchX = unbound control
What am i doing wrong?
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "FRUITS1"
If DCount("*", "dbo.FRUIT_BASKET", "[FRUITS] = '" & Me!SearchX & "*'") > 0 Then
DoCmd.OpenForm stDocName, , , "[FRUITS] like '" & Me!SearchX & "*'"
Else
MsgBox "Sorry, this FRUIT does not match any record in the DB"
End If