kgcrowther
Registered User.
- Local time
- Today, 06:13
- Joined
- Jun 1, 2001
- Messages
- 52
This topic has been discussed, but I can't seem to apply any of the responses to my problem.
I have a combo box in a subform. It queries a table with employee information. When you enter something not in list or double-click on the box it brings up the employee info table to add an employee. After they add there employee I'd like them to be able to see that new employee in the combo box. It seems simple enough, but I can't get it to work.
I started by putting a requery command in the OnGotFocus event. I figured after the other form opens, and then closes the OnGotFocus event would work. Anyway I tried many different ways to requery it.
I tried:
Me.Requery
Me.fieldname.requery
Me.subform.requery
me.subform.refresh
Me![mainFormName].[subFormName].requery
etc. etc. etc. I also tried all these in the OnClick event figuring that you had to click the combo box to view the item. I don't understand what I'm doind wrong.
Any ideas??
Kenneth
I have a combo box in a subform. It queries a table with employee information. When you enter something not in list or double-click on the box it brings up the employee info table to add an employee. After they add there employee I'd like them to be able to see that new employee in the combo box. It seems simple enough, but I can't get it to work.
I started by putting a requery command in the OnGotFocus event. I figured after the other form opens, and then closes the OnGotFocus event would work. Anyway I tried many different ways to requery it.
I tried:
Me.Requery
Me.fieldname.requery
Me.subform.requery
me.subform.refresh
Me![mainFormName].[subFormName].requery
etc. etc. etc. I also tried all these in the OnClick event figuring that you had to click the combo box to view the item. I don't understand what I'm doind wrong.
Any ideas??
Kenneth