chris-uk-lad
Registered User.
- Local time
- Today, 06:05
- Joined
- Jul 8, 2008
- Messages
- 271
Hi,
I have a form that searches a table and retrieves all the values in a column, based on an SQL query. At the moment it is only retrieving values that are all character related, not integers.
Such as in my column i have
ATHERTON
201
It wont retrieve 201.
My search button contains the code:
I have a form that searches a table and retrieves all the values in a column, based on an SQL query. At the moment it is only retrieving values that are all character related, not integers.
Such as in my column i have
ATHERTON
201
It wont retrieve 201.
My search button contains the code:
Code:
If IsNull(Name) Then
strName = "NAME LIKE '*'"
Else
strName = "NAME LIKE '" & Name & "*'"
End If
strSQL = "SELECT * FROM tblMember WHERE " & strName & " ORDER BY NAME"
Form_frmSearchResults.SetSearchResults strSQL
Form_frmSearchResults.Refresh