aziz rasul
Active member
- Local time
- Today, 03:39
- Joined
- Jun 26, 2000
- Messages
- 1,935
On a form I have two combo boxes (cboReportingMonth, cboReportingYear, cboWorksheets) and a textbox (txtFilename). You can double click the label of the textbox to run some code, which effectively allows the user to select a file and place the name of the file into txtFilename.
The problem I'm having is that if a user carries out the following steps: -
1. enters a value in cboReportingMonth
2. enters a value in cboReportingYear
3. removes value from cboReportingMonth
4. double-clicks the label of txtFilename
In the beginning of the code for the double-click event, I have
This is to check that there is a value in cboReportingMonth and cboReportingYear before allowing a file to be selected. However it doesn't like the code given above?
The problem I'm having is that if a user carries out the following steps: -
1. enters a value in cboReportingMonth
2. enters a value in cboReportingYear
3. removes value from cboReportingMonth
4. double-clicks the label of txtFilename
In the beginning of the code for the double-click event, I have
Code:
DoCmd.GoToControl "cboWorksheets"
This is to check that there is a value in cboReportingMonth and cboReportingYear before allowing a file to be selected. However it doesn't like the code given above?