Hi,
I have a form which has several command buttons these buttons will either open a form for viewing, adding, or editing.
There is one particular button that is giving me a hard time, which is "Pending Tickets" When the user logs on (using a global variant)and clicks on this option the PendingTicket form should open allowing them to edit their own Pending Tickets. Could someone please look at my code and hopefully spot something that I missed....Thanks
[tt]Private Sub ViewingPendingTickets_Click()
DoCmd.OpenForm "PendingTickets", , , "TicketStatus = 'Pending'" And "UserName = 'Forms!Log![cbousername]"
End Sub[/tt]
I have a form which has several command buttons these buttons will either open a form for viewing, adding, or editing.
There is one particular button that is giving me a hard time, which is "Pending Tickets" When the user logs on (using a global variant)and clicks on this option the PendingTicket form should open allowing them to edit their own Pending Tickets. Could someone please look at my code and hopefully spot something that I missed....Thanks
[tt]Private Sub ViewingPendingTickets_Click()
DoCmd.OpenForm "PendingTickets", , , "TicketStatus = 'Pending'" And "UserName = 'Forms!Log![cbousername]"
End Sub[/tt]