| | |
Creating new table on the onset of new financial year
![]() |
•
•
Join Date: Sep 2007
Posts: 70
Reputation:
Solved Threads: 0
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 )
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 )
•
•
Join Date: Mar 2009
Posts: 807
Reputation:
Solved Threads: 146
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
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
Thanks
•
•
Join Date: Mar 2009
Posts: 807
Reputation:
Solved Threads: 146
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
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
Thanks
![]() |
Similar Threads
- Creating A Table With Win32 Api (C++)
- creating table at runtime in msaccess (Visual Basic 4 / 5 / 6)
- add a new table to the database or add a new column to an existing table. (MS SQL)
- Applying Constraints after creating a table. (MS SQL)
- query for creating report group by weeks (with start date and end date of the week) (MS SQL)
- Creating nice borders the same way they have on vbulletin (Graphics and Multimedia)
- Autonumber in a SQL Server table (MS SQL)
- Playing the stock market (IT Professionals' Lounge)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: vb6 user permissions help with manifest file please
- Next Thread: Adding data with a macro
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





