I have a form with a subform, both default to datasheet views. I want to put
a Print Preview button on the form, but it doesnt show up in the datasheet
view.
Is there a way to do this?
Thanks,
Bret
|
|
0
|
|
|
|
Reply
|
Utf
|
3/24/2010 8:29:02 PM |
|
Bretona10,
You can create a continuous form that "looks" just like a
datasheet view, but can have button/s in the header/footer.
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."
"Bretona10" <Bretona10@discussions.microsoft.com> wrote in message
news:59EE209A-3834-471C-8B3B-41726F9DB5E0@microsoft.com...
>I have a form with a subform, both default to datasheet views. I want to
>put
> a Print Preview button on the form, but it doesnt show up in the datasheet
> view.
>
> Is there a way to do this?
>
> Thanks,
> Bret
|
|
0
|
|
|
|
Reply
|
Al
|
3/24/2010 10:01:57 PM
|
|
On Wed, 24 Mar 2010 13:29:02 -0700, Bretona10 wrote:
> I have a form with a subform, both default to datasheet views. I want to put
> a Print Preview button on the form, but it doesnt show up in the datasheet
> view.
>
> Is there a way to do this?
>
> Thanks,
> Bret
Forms are not designed for printing. Reports are.
Create a report that displays the data the way you want it to.
Then open the report from the command button on your form.
DoCmd.OpenReport "ReportName", acPreview
will display all the records.
If you wish to just report on the one record displayed on the form,
add a where clause to the above OpenReport code.
Assuming the Unique Field is a Number datatype, then:
DoCmd.OpenReport "ReportName", acPreview , , "[RecordID] = " &
Me.[RecordID]
However, if the Unique Field is a Text datatype, use:
DoCmd.OpenReport "ReportName", acPreview , , "[RecordID] = '" &
Me.[RecordID] & "'"
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
|
|
0
|
|
|
|
Reply
|
fredg
|
3/24/2010 10:04:47 PM
|
|
Bretona10,
That would be one of the pitfalls of using datasheet view. Perhaps creating
a form that *loks like* datasheet view, then you could use a button.
--
Gina Whipp
2010 Microsoft MVP (Access)
"I feel I have been denied critical, need to know, information!" - Tremors
II
http://www.regina-whipp.com/index_files/TipList.htm
"Bretona10" <Bretona10@discussions.microsoft.com> wrote in message
news:59EE209A-3834-471C-8B3B-41726F9DB5E0@microsoft.com...
I have a form with a subform, both default to datasheet views. I want to put
a Print Preview button on the form, but it doesnt show up in the datasheet
view.
Is there a way to do this?
Thanks,
Bret
|
|
0
|
|
|
|
Reply
|
Gina
|
3/24/2010 10:17:28 PM
|
|
|
3 Replies
1344 Views
(page loaded in 0.51 seconds)
Similiar Articles: Command Button in Datasheet View - microsoft.public.access.forms ...Hi Folks - I'd like to display a list of records in datasheet view. One of the fields is a checkbox. I'd like users to select the records to print, ... Command Button with datasheet view - microsoft.public.access.forms ...I have a form with a subform, both default to datasheet views. I want to put a Print Preview button on the form, but it doesnt show up in the datasheet view. adding navigational buttons to a form in datasheet view ...You can't! With a datasheet form you get what Access gives you; data fields in rows! You can do all you want in Design View, add command buttons, labels, comboboxes ... Datasheet view - microsoft.public.accessCommand Button with datasheet view - microsoft.public.access.forms ... I have a form with a subform, both default to datasheet views. I want to put a Print Preview button ... Can a Table be opened in datasheet view from a form - microsoft ...Trying to figure out how to open a table in datasheet view using a control button on a form and not use a split form view. Any help? ... Open a form in filter by form datasheet view from Switchboard ...Command Button with datasheet view - microsoft.public.access.forms ... Open a form in filter by form datasheet view from Switchboard ... Command Button with datasheet view ... Viewing a report of filtered resutls using a Command Button ...Command Button in Datasheet View - microsoft.public.access.forms ... Viewing a report of filtered resutls using a Command Button ... Command Button with datasheet view ... Create Report using fields from Form's datasheet - microsoft ...I have a form in datasheet view and I have a control that allows me to view and hide various fields. I would like to be able to click a button to c... select a record using datasheet view, then use form view to edit ...Command Button with datasheet view - microsoft.public.access.forms ... select a record using datasheet view, then use form view to edit ... Command Button with datasheet ... Settinf field sizes in datasheet view - microsoft.public.access ...Settinf field sizes in datasheet view - microsoft.public.access ... Command Button with datasheet view - microsoft.public.access.forms ... Settinf field sizes in datasheet ... Command Button with datasheet view - microsoft.public.access.forms ...I have a form with a subform, both default to datasheet views. I want to put a Print Preview button on the form, but it doesnt show up in the datasheet view. Answer : Command Button with datasheet viewCommand Button with datasheet view - answer - I have a form with a subform, both default to datasheet views. I want to put a Print Preview button on the form, but it ... Command Button in Datasheet View - microsoft.public.access.forms ...Hi Folks - I'd like to display a list of records in datasheet view. One of the fields is a checkbox. I'd like users to select the records to print, ... Access-Command button to open form in datasheet view - Tech ...I think I'm losing my mind. Have created a command button to open a form. The form I want to open is set to Datasheet view. Everytime I click the button, the Datasheet View with Command Buttons - Access World ForumsMicrosoft Access Discussion > Forms ... I have a command button on my main form that displays information from another form ... You need to change the default view of ... 7/21/2012 8:10:08 PM
|