A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Subform data entry



 
 
Thread Tools Display Modes
  #1  
Old July 2nd, 2004, 03:13 AM
Marion
external usenet poster
 
Posts: n/a
Default Subform data entry

I have a form that displays filtered data from table A and allows the user to edit the data in table A. I have created a subform to allow the user to create a new record in table B while viewing the data in table A. There is no way to relate the tables because the user is creating a new record in table B.

Some (but not all) of the fields in the selected record in table A need to be input into the record the user is creating in table B. Is there any way to use the data in the selected in table A to automatically populate some of the fields in the subform to create a new record in table B?

Example: The user selects product 1 from a drop down list & sees the main form which contains various data for this product. The subform requires that the user enter the product number so that a record for that product can be created in an unrelated table. I would like the product number to be automatically entered in the subform based on the field value for the table used in the main form, but I haven;t been able to figure out how to do this.

I am not using code to program. All actions in my program are executed using macros.

  #2  
Old July 2nd, 2004, 03:50 AM
Mike Painter
external usenet poster
 
Posts: n/a
Default Subform data entry


"Marion" wrote in message
...
I have a form that displays filtered data from table A and allows the user

to edit the data in table A. I have created a subform to allow the user to
create a new record in table B while viewing the data in table A. There is
no way to relate the tables because the user is creating a new record in
table B.

If a relationship exists creating a new related record is trivial with the
use of a form subform.


Some (but not all) of the fields in the selected record in table A need to

be input into the record the user is creating in table B. Is there any way
to use the data in the selected in table A to automatically populate some of
the fields in the subform to create a new record in table B?

Example: The user selects product 1 from a drop down list & sees the main

form which contains various data for this product. The subform requires that
the user enter the product number so that a record for that product can be
created in an unrelated table. I would like the product number to be
automatically entered in the subform based on the field value for the table
used in the main form, but I haven;t been able to figure out how to do this.

I am not using code to program. All actions in my program are executed

using macros.

Placing data in unrelated tables usually is a mistake in a relational data
base. If the information has any value sooner or later you will have to
write some code to fix the problem.
Your first step should be to evaluate if you actually need an un-related
table in a relational dtatbse ( or database...)
You will almost certainly have to use code to do what you want.
You can use an INSERT INTO or open the table or query in code and place the
values you need.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data entry forms and/or subforms Hugh Crean Using Forms 2 July 8th, 2004 05:56 PM
Recordset in subform based on field in parent form Lyn General Discussion 15 June 14th, 2004 03:10 PM
Mial merge data base problems Rachael Mailmerge 16 May 21st, 2004 06:22 PM
Excel Data Entry / Reference Question: Approach? steve c matco Worksheet Functions 1 September 29th, 2003 04:18 PM


All times are GMT +1. The time now is 01:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.