This is what I have in the expression builder in Visual Basic. Is there a problem with this? My query works when I use it manually but not when the button from my form accesses it. Is there an issue with the order of my basic code. I also used to have a "set warnings to false" line but I took that out to see if I would even get a warning and I don't. Any ideas on where the problem could be?
Thanks!
Option Compare Database
Private Sub CommandBacktoListBox_Click()
DoCmd.OpenQuery "UPDATEALL"
DoCmd.Requery
DoCmd.Close acForm, "FormUPDATEFROMLISTBOX"
DoCmd.OpenForm "FormViewListBox"
End Sub