Hi
When I enter one number in a field, I want that number to look up information in another table, and fill in some fields succesive fields.
I would prefer not to use a combo box because I am afriad I will hit the limit for number of characters that can be in a combo box.
Here is my code so far:
Private Sub SS_ID_Exit(Cancel As Integer)
Dim varSS_Title As Variant
varSS_Title = DLookup("SS_Title", "Sites", "SS_ID=[SS_ID]")
If (Not IsNull(varSS_Title)) Then Me![SS Title] = varSS_Title
End Sub
I basically copied what I saw elsewhere, and filled in my table and field names.
What is wrong? I think I may be putting the wrong things (tables, vs. fields) in the wrong places or something.
K
When I enter one number in a field, I want that number to look up information in another table, and fill in some fields succesive fields.
I would prefer not to use a combo box because I am afriad I will hit the limit for number of characters that can be in a combo box.
Here is my code so far:
Private Sub SS_ID_Exit(Cancel As Integer)
Dim varSS_Title As Variant
varSS_Title = DLookup("SS_Title", "Sites", "SS_ID=[SS_ID]")
If (Not IsNull(varSS_Title)) Then Me![SS Title] = varSS_Title
End Sub
I basically copied what I saw elsewhere, and filled in my table and field names.
What is wrong? I think I may be putting the wrong things (tables, vs. fields) in the wrong places or something.
K