E
EJO
Hello and thanks!
The following code is causing the error 'invalid use of null', but if I
use the same parmeters in a regular query, the correct ID is pulled,
how can I correct for the difference?
Dim intCktID As Integer, intSiteID As Integer, strCktID As String
intSiteID = Forms!Site!Text2
strCktID = Me.CktID
intCktID = DLookup("[ID]", "CktsList", "[Site_ID]= " & intSite & " AND
[Display]=' " & strCktID & " ' ")
DoCmd.OpenForm "CktModify", , , "[ID] = " & intCktID
The following code is causing the error 'invalid use of null', but if I
use the same parmeters in a regular query, the correct ID is pulled,
how can I correct for the difference?
Dim intCktID As Integer, intSiteID As Integer, strCktID As String
intSiteID = Forms!Site!Text2
strCktID = Me.CktID
intCktID = DLookup("[ID]", "CktsList", "[Site_ID]= " & intSite & " AND
[Display]=' " & strCktID & " ' ")
DoCmd.OpenForm "CktModify", , , "[ID] = " & intCktID