Sam Summers Registered User. Local time Today, 07:21 Joined Sep 17, 2001 Messages 939 May 23, 2016 #21 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? Attachments Screenshot_3.png 2.1 KB · Views: 86
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?
Minty AWF VIP Local time Today, 07:21 Joined Jul 26, 2013 Messages 10,670 May 23, 2016 #22 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]
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, 07:21 Joined Jul 26, 2013 Messages 10,670 May 23, 2016 #23 So remove the Area bit from your criteria and just leave the report no bit and see post #22 for the solution.
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, 07:21 Joined Sep 17, 2001 Messages 939 May 23, 2016 #24 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
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