ACC: How to Copy/Paste SQL Statements from Forms to Queries

ID: Q90877


The information in this article applies to:


SUMMARY

Novice: Requires knowledge of the user interface on single-user computers.

If you want to copy an SQL statement from the RowSource or ControlSource property of a control, or the RecordSource property of a form or report, and paste it into a query, you must use the CTRL+C method to copy the SQL statement to the Clipboard. In Microsoft Access 1.x, you also must use the CTRL+V method to paste the statement into the query's SQL view.

In Microsoft Access 2.0, 7.0, and 97, you can use the Build button next to the RowSource, ControlSource, or RecordSource property to invoke the Query Builder, and then save the SQL statement as a query that way. It is not necessary to copy and paste the SQL statement.


MORE INFORMATION

You cannot use the Copy and Paste commands from the Edit menu to copy and paste in the situations described above. You must use CTRL+C to copy the information to the Clipboard, and CTRL+V to paste the information into the query's SQL view.

Note that in Microsoft Access 2.0, 7.0, and 97, the SQL window of a query is not a modal dialog box; therefore, menu commands are available and you can use the Paste command.


Keywords          : FmsHowto 
Version           : 1.0 1.10 2.0 7.0 97
Platform          : WINDOWS 
Issue type        : kbhowto 

Last Reviewed: March 11, 1999