M
Meilu
I am suffering from a VERY IDIOTIC problem...
I am coding in VB, I declare a variable ... either
global or in a parameter ... and it is not recognize when
I compile!
Example 1:
Option Compare Database
Option Explicit
Private cInfo As String
Private comInfo As String
Public Property Get ContactInfo() As String
ContactInfo = cInfo
End Property
Problem: cInfo NOT declared!
Exampled 2:
Public Sub PullContactInfo(eType As String, eName As
String, openForm As Boolean, Optional cName As Variant)
Dim stDocName As String
Dim stLinkCriteria As String
Dim EntityType As String
Dim EntityName As String
EntityType = eType
EntityName = eName
stDocName = "Contact Information"
'Debug.Print eType
'Debug.Print eName
stLinkCriteria = "[EntityType]=" & "'" & eType
& "'" _
& "AND [EntityName]=" & "'" &
eName & "'"
......
Problem: stLinkCriteria not defined/declared. OR
eType/eName not declared.
I really don't want to have to restart ... cause this is
A LOT OF WORK... but at the same time ... I can't imagine
any other solution!
Any idea on why this is happening?
Meilu
..
I am coding in VB, I declare a variable ... either
global or in a parameter ... and it is not recognize when
I compile!
Example 1:
Option Compare Database
Option Explicit
Private cInfo As String
Private comInfo As String
Public Property Get ContactInfo() As String
ContactInfo = cInfo
End Property
Problem: cInfo NOT declared!
Exampled 2:
Public Sub PullContactInfo(eType As String, eName As
String, openForm As Boolean, Optional cName As Variant)
Dim stDocName As String
Dim stLinkCriteria As String
Dim EntityType As String
Dim EntityName As String
EntityType = eType
EntityName = eName
stDocName = "Contact Information"
'Debug.Print eType
'Debug.Print eName
stLinkCriteria = "[EntityType]=" & "'" & eType
& "'" _
& "AND [EntityName]=" & "'" &
eName & "'"
......
Problem: stLinkCriteria not defined/declared. OR
eType/eName not declared.
I really don't want to have to restart ... cause this is
A LOT OF WORK... but at the same time ... I can't imagine
any other solution!
Any idea on why this is happening?
Meilu
..