sja13
Professional Idiot
- Local time
- Today, 16:15
- Joined
- May 3, 2017
- Messages
- 63
I have a simple Dialogue Form (“frmISs”) with a listbox (“lbxSelector”), and two command buttons, the usual “ cmdOK” and “cmdCancel”.
Using vba I want to “point” the listbox to a field in a Table.
I’ve tried all sorts, the latest being
All that happens is the Form opens with the RecordSource and RowSource it was created with.
I’ve also tried adding “.Requery” before the End With. No effect!
I assume that it is normal to modify the Form's Properties and Controls prior to actually issuing the OpenForm, as I can’t find the equivalent of “Form.Update” or “Form.Save”.
Can any kind soul point me in the right direction?
Thanks in advance….
Using vba I want to “point” the listbox to a field in a Table.
I’ve tried all sorts, the latest being
Code:
strTable = “tblItem”
strField = “ItemName”
With Form_frmISs
.RecordSource = strTable
.lbxSelector.RowSource = strField
End With
DoCmd.OpenForm "frmIss", _
acNormal, _
, _
, _
, _
acDialog
I’ve also tried adding “.Requery” before the End With. No effect!
I assume that it is normal to modify the Form's Properties and Controls prior to actually issuing the OpenForm, as I can’t find the equivalent of “Form.Update” or “Form.Save”.
Can any kind soul point me in the right direction?
Thanks in advance….