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

Auto Lookup & Populate


In A97, WXP, I have an employee form which, among other things, has a
textbox for that employee's assigned access card number [CARDID]. The form
also has two (2) Yes/No checkboxes. One checkbox is to indicate whether this
is a new number (in the entire system) that needs to be added ("Yes") to a
list to be emailed to the property manager [WCCADD] and the other checkbox,
if checked "Yes", is the basis for another list to have a receipt printed
[PRTRCPT] in the employee's name for the new access card.

Presently, the person entering the data "knows" if this is a new card she is
entering and then manually 'checks' both check boxes ("Yes"). Since I've
caught some mistakes of entering newly assigned card numbers without adding
them to the list for the property manager and also not including them on the
'Print Receipt' list, I'd like to have Access automatically do a lookup to
determine if the [CARDID] is 'new' (not already in the system) and if it is
'new', check both checkboxes (Yes/-1), so I no longer must 'hope & pray'
that the boxes were checked upon initial data entry.

I would sincerely appreciate any help in showing me how to accomplish this.

Thx...
Earl Anderson
Nov 12 '05 #1
2 2563
On Mon, 19 Apr 2004 17:21:21 -0400, "Earl Anderson" <is*****@rcn.com>
wrote:

In A97, WXP, I have an employee form which, among other things, has a
textbox for that employee's assigned access card number [CARDID]. The form
also has two (2) Yes/No checkboxes. One checkbox is to indicate whether this
is a new number (in the entire system) that needs to be added ("Yes") to a
list to be emailed to the property manager [WCCADD] and the other checkbox,
if checked "Yes", is the basis for another list to have a receipt printed
[PRTRCPT] in the employee's name for the new access card.

Presently, the person entering the data "knows" if this is a new card she is
entering and then manually 'checks' both check boxes ("Yes"). Since I've
caught some mistakes of entering newly assigned card numbers without adding
them to the list for the property manager and also not including them on the
'Print Receipt' list, I'd like to have Access automatically do a lookup to
determine if the [CARDID] is 'new' (not already in the system) and if it is
'new', check both checkboxes (Yes/-1), so I no longer must 'hope & pray'
that the boxes were checked upon initial data entry.


You are on the right track. Leaving things to the user which are
pre-defined processes is a nightmare waiting to happen. You'll want
to investigate the DLookup function.

Note, however, that the DLookup function is slower than molasses
running uphill in the winter time.

Hence, if you find the response time intolerable, you might want to
investigate an alternative lookup function, such as the one described
here:

http://www.mvps.org/access/modules/mdl0012.htm, courtesy of Trevor
Best.

mike
Nov 12 '05 #2
Setting the DefaultValue property of a textbox will place the selected value
in that field in all new records (unless changed) and does not affect
existing records.

Robert Crouser

"Earl Anderson" <is*****@rcn.com> wrote in message
news:40***********************@news.rcn.com...

In A97, WXP, I have an employee form which, among other things, has a
textbox for that employee's assigned access card number [CARDID]. The form also has two (2) Yes/No checkboxes. One checkbox is to indicate whether this is a new number (in the entire system) that needs to be added ("Yes") to a
list to be emailed to the property manager [WCCADD] and the other checkbox, if checked "Yes", is the basis for another list to have a receipt printed
[PRTRCPT] in the employee's name for the new access card.

Presently, the person entering the data "knows" if this is a new card she is entering and then manually 'checks' both check boxes ("Yes"). Since I've
caught some mistakes of entering newly assigned card numbers without adding them to the list for the property manager and also not including them on the 'Print Receipt' list, I'd like to have Access automatically do a lookup to
determine if the [CARDID] is 'new' (not already in the system) and if it is 'new', check both checkboxes (Yes/-1), so I no longer must 'hope & pray'
that the boxes were checked upon initial data entry.

I would sincerely appreciate any help in showing me how to accomplish this.
Thx...
Earl Anderson

Nov 12 '05 #3

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

Similar topics

2
by: C. David Rossen | last post by:
Hello: I have a registration form for classes. Each class has a fee. I have a drop down box whereby the user chooses his class. There is a textbox with the associated fee. I would like to...
9
by: Koen | last post by:
Hi all, My application uses a lot of lookup tables. I've splitted the frontend (forms, reports, etc) from the backend (data). The database has around 10 different users. The values in the...
2
by: Earl Anderson | last post by:
In A97, WXP, I have an employee form which, among other things, has a textbox for that employee's assigned access card number . The form also has two (2) Yes/No checkboxes. One checkbox is to...
6
by: Smithers | last post by:
I am looking to implement a search feature into a Windows Forms MDI application. Specifically I plan to embed 3 textboxes into a toolbar; one for LastName, another for FirstName, and one for...
1
by: Jim | last post by:
I have a new database in which I have a form where in one field I type a letter A, B, C or D and the field next to it autofills (auto lookups) with a description associated with the specific...
10
by: Jimmy | last post by:
The description field looks up values from another table: Description, ProductCost, DeliverCost, OtherCost & SalePrice. AfterUpdate of the description field is: Me!Cost =...
2
by: des-sd | last post by:
Access Experts, Please help! I have looked through ref. manuals, Google Groups on "Auto Populate", and I am still lost. Problem #1 My DB is 2 relational tables of (1) sales transactions of,...
6
by: bdockery | last post by:
Here’s the deal. I'm more of a general Microsoft Admin, so I'm new to Access. My boss wants some type of PO request and tracking system setup, so I read a book on Access since it seems to be the...
1
geo039
by: geo039 | last post by:
I have a user control that uses a lookup table to populate. When the user clicks the loopup icon for building, a list of items they can choose from appears. How could I populate the same control...
106
by: bonneylake | last post by:
Hey Everyone, Well i don't know if my question should be in javascript/ajax or coldfusion, i figure this is more of a coldfusion question. But if this is in the wrong section let me know an all...
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?
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,...
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...
0
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...

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.