tailieunhanh - Beginning Visual Basic 2005 Databases phần 2

Lưu ý Không + = nhà điều hành cũng không phải là phương pháp nối thêm danh sách đã được sử dụng khi cập nhật lịch sử bởi vì cả hai sửa đổi các danh sách tại chỗ, và | Basic SQL Figure 4-2 7. Switch back to SQL View and notice what Access has done to your query. It has replaced the the VALUES clause with a SELECT statement and added the AS keyword followed by Expr and a number after each parameter. This is the way that Access builds an INSERT SQL statement. 8. Click Save on the toolbar or click the File menu and choose Save. In the Save As dialog box enter a query name of usp_InsertProject. After your query is saved close the Query Builder window by clicking the X in its upper-right corner. 9. To test your new query double-click the usp_lnsertProject query shown in the list. You are prompted with a dialog box that informs you that you are about to run an append query that will modify data in your table. Click Yes to continue running the query. 10. You are prompted with a series of Enter Parameter Value dialog boxes and each dialog box lists the parameter name in the query with the first being @ProjectID. 11. Start your Guid Generator program and generate a new Guid. Remember that when you click the Generate Guid button the new Guid that is generated is automatically copied to the Clipboard. Now switch back to Access and paste the new Guid into the Enter Parameter Value dialog box. Finally click OK in the Enter Parameter Value dialog box to add this value to your query. 12. You are prompted for the @ProjectName parameter next. Enter a value of Vacation and click OK. 13. Next you are prompted for the @ProjectDescription parameter so enter a value of Paid Vacation Day and click OK. 14. @SequenceNumber is the final parameter you are prompted for. Enter a value of 1 for this parameter and click OK. 15. A dialog box informs you that you are about to append one row of data to your table. Click Yes to proceed. 16. Repeat Steps 9 through 15 and insert another row of data into the Projects table using the following information @ProjectID Generate a new Guid for this parameter @ProjectName enter Holiday @ProjectDescription enter Paid .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.