Wrox Programmer Forums
|
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 December 1st, 2005, 12:09 PM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB6 +EXCEL2003

I should be grateful for code to declare an Excel Database in a VB6 program, and code to access a particular Cell in the Excel File.
Thanks
Dani

 
Old December 2nd, 2005, 01:15 AM
Authorized User
 
Join Date: Nov 2005
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That means, u wanna go for Database programming with Visual Basic 6, right?

  Do only one thing, in Open VB6, See the tool bar which containing File,Edit,View.. In that Toolbar, click on Project -> Components -> check the box "Microsoft Hierarchical Flex Grid Control 6.0(SP4), click OK..

  then see ur "General" Tool bar on left side, click on "MSHFlexGrid", drag to ur form, then press F1, It will open MSDN page containing "MSHFlexGrid Control", learn it properly, u will get all ur answers from there..

  Especially, see Methods, there are 14 methods..






                                            ~~Dev~~
 
Old December 2nd, 2005, 12:04 PM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear davekrunal,
Thank you for your instructions. This does not solve my problem at hand, but it solves another problem I ran into some time ago with data entry.
My problem is that I am working in a voluntary organization. The Membership Database has to be in Excel, because my fellow mwmbers, the Purser, the Chairman and others who have to see the data, do not know how to use anything else - like Access.
To do all the work (we have by now over 2000 members and growing fast) in Excel is very tedious.
I have written a program in VB6 to check names, to check for duplicates, to find couples who are subscribed in order to save postage. Not being able to read and write to the Excel File directly I convert back and forth to Tab separated Text files which is also tedious.
All I need is the code a) to open the Excel file and b)to read and write to a particular cell.


 
Old December 3rd, 2005, 01:38 AM
Authorized User
 
Join Date: Nov 2005
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

See First of All, you have done mistake by using Execel to manage a database for more than 2000 members.. My advice is, use Microsoft SQL Server or Oracle, I am using Microsoft SQL Server, where u can make ur table very easily with Query Analyzer or Enterprize Manager, Do one thing, Go to Enterprize Manager and Using HELP, learn how can we create tables and all that, and for your duplication problem, in MSSQL/SQL, it could be solved by just single key word called "DISTINCT".. To be Frank, I do not have idea about Excel, but in our P2P Forum, there is one more category called "Database", might u get some help from there..

       Best of Luck..


~ ~ ~ There is no Right, There is no Wrong, KNOWLEDGE is Only the POWER ~ ~ ~





Similar Threads
Thread Thread Starter Forum Replies Last Post
SUB NAME IN VB6 Nadalik VB How-To 2 June 21st, 2006 03:30 AM
VB6 how to use a COM+ pevl VB Components 3 November 26th, 2005 09:16 AM
VB6 How to minhtri VB How-To 2 September 30th, 2004 06:08 AM
Error importing modules from .bas files(Excel2003) marpashuk Excel VBA 2 August 27th, 2004 10:47 PM
Where to get VB6 HaXXeD Beginning VB 6 2 December 5th, 2003 04:21 PM





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