G
Guest
I am very new to Access and VB, but I have had success in creating several
Forms.
This is what I want to do...
I have a combo box on my form that displays a listing of Streets names from
a table named "Wells_Roads". This table has a 'key' ID field along with 3
data fields
The first field contains the complete road name i.e. "New Harbor Rd"
the second field contains just the name itself i.e. "New Harbor"
the third field contains just the suffix "Rd".
From selecting the desired record from the dropdown list I want to populate
3 Textboxs or ultimately 3 database fields in another database.
Its easy enough to get the data from any SINGLE column field but is there a
way to 'bind' the combo box to more than one?
Can I use some SQL to set the values to variables which in turn I can set my
required field names from?
I havn't used any SQL from within my VB code yet, but I was thinking it
could be done... since My combo box can tell me what record ID I want... Its
just a matter at that point of being able to get the 3 individual field
values after that..
I hope this is simple, sorry if my post was long
Forms.
This is what I want to do...
I have a combo box on my form that displays a listing of Streets names from
a table named "Wells_Roads". This table has a 'key' ID field along with 3
data fields
The first field contains the complete road name i.e. "New Harbor Rd"
the second field contains just the name itself i.e. "New Harbor"
the third field contains just the suffix "Rd".
From selecting the desired record from the dropdown list I want to populate
3 Textboxs or ultimately 3 database fields in another database.
Its easy enough to get the data from any SINGLE column field but is there a
way to 'bind' the combo box to more than one?
Can I use some SQL to set the values to variables which in turn I can set my
required field names from?
I havn't used any SQL from within my VB code yet, but I was thinking it
could be done... since My combo box can tell me what record ID I want... Its
just a matter at that point of being able to get the 3 individual field
values after that..
I hope this is simple, sorry if my post was long