Message 1 of 6
How to connect to a database & populate a combobox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm really new to this. Been searching for hours - getting close but have ground to a halt..
Using Map5 (AutoCAD 2002 based) & MS Access 97. Know virtually nothing about VBA.
Scenario : we need to insert streetmaps into our drawings. I've already written a Lisp routine where users enter the grid ref of a street at the command prompt. The Lisp routine finds & inserts the correct map. However, users have to first look up the grid ref from a paper-based streetmap. I want to make this simpler by using a database containing all street names in the city. The database contains one table. Field names are StreetName, District & GridRef. There are 7000+ records
I want to create a form in VBA containing a combobox populated with the fields StreetName & District. Users can then type the street name in the combobox; scroll through the list if necessary; select the correct street name, press "OK", wham bam my lisp routine inserts the map.
My questions are 1. How to connect to the database. 2. How to populate the combobox with the streetnames.
I've tried using answers from other posts but so far just have a blank combobox staring back at me.
Using Map5 (AutoCAD 2002 based) & MS Access 97. Know virtually nothing about VBA.
Scenario : we need to insert streetmaps into our drawings. I've already written a Lisp routine where users enter the grid ref of a street at the command prompt. The Lisp routine finds & inserts the correct map. However, users have to first look up the grid ref from a paper-based streetmap. I want to make this simpler by using a database containing all street names in the city. The database contains one table. Field names are StreetName, District & GridRef. There are 7000+ records
I want to create a form in VBA containing a combobox populated with the fields StreetName & District. Users can then type the street name in the combobox; scroll through the list if necessary; select the correct street name, press "OK", wham bam my lisp routine inserts the map.
My questions are 1. How to connect to the database. 2. How to populate the combobox with the streetnames.
I've tried using answers from other posts but so far just have a blank combobox staring back at me.