Zydeceltico
Registered User.
- Local time
- Today, 11:50
- Joined
- Dec 5, 2017
- Messages
- 843
Hi all,
I have a form (frmGetAString) with an unbound textbox (txtUnbound) on it.
That same form has a bound textbox on it named txtStringID which is bound to StringID in tblOfStrings.
The user enters a 6-character alphanumeric string (StringName) from the real world into the unbound txtUnbound.
The alphanumeric string already exists in a table (tblOfStrings) that has two fields: StringID (autonumber primary key) and StringName (short text).
When the user enters the string into txtUnbound, I would like a "search" to happen that returns the StringID of StringName and places that value in txtStringID.
What should I be looking at to accomplish this?
Something to do with recordsets is my first guess. But I can also rationalize how a SQL statement in my code might also work - - -but truth be told - as aware of these possibilities as I may or may not appear - I have no idea how to accomplish it or if there is a better way that I - in my inexperience - am unfamiliar with.
As always - Thank You!
Tim
I have a form (frmGetAString) with an unbound textbox (txtUnbound) on it.
That same form has a bound textbox on it named txtStringID which is bound to StringID in tblOfStrings.
The user enters a 6-character alphanumeric string (StringName) from the real world into the unbound txtUnbound.
The alphanumeric string already exists in a table (tblOfStrings) that has two fields: StringID (autonumber primary key) and StringName (short text).
When the user enters the string into txtUnbound, I would like a "search" to happen that returns the StringID of StringName and places that value in txtStringID.
What should I be looking at to accomplish this?
Something to do with recordsets is my first guess. But I can also rationalize how a SQL statement in my code might also work - - -but truth be told - as aware of these possibilities as I may or may not appear - I have no idea how to accomplish it or if there is a better way that I - in my inexperience - am unfamiliar with.
As always - Thank You!
Tim