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

Please help me. Multiple problems/challenges

I need a button that will check (make true) two check boxes (fields)
For the record that has the focus (the record on the form that I am
presently looking at). The two check boxes would be like a "sold"
check box and an "add to report" check box (for print out). Also as
part of this button, I would like for it to enter a date into a field
such as a "date sold" field. That should be fairly simple and I could
probably figure out how to do it but if anybody knows I'd rather take
the shortcut. I do not design for others. This is my own project for
keeping track of inventory and contacts.

I also need a button that will clear all check boxes (make all false)
for the "add to report" for print out check box. I use a check box to
print out a report with all the items I need to look up. The problem
is two days later the list has changed. I can go in and uncheck the
boxes one by one but there has to be an easy way to make all
checkboxes in that field false so I can just start over again. I need
to leave the "Sold" check box as is for future data analysis and
reports.

I have asked about this before and received no response. Can someone
please, please help me with this?

If you would be so kind as to post as a follow up so I can find the
response that I am so hopeful to find.
Thanks a terabyte,
Larry

Nov 12 '05 #1
1 1220
In the Click event, to set check boxes chkX and chkY, and to set the current
date and time into txtDateSold, the following air code should work:

Me!chkX = True
Me!chkY = True
Me!txtDateSold = Now()

To reset the Yes/No field (the one to which I assume those check Boxes are
bound), use an Update Query. The Query Builder will "lead you by the hand"
in building it: Open the QueryBuilder, add the table of interest, and drag
and drop the Yes/No fields down into the Grid. Then, on the menu, Query |
Update, and look at the grid -- it will now have an UpdateTo: line. Specify
False or 0 for the Yes/No fields and run the Query. Once you have that Query
working to your satisfaction, you can copy the SQL into code and run it from
the Click event of a Command Button.

Larry Linson
Microsoft Access MVP

"Pax S" <la*******@hotmail.com> wrote in message
news:7n********************************@4ax.com...
I need a button that will check (make true) two check boxes (fields)
For the record that has the focus (the record on the form that I am
presently looking at). The two check boxes would be like a "sold"
check box and an "add to report" check box (for print out). Also as
part of this button, I would like for it to enter a date into a field
such as a "date sold" field. That should be fairly simple and I could
probably figure out how to do it but if anybody knows I'd rather take
the shortcut. I do not design for others. This is my own project for
keeping track of inventory and contacts.

I also need a button that will clear all check boxes (make all false)
for the "add to report" for print out check box. I use a check box to
print out a report with all the items I need to look up. The problem
is two days later the list has changed. I can go in and uncheck the
boxes one by one but there has to be an easy way to make all
checkboxes in that field false so I can just start over again. I need
to leave the "Sold" check box as is for future data analysis and
reports.

I have asked about this before and received no response. Can someone
please, please help me with this?

If you would be so kind as to post as a follow up so I can find the
response that I am so hopeful to find.
Thanks a terabyte,
Larry

Nov 12 '05 #2

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

Similar topics

3
by: pargat singh | last post by:
Hi Everyone, THIS IS SECOND TIME I AM POSTING MY PROBLEM.I have a log file like 123.log and i want to display this log in browser.In ASP page at top i have following. <%Response.Buffer =...
53
by: Bill | last post by:
Hello Programmers, I am looking for either Java Script (OR HTML etc) to DEFEAT Pop-up Stoppers e.g It will bring up a window that will LOOK like a Pop-up FEEL like a Pop-up Allow a name and...
6
by: Code4u | last post by:
I need to design data storage classes and operators for an image processing system that must support a range of basic data types of different lengths i.e. float, int, char, double. I have a...
1
by: Pax S | last post by:
I need a button that will check (make true) two check boxes (fields) For the record that has the focus (the record on the form that I am presently looking at). The two check boxes would be like a...
22
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete...
32
by: tshad | last post by:
Can you do a search for more that one string in another string? Something like: someString.IndexOf("something1","something2","something3",0) or would you have to do something like: if...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
4
by: Tarun Mistry | last post by:
Hi all, I have posted this in both the c# and asp.net groups as it applies to both (apologies if it breaks some group rules). I am making a web app in asp.net using c#. This is the first fully OO...
9
by: Ajinkya | last post by:
Me along with some of my friends have formed a programming group on google to discuss programming problem approaches.... Do join it will be helpful to all beginners and experts same. Here is...
47
by: Larry Smith | last post by:
I just read a blurb in MSDN under the C++ "ref" keyword which states that: "Under the CLR object model, only public single inheritance is supported". Does this mean that no .NET class can ever...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...
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,...

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.