Hi,
Has anyone experienced a Form's textbox fields Back Style property changing transparent after focus has changed to another textbox control? I have many comboboxes that are populated from tables and code to .Requery and I am wondering if that has anything to do with it. When a new form is opened all fields display white but after I click on the first dropdown and select a value the after update event has code to do a .Requery on the next field whose dropdown values change based on the first field. The focus is then given to the next field because it is the next field that should be completed. Once the second field gains focus the first field becomes transparent. It is still editable and if you click in it, it will turn white again.
This is example of the 2nd field's after update event, once this is done and the Subdivision_Name gets focus the Division_Name, Merchandising_Dir, and Merchandiser become transparent. As each field is updated and the user tabs to other fields the field becomes transparent although editable.
Private Sub Division_Name_AfterUpdate()
DoCmd.SetWarnings False
Me.Division_Name.Requery
DoCmd.OpenQuery "qry_Get_DIV_Nbr", acViewNormal, acEdit
Set db3 = CurrentDb()
Set rst3 = db3.OpenRecordset("tbl_DIV_Nbr", dbOpenDynaset)
Me!Division.Value = rst3![MDV_NBR]
Me.Subdivision_Name.Value = ""
Me.Subdivision_Name.Requery
Me.Subdivision_Name.SetFocus
Me.Merchandising_Dir.Requery 'field on form becomes transparant
Me.Merchandising_Mgr.Requery
Me.Merchandiser.Requery 'field on form becomes transparant
DoCmd.SetWarnings True
End Sub
It's very strange. Any ideas would be welcomed!
Thanks.
Has anyone experienced a Form's textbox fields Back Style property changing transparent after focus has changed to another textbox control? I have many comboboxes that are populated from tables and code to .Requery and I am wondering if that has anything to do with it. When a new form is opened all fields display white but after I click on the first dropdown and select a value the after update event has code to do a .Requery on the next field whose dropdown values change based on the first field. The focus is then given to the next field because it is the next field that should be completed. Once the second field gains focus the first field becomes transparent. It is still editable and if you click in it, it will turn white again.
This is example of the 2nd field's after update event, once this is done and the Subdivision_Name gets focus the Division_Name, Merchandising_Dir, and Merchandiser become transparent. As each field is updated and the user tabs to other fields the field becomes transparent although editable.
Private Sub Division_Name_AfterUpdate()
DoCmd.SetWarnings False
Me.Division_Name.Requery
DoCmd.OpenQuery "qry_Get_DIV_Nbr", acViewNormal, acEdit
Set db3 = CurrentDb()
Set rst3 = db3.OpenRecordset("tbl_DIV_Nbr", dbOpenDynaset)
Me!Division.Value = rst3![MDV_NBR]
Me.Subdivision_Name.Value = ""
Me.Subdivision_Name.Requery
Me.Subdivision_Name.SetFocus
Me.Merchandising_Dir.Requery 'field on form becomes transparant
Me.Merchandising_Mgr.Requery
Me.Merchandiser.Requery 'field on form becomes transparant
DoCmd.SetWarnings True
End Sub
It's very strange. Any ideas would be welcomed!
Thanks.