473,220 Members | 2,145 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,220 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 2469
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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.