R
Randy
Hello...ok I have a form with a button that I am trying to get to call on a
function. I have been able to do this and the funtion processes but I keep
getting an error. Now, the funtion works perfectly if I run it from the
switchboard/menu, but when run from the form button I get this error:
"The action or method requires a Table Name argument"
Here is the code I have:
Private Sub Update_All_Records_Click()
On Error GoTo Update_All_Records_Click_Err
DoCmd.OpenFunction Public_Income_Update_Step_1
Update_All_Records_Click_Exit:
Exit Sub
Update_All_Records_Click_Err:
MsgBox Error$
Resume Update_All_Records_Click_Exit
End Sub
Can anyone tell me what might be wrong with this? Am I calling on the
funtion incorrectly? Any help or suggestions agian will be gratly
appreciated. Thank you for your time!
function. I have been able to do this and the funtion processes but I keep
getting an error. Now, the funtion works perfectly if I run it from the
switchboard/menu, but when run from the form button I get this error:
"The action or method requires a Table Name argument"
Here is the code I have:
Private Sub Update_All_Records_Click()
On Error GoTo Update_All_Records_Click_Err
DoCmd.OpenFunction Public_Income_Update_Step_1
Update_All_Records_Click_Exit:
Exit Sub
Update_All_Records_Click_Err:
MsgBox Error$
Resume Update_All_Records_Click_Exit
End Sub
Can anyone tell me what might be wrong with this? Am I calling on the
funtion incorrectly? Any help or suggestions agian will be gratly
appreciated. Thank you for your time!