Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > Newbie needs help


Reply
 
Thread Tools Display Modes
  #1  
Old 11-14-2002, 12:03 AM
keydorme
Guest
 
Posts: n/a
Default Newbie needs help


Can anyone please tell me how to do the following?? It's making me crazy. Firstly I'm doing this using VB6 app.

Spreadsheet1(excel):
Date / Time / CallingID / CalledID / Data

-The above spreadsheet is open by the user in my form. User will specify the followingate started,Date ended,CallingID and CalledID
-So far, I managed to design the app until all the data keyed. i also managed to create another excel with following columns:

Spreadsheet2(excel create at runtime)
Date Started / CallingID / CalledID / Data
......
......
Date Ended


My problem is that I'm struggling to list the data column in spreadsheet2 based on data column in spreadsheet1, WITH the parameters selected in spreadsheet2 is SAME as the spreadsheet1's row list. I hope you all understand what I mean here.

For example, if user select 2nd Nov 2002 for date started, 4th Nov 2002 for date ended, 10 for callingID and 33 for called ID, the data in spreadsheet1 which carries the matching parameters in rows will be 'copied' to data column in spreadsheet2.

For your info, I must create this app result in excel. CallingID and CalledID is not unique.

Thanks for any help that comes..
Reply With Quote
  #2  
Old 11-14-2002, 04:36 AM
trental's Avatar
trental trental is offline
Junior Contributor
 
Join Date: Oct 2002
Location: Uk
Posts: 279
Default

you said the output has tro be excel - but do you have to use vb6?

sounds like an access database would be much easier.. although i am sure there are people here who will help you solve this in vb.

database tasks:
import the original spreadsheet
show it on a form
asks user for parametes
execute a query based on the parameters
export the query results as excel file
open the excel file.

good luck. hope someone comes up with the info you need
__________________
Kind Regards
Trental

http://www.sudonim.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->