Creating new table on the onset of new financial year

Reply

Join Date: Sep 2007
Posts: 70
Reputation: kehar is an unknown quantity at this point 
Solved Threads: 0
kehar kehar is offline Offline
Junior Poster in Training

Creating new table on the onset of new financial year

 
0
  #1
Jun 7th, 2009
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 )
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 805
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 146
vb5prgrmr vb5prgrmr is online now Online
Practically a Posting Shark

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

 
0
  #2
Jun 8th, 2009
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
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 70
Reputation: kehar is an unknown quantity at this point 
Solved Threads: 0
kehar kehar is offline Offline
Junior Poster in Training

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

 
0
  #3
Jun 11th, 2009
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)
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 805
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 146
vb5prgrmr vb5prgrmr is online now Online
Practically a Posting Shark

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

 
0
  #4
Jun 12th, 2009
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
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

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

 
0
  #5
Jun 12th, 2009
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC