G
Guest
The command button code below is pretty simple it just opens a form based on
a value called "ICNNo" which is on both forms.
This database is uses for paying claims to doctors.
This main form is for each claim and has a submenu showing mulitple doctors
associated with that claim.
I'm trying to make the form open to a specific doctor number.
WHen I click the code below - How can I make it say Please enter a provider
number! Then open the form based on both the matching ICCNo and the entered
Provider Number???
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "f_ProviderDetailEDIT"
stLinkCriteria = "[ICNNo]=" & "'" & Me![ICNNo] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdProvEdit_Click:
Exit Sub
a value called "ICNNo" which is on both forms.
This database is uses for paying claims to doctors.
This main form is for each claim and has a submenu showing mulitple doctors
associated with that claim.
I'm trying to make the form open to a specific doctor number.
WHen I click the code below - How can I make it say Please enter a provider
number! Then open the form based on both the matching ICCNo and the entered
Provider Number???
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "f_ProviderDetailEDIT"
stLinkCriteria = "[ICNNo]=" & "'" & Me![ICNNo] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdProvEdit_Click:
Exit Sub