473,396 Members | 1,738 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,396 software developers and data experts.

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 = "rptGSTCollected"
strWhere = "[PaidMonth]= #" & Me!fsubGSTRecieved![PaidDate] & "#"
DoCmd.OpenReport strDocName, acPreview, , strWhere
Nov 12 '05 #1
3 2097
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**********@bigpond.com.au> wrote in message
news:14*************************@posting.google.co m...
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 = "[PaidMonth]= #" & Me!fsubGSTRecieved![PaidDate] & "#"
DoCmd.OpenReport 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**********@bigpond.com.au (DD) wrote in message news:<14*************************@posting.google.c om>...
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 = "[PaidMonth]= #" & Me!fsubGSTRecieved![PaidDate] & "#"
DoCmd.OpenReport strDocName, acPreview, , strWhere


Instead of Me!fsubGSTRecieved![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
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...
2
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...
3
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...
3
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...
1
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...
3
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...
1
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...
3
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...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.