Form result output to report??

poetdi

Board Regular
Joined
Nov 28, 2002
Messages
70
Hello!
I am trying to get a form result (after a lookup) to output to a report of just the record returned. The person I am working with is a little better than I am at writing expressions and here is what she has written in the query:

[Forms]![Form_SampleData]![FLeadLook].[AfterUpdate]

No error is returned, but the report returns no record.

Are we approaching this completely from the wrong direction?
Thanks
Diane
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

VicRauch

Well-known Member
Joined
Mar 23, 2006
Messages
2,032
AfterUpdate is an event for a field or record in connection with a form. If you want the data in the field FLeadLook to be used as the criteria for which record to get, then remove the .[AfterUpdate] and you will be a lot closer to getting this to work. I'm assuming that the Forms!Form_SampleData!FLeadLook is what has been put into the Criteria row of the query.
 
Upvote 0

poetdi

Board Regular
Joined
Nov 28, 2002
Messages
70
Thank you so much for your reply, Vic. I took out .[AfterUpdate] and the query works, at least! I now have a button on the form, which calls the report, to fix and I think it will work. I will reply later or tomorrow if I get stuck again. Thanks for your help!!!
 
Upvote 0

Forum statistics

Threads
1,190,602
Messages
5,981,883
Members
439,742
Latest member
bluegreen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top