I'm missing something through lack of knowledge (1 Viewer)

Sam Summers

Registered User.
Local time
Today, 12:31
Joined
Sep 17, 2001
Messages
939
Ok, I sorted the syntax error with this:

Code:
stLinkCriteria = "[Area]='" & Me.[SelectArea] & "' And [ReportNumber]= '" & Me.[ReportNo] & "' "

but now I am back to the error message attached?

:confused:
 

Attachments

  • Screenshot_3.png
    Screenshot_3.png
    2.1 KB · Views: 62

Minty

AWF VIP
Local time
Today, 12:31
Joined
Jul 26, 2013
Messages
10,371
Okay that is quite easy.
Just set the default values on those controls on the subform to = the main Forms controls eg; On your Area drop down in the form design - Default value

=[Forms]![Main]![SelectArea]
 

Minty

AWF VIP
Local time
Today, 12:31
Joined
Jul 26, 2013
Messages
10,371
So remove the Area bit from your criteria and just leave the report no bit and see post #22 for the solution.
 

Sam Summers

Registered User.
Local time
Today, 12:31
Joined
Sep 17, 2001
Messages
939
Wow!!!

Did that and that's it!!!

I knew it couldn't be that hard.

I will use that for the other options I need to create.

It was probably because I hadn't explained the problem clearly enough?

Many thanks for all the help.

On to the next problem now
 

Users who are viewing this thread

Top Bottom