473,396 Members | 2,002 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.

Autofill a field in table view

Right ive been looking around for a solution for this most of last night and today and i havent found anything that can help :(

I have a table called Intake_Hopper which has the field names "Product_Desciption" and "Product_Code" what im trying to find out is how do i autopopluate "Product_Desciption" when the user types in a Product Code

Both of these are help in the "Products" table

Im not doing this in a form as i have a vb front end so i only want this to happen when the user goes into the raw database and enters data.

I hope this makes sence :)
Nov 8 '07 #1
2 1320
Jim Doherty
897 Expert 512MB
Right ive been looking around for a solution for this most of last night and today and i havent found anything that can help :(

I have a table called Intake_Hopper which has the field names "Product_Desciption" and "Product_Code" what im trying to find out is how do i autopopluate "Product_Desciption" when the user types in a Product Code

Both of these are help in the "Products" table

Im not doing this in a form as i have a vb front end so i only want this to happen when the user goes into the raw database and enters data.

I hope this makes sence :)
If I am reading you correctly then you should have no need to autopopulate it in vb code if you have a properly normalised structure. (which you have... you store products in their own table)

You only need populate Product_Code in the Intake_Hopper table because you would then... in the case of any data retrieval... be LEFT joining in SQL with the Products table and including the Description field as a column in any output. This will 'at that point' automatically return the description in any retrieved recordset.

As it is, if you continued as is, you would be creating static standalone 'product description' data in the intake hopper table that would have no integrity or bearing with the products table description. ie IF someone were to change the 'product description' in table products you would have unsynchronised data in 'Product_Description field of table Intake_Hopper.

Here is the SQL syntax to reflect what I mean where it would autopopulate on data retrieval.

Expand|Select|Wrap|Line Numbers
  1.  
  2. SELECT Intake_Hopper.Product_Code, Products.Description, Intake_Hopper.NextField1,Intake_Hopper.NextField2
  3. FROM Intake_Hopper 
  4. LEFT JOIN Products ON Intake_Hopper.Product_Code = Intake_Hopper.Product_Code;
  5.  
  6.  
Regards

Jim :)
Nov 8 '07 #2
[font=Arial]Thanks Jim ill get down to trying this out now :)[/font]
Nov 10 '07 #3

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

Similar topics

0
by: Chris Sharman | last post by:
I'd like to design my pages to work cooperatively with browser autofill features. I've loked around, but can't find any good documentation on supported/unsupported field names...
1
by: shortbackandsides.no | last post by:
I'm having a lot of difficulty trying to persuade the Google toolbar autofill to act consistently, for example ======================= <html><head> <title>autofill test</title> </head><body>...
0
by: Ray Holtz | last post by:
Is it possible to autofill a field based on what is entered into another field in a form? My form has an employee field, and department field. In an Items Table, I have fields FldEmployee, and...
1
by: Nick J | last post by:
Hi, I remember at one point access would autofill a text box when filtering by form, Like for example as I would type it would come up with matching records, similar to AutoComplete in Internet...
2
by: LCalaway | last post by:
Happy 4th, all How do you turn off the following type of autofill: Example: I have created a table with four text fields. When entering numeric data in these fields, by the third field, a...
2
by: cazz | last post by:
Hi I have a database with about 6 tables - each table is connected via the primary field in table no 1 - request no, one to many relationship. All tables also have one other field in common -...
10
by: sandraz444 | last post by:
I have an expression in the query under my form to autofill the date under a certain condition but it wont write to the underlying table?? The date shows in the form but not the table. Does anyone...
8
by: tess | last post by:
I have: table 1 - tblLeadInfo which includes a salesman ID field table 2 - tbllkpSalesman with all zips in the state and a Salesman assigned to that area. I have a form based on table #1 When...
1
by: Pazeh | last post by:
Hello, a first timer here! stumbled upon one of the threads hear while searching on google & the feedback was awesome so I decided to jump in & ask my Q! I'm a newbie in AJAX, but I know my way...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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,...

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.