F
fishqqq
Hi have a simple piece of code that is giving me some problems.
As it sits right now it does what it is supposed to do in terms of
opening the right form. The problem is this code is on the onload
event of a form called [focac] and allthough the correct form is
opening when it should there is always form [focac] open on top of it.
I would like this form to close , leaving the intended form open.
I tried adding another docmd line that would run a macro that had
[focac] close but this gave me an error message that i can't seem to
get rid of either.
I think i'm leaving something simple out here but for the life of me i
don't know what that is.
Private Sub Form_Load()
If [Source] >= Then
DoCmd.OpenForm "fActCde"
ElseIf [Source] < [URL] Then
DoCmd.OpenForm "General Quote"
End If
End Sub
As it sits right now it does what it is supposed to do in terms of
opening the right form. The problem is this code is on the onload
event of a form called [focac] and allthough the correct form is
opening when it should there is always form [focac] open on top of it.
I would like this form to close , leaving the intended form open.
I tried adding another docmd line that would run a macro that had
[focac] close but this gave me an error message that i can't seem to
get rid of either.
I think i'm leaving something simple out here but for the life of me i
don't know what that is.
Private Sub Form_Load()
If [Source] >= Then
DoCmd.OpenForm "fActCde"
ElseIf [Source] < [URL] Then
DoCmd.OpenForm "General Quote"
End If
End Sub