473,804 Members | 4,181 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print all records after choose by combobox

DD
I have frmMain and fsub
you choose a month from the ChooseMonth combo and all the records for
that month are nopw visible in the fsub
I know print with the following Where and only recieve the record that
is selected in the fsub when i want all the records
Can some one help correct my code
dd
strDocName = "rptGSTCollecte d"
strWhere = "[PaidMonth]= #" & Me!fsubGSTRecie ved![PaidDate] & "#"
DoCmd.OpenRepor t strDocName, acPreview, , strWhere
Nov 12 '05 #1
3 2120
Hi David,

I assume that didn't like my suggestion that I made in response to:
"Print from date selection" that you posted on 04/14/2004?

It allows you to print JUST the records that you specify, OR you can choose
"(All)" from the combo-box and ALL of the records get printed.

Here's the link again if you cant find it..
http://groups.google.ca/groups?q=Don...grps13&rnum=12

Don

"DD" <da**********@b igpond.com.au> wrote in message
news:14******** *************** **@posting.goog le.com...
I have frmMain and fsub
you choose a month from the ChooseMonth combo and all the records for
that month are nopw visible in the fsub
I know print with the following Where and only recieve the record that
is selected in the fsub when i want all the records
Can some one help correct my code
dd
strDocName = "rptGSTCollecte d"
strWhere = "[PaidMonth]= #" & Me!fsubGSTRecie ved![PaidDate] & "#"
DoCmd.OpenRepor t strDocName, acPreview, , strWhere

Nov 12 '05 #2
Hi Don
I have tried to adapt the code you sent and i am having trouble.
I am still learning about code and your code is a little confusing for
me
I will keep trying but i am having difficulty
DD

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
da**********@bi gpond.com.au (DD) wrote in message news:<14******* *************** ***@posting.goo gle.com>...
I have frmMain and fsub
you choose a month from the ChooseMonth combo and all the records for
that month are nopw visible in the fsub
I know print with the following Where and only recieve the record that
is selected in the fsub when i want all the records
Can some one help correct my code
dd
strDocName = "rptGSTCollecte d"
strWhere = "[PaidMonth]= #" & Me!fsubGSTRecie ved![PaidDate] & "#"
DoCmd.OpenRepor t strDocName, acPreview, , strWhere


Instead of Me!fsubGSTRecie ved![PaidDate], I would use something like:

fsubGSTReceived .Form.[PaidDate]

if the Name of the Subform control on frmMain is fsubGSTReceived .

James A. Fortune
Nov 12 '05 #4

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

Similar topics

6
2322
by: Wim van Rosmalen | last post by:
I've upgraded MS-Access 2002 to a MS-Access Project (adp), so now I have to deal with more sophisticated queries (may I call them so?) like stored procedures. I have a form with a combobox for selections and a textbox to enter a certain value. Let us say I call the combobox @select and the textbox @find. The combobox always shows the first of the items to select. Now I want to return a message if nothing is found, or if nothing has been...
2
3197
by: Tony Williams | last post by:
I have two tables one lists the names of committees and the other is a list of documents they generate. I have a form based on the documents table which gives details of the document including which committee generated it. On the form I also want to indicate which other committees are interested in that document, there could be 1 or say 8, it differs for each document. I had thought of creating say 10 combo boxes based on the committee...
3
2643
by: Pete | last post by:
I have a combobox which is used to select records, which is satisfactory at the moment. However, a second user is going to start using this database and there will be 1600 records. This makes the combobox a little unfeasable as searching through this many names would be difficult and time-consuming. I would like the user to be able to select a group of people from a first combobox, and then when he goes to the second, only the names of
3
379
by: DD | last post by:
I have frmMain and fsub you choose a month from the ChooseMonth combo and all the records for that month are nopw visible in the fsub I know print with the following Where and only recieve the record that is selected in the fsub when i want all the records Can some one help correct my code dd strDocName = "rptGSTCollected" strWhere = "= #" & Me!fsubGSTRecieved! & "#" DoCmd.OpenReport strDocName, acPreview, , strWhere
1
1562
by: Wim van Rosmalen | last post by:
Hi folks, I've upgraded MS-Access 2002 to a MS-Access Project (adp), so now I have to deal with more sophisticated queries (may I call them so?) like stored procedures. I have a form with a combobox for selections and a textbox to enter a certain value. Let us say I call the combobox @select and the textbox @find. The combobox always shows the first of the items to select. Now I want to return a message if nothing is found, or if...
3
1686
by: Roy | last post by:
Hello, Sorry for a lengthy post. I develop a access 2000 application.As a part of the daily download,I import data from a excel sheet into a access table. The data is as follows: Task Comments 11801 08/02/2004 07:15:43 CET: Submitted 08/02/2004 06:35:39 CET: Please provide Post Mortem 11804 08/18/2004 09:33:46 CET: Sent mail to Carey Walker chasing
1
1717
by: saurabhpawar | last post by:
Hello All I have a Combobox which has a table as its row source. I want to be able to choose from this Combobox (which has approximately 100 records) and have this value entered into another table (it currently has a field from this table as its control source but this doesn't seem to help). I am also having problems with retaining the value on the form - if I go back through the records on the form it will overwrite the previous values...
3
1636
by: gggram2000 | last post by:
I'm using visual studio 2008 with a windows based project written in C# with sql server as backend; My database stores items with their respective details. I'ved created a very basic and simple form with a binding source and navigator and a datagrid. Basically the customer buys items. I have a specific item number for all items. I would like a comboBox to be inside of the datagrid so that when i choose an item number, some fields...
2
3689
by: kurtzky | last post by:
i created a form that should function as follows: i will enter a number in a textbox..then it should query from the database all the records which has that number..these records will have a different item no in it..then, these records will be saved in a temporary datatable (which i made in a separate class, the name is WBASKET)...The item nos of these records will be displayed in a combobox, say item1, item2, etc.. then,i have a datagrid...
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10330
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...
0
9144
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
7616
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
5520
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...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4297
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
2
3816
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.