Jumat, 10 November 2017

RE: [MS_AccessPros] How to copy selected records in a continuous form

 

Dim strsql as string
Strsql = "INSERT INTO ToTable (Field1, Field2, Field3…) SELECT (Field1, Field2, Field3…) FROM FromTable WHERE FromTable.YesNo = True"
Currentdb.execute(strsql)


Respectfully,
[RCEmailSigLogo]
Liz Ravenwood
Information Technology
Interior Systems
(520) 239-4808
Liz_ravenwood@beaerospace.com<mailto:Liz_ravenwood@beaerospace.com>
rockwellcollins.com<http://www.rockwellcollins.com/>

From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Thursday, November 9, 2017 6:31 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] How to copy selected records in a continuous form





Hi,
I have a main form with a subform continuous form, each form on the continuous form contains FieldA, FieldB, FieldC and a YesNo Checkbox, there are also Fields D-E that are not on the form but in the table.
On the main form is a button called "CopySelected Records". I want! to select (click checkbox of) some of the continuous form records, and then click CopySelectedRecords to copy the selected records - Fields A-E - to a second table. What would be the code in the CopySelectedRecords_OnClick procedure?

Thanks for any help
David
!








This email (and all attachments) is for the sole use of the intended recipient(s) and may contain privileged and/or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

[Non-text portions of this message have been removed]

__._,_.___

Posted by: Liz Ravenwood <Liz_Ravenwood@beaerospace.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar