473,624 Members | 2,584 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print Active Access Window Using VB

I am developing an Access database and need to be able to print a form
with various selections made as it appears on screen. The standard way
of doing this would be to create a report based on the form but the
form is quite complex with nested subforms and page tabs and trying to
filter the records is proving to be a nightmare. I'm sure there must be

some VB code that could do this for me but I'm a bit of a novice.
Printing the screen would be fairly straightforward but I really want
to print just the form window. If anyone could offer any advice it
would be greatly appreciated. At the moment I'm pulling out what's left

of my hair.

Jan 19 '07 #1
6 1935
You might want to post this to an Access newsgroup.
There's a ton of them, and you're more likely to get
Access help there.

Robin S.
----------------------------------------
"JonC" <jo***********@ hotmail.comwrot e in message
news:11******** **************@ 11g2000cwr.goog legroups.com...
>I am developing an Access database and need to be able to print a form
with various selections made as it appears on screen. The standard way
of doing this would be to create a report based on the form but the
form is quite complex with nested subforms and page tabs and trying to
filter the records is proving to be a nightmare. I'm sure there must
be

some VB code that could do this for me but I'm a bit of a novice.
Printing the screen would be fairly straightforward but I really want
to print just the form window. If anyone could offer any advice it
would be greatly appreciated. At the moment I'm pulling out what's
left

of my hair.

Jan 19 '07 #2
Thanks for the reply but I've already been down that avenue. The answer
seems to be some sort of VB so thats why I thought I'd try this group.
RobinS wrote:
You might want to post this to an Access newsgroup.
There's a ton of them, and you're more likely to get
Access help there.

Robin S.
----------------------------------------
"JonC" <jo***********@ hotmail.comwrot e in message
news:11******** **************@ 11g2000cwr.goog legroups.com...
I am developing an Access database and need to be able to print a form
with various selections made as it appears on screen. The standard way
of doing this would be to create a report based on the form but the
form is quite complex with nested subforms and page tabs and trying to
filter the records is proving to be a nightmare. I'm sure there must
be

some VB code that could do this for me but I'm a bit of a novice.
Printing the screen would be fairly straightforward but I really want
to print just the form window. If anyone could offer any advice it
would be greatly appreciated. At the moment I'm pulling out what's
left

of my hair.
Jan 22 '07 #3
What version of Access are you using?

Robin S.
-------------------
"JonC" <jo***********@ hotmail.comwrot e in message
news:11******** **************@ q2g2000cwa.goog legroups.com...
Thanks for the reply but I've already been down that avenue. The
answer
seems to be some sort of VB so thats why I thought I'd try this group.
RobinS wrote:
>You might want to post this to an Access newsgroup.
There's a ton of them, and you're more likely to get
Access help there.

Robin S.
----------------------------------------
"JonC" <jo***********@ hotmail.comwrot e in message
news:11******* *************** @11g2000cwr.goo glegroups.com.. .
>I am developing an Access database and need to be able to print a
form
with various selections made as it appears on screen. The standard
way
of doing this would be to create a report based on the form but the
form is quite complex with nested subforms and page tabs and trying
to
filter the records is proving to be a nightmare. I'm sure there
must
be

some VB code that could do this for me but I'm a bit of a novice.
Printing the screen would be fairly straightforward but I really
want
to print just the form window. If anyone could offer any advice it
would be greatly appreciated. At the moment I'm pulling out what's
left

of my hair.

Jan 23 '07 #4
Access 2003

RobinS wrote:
What version of Access are you using?

Robin S.
-------------------
"JonC" <jo***********@ hotmail.comwrot e in message
news:11******** **************@ q2g2000cwa.goog legroups.com...
Thanks for the reply but I've already been down that avenue. The
answer
seems to be some sort of VB so thats why I thought I'd try this group.
RobinS wrote:
You might want to post this to an Access newsgroup.
There's a ton of them, and you're more likely to get
Access help there.

Robin S.
----------------------------------------
"JonC" <jo***********@ hotmail.comwrot e in message
news:11******** **************@ 11g2000cwr.goog legroups.com...
I am developing an Access database and need to be able to print a
form
with various selections made as it appears on screen. The standard
way
of doing this would be to create a report based on the form but the
form is quite complex with nested subforms and page tabs and trying
to
filter the records is proving to be a nightmare. I'm sure there
must
be

some VB code that could do this for me but I'm a bit of a novice.
Printing the screen would be fairly straightforward but I really
want
to print just the form window. If anyone could offer any advice it
would be greatly appreciated. At the moment I'm pulling out what's
left

of my hair.
Jan 23 '07 #5
Thanks for the reply but I've already been down that avenue. The answer
seems to be some sort of VB so thats why I thought I'd try this group.
You might be right that the answer lies in VB, but I think you are
confused on "which" vb is needed. Access uses Visual Basic for
Applications (VBA), this is a scaled down version of what we refer to
as classic vb. The newgroup you are in is for VB.Net, the current, most
advanced version of visual basic. VB.Net has special syntax that is not
present in either classic vb or vba, and therefore will not work in
your Access project (not to mention it requires the .Net framework to
even run). If you want some code that will run inside of your Access
database, you need to post/search the Access newsgroup, it's google
groups url is
http://groups.google.com/group/comp....?lnk=srg&hl=en
If you are hellbent on using Vb.Net then you will have to probably have
to rewrite the form you want to print using in the new (.Net) language.
Microsoft has a free editor available for this - just search
microsoft.com for "Visual Basic 2005 Express Edition" Once you have
that you'll need to program in the built in functionality of the Access
forms, like retrieving records from the database and then allowing the
user to move between the records. I could keep going, but I think
you're getting the point that this will be a massive project,
especially since you don't know any/much visual basic. I would say this
will be about 25 times as hard as using the subforms and subreports you
mentioned in your original post.

Assuming that VBA still supports the classic VB print methods, you
might even browse that newsgroup (
http://groups.google.com/group/comp....c/topics?hl=en
) for some code that handles printing, but again printing in classic vb
was no walk in the park.

Overall, you're best bet is to just use the reports. Sure subreports
can get confusing, but they're nothing like trying to learn to
program...

Thanks,
Seth Rowe
JonC wrote:
Thanks for the reply but I've already been down that avenue. The answer
seems to be some sort of VB so thats why I thought I'd try this group.
RobinS wrote:
You might want to post this to an Access newsgroup.
There's a ton of them, and you're more likely to get
Access help there.

Robin S.
----------------------------------------
"JonC" <jo***********@ hotmail.comwrot e in message
news:11******** **************@ 11g2000cwr.goog legroups.com...
>I am developing an Access database and need to be able to print a form
with various selections made as it appears on screen. The standard way
of doing this would be to create a report based on the form but the
form is quite complex with nested subforms and page tabs and trying to
filter the records is proving to be a nightmare. I'm sure there must
be
>
some VB code that could do this for me but I'm a bit of a novice.
Printing the screen would be fairly straightforward but I really want
to print just the form window. If anyone could offer any advice it
would be greatly appreciated. At the moment I'm pulling out what's
left
>
of my hair.
>
Jan 23 '07 #6
Cheers Seth - You've probably sabed me a lot of wasted time and effort
(not to mention hair). I'll concentrate my efforts on working through
filtering the subreports.
rowe_newsgroups wrote:
Thanks for the reply but I've already been down that avenue. The answer
seems to be some sort of VB so thats why I thought I'd try this group.

You might be right that the answer lies in VB, but I think you are
confused on "which" vb is needed. Access uses Visual Basic for
Applications (VBA), this is a scaled down version of what we refer to
as classic vb. The newgroup you are in is for VB.Net, the current, most
advanced version of visual basic. VB.Net has special syntax that is not
present in either classic vb or vba, and therefore will not work in
your Access project (not to mention it requires the .Net framework to
even run). If you want some code that will run inside of your Access
database, you need to post/search the Access newsgroup, it's google
groups url is
http://groups.google.com/group/comp....?lnk=srg&hl=en
If you are hellbent on using Vb.Net then you will have to probably have
to rewrite the form you want to print using in the new (.Net) language.
Microsoft has a free editor available for this - just search
microsoft.com for "Visual Basic 2005 Express Edition" Once you have
that you'll need to program in the built in functionality of the Access
forms, like retrieving records from the database and then allowing the
user to move between the records. I could keep going, but I think
you're getting the point that this will be a massive project,
especially since you don't know any/much visual basic. I would say this
will be about 25 times as hard as using the subforms and subreports you
mentioned in your original post.

Assuming that VBA still supports the classic VB print methods, you
might even browse that newsgroup (
http://groups.google.com/group/comp....c/topics?hl=en
) for some code that handles printing, but again printing in classic vb
was no walk in the park.

Overall, you're best bet is to just use the reports. Sure subreports
can get confusing, but they're nothing like trying to learn to
program...

Thanks,
Seth Rowe
JonC wrote:
Thanks for the reply but I've already been down that avenue. The answer
seems to be some sort of VB so thats why I thought I'd try this group.
RobinS wrote:
You might want to post this to an Access newsgroup.
There's a ton of them, and you're more likely to get
Access help there.
>
Robin S.
----------------------------------------
"JonC" <jo***********@ hotmail.comwrot e in message
news:11******** **************@ 11g2000cwr.goog legroups.com...
I am developing an Access database and need to be able to print a form
with various selections made as it appears on screen. The standard way
of doing this would be to create a report based on the form but the
form is quite complex with nested subforms and page tabs and trying to
filter the records is proving to be a nightmare. I'm sure there must
be

some VB code that could do this for me but I'm a bit of a novice.
Printing the screen would be fairly straightforward but I really want
to print just the form window. If anyone could offer any advice it
would be greatly appreciated. At the moment I'm pulling out what's
left

of my hair.
Jan 23 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8819
by: nospam | last post by:
All I am trying to achieve the following: Main window page's asp code writes the following line to launch a popup window (note the IFRAME has to be in the popup window, it cannot be in the current page) response.write("<script language='JavaScript'>var tempprintwindow = window.open('papertempprint.asp?path=" & filePath & "','');")
0
2233
by: Malcolm Cook | last post by:
I've discovered: Using "File > Print Preview" in a form's datasheet view with a server Filter crashes access after previewing... ....that is, unless ServerFilterByForm has been turned off after applying the filter. See the steps to recreate bug below for details.
0
2449
by: dlieu | last post by:
I've found an odd situation in where the Load event of the active form fires (after the Unload event) when Access is closed. I am able to reproduce this situation in Access 2002 SP3 and Access 2003 on computers running WinXP. This does not appear to happen in Access 2000 on a computer with Win2000. This only seems to happen if there is a hidden form also loaded and, so far, I'm only able to reproduce this if the forms are loaded through...
3
400
by: Chris Wertman | last post by:
I am looking to capture the URL of the ACTIVE IE window. How the heck can I determine which window is the active window. Better yet how do I grab the URL of that particular window ? I am searching and searching but see no VB samples of anything I want to do. I have a bit of code that will grab the URL but it grabs the URL of
2
14114
by: Dean Slindee | last post by:
Anybody written code in VB.NET to: 1) show a print preview window of reports already written and stored in an Access 2002 database; or 2) execute the print of a report stored in an Access 2002 database? Thanks, Dean Slindee
3
3865
by: Atul | last post by:
Hi, I am running .NET Framework 2.0 on windows XP SP2. I am stuck in a situation where I need to find out a list of all active sessions running in IIS for a web application. I know that .NET 2.0 has introduced a new class that facilitate this task very easily, somehow couldnt recall its name. Any help would be highly appreciated.
3
2326
by: Max58kl | last post by:
Trying to access data and print it to the screen using Perl Builders I/O Window -------------------------------------------------------------------------------- Hi I am using a program called Perl Builder which is an Integrated Development Environment for Perl scripting. I am trying to access the data in a txt file and then print the results to the screen. The procedure for doing this is write a script then click on the Run button,...
3
3277
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a asp.net page, it uses js to print in IE. It always has the prompting user window appear. I have tried: <input onclick="document.all.WebBrowser.ExecWB(6,6)" type="button" value="Print directly"> <input onclick="document.all.WebBrowser.ExecWB(6,2)" type="button" value="Print directly">
10
9115
by: Snoopy33 | last post by:
I have a DB that I developed on access XP (2002) and deployed over a year ago. No one has had problems printing any of the reports within the DB until we started loading 2007 on new computers. The access 2007 users cannot print one of the reports. This is maddening since I cannot duplicate the issue on any computer that runs 2003 or below. Is there something going on that I'm not seeing? Does anyone have any suggestions at all on...
0
8249
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8633
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8348
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2613
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1797
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.