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

Base report on form listbox?

Hello,

I have a small form that pops up when a user moves off the current
record of a rather sizeable data entry form. The purpose of this form
is to list warnings about various fields on the entry form that may be
incomplete or inconsistent before the user exits the record. These
warnings take the form of items in a listbox. The underlying rowsource
of the listbox is a delimited string (value list). I would like to be
able to let the user print a nicely formatted report of the items in
the list. I could create a temporary table to use as the rowsource of
the listbox and the report but before I redo what I've already got, I'm
wondering if there is a way to print a report based on my listbox or
its value list using code using the report detail's format or print
events to grab column values from the listbox. Ideally I'd like to
create a report with three textboxes in its detail section, each
corresponding to a column in the listbox on my warning form. I've been
fooling around with looping through the listbox rows in the report's
detail format event and setting the value of each text box to the
proper column but I only end up with the last row of my listbox
printing on the report. I know I could also use the report's print
method, but like creating a temp table, that's more hassle than I want
to go through.

Has anyone done anything like this? Any suggestions? Thanks.

Bruce

Nov 13 '05 #1
1 2452
br***@aristotle.net wrote:
Hello,

I have a small form that pops up when a user moves off the current
record of a rather sizeable data entry form. The purpose of this form
is to list warnings about various fields on the entry form that may be
incomplete or inconsistent before the user exits the record. These
warnings take the form of items in a listbox. The underlying rowsource
of the listbox is a delimited string (value list). I would like to be
able to let the user print a nicely formatted report of the items in
the list. I could create a temporary table to use as the rowsource of
the listbox and the report but before I redo what I've already got, I'm
wondering if there is a way to print a report based on my listbox or
its value list using code using the report detail's format or print
events to grab column values from the listbox. Ideally I'd like to
create a report with three textboxes in its detail section, each
corresponding to a column in the listbox on my warning form. I've been
fooling around with looping through the listbox rows in the report's
detail format event and setting the value of each text box to the
proper column but I only end up with the last row of my listbox
printing on the report. I know I could also use the report's print
method, but like creating a temp table, that's more hassle than I want
to go through.

Has anyone done anything like this? Any suggestions? Thanks.


The easiest solution is to print the form the ListBox is on.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
Nov 13 '05 #2

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

Similar topics

1
by: Geir Baardsen | last post by:
Hi! On a form I have a listbox that is retrieving data in the form's On_Load event. Now I have two textboxes that will change the listbox's content. How can I send data in the new, updated and...
2
by: Geir Baardsen | last post by:
Hi! From a listbox I'd like to send only selected items to a report. Items will include: OrderNr,Date,EmployeeNr from tblOrders ZipCode,City from tblZipCodes Name,Adr,ZipID from...
1
by: Josema | last post by:
Hi to all, I have a class (persons) that derives from collection base: and another class (person) with this properties: -ID -Name When i have complete filled the object Persons with all...
2
by: Arnold | last post by:
Greetings Gurus, In a report showing the names of students and their progress, I am getting an error in the name field (Name: #Error). The report gets its data from an unbound form containing...
3
by: ML | last post by:
I have used Allen Brown's technique for filling a listbox on a form with the names of files in a certain disc folder. It works well. I am now giving the user the option to print the form...
1
by: Intrepid_Yellow | last post by:
Hi, I have the following code that runs my report generator. The user selects a table from a combo box, then whatever fields they want from a list box. (This part all works and the report runs...
2
by: lgeastwood | last post by:
I have a Report with a listbox that I need to populate with a rowsource type = valuelist. The valuelist for each record is a saved SQL string complete with commas On my form I can set the...
5
by: Andrew Meador | last post by:
I have a form (Change Card List by Status) with a check box (cboNOT) and a list box (lstStatus). There is an Open Report button that opens a report (Report - Change Card List) which uses a query...
12
by: micarl | last post by:
How would i print a report based on criteria selected from several Combo Boxes as well as multiple Multi Select List Boxes, that are located on the same form? I can get one Multi List Box, just...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
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...

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.