J
JB
Hello,
I have a 2 column table called tblstorecat. It has a text field and a
corresponding number field: storename & storenumber
I have a data entry form that has a text field called title. When a user
types in the title of the product, I would like to populate another field, in
the same table as title, called newstorenumber.
So I need either a query or event code to take the text from title and
compare it to storename, retrieve the corresponding storenumber, and save
that number into newstorenumber.
Finally, storename will contain strings like "pepsi" or "coke" but title
will contain strings like "pepsi can" or "coke bottle" so I need a way for
access to give me the closest match.
So user types "pepsi can" and suddenly newstorenumber = 1 (for pepsi)
It doesn't need to be visible to the user, so a query expression would be
fine.
Thank you very much in advance
I have a 2 column table called tblstorecat. It has a text field and a
corresponding number field: storename & storenumber
I have a data entry form that has a text field called title. When a user
types in the title of the product, I would like to populate another field, in
the same table as title, called newstorenumber.
So I need either a query or event code to take the text from title and
compare it to storename, retrieve the corresponding storenumber, and save
that number into newstorenumber.
Finally, storename will contain strings like "pepsi" or "coke" but title
will contain strings like "pepsi can" or "coke bottle" so I need a way for
access to give me the closest match.
So user types "pepsi can" and suddenly newstorenumber = 1 (for pepsi)
It doesn't need to be visible to the user, so a query expression would be
fine.
Thank you very much in advance