473,769 Members | 2,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1722
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*******@hotm ail.com> wrote in message
news:7n******** *************** *********@4ax.c om...
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
1468
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 = true;%> <%Response.Expires = -1%> Inside page i have
53
7379
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 e-mail entry BUT is not affected by Popup Stopper, PopUp Killer etc
6
1808
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 template class that stores the data. The problem with this design is the inability to treat image data generically- I have a set of specialized classes with no connection. I'm considering deriving all ImageData<T> classes from a image data abstract base...
1
1231
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 "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...
22
23384
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 examples?
32
14893
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 ((someString.IndexOf("something1",0) >= 0) || ((someString.IndexOf("something2",0) >= 0) ||
1
9651
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 and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
4
2430
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 application I will be making, also my first .NET application, so im looking for any help and guidance. Ok, my problems are todo with object and database abstraction, what should i do.
47
4034
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 support multiple inheritance. In C++ for instance I noticed that the compiler flags an error if you use the "ref" keyword on a class with multiple base classes. This supports the above quote. However, under the "CodeClass2.Bases" property (part...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10210
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9990
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9861
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.