set the onload or current event for you second form to have the following event procedure.
myform = the name of form being opened with the dynamic sql statement.
Private Sub Form_Activate()
'if myRecordSource is a variant
if not isnull(myRecordSource) then
'or if myRecordSource is string
if...
try this
setup you form for these event procedures.
Private Sub BlockA_AfterUpdate()
If Me.BlockA = True And Not IsNull(Me.DateA) Then CalcDateB
End Sub
Private Sub CalcDateB()
If Me.BlockA = True And Not IsNull(Me.DateA) Then
Me.DateB = Me.DateA - 7
End If
End Sub
Private Sub...
Suggest
Main form is unbound. (no record source)
Create the combo box for Employee Id (SelectEmployee)
Another combo box to list projects (SelectProject)
on Subform properties
Link Master fields to the two combo boxes (SelectEmployeel; SelectProject)
Link child fields (EmployeeId, ProjectId)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.