Alabaster2100
IS-IT--Management
The following is the vb code I'm using
Dim db As Database
Dim qd As QueryDef
Dim mySQL As QueryDef
Set QueryDef = cticket.CreateQueryDef("cticket", "UPDATE tbl_Ticket SET tbl_Ticket.TechID = cmb_SelectTech," & _
" tbl_Ticket.TicketClose = txt_CloseDate, tbl_Ticket.ResolveID = cmb_resolveType," & _
" tbl_Ticket.ResolveDetail = txt_ResolveDetail, tbl_Ticket.[Close] =chk_CloseTicket" & _
"WHERE tbl_Ticket.TicketID=cmb_SelectTicket.Value & ;"
DoCmd.SetWarnings (False)
DoCmd.OpenQuery (cticket)
DoCmd.SetWarnings (True)
' reset all values on form
When I try to execute the command I get an "Object required", can some one please tell me what object it wants and what I missed in my code.
TIA
HelpDesk@RWDI
Dim db As Database
Dim qd As QueryDef
Dim mySQL As QueryDef
Set QueryDef = cticket.CreateQueryDef("cticket", "UPDATE tbl_Ticket SET tbl_Ticket.TechID = cmb_SelectTech," & _
" tbl_Ticket.TicketClose = txt_CloseDate, tbl_Ticket.ResolveID = cmb_resolveType," & _
" tbl_Ticket.ResolveDetail = txt_ResolveDetail, tbl_Ticket.[Close] =chk_CloseTicket" & _
"WHERE tbl_Ticket.TicketID=cmb_SelectTicket.Value & ;"
DoCmd.SetWarnings (False)
DoCmd.OpenQuery (cticket)
DoCmd.SetWarnings (True)
' reset all values on form
When I try to execute the command I get an "Object required", can some one please tell me what object it wants and what I missed in my code.
TIA
HelpDesk@RWDI