Code:
If Me.NewRecord Then
DoCmd.OpenForm "Benefits", , , , , acDialog, Me.ID & ";" & Me.First_Name & ";" & Me.Last_Name
Else
DoCmd.OpenForm "Benefits", , , "[EmployeeID]=" & Me.ID, , acDialog
End If
Have a form "EmpInfo" with a button that has the above code that opens "Benefits" in different ways depending on if its a new record or not.
Lets say the user is entering in an employee on the EmpInfo form and some catastrophe happens where they have to save close the form and then when they go back and open it up and click this button, it doesnt do the first one because since it was closed it is not a new record anymore so it wont pass what i want it to the next form. I believe it does the second because its not a newrecord anymore but Benefits still comes up with no information on it.
as of now to get this to work the user has to go through all the forms to get this to link correctly and then when they open the record bakc up the button works fin.
any tips would be appreciated.