Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 21st, 2006, 03:05 AM
Registered User
 
Join Date: Feb 2006
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

 
Old February 23rd, 2006, 11:26 PM
Friend of Wrox
 
Join Date: Dec 2005
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
 
Old February 24th, 2006, 01:40 AM
Registered User
 
Join Date: Feb 2006
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.

 
Old February 24th, 2006, 03:24 AM
Friend of Wrox
 
Join Date: Dec 2005
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.