P
peashoe
I have a subform within my form that has a Team text box. I need to
insert that value into a seperate table on the Lost_Focus event. I have
the following:
Private Sub Team_LostFocus()
DoCmd.RunSQL "INSERT INTO [Team/Mascots] ([Name]) VALUES ([Team]);"
End Sub
This is doing the job, but a pop-up box appears when I loose focus and
I have to enter the data again to have it insert (after it gives me a
warning that it will be updating a row and I have to click OK). Is
there a way to completely remove that pop-up box and just have it do
the insert?
Thanks in advance
Lisa
insert that value into a seperate table on the Lost_Focus event. I have
the following:
Private Sub Team_LostFocus()
DoCmd.RunSQL "INSERT INTO [Team/Mascots] ([Name]) VALUES ([Team]);"
End Sub
This is doing the job, but a pop-up box appears when I loose focus and
I have to enter the data again to have it insert (after it gives me a
warning that it will be updating a row and I have to click OK). Is
there a way to completely remove that pop-up box and just have it do
the insert?
Thanks in advance
Lisa