problem with form

2ippy

Newbie Here, Be gentle.
Local time
Today, 22:21
Joined
Nov 10, 2006
Messages
78
Code:
Private Sub PrintCustomer_Click()
DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenReport "Customers", , , "[CustomerID] = " & Me.CustomerID
DoCmd.Close
DoCmd.OpenForm "FrmCustomers", , , "[CustomerID] = " & Me.CustomerID
End Sub

it doesn't like line 5. Anyone got any ideas?

This form with this code in is a create customer form popup. The form it's going to is a reference form and also the main form.

Also I would like the main frmcustomers i'm going back to, how do i also do a force update?
 
I think u have to tell it what to close

like this:

docmd.Close acForm, "FrmCustomers"
 

Users who are viewing this thread

Back
Top Bottom