473,378 Members | 1,470 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.

How to select data from a sub form and move it into a printable form?

19
I have a form that contains a text box and a combo box that is used in a query. The query results are then displayed in a subform on the main form.

On the subform I have added check boxes. I would like the user to be able to individually select the check boxes that pertain to the test plate they are attempting to order.





Problems:

1. The check boxes do not select individually. If one box is selected, all boxes become selected.

2. Once the check box issue is resolved, how do I move the data from the selected row(s) onto a new form that will be printed off.

This is being created in MS Access 2003. Thanks in advance!
May 19 '10 #1
6 2400
Jim Doherty
897 Expert 512MB
@bknabl
Welcome to Bytes :)

In short this bit of your question:-

1. The check boxes do not select individually. If one box is selected, all boxes become selected.

You need to tie in that checkbox to an underlying field of the boolean type ie a Yes/No field in the underlying table by setting its controlsource. The reason they are 'all coming on at once' is due to the fact that you currently have it displayed yes.....but it is not bound to anything.

Once you have made your selections, the easiest method then is to create a simple form that has an SQL query recordsource where records are displayed from the table but restricted to WHERE the Selected field is true and where any 'other' field used on your existing search ie [Spec]="BACS" are also specified as part of that SQL's WHERE clause. Then you simply open the form using whatever logic you wish, either a button or whatever else suits you.

There are various ways however of listing and selecting multiples of records.....you are using a subform but a listbox can also do this and has the added advantage of 'multi select' simple or extended. I suggest you have a look at that feature, if all you are doing is listing and not particularly editing the record 'in place' as you might do directly in a subform, if I am making myself clear.
May 20 '10 #2
bknabl
19
Thanks! I will give this a try.
May 20 '10 #3
bknabl
19
This question is now resolved. Thank you for the help!
May 21 '10 #4
Jim Doherty
897 Expert 512MB
@bknabl
You,re welcome :)
May 21 '10 #5
bknabl
19
Sorry to bring this post back up from the dead but when I first started this project, I didn't account for front end/back end. The three files I am using to drive this database are hosted on a server and are regularly maintained. With that being said, I cannot make any changes to the structure of these tables (i.e. adding a new column for selecting).

I am going back in this program and building it back up from scratch to ensure proper functionality with the user to server relationships. How do I add just a select (yes/no) column into a query that I made that has combined the three server files?

Thanks again!
Jun 16 '10 #6
Jim Doherty
897 Expert 512MB
@bknabl
I am not so sure I understand what you mean by the three files thing, elaborate
Jun 24 '10 #7

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

Similar topics

2
by: Mad Scientist Jr | last post by:
I'm trying to get javascipt select all items in a HTML form <SELECT> control and submit the form to an asp.net page. For some reason when the link is clicked, you can see the items all get...
4
by: pizzy | last post by:
INTRO: I tried to clean it up for easy reading. I hope I didn't make any mistakes. PROBLEM: WOW, this is some crazy sh!t. I can't get my checkbox (see "TAGSELECTED") to print my textboxes (see...
1
by: Andrew | last post by:
What I'm trying to have done is the following: After data is entered into a form, I want the user to click the "Submit and print" button, which solidifies the data in the tables, then prints a...
8
by: Sam Halliday | last post by:
i want to have a function which can print the printable form (possibly a 2 character string) of a character on UNIX like systems. for example, if i were to pass the ascii value '\3', i would like...
1
by: Daniel Gormley | last post by:
What I have is a form that is dynamically generated based on which database table its calling. Therefore, the number of category.name.count can be different. So I have this form generated and...
1
by: tomlebold | last post by:
Having problems displaying query results from combo boxes on a sub form, which is on the same form that is used to select criteria. This has always worked form me when displaying query results on...
8
by: tnspc | last post by:
I'm trying to access a Request.Form variable and plug it into an SQL statement, so that the statement will select just the particular data I need. Here's the offending snippet of code: sql =...
11
by: cooperkuo | last post by:
Dear all, I have a question about ADO in the subform. I know how to use ADO to insert/update/select data into the sigin form, but wehn I try to do it in the form with subform((Datasheet). I don't...
1
by: jimatparks | last post by:
Hi, I am new, not brand new, but new to VBA. I am trying to get the double-click to select the record the user d-clicks on and move the single record to a new form. The record appears in a subform...
3
by: jerry101 | last post by:
hi, i've got a form in which the user can fill out consisting of 2 text boxes to enter information in, a drop down box of choices and of course a submit button. when they fill it out, it sends the...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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:
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
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.