Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Running a Module/Function in Access 2013 via a Form using VBA

Dave CallanDave Callan Member Posts: 2

Greetings all

After many years of not using Access I am now back again. I have created a module and a form and am trying to run the Function from the button but am getting no where ( I don't remember it being this hard).
The start of my module looks like this:

Function Import_Data()

On Error go to Import_Data_Err

The button command looks like this:

Private Sub Command0_Click()

Import_Data

End Sub

I have tried using public sub, run, call etc., and it brings up a window asking me to assign a macro???
Any help please?

Sign In or Register to comment.