Mj-Egerton
Registered User.
- Local time
- Today, 20:27
- Joined
- Apr 10, 2011
- Messages
- 24
Hello all, fairly new to VBA/SQL but i know a little bit
stuck on this problem
now the code is in a small user form that will pop-up allowing the user to select an option(1 out of 5 Radio Buttons) to group/order the data in a listbox on another form, when i run it i get a Run-Time Error '424' Object not found. I have checked the names in the Table.[Field] SQL statements and the are all correct, where am i going wrong?
Im running Access 2007 on windows XP
Thanks
stuck on this problem
Code:
Dim Opt1 As String
Dim strSQL7 As String
Opt1 = Option1.Value
If Option1 = True Then
strSQL7 = "SELECT Booking.BookingID, Booking.TeacherInitials, Booking.RoomAddress, Booking.MinibooksRequired, Booking.Required, Booking.[Required Date]" & _
"FROM Booking" & _
"ORDER BY Booking.[TeacherInitials];"
DoCmd.OpenForm "FrmViewBookings"
MsgBox strSQL7
FrmViewBookings.List0.RowSource = strSQL7
FrmViewBookings.List0.Requery
End If
End Sub
now the code is in a small user form that will pop-up allowing the user to select an option(1 out of 5 Radio Buttons) to group/order the data in a listbox on another form, when i run it i get a Run-Time Error '424' Object not found. I have checked the names in the Table.[Field] SQL statements and the are all correct, where am i going wrong?
Im running Access 2007 on windows XP
Thanks
Last edited: