Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access.report User Type not defined

Status
Not open for further replies.

EliseFreedman

Programmer
Dec 6, 2002
470
GB
I am attempting to use an ado recordset as the source for a report. The code I am using is taken from the programmingMSaccess.com website.
One of the lines is
Dim rpt1 as access.report
I am getting the error User Type Not Defined.
I suspect that it is due to a reference not being set. Can anyone advise which reference I am missing
 
You probably need a reference set for Microsoft Access.
Go into (and I'm guessing VB6 here) Project>References and choose 'Microsoft Access x.0 library' (x will be a number representing your current version of Access).

Incidentally, both your PC and the PC(s) you run the program on will have to have this same version of MS-Access installed in order to avoid an 'Invalid reference' error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top