Greetings to all,
can you help me with this?
I have a main form linked with a subform ( m/child ) query and I'm trying to make this code to work but it does not and I don’t know why.
I have this code…
Me.Form![subform1]![type] = Me.Combo12
Me.Form![subform1]![DESIGN] = Me.Combo11
Me.Form![subform1]![stage] = "NEW"
Me.Form![subform1]![stagedate] = Now()
...and it works, but when I do this…
If Me.Form![subform1]![stage] <> "NEW" Then
Me.Form![subform1]![type] = Me.Combo12
Me.Form![subform1]![DESIGN] = Me.Combo11
Me.Form![subform1]![stage] = "NEW"
Me.Form![subform1]![stagedate] = Now()
End If
It does not work, can anyone tell me why the If does no work ??????
Many thanks in advance
can you help me with this?
I have a main form linked with a subform ( m/child ) query and I'm trying to make this code to work but it does not and I don’t know why.
I have this code…
Me.Form![subform1]![type] = Me.Combo12
Me.Form![subform1]![DESIGN] = Me.Combo11
Me.Form![subform1]![stage] = "NEW"
Me.Form![subform1]![stagedate] = Now()
...and it works, but when I do this…
If Me.Form![subform1]![stage] <> "NEW" Then
Me.Form![subform1]![type] = Me.Combo12
Me.Form![subform1]![DESIGN] = Me.Combo11
Me.Form![subform1]![stage] = "NEW"
Me.Form![subform1]![stagedate] = Now()
End If
It does not work, can anyone tell me why the If does no work ??????
Many thanks in advance