I am having some trouble with no data appearing my listboxes.
The way the form works is that when the form opens, a combobox will get a value using DLookup from a table. This part works fine. The listboxes then run a query using the data from the combobox. The problem is that the listboxes remain blank. (Note: this whole process requires no input from the user). I think I need to refresh or requery (Not quite sure which) the form in order to make the data appear in the listboxes, but I'm not quite sure how to do this. I have tried writing the following in the form's OnLoad, OnOpen, OnCurrent etc. but it doesn't seem to work:
Forms!frmConfirmUpdate.Requery
Forms!frmConfirmUpdate.Refresh
Me.Requery
Me.Refresh
I have noticed that if I go into design view then back into form view, the values will appear in the listboxes.
Thanks in advance for your help.
Sincerely,
Kal-El
The way the form works is that when the form opens, a combobox will get a value using DLookup from a table. This part works fine. The listboxes then run a query using the data from the combobox. The problem is that the listboxes remain blank. (Note: this whole process requires no input from the user). I think I need to refresh or requery (Not quite sure which) the form in order to make the data appear in the listboxes, but I'm not quite sure how to do this. I have tried writing the following in the form's OnLoad, OnOpen, OnCurrent etc. but it doesn't seem to work:
Forms!frmConfirmUpdate.Requery
Forms!frmConfirmUpdate.Refresh
Me.Requery
Me.Refresh
I have noticed that if I go into design view then back into form view, the values will appear in the listboxes.
Thanks in advance for your help.
Sincerely,
Kal-El