XLEAccessGuru
XLEGuru
- Local time
- Today, 15:46
- Joined
- Nov 17, 2006
- Messages
- 65
Hi All,
If anyone has any ideas here for me, I'd really appreciate it.
I have MENU1 and MENU2 that each have 2 user input text boxes - begin and end dates. User inputs begin and end dates and query runs for records between those dates. Here's what I need to do:
1. Determine if MENU1 or MENU2 is the active object at run time (double-click event of list box)
2. Right now, the query criteria is predetermined to read "Between Forms![frmMENU1]![Begin] And Forms![frmMENU1]![End]". I need the double-click event code to change the query criteria at run time to refer to the active form and its controls for Begin and End date.
I'm guessing I need to assign and pass some variables, but I still struggle with that a sometimes. Can anyone help?
Thanks!
If anyone has any ideas here for me, I'd really appreciate it.
I have MENU1 and MENU2 that each have 2 user input text boxes - begin and end dates. User inputs begin and end dates and query runs for records between those dates. Here's what I need to do:
1. Determine if MENU1 or MENU2 is the active object at run time (double-click event of list box)
2. Right now, the query criteria is predetermined to read "Between Forms![frmMENU1]![Begin] And Forms![frmMENU1]![End]". I need the double-click event code to change the query criteria at run time to refer to the active form and its controls for Begin and End date.
I'm guessing I need to assign and pass some variables, but I still struggle with that a sometimes. Can anyone help?
Thanks!