i have a booking form and i have this button so that if a the customer doesnt have an account then when i click it opens up the customer form so add them, however my problem is that i cannot get it to open on a new record it always opens on a completed one ive looked through forum tried various things in my code to no success any help be grateful
this is the current code for the button
Private Sub create_cust_account_Click()
On Error GoTo Err_create_cust_account_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "ABC BOUNCERS NEW CUSTOMER"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_create_cust_account_Click:
Exit Sub
Err_create_cust_account_Click:
MsgBox Err.Description
Resume Exit_create_cust_account_Click
End Sub
cheers hayden
this is the current code for the button
Private Sub create_cust_account_Click()
On Error GoTo Err_create_cust_account_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "ABC BOUNCERS NEW CUSTOMER"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_create_cust_account_Click:
Exit Sub
Err_create_cust_account_Click:
MsgBox Err.Description
Resume Exit_create_cust_account_Click
End Sub
cheers hayden