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

isolated procedures

Status
Not open for further replies.

connollyg

Technical User
Dec 29, 2001
28
GB
I have a Access db that i am attempting to write some VBA code for.

I have a command button on a form that calls a VBA procedure, and that seems to work fine, but if i put another procedure in a seperate module and try to call it from the first procedure it cant see it, what am i doing wrong. i have looked at other examples and i cant see any differences between my code and them!
 
Would you mind providing an example of your code?
 

This Works:-

- Results (Results)
- Microsoft Access Class Objects
- Form_Event5


Private Sub Close_Click()

Call AddEvent2DB

End Sub

Public Sub AddEvent2DB()
...
End Sub


This Doesnt:-

- Results (Results)
- Microsoft Access Class Objects
- Form_Event5

Private Sub Close_Click()

Call AddEvent2DB

End Sub


-Modules
- AddEvent2DB

Public Sub AddEvent2DB()
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top