It may be a stupid question, I am no advance programmer, but could not find info on this.
I have a form with a combobox bound with a table. In a module I run code to work on a recordset. That runs fine. But in some cases it needs the user to select an entry from a list. For that I open this form. I checked that the combobox is nicely filled with all values. But running it from the module I do not even get to see it. I get runtime error '94' - Invalid use of Null.
I understand this is because nothing is selected yet in the combobox, but I had no change yet as the process continues with the next line. The relevant part of the code is:
Do I need to build in a waiting loop? There must be smarter way to do this.
I tried to reference differently to the form, e.g. with frmAskInput, but all failed but the above one. Is this playing a role? I have no other references to forms.
I have a form with a combobox bound with a table. In a module I run code to work on a recordset. That runs fine. But in some cases it needs the user to select an entry from a list. For that I open this form. I checked that the combobox is nicely filled with all values. But running it from the module I do not even get to see it. I get runtime error '94' - Invalid use of Null.
I understand this is because nothing is selected yet in the combobox, but I had no change yet as the process continues with the next line. The relevant part of the code is:
Code:
strT = ""
Form_frmAskInput.Visible = True
strT = Form_frmAskInput!cboTypes.Value
Form_frmAskInput.Visible = False
Do I need to build in a waiting loop? There must be smarter way to do this.
I tried to reference differently to the form, e.g. with frmAskInput, but all failed but the above one. Is this playing a role? I have no other references to forms.