D
David
Hello all,
I have a bound form called "Main Form" with an unbound
list box named "List One", with the row source being a
query from one table.
If user double clicks a value on the list box, I write
it's value to the main forms's subform and requery the
subform. If the user needs to add a value to the unbound
list box, I have a command button on "Main Form" to open a
data entry form, called "Form1" to enter a record to the
table which is the record source for "List One".
I am trying to get the unbound list box called "List One"
to requery when the user closes "Form1".
Here is what I have tried, on the Form Close event of Form
1, with no success.
------------------------------
Error, can't find the field '|' referred to in your
expression.
[List One].Requery
------------------------------
Error, There is no field named 'List One' in the current
record.
DoCmd.Requery "List One"
-------------------------------
Error, Can't find the form 'List One' referred to.....
Forms![List One].Requery
------------------------------
How can I call the correct control to requery an unbound
list box?
Any assistance you can provide would be greatly
appreciated.
David
I have a bound form called "Main Form" with an unbound
list box named "List One", with the row source being a
query from one table.
If user double clicks a value on the list box, I write
it's value to the main forms's subform and requery the
subform. If the user needs to add a value to the unbound
list box, I have a command button on "Main Form" to open a
data entry form, called "Form1" to enter a record to the
table which is the record source for "List One".
I am trying to get the unbound list box called "List One"
to requery when the user closes "Form1".
Here is what I have tried, on the Form Close event of Form
1, with no success.
------------------------------
Error, can't find the field '|' referred to in your
expression.
[List One].Requery
------------------------------
Error, There is no field named 'List One' in the current
record.
DoCmd.Requery "List One"
-------------------------------
Error, Can't find the form 'List One' referred to.....
Forms![List One].Requery
------------------------------
How can I call the correct control to requery an unbound
list box?
Any assistance you can provide would be greatly
appreciated.
David