Hi,
I am setting up a very simple access form that fires off one report (of two) based on user input. The reports are generated from sharepoint and are already working fine. I'm just having a little trouble streamlining the selection form.
Ideally I would like this scenario:
The user opens the program and sees a form with the following options: A grayed out date selection box, two unselected radio buttons and a "Submit" button.
The user clicks on a radio button and selection box generates a week range based on the radio box selected. He then clicks submit and fires off the report.
I already have this semi-working. What I'm having trouble with:
1)No matter what default value I select for the radio box group(I've tried blank, null, and a random value), the first value is always selected. Is there a way for me to have no default value selected? I do this because the "after update" event ungrays the week selection box. Since the first radio box is already selected, the user has to click on the other radio box and click back. Kinda confusing for users.
2) Right now for the week selection box I have a hard coded query that pulls the weeks from the first report (They are stored in separate tables). IE:
Code:
SELECT [Weeks].[Week] FROM Weeks ORDER BY [Week] DESC;
What I would like would be the option if radio box 1 is selected, pull from :
Code:
SELECT [Weeks1].[Week] FROM Weeks1 ORDER BY [Week] DESC;
If Radio box 2 is selected pull from:
Code:
SELECT [Weeks2].[Week] FROM Weeks2 ORDER BY [Week] DESC;
Is there any easy way to do this? I know I could just union the two weeks - but there are times when a week doesn't have a particular report so I only want to have weeks shown that have reports.
Thanks!