Create Query in Visual Basic

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My Access Help has stopped working if you are wondering why I need this from
the Users Group.

I need an example of how to create a Query in Visual Basic. (Create Query)

Thank You in Advance.

Granny
 
GrandMaMa said:
My Access Help has stopped working if you are wondering why I need this from
the Users Group.

I need an example of how to create a Query in Visual Basic. (Create Query)


Dim db As DAO.Database
Dim qdf As DAO.QueryDef

Set db = CurrentDb()
Set qdf = db.CreateQueryDef("queryname")
qdf.SQL = "SELECT . . . "

But there many variations on that. Have you tried repairing
or reinstalling Access?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top