473,386 Members | 1,801 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.

populating a form automatically with a button

I have 2 tables , Production table and the Total table. The production table is made from a form and the total table just has data in it. I need to populate 2 fields from the total table into the production table. They both have a common field being the Vial #. Sometimes there are 2 identical vial # for a product but they are packed on a different line. I need the line speeds the lines would run at and the # of people per line which is all stored in the Total table.
I put a button to run a query which will give me this info. I was wondering is there is a way of me automatically putting in the information ie . # of people and line speed from the total table into the respective fields within the form when the button is pressed. AGain the Vial # isnt unique but if i run a query with the vial # and the line # , i would get exact values which i could copy into my form. Is there a way of automatically putting it into the form as soon as i type the Vial # and the line # in the form by pressing the button?
I looked at the command button options and couldnt find anything.

Kindly help!
Oct 26 '06 #1
1 1726
MMcCarthy
14,534 Expert Mod 8TB
I have 2 tables , Production table and the Total table. The production table is made from a form and the total table just has data in it. I need to populate 2 fields from the total table into the production table. They both have a common field being the Vial #. Sometimes there are 2 identical vial # for a product but they are packed on a different line. I need the line speeds the lines would run at and the # of people per line which is all stored in the Total table.
I put a button to run a query which will give me this info. I was wondering is there is a way of me automatically putting in the information ie . # of people and line speed from the total table into the respective fields within the form when the button is pressed. AGain the Vial # isnt unique but if i run a query with the vial # and the line # , i would get exact values which i could copy into my form. Is there a way of automatically putting it into the form as soon as i type the Vial # and the line # in the form by pressing the button?
I looked at the command button options and couldnt find anything.

Kindly help!
Try using something in the button on click event like

Me.[Control Name for Vial#] = Dlookup("[Vial#]","Total","[Line#]=" & Me.[some value on form]
Oct 27 '06 #2

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

Similar topics

1
by: John Hargrove | last post by:
I am building a database to manage test samples in an environmental laboratory. I am learning Access as I go and don't know much about the programming aspects. I hope to make the application...
1
by: Jason | last post by:
I have a form that is used for entering and editing site address information. The data in the form is from one table, named Total_Site_Address. There are fields in this table (and controls on...
13
by: melih.onvural | last post by:
Group, I'm having a tough time understanding some of the previous posts on this topic so I wanted to write what I've tried and hope that you can help me troubleshoot. I have a dropdown populated...
2
by: jpolichn | last post by:
Im trying to write an app that takes credentials I enter and automatically enters them in a popup (login box). If any one can point me in the right direction for capturing the login box. That...
3
by: sck10 | last post by:
Hello, I am creating a form for users to enter information about a lab and the members of the lab. I have one form (FormView) that they use to enter information about that lab. The keyvalue is...
13
by: Mary | last post by:
I'll pulling my hair out on this one and would be so appreciative of any help. I am creating a data entry form to enter results of a student survey. There are 40 questions on the survey. The...
2
by: M R | last post by:
i am writing an application (C#) that automates the process of loading a web page, login into a site and then simulates the navigation of the site. the program uses a winform with a webBrowser...
0
by: Bomac8 | last post by:
I have a text file with "|" as a delimeter with three (3) fields XXX-12345|\\YYYYYYY|\\ZZZZZZZZ I need to read these files into an output folder. The problem that I'm having is that I need to...
3
by: pounana | last post by:
Dear all, (using access 2002 on windows 2k) Apologies for such a simple question, I just can't seem to sort it out myself. I have a form called frmProject Details, which includes nested...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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:
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
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...

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.