Private Sub Form_Load()
Dim l_title As String
Dim l_title1 As String
Dim l_title2 As String
Dim l_title3 As String
**l_title = DLookup("Customer", "tblParameters")**
l_title1 = DLookup("Project", "tblParameters")
l_title2 = DLookup("Location", "tblParameters")
l_title3 = DLookup("TypeOfForm", "tblParameters")
Customer.Caption = l_title
Project.Caption = l_title1
Location.Caption = l_title2
TypeOfForm.Caption = l_title3
End Sub
What is wrong with this??? The debugger highlights the line that I have the ** around..
Dim l_title As String
Dim l_title1 As String
Dim l_title2 As String
Dim l_title3 As String
**l_title = DLookup("Customer", "tblParameters")**
l_title1 = DLookup("Project", "tblParameters")
l_title2 = DLookup("Location", "tblParameters")
l_title3 = DLookup("TypeOfForm", "tblParameters")
Customer.Caption = l_title
Project.Caption = l_title1
Location.Caption = l_title2
TypeOfForm.Caption = l_title3
End Sub
What is wrong with this??? The debugger highlights the line that I have the ** around..