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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compile Error...

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
All of the sudden in one of my databases i get the following error...

function or interface marked as restricted,or the fucntion uses an automation type not supported in visal basic..

Heres my code


Private Sub cmbselord_AfterUpdate()
Dim dbstrans As Database
Dim rdstrans As Recordset
Set dbstrans = DBEngine.Workspaces(0).Databases(0)
Set rdstrans = dbstrans.OpenRecordset("select id, [product billing].* from [product billing] where (((ID)= " & cmbselord & "));")

it highlights DBEngine...

It was working fine yesterday..

I did a repair database and still wont work..


Thanks in Advance


DVannoy
A+,Network+,CNA
dvannoy@onyxes.com
 
Try:

Set dbstrans = currentdb()

I don't know why the DBEngine won't work though.

Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top