Unanswered: How to add record thru command button in adp.
In access database project where my tables are linked from MSSQL server, how can I add record from the FORM itself using command button. Bcz it is not like mdb files in access that you can just drag a command button onto the form and take an action like add, delete, print or find rec. I just came to know it from immediate window using following SQL line;
This is ok but how it could be done thru a command button on FORM.
Thanks in advance.
With kind regards,
Last edited by Ashfaque; 02-21-05 at 05:53.
Bcz I am new to adp, can you please extend your help in more detail. I never used adp and its prodedure. How can I do it. Do I need to create a function / procedure? If so. How..Need to know badly. . Help in this regards will be higly appriciated.
In an ADP application, no data is stored in Microsoft Access. It is all stored on the back-end server.
You can put code in the modules or forms in the ADP file, but it should be limited to affecting the behavior of the user interface. Your business logic should be implemented in stored procedures, views, and user-defined functions on your database server.
For an explanation of how to write TSQL code for SQL Server, look up VIEWS and STORED PROCEDURES in Books Online.
If it's not practically useful, then it's practically useless.