473,320 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Button In Form Which Allow To Select The Printers Available At Ur Pc

101 100+
Hi,
I know this is the simple problem for experts so i will get reply quickly.
I have project in MS Access.
In that I have a form in which I want to put the button.
When we click on this button it will show me the the same window as when we click on print in file menu.
So when that window appear I can select any printer available on my PC.
Thanks
Dec 13 '07 #1
5 1135
Rabbit
12,516 Expert Mod 8TB
You'll want to take a look at the Application.Printers collection.
Dec 13 '07 #2
billa856
101 100+
Ya its like that whenever i click on that button it will show me new small pop up window like when we click on print in file menu or press CTRL+P.So from that popup window i can select any printer so i have more option instead of i have to print on default printer.
Thanks for ur reply.
Dec 13 '07 #3
Rabbit
12,516 Expert Mod 8TB
Right, the application.printers collection holds all the information on the printers for that computer.
Dec 13 '07 #4
billa856
101 100+
I generate the list for printers but after selecting one from list then i have to click on button.
So i want to know what code i have to put on click event of button.
Dec 13 '07 #5
Rabbit
12,516 Expert Mod 8TB
To set the printer you use
Expand|Select|Wrap|Line Numbers
  1. Set Application.Printer = Application.Printers(Index)
  2.  
Dec 13 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Oz | last post by:
Hi Using VS.NET 2003, Windows XP SP1, We have a page which has been developed using ASP.NET. On it, is a button which when clicked is supposed to add some data to a table. When the button is...
3
by: vcornjamb | last post by:
Hello, I am developing a web form that contains some buttons and a data grid which has as its last column link buttons that will delete the data associated with that row. Everything works fine,...
7
by: MgGuigg | last post by:
Hello all, This is my first time posting a question to this forum, so here is hoping I am following protocol. I am scraping the rust off my old Basic programming skills, and have just recently...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
1
by: Chris Lieb | last post by:
In a form, I have two select lists. One holds the available options. I have some buttons between them for moving items from one list to the other. When the form first loads, all of the items are...
9
by: Dimsion | last post by:
Hi, How do i expose all my forms and it controls to other form in the project? I want to be able to add a form and some control on it, this then be available to all other forms. form1 click...
5
by: lmttag | last post by:
ASP.NET 2.0 (C#) application Intranet application (not on the Internet) Using Windows authentication and impersonation Windows Server 2003 (IIS6) Server is a member server on a domain Logged...
3
by: Spiros Bousbouras | last post by:
The fact that vertical tab and form feed exist both in the basic source character set and the basic execution character set suggests to me that there is a class of display devices where vertical...
2
by: Salochin | last post by:
Hay all, Try not to laugh to loud at my attempt of vb, hehe, im totally newbie at this stuff but trying all the same I have a rough idea what im doing but im stuck on a cmd button I want it to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.