johnmidcap
Programmer
Good morning. Can someone point me in the correct direction about how to reference a specific form instance in Access 2007.
For example, I have three of the same form opened as instances (i.e. a user is looking up three different customer detail records at the same time). I need the program to update one of these form instances with new information.
Is there any way to do this?
I am applying a different caption to each form instance, here is a sample of the code:
Set frmNewform = New Form_frmAffiliations
frmNewform.lstAffiliations.RowSource = strSQL
frmNewform.txtNo = Me.txtNo
frmNewform.txtName = Me.txtBusName
frmNewform.SetFocus
frmNewform.Caption = Me.txtBusName & " Affiliations "
clnClient.Add Item:=frmNewform, Key:=CStr(frmNewform.hWnd)
I have been searching the web for a while to figure this out, but to no avail.
Thank you.
For example, I have three of the same form opened as instances (i.e. a user is looking up three different customer detail records at the same time). I need the program to update one of these form instances with new information.
Is there any way to do this?
I am applying a different caption to each form instance, here is a sample of the code:
Set frmNewform = New Form_frmAffiliations
frmNewform.lstAffiliations.RowSource = strSQL
frmNewform.txtNo = Me.txtNo
frmNewform.txtName = Me.txtBusName
frmNewform.SetFocus
frmNewform.Caption = Me.txtBusName & " Affiliations "
clnClient.Add Item:=frmNewform, Key:=CStr(frmNewform.hWnd)
I have been searching the web for a while to figure this out, but to no avail.
Thank you.