Microsoft KB Archive/90877

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

Article ID: 90877

Article Last Modified on 1/18/2007

-

APPLIES TO


 * Microsoft Access 1.0 Standard Edition
 * Microsoft Access 1.1 Standard Edition
 * Microsoft Access 2.0 Standard Edition
 * Microsoft Access 95 Standard Edition
 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q90877



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



SUMMARY
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: kbhowto KB90877

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.