P
Pharoh
I'm trying to run an Access macro in VB6. When I launch the application
and click the button, the macro should run but instead I get this damn
2486 Error 'You can't carry out this action at the present time'
here's the code I'm using..
rivate Sub Command1_Click()
'Dim INDY92ACCESS As DAO.Database
Set INDY92ACCESS = OpenDatabase("C:\Database")
DoCmd.OpenQuery "Insert 5%", acNormal, acEdit
DoCmd.OpenQuery "Insert 7/5%", acNormal, acEdit
DoCmd.OpenQuery "Insert 10%", acNormal, acEdit
Add2Groups_Exit:
End Sub
and click the button, the macro should run but instead I get this damn
2486 Error 'You can't carry out this action at the present time'
here's the code I'm using..
rivate Sub Command1_Click()
'Dim INDY92ACCESS As DAO.Database
Set INDY92ACCESS = OpenDatabase("C:\Database")
DoCmd.OpenQuery "Insert 5%", acNormal, acEdit
DoCmd.OpenQuery "Insert 7/5%", acNormal, acEdit
DoCmd.OpenQuery "Insert 10%", acNormal, acEdit
Add2Groups_Exit:
End Sub