Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 21st, 2006, 03:05 AM
Registered User
 
Join Date: Feb 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hope to have a idea for designing this system

Hi,

I'm developing vb6 application for shop.i want to add details of new customer.If again tht customer comes how can i keep his records,to have a new record or can i join tht details for the current record.

thanks.

Nadee

Reply With Quote
  #2 (permalink)  
Old February 23rd, 2006, 11:26 PM
Friend of Wrox
Points: 464, Level: 7
Points: 464, Level: 7 Points: 464, Level: 7 Points: 464, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2005
Location: Colombo, , Sri Lanka.
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nalla Send a message via Yahoo to nalla
Default


Maintain 2 tables as CustomerMaster & CustomerPurchases (any meaningful names)
[u]First method</u>
(i)If user has customer details allow user to create customers using customer master interface & save in CustomerMaster table.
(ii)When customer comes to purchase goods, add customers purchases details into CustomerPurchases table. save customer code,itemcode. etc.

[u]Second method</u>
(i)If user doesn't know customer details till customer comes to purchase goods(walk in customer) then use customer ID card or something like that when creating customer code.Check whether it exists(customer code) in Customermaster. If so check whether those details are correct and add customer's purchases details to customer purchases using that customer code
(ii)If customer doesn't exist in CustomerMaster table, create the customer and save in CustomerMaster then add purchase details to CustomerPurchases table.


nalaka hewage
Reply With Quote
  #3 (permalink)  
Old February 24th, 2006, 01:40 AM
Registered User
 
Join Date: Feb 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for u'r advices.If I want to take all history details of particular customer including customer personal details and date and the purpose he comes on particular days.....How can i retrieve those details.

Reply With Quote
  #4 (permalink)  
Old February 24th, 2006, 03:24 AM
Friend of Wrox
Points: 464, Level: 7
Points: 464, Level: 7 Points: 464, Level: 7 Points: 464, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2005
Location: Colombo, , Sri Lanka.
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nalla Send a message via Yahoo to nalla
Default


If you've designed your table as i mentioned, you can retrieve those details from CustomerPurchases table.
If you want to retrieve a customer's details about past purchases, etc..
Let the user to enter particular customer's customer code. then show customer details (Customer Name, Address, etc..) from CustomerMaster table and select relavant records from CustomerPurchases(Items bought, Date,purpose) table for that customer.


nalaka hewage
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
odbc system dsn problem hope you can help jeremy1048 Access 5 May 9th, 2007 01:19 PM
odbc system dsn problem hope you can help jeremy1048 BOOK: Access 2003 VBA Programmer's Reference 0 May 7th, 2007 11:24 PM
Brilliant idea, no idea how! imaginitive-idea-guy Ajax 9 January 14th, 2007 05:32 AM
Hi hope someone can help here!!! mike_remember ASP.NET 1.0 and 1.1 Professional 2 October 31st, 2006 09:14 AM
Hope if any one can provide some help RahilPatwa All Other Wrox Books 0 November 8th, 2003 01:31 AM



All times are GMT -4. The time now is 10:14 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.