G
Guest
Hello everyone,
I am having some troubles figuring this one out.
I have an application that has to be in english and french. To accomodate this i have a form which the user clicks english or french. then all other forms and reports will open in the appropriate language.
Now, i want to interchange several query recordsources for a single report, based on which form is open at the time the report was requested. I tried an if form visible then....but it didn't work. I got an error that said the form could not be found. I also recieved the following function but i don't see where the recordsource is being introduced. Can anyone help me?
Function FormExists(FormularName As String) As Boolean
Dim f As Form
Dim Gefunden As Boolean
Dim index As Integer
Gefunden = False
index = 0
While (Not Gefunden And index < Forms.Count)
Set f = Forms(index)
If f.FormName = FormularName Then
Gefunden = True
End If
index = index + 1
Wend
FormExists = Gefunden
End Function
I am having some troubles figuring this one out.
I have an application that has to be in english and french. To accomodate this i have a form which the user clicks english or french. then all other forms and reports will open in the appropriate language.
Now, i want to interchange several query recordsources for a single report, based on which form is open at the time the report was requested. I tried an if form visible then....but it didn't work. I got an error that said the form could not be found. I also recieved the following function but i don't see where the recordsource is being introduced. Can anyone help me?
Function FormExists(FormularName As String) As Boolean
Dim f As Form
Dim Gefunden As Boolean
Dim index As Integer
Gefunden = False
index = 0
While (Not Gefunden And index < Forms.Count)
Set f = Forms(index)
If f.FormName = FormularName Then
Gefunden = True
End If
index = index + 1
Wend
FormExists = Gefunden
End Function