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

Cloning a recordset but adding user input

This is an "Add product" form.

The user will enter a ProductNo (catalog number), select a Product Class
(from cascading combo boxes) and then click a button to create the product.

When a product is added, a recordset (class) from a table (tblClassDetails -
fields are: ClassID, SpecID) will be cloned into another table
(tblClassProJoin - fields are ClassID, ProductID, SpecID and Value).
Obviously, ClassID and SpecID will be cloned.

The ProductID field is tricky. Product numbers are held in tblProducts. Each
Product number (the product's catalog number) will have a corresponding
ProductID which will be an autonumber field (duh). Ideally, the new product
record would be added to tblProducts and the ProductID field value would be
created. Just after, this ProductID would be added to tblClassProJoin as per
above.

The Value field from tblClassProJoin is not required for this form. It will
be manually entered later.

Any thoughts on how this can be accomplished. I was thinking of an append
query but I don't know how to get the cascading class selection as a
parameter.

Obviously, I'm a bit of a knob as far as access is concerend. _Beginning
Access 2002 VBA_ is on the way, but I thought I'd get a head start here.

Thanks for any thoughts.

Regards,

Robin


Nov 12 '05 #1
2 2483
Robin S. wrote:
This is an "Add product" form.

The user will enter a ProductNo (catalog number), select a Product Class
(from cascading combo boxes) and then click a button to create the product.

When a product is added, a recordset (class) from a table (tblClassDetails -
fields are: ClassID, SpecID) will be cloned into another table
(tblClassProJoin - fields are ClassID, ProductID, SpecID and Value).
Obviously, ClassID and SpecID will be cloned.

The ProductID field is tricky. Product numbers are held in tblProducts. Each
Product number (the product's catalog number) will have a corresponding
ProductID which will be an autonumber field (duh). Ideally, the new product
record would be added to tblProducts and the ProductID field value would be
created. Just after, this ProductID would be added to tblClassProJoin as per
above.

The Value field from tblClassProJoin is not required for this form. It will
be manually entered later.

Any thoughts on how this can be accomplished. I was thinking of an append
query but I don't know how to get the cascading class selection as a
parameter.

Obviously, I'm a bit of a knob as far as access is concerend. _Beginning
Access 2002 VBA_ is on the way, but I thought I'd get a head start here.

Thanks for any thoughts.

Regards,

Robin


Hi Robin: I find the description of what you want to accomplish very
difficult to follow and comprehend. "Classes" are often used to
describe the code of properties and methods of an object. Clone refers
to creating duplicate recordsets.

Although you are very descriptive, I would recommend you keep it simple
and redefine the problem. If you get a response that answers your
question, ignore my response.

Nov 12 '05 #2
Hi Robin,
Just to second what the other poster said, you might consider posting a
list of the tables you're describing here, and how they relate to each
other (i.e, which field in one table stores a value from another).

Some specific questions:
Are you adding a product to the list of available products, or to an order?

Also, to clarify terminology:
1) Make sure to distinguish between a recordset, which is a set of
records pulled up at a particular time, from an individual record.

2) Along those lines, I'd use the word "duplicate" instead of "clone",
because it sounds like you may be trying to duplicate a record
(something I happened to have just finished working on). Cloning in
Access refers to making a copy of a Recordset object, which is an
in-memory data structure which holds a recordset you've pulled.

3) Since you're talking to object-oriented programmers, make sure you
distinguish between a class which defines a type of object and your
classes of products, which is what I believe you've stored in your
tblClassDetails.

That said, what you're trying to accomplish sounds eminently doable.
We'll just need to sort out what goes in what table when...

Cheers,

EE

Robin S. wrote:
This is an "Add product" form.

The user will enter a ProductNo (catalog number), select a Product Class
(from cascading combo boxes) and then click a button to create the product.

When a product is added, a recordset (class) from a table (tblClassDetails -
fields are: ClassID, SpecID) will be cloned into another table
(tblClassProJoin - fields are ClassID, ProductID, SpecID and Value).
Obviously, ClassID and SpecID will be cloned.

The ProductID field is tricky. Product numbers are held in tblProducts. Each
Product number (the product's catalog number) will have a corresponding
ProductID which will be an autonumber field (duh). Ideally, the new product
record would be added to tblProducts and the ProductID field value would be
created. Just after, this ProductID would be added to tblClassProJoin as per
above.

The Value field from tblClassProJoin is not required for this form. It will
be manually entered later.

Any thoughts on how this can be accomplished. I was thinking of an append
query but I don't know how to get the cascading class selection as a
parameter.

Obviously, I'm a bit of a knob as far as access is concerend. _Beginning
Access 2002 VBA_ is on the way, but I thought I'd get a head start here.

Thanks for any thoughts.

Regards,

Robin

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ant | last post by:
Hello, I'm developing a program that will include a window showing current & previous records using a scrollable recordset. I need to add records to the recordset & have new records immediately...
2
by: Robin S. | last post by:
This is an "Add product" form. The user will enter a ProductNo (catalog number), select a Product Class (from cascading combo boxes) and then click a button to create the product. When a...
1
by: Bruce | last post by:
I have some code that uses the recordset command to duplicate an existing record within the same table. After updating this new record I want the user to be able to edit it, but the bookmark...
1
by: ora06 | last post by:
Hi everybody I am a newcomer in VC++ developement I work VC with Oracle database I want to manipulate the database with ADODB After connected , i do as follow: ------------------------...
0
by: Vash10 | last post by:
I have two asp files. Login.asp and changePass.asp. what i want to do is to make the user change his password after his first login. so what happens is login.asp is the first to be used then it is...
17
by: radio1 | last post by:
Configuration: Access 2002 and SQL Server 2000 using a .ADP Project. I would VERY MUCH appreciate anyone's input into this problem I'm having. I have a form in Access that does not permit...
1
by: colmkav | last post by:
Hi, what is the main reason why cloning is done to tables in Access VBA code? regards Colm
1
by: anniefs | last post by:
hi help me i m so much stuck int he code and i have no time .... i used ASP VBscipt and javascript functions with MS database javascript function add records in MS DB by using ASP vbscript...
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...
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
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: 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...

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.