By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,973 Members | 1,557 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,973 IT Pros & Developers. It's quick & easy.

How to give Genralized INSERT statement for diffent pages and single table

P: 2
I am working on a project in VB.NET.right now i am stuckupw ith a problem, i have different pages with different forms on it , but all the entries are supposed to be entered into a single table.So for this i need a INSERT statement to add up the records, but this can be done either by having a INSERT statement on evry page or defining a single general INSERT function in a class, but i am notgettin the way how to define a general insert stement.Do i need to give all the Field names ...........if yes then what about the values...........I would be really great full if someone cud advice over this matter.

Thanks in advance
Apr 11 '07 #1
Share this Question
Share on Google+
1 Reply

P: 366

if all your forms contain same data to insert (i.e if your insert query contain same parameters ) then you can use a class file to write your query ,you can use this method of the class through out your project ,just by creating an object of the class ,which is a general oops concept.

try it out it works fine
Apr 11 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.