Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Len function

Status
Not open for further replies.

JoanieB

Programmer
Apr 17, 2001
57
US
I am trying to determine the length of a string. In the following:

'declared variables, set rs {recordset} to right table
do until rs.eof
price = rs!price
if len(price)....
etc.
loop

Access tells me that "Len(Price) = 8" when Price = "20"
I have tried trim function in case of spaces, as well as setting price to "20" manually, and it still says length of 8. Any ideas as to why this is happening?
 
NEVERMIND! I declared the Price variable incorrectly. Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top