Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old February 10th, 2004, 06:31 AM
mmisumi mmisumi is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 1 mmisumi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ado recordset + additional info

Hello,

I have connected two datagrids in one form using adodc1 and adodc2 where Adodc2.recordsource = " select from meat(My 1st table) where Adodc1.recordset!meatId(primary key) = " & Adodc2.recordset!MeatId (on the other table Deliveries)

So my second table called deliveries is displayed where its primary key(meatId) is equal to that of the first table. A 1:N connection. I hope this makes sense so far.

What I want to do is to be able to add data to my second table and at the same time update data on my first table.

i.e. My second table called deliveries has a field called quantity(deliveries.quantity) and my first table(meat) has a field called NumberInStock(meat.NumberInstock).

So basically everytime I add data to my second table, I want whatever I have input as my quantity value to be added to my meat.NumberInStock value.

I hope this is clear.

Example code is most welcome. Thank you in advance.

Mark

ps to make this query clear I have included a screen shot of the form in question. This might help
Attached Files
File Type: doc Doc1.doc (65.5 KB, 131 views)

Last edited by mmisumi : February 11th, 2004 at 06:55 AM.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Ado recordset


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway