Design by Sue
Registered User.
- Local time
- Today, 10:14
- Joined
- Jul 16, 2010
- Messages
- 816
I will see if I can trim this down and post - I am so stumped!
Sue
Sue
Private Sub Description_GotFocus()
If IsNull(Me.Parent![P Description]) Then
MsgBox "You must enter choose a prepack before you can add items.", vbExclamation, "Information Needed"
[B][COLOR=red]Me.Parent![P Description].SetFocus
[/COLOR][/B]Exit Sub
End If
End Sub
I don't remember how to upload the file - I have a trimmed database.
Sue
No that wasn't the problem. See my sample I just uploaded for a working copy.I found out that it was because I had put the master child links in the subform. That was causing the immediate save. So I am back to the original problem - how to reference the field on the main form from the sub form
Sue
Quick question -1 - thanks - do you know why when going to a new record the description field doesn't reset to blank?
It doesn't on my computer in the sample. But now I think I know why. You had it as unbound but it needs to be bound to ITEMID so I had to change your bound column from 1 to 3 on it.1 Not the description of the prepack - that is acting exactly as I want it to - the item description on the subform stays selected when I click Save (now go to new record)
I said in my last post to hide it.2 Is the prepack control on the subform necessary - can I delete it - or should it just be made not visible?