G
Guest
I am calling up another data entry form from my current form and that seems
to work but every time I try keying data in the data entry form it makes a
new record instead of linking to the main form. Please Help Me!
Button On Main Form
Private Sub Command206_Click()
If Not IsNull(Me.Last) Then
DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenForm "RuralHome"
Forms![RuralHome]![temp] = Me.Last
DoCmd.OpenForm "RuralHome"
DoCmd.Requery
End If
End Sub
Record Source
SELECT * FROM RHS WHERE [Last]=("&Forms!FormRuralHome[Last]&");
Thank You
Mallory
to work but every time I try keying data in the data entry form it makes a
new record instead of linking to the main form. Please Help Me!
Button On Main Form
Private Sub Command206_Click()
If Not IsNull(Me.Last) Then
DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenForm "RuralHome"
Forms![RuralHome]![temp] = Me.Last
DoCmd.OpenForm "RuralHome"
DoCmd.Requery
End If
End Sub
Record Source
SELECT * FROM RHS WHERE [Last]=("&Forms!FormRuralHome[Last]&");
Thank You
Mallory