T
Tim Cadieux
When doing this Dim frmName As Form
I get this error
User-defined type not defined?
Do I need to add a reference?
Below is the full code so u can see what I'm doing.
Dim frmName As Form
'Determine which Form to Show
If Me.optIndivid.Value = True Then
Set frmName = Forms.Add("frmRecipient")
Else
Set frmName = Forms.Add("frmSalut")
End If
'Get the Label Translations
If sLang = "0" Then
sDear = "Dear"
sNone = "[None]"
Else
sDear = "Cher"
sNone = "[Aucune]"
End If
'Show the translations and show the form
With frmName
.listSalutation.AddItem sDear
.listSalutation.AddItem sNone
.Show
End With
I get this error
User-defined type not defined?
Do I need to add a reference?
Below is the full code so u can see what I'm doing.
Dim frmName As Form
'Determine which Form to Show
If Me.optIndivid.Value = True Then
Set frmName = Forms.Add("frmRecipient")
Else
Set frmName = Forms.Add("frmSalut")
End If
'Get the Label Translations
If sLang = "0" Then
sDear = "Dear"
sNone = "[None]"
Else
sDear = "Cher"
sNone = "[Aucune]"
End If
'Show the translations and show the form
With frmName
.listSalutation.AddItem sDear
.listSalutation.AddItem sNone
.Show
End With