Autopopulate/ AutoFill Help Needed.

G

Guest

I just realized a problem. I have a table that the info on this form dumps
into. When using this autopopulate it works great on the form but's doesn't
dump the fields that auotofilled into my table.
Any ideas?

Thanks,

:

Your welcome, have a great weekend

--
\\// Live Long and Prosper \\//
BS"D


:

Thanks Ofer you really made my day. I've been working on this off and on for
about a week and couldn't get it to work. I tried something simular but
didn't work.
This works perfect.
Thanks again.

:

In the RowSource of the combo, include all the fields from the table that
you
want to display in the form

Select Employee, Sup, Manager, [Site Manager] From Employee
============================================
In the combo Set the following properties

ColumnCount Property: 4
ColumnWidths Property: 3;0;0;0
============================================
Create three text boxes in the form, and in each write in the Control Source
property

Sup text box write
=[ComboName].Column(1)

Manager text box write
=[ComboName].Column(2)

[Site Manager] text box write
=[ComboName].Column(3)

===================================
After you select a value in the combo, the rest of the values will be
populated to the rest of the text boxes

--
\\// Live Long and Prosper \\//
BS"D


:

This ones probably pretty easy but I cant get it to work.
Ok I just created a new DB. I have one table call "Employee" that has Site
Manager in the 1st Column, Manager in the 2nd, Supervisor in the 3rd, and
Employee in the 4th column. I have a Form that has 4 lines Employee, Sup,
Manager, Site Manager. I want to use a drop down in the Employee field and
when you choose the Employee it looks back at the "Employee Table" and Auto
Fills in the Employees Sup, Manager, and Site Manager in the form.
Hopefully this made since.
 
G

Guest

I'm sorry. I should have stated that I've added more fields to this form.
So this form has the combox with Employee name and when thats chosen it
populates Sup, Manager, and Site Manager. Under that I have Course Name, Date
completed and a couple other fields. This Form is called "Form Info" and is
linked to a table named "Form Info table" so all info entered in the form
dumps to the table. Right now those fields that get autofilled are blank in
the "Form Info table" but are filled in and look fine in the "Form Info Form".
Hope this makes sense?

Roger Carlson said:
Actually, you do not want to store this data. Since it is already stored in
the Employee table, just Join your table to the Employee table in a query
when you need the information.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L


Str8 said:
I just realized a problem. I have a table that the info on this form dumps
into. When using this autopopulate it works great on the form but's doesn't
dump the fields that auotofilled into my table.
Any ideas?

Thanks,

:

Your welcome, have a great weekend

--
\\// Live Long and Prosper \\//
BS"D


:

Thanks Ofer you really made my day. I've been working on this off and on for
about a week and couldn't get it to work. I tried something simular but
didn't work.
This works perfect.
Thanks again.

:

In the RowSource of the combo, include all the fields from the table that
you
want to display in the form

Select Employee, Sup, Manager, [Site Manager] From Employee
============================================
In the combo Set the following properties

ColumnCount Property: 4
ColumnWidths Property: 3;0;0;0
============================================
Create three text boxes in the form, and in each write in the Control Source
property

Sup text box write
=[ComboName].Column(1)

Manager text box write
=[ComboName].Column(2)

[Site Manager] text box write
=[ComboName].Column(3)

===================================
After you select a value in the combo, the rest of the values will be
populated to the rest of the text boxes

--
\\// Live Long and Prosper \\//
BS"D


:

This ones probably pretty easy but I cant get it to work.
Ok I just created a new DB. I have one table call "Employee" that has Site
Manager in the 1st Column, Manager in the 2nd, Supervisor in the 3rd, and
Employee in the 4th column. I have a Form that has 4 lines Employee, Sup,
Manager, Site Manager. I want to use a drop down in the Employee field and
when you choose the Employee it looks back at the "Employee Table" and Auto
Fills in the Employees Sup, Manager, and Site Manager in the form.
Hopefully this made since.
 
R

Roger Carlson

This question comes up frequently in the newsgroups and it stems from a
basic misunderstanding of how a database should be designed. In a properly
designed relational database, you only want to store information ONCE. So
if you have an Employee table (which based on Ofer's previous reply, I
assume you do), then you should NOT be storing the Sup, Manager, and Site
Manager again in the Form Info table. It is sufficient to store the
employee (preferably the EmployeeID number) in the Form Info table. This
will allow you to JOIN this table to the Employee table (on the employee) to
retrieve this other information for a query or report.

This is the reason I say you do not want to store this data again.
--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L



Str8 said:
I'm sorry. I should have stated that I've added more fields to this form.
So this form has the combox with Employee name and when thats chosen it
populates Sup, Manager, and Site Manager. Under that I have Course Name, Date
completed and a couple other fields. This Form is called "Form Info" and is
linked to a table named "Form Info table" so all info entered in the form
dumps to the table. Right now those fields that get autofilled are blank in
the "Form Info table" but are filled in and look fine in the "Form Info Form".
Hope this makes sense?

Roger Carlson said:
Actually, you do not want to store this data. Since it is already stored in
the Employee table, just Join your table to the Employee table in a query
when you need the information.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L


Str8 said:
I just realized a problem. I have a table that the info on this form dumps
into. When using this autopopulate it works great on the form but's doesn't
dump the fields that auotofilled into my table.
Any ideas?

Thanks,

:

Your welcome, have a great weekend

--
\\// Live Long and Prosper \\//
BS"D


:

Thanks Ofer you really made my day. I've been working on this off and
on
for
about a week and couldn't get it to work. I tried something simular but
didn't work.
This works perfect.
Thanks again.

:

In the RowSource of the combo, include all the fields from the table that
you
want to display in the form

Select Employee, Sup, Manager, [Site Manager] From Employee
============================================
In the combo Set the following properties

ColumnCount Property: 4
ColumnWidths Property: 3;0;0;0
============================================
Create three text boxes in the form, and in each write in the Control Source
property

Sup text box write
=[ComboName].Column(1)

Manager text box write
=[ComboName].Column(2)

[Site Manager] text box write
=[ComboName].Column(3)

===================================
After you select a value in the combo, the rest of the values will be
populated to the rest of the text boxes

--
\\// Live Long and Prosper \\//
BS"D


:

This ones probably pretty easy but I cant get it to work.
Ok I just created a new DB. I have one table call "Employee" that has Site
Manager in the 1st Column, Manager in the 2nd, Supervisor in the 3rd, and
Employee in the 4th column. I have a Form that has 4 lines Employee, Sup,
Manager, Site Manager. I want to use a drop down in the Employee field and
when you choose the Employee it looks back at the "Employee Table" and Auto
Fills in the Employees Sup, Manager, and Site Manager in the form.
Hopefully this made since.
 
G

Guest

Thanks for you help. Sounds like it might not be the best way to do this but
is it possible? It would make things easier for me.

Roger Carlson said:
This question comes up frequently in the newsgroups and it stems from a
basic misunderstanding of how a database should be designed. In a properly
designed relational database, you only want to store information ONCE. So
if you have an Employee table (which based on Ofer's previous reply, I
assume you do), then you should NOT be storing the Sup, Manager, and Site
Manager again in the Form Info table. It is sufficient to store the
employee (preferably the EmployeeID number) in the Form Info table. This
will allow you to JOIN this table to the Employee table (on the employee) to
retrieve this other information for a query or report.

This is the reason I say you do not want to store this data again.
--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L



Str8 said:
I'm sorry. I should have stated that I've added more fields to this form.
So this form has the combox with Employee name and when thats chosen it
populates Sup, Manager, and Site Manager. Under that I have Course Name, Date
completed and a couple other fields. This Form is called "Form Info" and is
linked to a table named "Form Info table" so all info entered in the form
dumps to the table. Right now those fields that get autofilled are blank in
the "Form Info table" but are filled in and look fine in the "Form Info Form".
Hope this makes sense?

Roger Carlson said:
Actually, you do not want to store this data. Since it is already stored in
the Employee table, just Join your table to the Employee table in a query
when you need the information.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L


I just realized a problem. I have a table that the info on this form dumps
into. When using this autopopulate it works great on the form but's
doesn't
dump the fields that auotofilled into my table.
Any ideas?

Thanks,

:

Your welcome, have a great weekend

--
\\// Live Long and Prosper \\//
BS"D


:

Thanks Ofer you really made my day. I've been working on this off and on
for
about a week and couldn't get it to work. I tried something simular but
didn't work.
This works perfect.
Thanks again.

:

In the RowSource of the combo, include all the fields from the table that
you
want to display in the form

Select Employee, Sup, Manager, [Site Manager] From Employee
============================================
In the combo Set the following properties

ColumnCount Property: 4
ColumnWidths Property: 3;0;0;0
============================================
Create three text boxes in the form, and in each write in the Control
Source
property

Sup text box write
=[ComboName].Column(1)

Manager text box write
=[ComboName].Column(2)

[Site Manager] text box write
=[ComboName].Column(3)

===================================
After you select a value in the combo, the rest of the values will be
populated to the rest of the text boxes

--
\\// Live Long and Prosper \\//
BS"D


:

This ones probably pretty easy but I cant get it to work.
Ok I just created a new DB. I have one table call "Employee" that has Site
Manager in the 1st Column, Manager in the 2nd, Supervisor in the 3rd, and
Employee in the 4th column. I have a Form that has 4 lines Employee, Sup,
Manager, Site Manager. I want to use a drop down in the Employee field and
when you choose the Employee it looks back at the "Employee Table" and
Auto
Fills in the Employees Sup, Manager, and Site Manager in the form.
Hopefully this made since.
 
R

Roger Carlson

Yes, it is possible. Instead of setting the ControlSource as Ofer
originally suggested (ie. =[ComboName].Column(1) etc) you want to have the
textboxes bound to actual fields in your table. Then in the AfterUpdate
event of your Combobox, have code something like this:

Me.Sup = [ComboName].Column(1)
Me.Manager = [ComboName].Column(2)
Me.[Site Manager] = [ComboName].Column(3)

This will write the values of the other columns in the combo into the
appropriate textboxs. Since they are bound text boxes, the values will be
stored in the table.
--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L



Str8 said:
Thanks for you help. Sounds like it might not be the best way to do this but
is it possible? It would make things easier for me.

Roger Carlson said:
This question comes up frequently in the newsgroups and it stems from a
basic misunderstanding of how a database should be designed. In a properly
designed relational database, you only want to store information ONCE. So
if you have an Employee table (which based on Ofer's previous reply, I
assume you do), then you should NOT be storing the Sup, Manager, and Site
Manager again in the Form Info table. It is sufficient to store the
employee (preferably the EmployeeID number) in the Form Info table. This
will allow you to JOIN this table to the Employee table (on the employee) to
retrieve this other information for a query or report.

This is the reason I say you do not want to store this data again.
--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L



Str8 said:
I'm sorry. I should have stated that I've added more fields to this form.
So this form has the combox with Employee name and when thats chosen it
populates Sup, Manager, and Site Manager. Under that I have Course
Name,
Date
completed and a couple other fields. This Form is called "Form Info"
and
is
linked to a table named "Form Info table" so all info entered in the form
dumps to the table. Right now those fields that get autofilled are
blank
in
the "Form Info table" but are filled in and look fine in the "Form
Info
Form".
Hope this makes sense?

:

Actually, you do not want to store this data. Since it is already stored in
the Employee table, just Join your table to the Employee table in a query
when you need the information.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L


I just realized a problem. I have a table that the info on this
form
dumps
into. When using this autopopulate it works great on the form but's
doesn't
dump the fields that auotofilled into my table.
Any ideas?

Thanks,

:

Your welcome, have a great weekend

--
\\// Live Long and Prosper \\//
BS"D


:

Thanks Ofer you really made my day. I've been working on this off
and
on
for
about a week and couldn't get it to work. I tried something
simular
but
didn't work.
This works perfect.
Thanks again.

:

In the RowSource of the combo, include all the fields from the
table
that
you
want to display in the form

Select Employee, Sup, Manager, [Site Manager] From Employee
============================================
In the combo Set the following properties

ColumnCount Property: 4
ColumnWidths Property: 3;0;0;0
============================================
Create three text boxes in the form, and in each write in the Control
Source
property

Sup text box write
=[ComboName].Column(1)

Manager text box write
=[ComboName].Column(2)

[Site Manager] text box write
=[ComboName].Column(3)

===================================
After you select a value in the combo, the rest of the values will be
populated to the rest of the text boxes

--
\\// Live Long and Prosper \\//
BS"D


:

This ones probably pretty easy but I cant get it to work.
Ok I just created a new DB. I have one table call "Employee" that
has
Site
Manager in the 1st Column, Manager in the 2nd, Supervisor in the
3rd,
and
Employee in the 4th column. I have a Form that has 4 lines
Employee,
Sup,
Manager, Site Manager. I want to use a drop down in the Employee
field
and
when you choose the Employee it looks back at the "Employee Table" and
Auto
Fills in the Employees Sup, Manager, and Site Manager in the form.
Hopefully this made since.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top