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

Help running SQL function in VBA

Status
Not open for further replies.

sparkbyte

Technical User
Sep 20, 2002
879
US

How would you do this??

If DoCmd.OpenFunction(IsFileNumberValid,acViewNormal,acReadOnly) me.FileNumber <> 1 Then
Cancel = True
BeepWhirl
strResult = MsgBox("The File Number you have Entered is Invalid." & _
"Please Correct the File Number ...", _
vbExclamation + vbOKOnly, _
"ERROR!")
Select Case strResult
Case vbOK, vbRetry, vbYes, vbNo
Me.Undo
Exit Sub
Case vbCancel, vbAbort, vbIgnore
Exit Sub
Case Else
Exit Sub
End Select
End If


Thanks

John Fuhrman
 
I do not think thatyou can pass a prameater to the docmd.openfunction
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top