Solved

ADO/Access problems

Posted on 1999-01-25
9
138 Views
Last Modified: 2013-12-25
Here we go again. I am now about to add info from a form into a single table, but now I need to add info into multiple tables from a form into access. I have defined one-to-many relationship within access, but do not know how to define my sql statement and other variables.
Help, again..
0
Comment
Question by:vmorales
  • 6
  • 3
9 Comments
 
LVL 10

Expert Comment

by:MasseyM
ID: 1859176
Can you send the info to us?  We need the table "lay-out" and the form fields.  But, here are some ideas:  Usually the easiest way is to update the tables individually.  It takes more code, but to me is easier to follow.  you can also send the database and script files to me and I wil take a look.  masseym@mrqcorp.com
0
 

Author Comment

by:vmorales
ID: 1859177
MasseyM,

I have tried to update individually and I can do that, but because i have relationship setup in access to enforce referential integrity (did i spell that right?) it seems impossible to update individual tables. However, if I can do away with relationships and enforce integrity through scripting I suppose that would work. I am on a huge learning curve, trying to learn HTML/ASP/ADO/VBScript/JavaScript/etc., you get the point, so I am interested in doing it the right way, the efficient way. Thanks
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1859178
I know what you mean :)  As far as I have been able to tell, you cannot update the database and use the referential integrity.  I have also been unsuccessful when trying to update databases that use "lookup forms".  Why, I am not sure and am still looking in to this.  Now, I don;t update my database with a direct SQL statement, but rather through the record set object.  Maybe there is a way to directly post the info via the SQL and maintain the integrity... I will look into it.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:vmorales
ID: 1859179
MasseyM,
I will still send you the files, may take a day.

P.S.
Remember I am new to this stuff, so don't sent my version of scripting to america's funniest.

thanks
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1859180
No worries :) I will take a look and let you know...
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1859181
Files were sent to Derek Liddy.

Basically, the use of the proper Cursor Type was needed when opening the connection.
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1859182
Please disreagrd the previous answer... (Answer was for a different question).  I am still trying to find info about referential integrity via ASP.  Still no luck.
0
 
LVL 10

Accepted Solution

by:
MasseyM earned 100 total points
ID: 1859183
I have still found no way to update multiple tables with one query.  It must be done table by table.
0
 

Author Comment

by:vmorales
ID: 1859184
Here is your points, I do wish there were better ways to insure the integrity of the data. I guess the Web is still a baby in these matters, although I am very suprised that with the information boom, no way exist to build tables "THE RIGHT WAY" and insure integrity.

Thanks,
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question