N
nouveauricheinvestments
Hi,
I have a combo box. This combo box looks up dates in a query. I have
the following code in the afterupdate event procedure. When I do
this, it tells me "Invalid Use Of null". I don't understand what the
problem could be. I use the dlookup function in like 30 other places
in my database...Does anyone have any ideas?
Also, you should know I had set the control source to this dlookup
value previously but it was blank so I thought I would try doing it
via code. No luck, so here I am, posting.
Private Sub SelectUnAppTicket_AfterUpdate()
Dim ID As Integer
ID = DLookup("[TradeSpecialist_ID]", "[UnapprovedTickets]",
"[SelectUnAppTicket] =[UnapprovedTickets]![Start Time]")
Me!TSID = ID
Me!UnappTS.Requery: Me!UnappTS.Visible = True
End Sub
I have a combo box. This combo box looks up dates in a query. I have
the following code in the afterupdate event procedure. When I do
this, it tells me "Invalid Use Of null". I don't understand what the
problem could be. I use the dlookup function in like 30 other places
in my database...Does anyone have any ideas?
Also, you should know I had set the control source to this dlookup
value previously but it was blank so I thought I would try doing it
via code. No luck, so here I am, posting.
Private Sub SelectUnAppTicket_AfterUpdate()
Dim ID As Integer
ID = DLookup("[TradeSpecialist_ID]", "[UnapprovedTickets]",
"[SelectUnAppTicket] =[UnapprovedTickets]![Start Time]")
Me!TSID = ID
Me!UnappTS.Requery: Me!UnappTS.Visible = True
End Sub