On Thu, 15 Apr 2004 10:41:26 -0700, "Daniel P"
<(E-Mail Removed)> wrote:
>Hello,
>
>Hopefully someone can help me because this is beyond my ability.
>
>Through the use of a form the user will input data into two temp tables ("Stress Report Temp Tbl 01" & "Stress Report Temp Tbl 02"). "Stress Report Temp Tbl 01" contains one field ("Dwg Id") and "Stress Report Temp Tbl 02" also contains one field ("Hyperlinks"). I need to create a code that will add new record into a third table ("Stress Report Tbl") based on the information in the two temp tables.
>
>Let me explain. The "Stress Report Tbl" contains three fields ("Autonumber", Drawing Id" & "Stress Report"). I need a macro that will create the hyperlinks specified in the "Stress Report Temp Tbl 02" "Hyperlinks" column for each of the "Dwg Id in the "Stress Report Temp Tbl 01".
>
>As such, if they're were 3 dwg id and 5 hyperlinks a total of 15 entries would be created.
And that's what you want? If there were 10 dwg id's and 20 hyperlinks
you'ld want all 200 possible combinations?
If so, you don't need any macro or looping at all: just a (normally
undesirable) Cartesian query. Create a query by adding both temp
tables to the query grid (btw I *really* worry about your tablenames
:-{( ), with NO join line. Change it to an Append query and select
Stress Report Tbl as the output table. Append [dwg id] to [Drawing ID]
and [Hyperlinks] to [Stress Report]; run the query.
John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public