Syntax problem

J

Jill

Hello,

I have a txtfield that can take in dimensions (in feet
and inches), therefore the format would be 100'-0",
however, the ' and " give big problems for the sql
statement when searching things (ie: errors, or no
results), is there anyway to change this so this wont
happen, any ideas?. Help is appreciated. thanks

Jill
 
J

Jen

You can use the replace function to deal with this issue.

Replace(Field, """", "I")
This function finds the " in the field and replaces it
with an I (Inches).

Replace(Field, "'", "F")
This one finds the "'" in the field and replaces it with
an F (Feet).

I'm sure you get the idea.

Regards,
Jen
 
C

caimito

It might help your users and prevent errors if you separate the feet and
inches into two separate fields on your form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Dlookup() syntax 3
Syntax yet again 2
SQL syntax problem 3
IIf 1
Excel Macro Programing Problem 2
Checking Error Codes after executing a SQL query 1
Changing the size of the header?? 0
IF Function error #VALUE 2

Top