Need help with connecting to an access (or excel) table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have pieced together a (bloated) but very useful VBA program in AutoCad over the past 10+ years. It no longer works in the AUtocad 2009 or 2010 (So i keep a 2004 install just for it!). In recent Autocads it seems to take a long time to finish tasks for some reason, and, there seems to always be modal focus problems (I tried the focuscontrol object but it made no difference). So rather than trying to convert the entire, messy VBA app to VB.net, I think I would have an easier time starting over in VB.net.
The basic part of it is a listbox that gets a list of unique records from a Microsft Access table. Then I click on a record in the listbox and can click a button on the form that inserts a block reference using the name for the block refence from the listbox current calue. Pretty basic, right?
Well I am stumped on how to get started with VB.net to do this. Can anyone point me to a simple, simple sample of a VB.net form that can have a listbox/combobox that connects to an MS Access table (or worst case Excel table)? I have searched and see that 64 bit setups can be trouble. I am using Autocad 2010 (64), Windows 7 (64) and Office 2010 and VS 2008 express. I downloaded some of the .NET samples from AUtodesk but none talk about database accessing.
Could anyone help me get started with this? So far my "north american based" Autocad subscription help is of no help to me at all.