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

Select cbo value. Automate Recording of subsequent cbo Lkup field values into Main tb

Hello Everyone
I have a main table tblJOBS. In this table I have the fields ‘F_Loc’ (Lookup), ‘Gender’ (Text) and ‘Facility’ (Text).
The ‘F_Loc’ field lookup table is called ‘tblLK_Location’. The tblLK_Location table has four (Text) fields as follows:
Location – This could be Laundry, Office, Library or Room Number etc.
Info – Provides brief help for the data imputer,
Gender – Only has ‘Male’, ‘Female’, ‘Male & Female’
Facility – Only has ‘Shower’, ‘Toilet’, ‘Bathroom’.
Where a room number has been recorded in the Location field, the attributes of that room are pre-recorded in the 3rd and 4th fields of the lookup table i.e.
LOCATION ‘RM123’, INFO “”, GENDER ‘Male’, FACILITY ‘Toilet’
LOCATION ‘Electrical’, INFO Select for E’ Workshop or E’ Room, GENDER “” FACILITY “”
LOCATION ‘RM234’, INFO “” GENDER ‘Female’, FACILITY ‘Shower’

I have an input form frmINPUT_JOBS; a ‘Single Form’. The record source is tblJOBS. So on my form I have ‘F_Loc’ with a drop down selection list. I present the first two fields to the imputer i.e. Location and Info. I have ‘Gender’ and ‘Facility’ fields on my main form from tblJOBS. When the data imputer selects ‘RM123’ from the ‘F_Loc’ drop down selection, I would like ‘Male’ to be automatically entered into the ‘Gender’ field and ‘Toilet’ to be automatically entered into the ‘Facility’ field.
REASON: Once tblJOBS becomes populated, these ‘F’ (Find) fields provide search criterion for recorded jobs. I want to make the data imputer’s work easier by automating these search tag entries enabling only one selection to be made. I am confident it requires VLookup but I have had no success with the WHERE part. I am using MS Access Office 2003. I would like to express my gratitude in advance to anyone who is able to assist me.
Oct 13 '10 #1
1 1556
Hello Folks
I resolved it. Thank you, those who took a look at my problem. Solution: I Run several update queries via a macro when the input form is closed. One update query (MS Access qbe) runs a query 'WHERE' RoomNo is 111 or 112 or 114 and updates the 'Gender' field to 'Ladies' for each of the rooms listed. Another update query is set to 'WHERE' RoomNo is 111 or 235 or 236. This query Updates the 'Facility' field to 'Toilets' for all of the rooms listed and so on. The data imputer only records the room number on the form. The macro will run the update queries on the 'form close' event. My queries do work. I have not set up the macro yet. I am extremely confident this will work on the ‘form close event’. I hope this is helpful to someone out there. This is the best solution for me because it is the only solution I am aware of. There may be a better method employed by adept Access users. Perhaps DLookup was not appropriate on this occasion.
Oct 14 '10 #2

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

Similar topics

2
by: Wishing I was skiing mom | last post by:
In form1, which is an item master maintenance screen, I have a button which launches form2. Form2 contains an item master datagrid. After the user double-clicks the desired item record in form2 I...
1
by: Megan | last post by:
I have 2 tables, CASE and ISSUE. My table, CASE, stores the issues pertaining to that particular case. The table, CASE, was designed with 2 fields, IssueID and IssueDesc. Right now, all of the...
1
by: Richard Dixson | last post by:
Under ASP.NET (C#) I want to create a page that people can use to submit questions. This page will consist of a table with several rows of information, like: Name: Bill Smith Job title:...
2
by: Richard Dixson | last post by:
Under ASP.NET (C#) I want to create a page that people can use to submit questions. This page will consist of a table with several rows of information, like: Name: Bill Smith Job title:...
5
by: mehere | last post by:
Please excuse me if I am posting in wrong NG. Can someone explain how I can use javascript (I am assuming this is the best way to do it) to add two field values together. I.e. field 1 plus field...
1
by: Mariel | last post by:
Hello, I hava a main form F1, form with a subform F2 in datasheet view. There is a combobox in the main form C1, and a combobox C2 in the subform. I want the dropdown options of the combobox...
5
by: sklett | last post by:
I'm not real experienced with asp.net so this may be obvious. I've got a situation where some of my client side javascript is causing my posted form's controls to lose their values. In other...
9
by: xian2 | last post by:
Hi All, I have been wroking on the databse for a while now and am on the stage of creating forms. I am trying to create a subform at the moment but am having some problems. I am using the...
9
ADezii
by: ADezii | last post by:
There are basically 4 Methods that you can use to access the values of Fields in Recordsets. For the purposes of this demonstration, I'll be using a Table called tblEmployees, a Field named , and a...
1
by: bytenut | last post by:
I would like to display two field values in a combo after selecting from the list items... i.e. my drop-down shows two fields from a lookup, but when I select the item, only the first field value is...
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: 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
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
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...
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
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...
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.