Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to insert a UUID into multiple tables in the same form

New Here ,
Mar 06, 2007 Mar 06, 2007
I am trying to insert a UUID into 2 different tables at the same time ie to let this be created in the form and then insert this ID into 2 linked tables in a database using Access.
Does anybody have any suggestions on how to accomplish this?

Thanks very much
TOPICS
Advanced techniques
776
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 06, 2007 Mar 06, 2007
which part are you having trouble with: creating a UUID or inserting it
into 2 tables?

to create a UUID you can use a built-in #CreateUUID()# CF function;
if you set a value of a hidden form field to this, you can then insert
that field's value into your 2 tables... if you know how to, that is...

--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 06, 2007 Mar 06, 2007
Thanks for your quick reply, and yes I do know how to do that however I would like to do this all in one form field so I would like to create the UUID whith the same form that also submits it to another table, is this possible or do I have to do that using multiple 'pages'?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 06, 2007 Mar 06, 2007
So you have one form that processes information for two tables, or do you
have two forms (one for each table - except the UUID)?

If it is one form just run two SQL insert statements. One for the primary
table, then one for the related table.
If it is two forms run the above two SQL statements then an update statement
to finish filling the second table.

Or am I completely misunderstanding the issue?

--
Bryan Ashcraft (remove brain to reply)
Web Application Developer
Wright Medical Technology, Inc.
------------------------------------------------------------------
Macromedia Certified Dreamweaver Developer
Adobe Community Expert (DW) :: http://www.adobe.com/communities/experts/


"weelco" <webforumsuser@macromedia.com> wrote in message
news:esjtjj$qtc$1@forums.macromedia.com...
> Thanks for your quick reply, and yes I do know how to do that however I
> would
> like to do this all in one form field so I would like to create the UUID
> whith
> the same form that also submits it to another table, is this possible or
> do I
> have to do that using multiple 'pages'?
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 08, 2007 Mar 08, 2007
LATEST
Thanks the second option works like a charm!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources