A
AccessVBANewbie via AccessMonster.com
I have tried to create a search function which allows users to search for
information regarding a particular case if he/she types in the case number.
My codings are something like
Dim sqlStr As String
sqlStr = "SELECT * From GeneralSummary WHERE PRT_Number Like " & "'*" &
txtSearchPartNo & "'"
DoCmd.RunSQL sqlStr
but an error message occurred saying that the RunSQL action should consist of
an argument using a SQL statement. How should i solve this problem?
information regarding a particular case if he/she types in the case number.
My codings are something like
Dim sqlStr As String
sqlStr = "SELECT * From GeneralSummary WHERE PRT_Number Like " & "'*" &
txtSearchPartNo & "'"
DoCmd.RunSQL sqlStr
but an error message occurred saying that the RunSQL action should consist of
an argument using a SQL statement. How should i solve this problem?