Mike,
It's not clear to me what the problem might be, but I have
some suggestions. First, verify that the code behind your
command button looks something like this, with the
following replacements:
CmdOpenNextForm
the name of the command button (under the Other tab)
frmForm2
the name of the form you'd like to open
[KeyID]
the field in the next form that contains the key field
you'll match on
Me![KeyID]
the name of the key field control in the current form
If your code does not look like this, cut, paste, and edit
it into your form and try again.
Check the first form also to see if it's set to Modal and
Popup = "Yes". This would prevent the second form from
showing if its two properties are set to No (the default).
Thinking outside the box, if these forms are all based on
the same table, but are separated for clarity or process,
you might consider a single tabbed form, which requires no
code at all to maneuver between pages.
If none of this works, post your table structure(s) and
the names and record sources of your forms, and I'll try
again.
Good luck. And remember "you've got to climb the mountain
if you want to enjoy the view". :^)
Private Sub CmdOpenNextForm_Click()
On Error GoTo Err_CmdOpenNextForm_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmForm2"
stLinkCriteria = "[KeyID]=" & Me![KeyID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_CmdOpenNextForm_Click:
Exit Sub
Err_CmdOpenNextForm_Click:
MsgBox Err.Description
Resume Exit_CmdOpenNextForm_Click
End Sub