D
deafmetal
Guest
I am building an Access database for easier student administration. I have the front end and interfaces built.
What I'm trying to do is have 2 default tables for student info and grades. I want a user to be able to "create" new tables within the database for the current class from default tables.
We name everything by class# (02040 for ex.). So basically I need to build code that would use a prompt to enter in the 02040 to name them when pasted. But the code would copy the default tables and paste them as whatever was entered. And since the two tables cannot be named the same class#, I'd want them named 02040-info and 02040-grades.
But the -info and -grades portion of the table name would have to transparent to the user, and be done in bulk with the use of one prompt.
So I, as the user, enter 02040 at the prompt. The code would copy and paste tables default-info and default-grades as 02040-info and 02040-grades.
Then these tables could be filled in, edited, looked up, and printed as a report. That I can do with list boxes of the existing tables within the database, etc...
I just can't figure out the code for the copy/paste aspect.
What I'm trying to do is have 2 default tables for student info and grades. I want a user to be able to "create" new tables within the database for the current class from default tables.
We name everything by class# (02040 for ex.). So basically I need to build code that would use a prompt to enter in the 02040 to name them when pasted. But the code would copy the default tables and paste them as whatever was entered. And since the two tables cannot be named the same class#, I'd want them named 02040-info and 02040-grades.
But the -info and -grades portion of the table name would have to transparent to the user, and be done in bulk with the use of one prompt.
So I, as the user, enter 02040 at the prompt. The code would copy and paste tables default-info and default-grades as 02040-info and 02040-grades.
Then these tables could be filled in, edited, looked up, and printed as a report. That I can do with list boxes of the existing tables within the database, etc...
I just can't figure out the code for the copy/paste aspect.