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

Select multiple records for printing

I am working on small database, which has a number of thousand records in one table. I need to print those (a hundred records or less) a time. I think that i should have one form for input the data, another form for selecting record for printing. In the second form i woulk like to type each UserID and the UserID should store in a list box or any object that i can verify before printing its (in report). How can i do ? please advice me step by step.

Your respond are highly appreciated.
Dec 18 '08 #1
5 3163
MMcCarthy
14,534 Expert Mod 8TB
Do you mean type in 100 userID's at a time? This does not seem very user friendly. Have you no other criteria by which to choose which records you want to print?
Dec 18 '08 #2
Yes, it seems that user type each ID at a time in text box. After they click on return key, that ID should store in one object (ie. list box in order to verify) and the text box is blank, then they start type another ID until they get all they wanted. I think that this way is not user friendly, but it will make confusion or mess up when user browses around 5000 records and select 100 records or less . Thank you again.
Dec 20 '08 #3
Or any possible way, please.
Dec 20 '08 #4
MMcCarthy
14,534 Expert Mod 8TB
@Nhoung Ar
The basics of what you want to do are this.

Assuming controls ... command1 (button), List1 (Listbox) and Text1 (Textbox) the code on the button would be as follows:

Expand|Select|Wrap|Line Numbers
  1. Private sub command1_Click()
  2. Dim strList as String
  3.  
  4.     strList = Me!List0.RowSource
  5.     Me!List0.RowSource = strList & ";" & Me!Text1.Value
  6.     Me!List0.Requery
  7.  
  8. End Sub
  9.  
Dec 20 '08 #5
Thank you very much for your respond. I will try it.
Dec 20 '08 #6

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

Similar topics

3
by: Mohammed Mazid | last post by:
Hi folks! Can anyone please help me with this? I am developing a Quiz program but I am stuck with "multiple answers". Basically I need some sort of code that would select multiple answers...
8
by: Hank Reed | last post by:
Hello, I have searched through dozens of old responses to this question but have been unable to make it work in my situation. I'm using Access 2000 We have a very old sticker printer on a...
4
by: Nicolae Fieraru | last post by:
Hi All, I have a Table1 with ID, Name, Address, Purchase. I want to build a query which shows all the records from Table1 (only fields ID, Name, Address), but there shouldn't be listed records...
1
by: Alberto | last post by:
I have a report done with Crystal Reports where I print information from three tables. The trouble is that I don't know how to select the records. I also have to do the selection using three...
11
by: pmarisole | last post by:
I am trying to use the vbscript "split" function on a multi-select field. I am trying to do a mass update of several records at a time. I am getting an error and I'm not sure what to do. Here is...
2
by: HansyW | last post by:
Please help I m reading data and need to output to a file. For each record, I have a header and several details records. I need the header to be on one line, all the details on another line , and...
2
by: rtwPhoenix | last post by:
Does anyone know a way in CR to select only the records they want via a parameter? I thought this was like a WHERE but it doen't work that way it staill gets all the records just the starting point...
1
by: KrazyKasper | last post by:
Access 2003 – Multi-Column List Box – Select Multiple Items I have a multi-column (3 columns) list box that works well to select one set of records or all sets of records (based on the first field...
2
by: 6afraidbecause789 | last post by:
Hi - Has anyone ever used toggle buttons to select items in a listbox? I'd like to put about 24 toggle buttons on an unbound form that select or deselect items in a multiple select listbox. I've...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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...

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.