943,752 Members | Top Members by Rank

Ad:
Jun 7th, 2009
0

Creating new table on the onset of new financial year

Expand Post »
Hi,
I have completed one project but I would like that on every 1st April when I click copytable command botton from VB6, a copy of the table with blank records under the same database should be created with new name having same field name so that my data for the new financial year is stored in it.
The moment new table is created the a new year should be added in the combo box kept for selecting the year. So that I may have the option to see both years record by selecting year from combo box.

Thanks

(Kehar )
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
kehar is offline Offline
72 posts
since Sep 2007
Jun 8th, 2009
0

Re: Creating new table on the onset of new financial year

Kehar,

You failed to mention what kind of database. Access, MySQL, SQL, Progress, Alpha, Oracle, Fox Pro?

However, for most of those it is as simple as having a lookup table to populate your combo box and to change the table your queries look to. BUT, for some things like triggers, stored proceedures, and such, this will make your job a little harder as you will need to alter those to either accept a parameter or to look up in your lookup table to build their functionality.

So, in short, for us to help you better we will need to know what is your backend.

Good Luck
Reputation Points: 156
Solved Threads: 296
Posting Virtuoso
vb5prgrmr is offline Offline
1,670 posts
since Mar 2009
Jun 11th, 2009
0

Re: Creating new table on the onset of new financial year

Hi,
Oh sorry. I am using Access as backend and VB6 as frontend.
and using ADO connection.
Pl write comprehensive code for the problem.

(Kehar)
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
kehar is offline Offline
72 posts
since Sep 2007
Jun 12th, 2009
0

Re: Creating new table on the onset of new financial year

How much are you going to pay if we code your solution for you?

How about you take a look at post #12 in this thread...

http://www.codeguru.com/forum/showth...hlight=ado+dao

and do some work yourself!

Good Luck
Reputation Points: 156
Solved Threads: 296
Posting Virtuoso
vb5prgrmr is offline Offline
1,670 posts
since Mar 2009
Jun 12th, 2009
0

Re: Creating new table on the onset of new financial year

Hi,

Its always a Good Idea To Create a Seperate Database for each Financial year. Just copy the existing database as new one using "FILECOPY" and clear tables ..

Regards
Veena
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: vb6 user permissions help with manifest file please
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Adding data with a macro





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC