|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem with Like Operator in Access 2000
Hi all,
I am new to this forum. When i use a like operator in an SQL statement it is not returning any records. Following is the Statement I have used. SqlStr = "SELECT * from Contact_Mast WHERE Contact_Mast.First_Name Like '*" & FNA & "*' " "FNA" is a string variable passed on to a function from a text filed. Pls somebody help me !!!. Thanks |
|
#2
|
|||
|
|||
|
As in SQL the wildcard is % and not *, I'd try
SqlStr = "SELECT * from Contact_Mast WHERE Contact_Mast.First_Name Like '%" & FNA & "%' " |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft Access Development > Problem with Like Operator in Access 2000 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|