N
nouveauricheinvestments
Any ideas what is wrong with this query? I am trying to run a query
via code and use the returned results to populate a few fields in the
opened form DocumentATicket.
Private Sub DocumentTicket_Click()
Dim MyTempQuery As String
DoCmd.OpenForm "DocumentATicket"
MyTempQuery = "SELECT Account, Explanation, DAT, Manager FROM
ViewSelectedOpenTicket;"
DoCmd.RunSQL MyTempQuery
Form_DocumentATicket.Account.Value = MyTempQuery.Account
Form_DocumentATicket.Description = MyTempQuery.Explanation
Form_DocumentATicket.StartTime = MyTempQuery.DAT
End Sub
via code and use the returned results to populate a few fields in the
opened form DocumentATicket.
Private Sub DocumentTicket_Click()
Dim MyTempQuery As String
DoCmd.OpenForm "DocumentATicket"
MyTempQuery = "SELECT Account, Explanation, DAT, Manager FROM
ViewSelectedOpenTicket;"
DoCmd.RunSQL MyTempQuery
Form_DocumentATicket.Account.Value = MyTempQuery.Account
Form_DocumentATicket.Description = MyTempQuery.Explanation
Form_DocumentATicket.StartTime = MyTempQuery.DAT
End Sub