B
Brad
Thanks for taking the time to read my question
Dim CellID as Variant 'When the DLookup works I'll change this to Integer
Dim ThePhoneNumber as String
CellID = DLookup("CellNumber", "tblCellInfo", "CellNumber = 555-555-5555")
returns Null
The value is there.
This works:
SELECT tblCellInfo.CellID, tblCellInfo.CellNumber
FROM tblCellInfo
WHERE (((tblCellInfo.CellNumber)="555-555-5555"));
I'd like to get this to work:
ThePhoneNumber = "555-555-5555"
CellID = DLookup("CellNumber", "tblCellInfo", "CellNumber = " & """" &
ThePhoneNumber & """")
What is wrong with my DLookup??? Both make CellID = Null
Thanks,
Brad
Dim CellID as Variant 'When the DLookup works I'll change this to Integer
Dim ThePhoneNumber as String
CellID = DLookup("CellNumber", "tblCellInfo", "CellNumber = 555-555-5555")
returns Null
The value is there.
This works:
SELECT tblCellInfo.CellID, tblCellInfo.CellNumber
FROM tblCellInfo
WHERE (((tblCellInfo.CellNumber)="555-555-5555"));
I'd like to get this to work:
ThePhoneNumber = "555-555-5555"
CellID = DLookup("CellNumber", "tblCellInfo", "CellNumber = " & """" &
ThePhoneNumber & """")
What is wrong with my DLookup??? Both make CellID = Null
Thanks,
Brad