Ashfaque
Search Beautiful Girls from your town for night
- Local time
- Today, 23:56
- Joined
- Sep 6, 2004
- Messages
- 897
Hello Gentlemen,
I placed a combo (Combo7) box onto a form to read data from a field of table called Product_Master. The data contains " & ' and many more symbols like follows.
Hose 3/4" White UK standard
Hose 1/2" While USA standard
Strip 1' Brown 1/2" Italian Std
So for the first 2 items, it reads the data thru following code line
Set rst2 = CurrentDb.OpenRecordset("Select * From Product_Master " & _
"where Productname= '" & Replace(Combo7, Chr(39), Chr(34) & Chr(34)) & "'")
But for the third name as contains (') it doesn't work.
Have somebody faced this kind of error?
Please advice if you have any solution for this.
With kind regards,
Ashfaque
I placed a combo (Combo7) box onto a form to read data from a field of table called Product_Master. The data contains " & ' and many more symbols like follows.
Hose 3/4" White UK standard
Hose 1/2" While USA standard
Strip 1' Brown 1/2" Italian Std
So for the first 2 items, it reads the data thru following code line
Set rst2 = CurrentDb.OpenRecordset("Select * From Product_Master " & _
"where Productname= '" & Replace(Combo7, Chr(39), Chr(34) & Chr(34)) & "'")
But for the third name as contains (') it doesn't work.
Have somebody faced this kind of error?
Please advice if you have any solution for this.
With kind regards,
Ashfaque