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

Auto fill a form

20
I didn't see a search feature in these forums, so I couldn't look up this question and I am sure it is a common questions.

I am trying to auto fill some information on an form. Here is what I have going on. I created a form that will fill in information on one table, but I also want information from another table on this form, but I want this infomation to automatically fill in was soon as I type lets say a part number. I tried to do this by placing both tables in a query and making a relationship between the two tables. But when I put the part number in, none of the information on that part number that I want on the form from the one table does not come up. How do I get this information onto the form

Thanks
Jan 16 '08 #1
3 3067
jaxjagfan
254 Expert 100+
I didn't see a search feature in these forums, so I couldn't look up this question and I am sure it is a common questions.

I am trying to auto fill some information on an form. Here is what I have going on. I created a form that will fill in information on one table, but I also want information from another table on this form, but I want this infomation to automatically fill in was soon as I type lets say a part number. I tried to do this by placing both tables in a query and making a relationship between the two tables. But when I put the part number in, none of the information on that part number that I want on the form from the one table does not come up. How do I get this information onto the form

Thanks
This would be easy to do with a combobox. Make a combobox - its rowsource would be your parts table. Link it to the PartNumber field on the form (if you have one) List the partnumber 1st and include all of the other fields of data you want to use in the "autofill". Set the number of columns to the number of fields you have included. Set all of the column widths to 0 except the 1st column (make it wide enough to accomodate the widest possible part number).

On the AfterUpdate Property of the combo

Me.txtPartName = me.cboPartNbr.Column(1)
Me.txtPartSupplier = me.cboPartNbr.Column(2)
Me.txtPartCost = me.cboPartNbr.Column(3)
...

The combo references its 1st column as 0 - the partnumber - me.cboPartNbr.column(0) or just me.cboPartNbr
Jan 16 '08 #2
Steve67
20
Thanks for looking at my problem and posting a suggestion. We have hundreds of part numbers, so the idea of making a combo box is something I was trying to stay away from. Would be a pain in the butt to scoll through all the part numbers to find the one you wanted. I was happing to be able to just type the part number in and import the information from the one table on to the form created by another table. I might have to use a subform.
Jan 17 '08 #3
missinglinq
3,532 Expert 2GB
If the AutoExpand Property is set to Yes (the Default) when your users start to type in the parts number Access will zip them thru the numbers to the correct one.

The search box for the forum is at the top to the right of theScripts logo. It's the box that says "Search" in it!

Welcome to TheScripts!

Linq ;0)>
Jan 18 '08 #4

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

Similar topics

1
by: Maurice Mertens | last post by:
Does anyone know how to get an auto-filling combobox on a form? When I add a combobox to a form I can set the DropDownStyle property to DropDownList. This will make the combobox auto-filling. But...
3
by: MatGyver | last post by:
I am going nuts trying to figure this out, any help will be appreciated. I have an existing table called "Parts". And in this table I have the following columns: "ID" "Part Number" "Part...
2
by: Joanne Lewis | last post by:
I am having a great deal of difficulty with a form. Basically, I would like to enter an account # and have the account #, patient first name, and patient last name automatically fill. The form...
1
by: Benny | last post by:
Hello experts, Currently I am working on a web application using vs.net with c#. One of the project task is creating invoices. After the invoices are created, the user needs login to a...
2
by: big_boy | last post by:
i am working with access 2000. i have a form that when you feel it out, it stores the information in the table for the form. am trying to write a auto fill query for it to automatically fill the rest...
1
by: qwas2123 | last post by:
Hi, Im trying to build a form that within the form it has a feature that if you input data into a certain text box, from there, it will automatically fill the rest of the text boxes on the form based...
0
by: KelHemp | last post by:
Greetings, I've been using this site for lots of access help in the past, and it's very helpful! I have a new complexity for you all. Reworking a form to record 70-80 years of oil production on...
10
by: Charles Richmond | last post by:
Is there some parameter I can set via Javascript that will cause the browser to *not* auto-fill forms, regardless of the browser settings??? --...
2
by: paulyXvpf | last post by:
Hi All, FACTS: > I've created a VB.NET 2005 form, with a SQL Server 2000 backend > The form has about 30 fields that populate 30 columns in the SQL database > The form has mostly text feilds,...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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,...

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.