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

extracting partial data from one text field to another 1

Status
Not open for further replies.

bitterman99

Technical User
Mar 10, 2006
19
US
I have a simple form with a field called "ORDER NUMBER" and another field called "BEX". What I'm trying to do is pull just the first 4 numbers from my ORDER NUMBER entry into my BEX field. I can get the data in a query by using the Expr: Left([ORDER NUMBER],4) expression but can't find a way to do this in my form.

Thanks!!
 
Maybe this?

Dim TruncOrder as String

TruncOrder = Left(Me.[Order Number],4)

and better not use spaces in your variable/field names

Pampers [afro]
Keeping it simple can be complicated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top