My issue is that the form i need to get my value from will be closed before I am able to take the value and pass it onto my new form.
I wanted to use the following code to move the value but with the form closed thats not possible.
I am getting the idea that I need to use SQL to do this but I am new to SQL inside VBA.
So in the end what I want to do is take the value from field 'cboSiteSelection
' inside 'frmDefaultStart' and pass it to Field 'cboCurrentSite' in form 'frmAuditQualification'.
Any tips to get me on the right path would be helpfull
I wanted to use the following code to move the value but with the form closed thats not possible.
Code:
Private Sub Form_Open(Cancel As Integer)
If Not IsNull(Forms!frmAuditQualification!cboCurrentSite) Then
Me!cboCurrentSite = Forms!frmDefaultStart!cboSiteSelection
End If
End Sub
I am getting the idea that I need to use SQL to do this but I am new to SQL inside VBA.
So in the end what I want to do is take the value from field 'cboSiteSelection
' inside 'frmDefaultStart' and pass it to Field 'cboCurrentSite' in form 'frmAuditQualification'.
Any tips to get me on the right path would be helpfull
Last edited: