PDA

Click to See Complete Forum and Search --> : Access via VB6


rockies1
Aug 29th, 1999, 06:42 PM
I am trying to add data to an Access .mdb via VB6. I know how to do it, no problem, but I don't like the fact that Access shows on the taskbar. Is there any way to avoid this?

I tried:

Dim objAccess as New Access.Application
Dim db as Database
Dim qdf as QueryDef
Dim rst as Recordset

With objAccess
.OpenCurrentDatabase App.Path & "\DatabaseName.mdb"
.Visible = False
End With


but I still see Access...

Anyone have any suggestions? (Simple suggestions preferred...I'm not exactly a beginner, but by no means an expert!!)

Thanks!

------------------
Morgan
rockies1@gvi.net
My Web Page (http://members.xoom.com/Rockies1)

JHausmann
Aug 29th, 1999, 07:19 PM
Look into using DAO (or ADO, which is the future direction MS wants us to take).