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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hard code text values

Status
Not open for further replies.

trustsun

Technical User
Feb 4, 2004
73
US

I am importing text-delimited data from a note pad. How could I make sure the values are text? I've tried all sorts of expressions but to no avail. Also, some have spaces in them and will not insert or join with another query.

I think this only removes spaces: Trim([Field1]). I need to make sure there are no spaces, omit nulls and only text.

Thanks
 
Use Len(Trim([Field1])),
If Len(Trim([Field1])) = 0 Then there is no text and you can omit such data.

Further you can also use Val([Field1]),
For a text data, Val([Field1]) will return 0.
Example
Val("15A") is 15
Val("ABC") is 0
Val("A7B") is 0

Hope this helps you....
Regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top