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!

Switchboard Button Programming

Status
Not open for further replies.

murk

Technical User
Nov 26, 2002
16
0
0
US
Am programming a switchboard button to ask for a specific policy number to open. What is the exact formula to do this? I know it is in properties, event, on click but how do I build this?
 
Try the following:

Private Sub OpenFormButton_Click()

Dim stDocName As String
Dim stLinkCriteria As String
Dim stPolicy as Variant


stDocName = "frmNameofForm"
stPolicy = InpuBox "What is Policy Number?"
stLinkCriteria = "stPolicy =" & Me![PolicyNumber]
DoCmd.OpenForm stDocName, , , stLinkCriteria

End Sub


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top