View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
merjet merjet is offline
external usenet poster
 
Posts: 812
Default Open Access Macro, then put a value into a parameter field

You don't need to open Access. You can do it in the background using
DAO or ADO. For example:

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

Set qdf = db.QueryDefs("Query1")
qdf("ID") = 101
Set rs = qdf.OpenRecordset

For the above to work, Microsoft DAO x.xx Object Library must be
checked using the VBE menu Tools | References. For more info, see
he
http://www.erlandsendata.no/english/...php?t=envbadac

Hth,
Merjet