B
Barry A&P
I am using a combo box control as a data entry point and i want the control
to delete itself after the query runs the data.. if i select the data from
the combos list it works fine but if i type and hit enter it clears itself
but advances to the next control..
here is my code
Private Sub PNIDCombo_AfterUpdate()
DoCmd.SetWarnings False
DoCmd.OpenQuery "Q_TempScanPNIDtoSNID"
DoCmd.Requery "F_TempScanSub"
DoCmd.SetWarnings True
Me!PNIDCombo = Null
Me!PNIDCombo.SetFocus
End Sub
I tried to put
Me!PNIDCombo.SetFocus
in the emter event but it didnt work either
I would only like to advance to next control on TAB not enter..
Thanks For any help
Barry
to delete itself after the query runs the data.. if i select the data from
the combos list it works fine but if i type and hit enter it clears itself
but advances to the next control..
here is my code
Private Sub PNIDCombo_AfterUpdate()
DoCmd.SetWarnings False
DoCmd.OpenQuery "Q_TempScanPNIDtoSNID"
DoCmd.Requery "F_TempScanSub"
DoCmd.SetWarnings True
Me!PNIDCombo = Null
Me!PNIDCombo.SetFocus
End Sub
I tried to put
Me!PNIDCombo.SetFocus
in the emter event but it didnt work either
I would only like to advance to next control on TAB not enter..
Thanks For any help
Barry