Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA 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 November 18th, 2006, 02:07 AM
Registered User
 
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Invoice excel vb6 Project help

I am trying to write a simple program for printing invoices for a video club.
I have 3 simple excel files
The first file keeps customer information, which has 3 columns of data: Phone, Name and Address
The second file has 2 columns of data including dvd# and dvd title
and the third file is a template of an invoice in excel, which I want to fill in the data and print it by designing a form containing some text boxes and a command button (to enter data into cells and print command).

I know how to update my cells from vb6 and get a print of invoice.
And at this time I don’t want to deal with the customer information part of this project.

But let’s say a customer comes and wants to rent two dvds.
I have 10 text boxes in my vb6 form, which I can enter dvd #s
(10 dvd is the maximum no. of dvds that customers can rent!)
After entering dvd #s I hit the command button 1 to enter these dvd #s
to my invoice in excel and I can handle this part.

But my problem is how can I show the dvd title related to the dvd numbers (stored in excel file) in my invoice?
Do you think this is a good idea to have my dvd information in an excel file at all?
Any suggestion,
Thank you.
`Ali





 
Old November 18th, 2006, 12:56 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi Ali

Excel is not the best option to store the data. You can use Access for it (that's why thye are created for)

You can still do the same with Excel..

The scenario of displaying the title with the DVD number can be better handled by ComboBoxes than text boxes. You can use the change event of the combobox to display the titles.

Cheers
Shasur

http://www.vbadud.blogspot.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating an invoice dgprotective Access VBA 5 November 2nd, 2007 06:48 AM
Generating an invoice. dgprotective VB How-To 10 October 30th, 2007 09:07 AM
opening VBA project in VB6 joseph1 VB How-To 0 July 8th, 2006 08:25 AM
Duplicate invoice k0023382 Access 4 April 7th, 2004 04:43 AM
How can i open Excel From VB6 chiefouko Beginning VB 6 1 June 30th, 2003 08:28 AM





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