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

save in table a '=[field].column(2)' data?

Status
Not open for further replies.

keiserc

Technical User
Feb 24, 2004
16
US
I don't know the proper name for it - but I have a field which automatically displays related data in a field. =[field].column(2) it works just fine.

only I need the data (only one digit) to actually be saved in the table. presently it 'looks up-from the lookup table' and 'displays' but does not save into the table. How can I get it to save? I need the variable for search functions.
 
Hi

Leaving aside the usual advise about not saving calculated data in a table becuase it breaks the rules of normalisation

in the form, have the column from the table bound to a text box, with visible property set to false

in the before update event of the form put MyTExtBox = MyCombo.Column(2)

to pick out one character from the string, see the mid() function

so, something like MyTExtBox = Mid(MyCombo.Column(2),3,1)



Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top