Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi 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 Dev Shed Forums Sponsor:
  #1  
Old December 21st, 2012, 10:47 AM
delphi user 118 delphi user 118 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 4 delphi user 118 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 22 sec
Reputation Power: 0
Delphi Database help (http://i48.tinypic.com/i1lnad.jpg)

I am currently working on a order database using Delphi, i want the two order ID (circled in red) to have the same order id, it should remain the same for as many items as the customer wants until a new customer , moves on when the next Id when there is a new customer.


i have uploaded a screenshot, and as i am not allowed to post links i have put it in the tittle .

Reply With Quote
  #2  
Old December 24th, 2012, 05:40 AM
bummi bummi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Location: Augsburg Germany
Posts: 12 bummi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 12 m 15 sec
Reputation Power: 0
Adoorderline : I would use a Tadodataset with "Select * from Orderline were OrderNo=:OrderNo".
Adoorderline.datasource:=dsOrders;
Adoorderline.Masterfields := 'OrderNo';
Adoorderline.IndexFieldNames := 'OrderNo';

Reply With Quote
  #3  
Old December 28th, 2012, 07:36 AM
delphi user 118 delphi user 118 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 4 delphi user 118 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 22 sec
Reputation Power: 0
Quote:
Originally Posted by bummi
Adoorderline : I would use a Tadodataset with "Select * from Orderline were OrderNo=:OrderNo".
Adoorderline.datasource:=dsOrders;
Adoorderline.Masterfields := 'OrderNo';
Adoorderline.IndexFieldNames := 'OrderNo';


I got it to work before you replied, although my solution was slightly different i think .

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Delphi Database help (http://i48.tinypic.com/i1lnad.jpg)

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap