PC Review


Reply
Thread Tools Rate Thread

Access 2003 VBA Code

 
 
Michelle
Guest
Posts: n/a
 
      22nd Sep 2008
How do you write records from a temporary table to a permanent table.
I have a one to many form where I am trying to have the user select which
task code they want for a given task. These are in a subform. The subform has
63 DSR codes that will display on the screen. The user has 5 check boxes to
select task code for each of these 63 codes. He can only select 1 from the 5.
I would then like to take the populated check box and write it to a permanent
table.
 
Reply With Quote
 
 
 
 
pietlinden@hotmail.com
Guest
Posts: n/a
 
      22nd Sep 2008
On Sep 22, 1:59*pm, Michelle <Miche...@discussions.microsoft.com>
wrote:
> How do you write records from a temporary table to a permanent table.
> I have a one to many form where I am trying to have the user select which
> task code they want for a given task. These are in a subform. The subformhas
> 63 DSR codes that will display on the screen. The user has 5 check boxes to
> select task code for each of these 63 codes. He can only select 1 from the 5.
> I would then like to take the populated check box and write it to a permanent
> table.


use an append query that uses the checkboxes to filter the data.
then create a delete query to delete those records from the original
temp table once completed.
 
Reply With Quote
 
Michelle
Guest
Posts: n/a
 
      24th Sep 2008
Thank you. I will give that a try.
Is it better to use Access queries or write VBA code creating recordsets
etc. to do the same thing. What will give you the greatest efficiency?

"(E-Mail Removed)" wrote:

> On Sep 22, 1:59 pm, Michelle <Miche...@discussions.microsoft.com>
> wrote:
> > How do you write records from a temporary table to a permanent table.
> > I have a one to many form where I am trying to have the user select which
> > task code they want for a given task. These are in a subform. The subform has
> > 63 DSR codes that will display on the screen. The user has 5 check boxes to
> > select task code for each of these 63 codes. He can only select 1 from the 5.
> > I would then like to take the populated check box and write it to a permanent
> > table.

>
> use an append query that uses the checkboxes to filter the data.
> then create a delete query to delete those records from the original
> temp table once completed.
>

 
Reply With Quote
 
Douglas J. Steele
Guest
Posts: n/a
 
      24th Sep 2008
Using a query is almost always significantly more efficient than using VBA
to perform the same function.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Michelle" <(E-Mail Removed)> wrote in message
newsE721915-1931-43B0-B574-(E-Mail Removed)...
> Thank you. I will give that a try.
> Is it better to use Access queries or write VBA code creating recordsets
> etc. to do the same thing. What will give you the greatest efficiency?
>
> "(E-Mail Removed)" wrote:
>
>> On Sep 22, 1:59 pm, Michelle <Miche...@discussions.microsoft.com>
>> wrote:
>> > How do you write records from a temporary table to a permanent table.
>> > I have a one to many form where I am trying to have the user select
>> > which
>> > task code they want for a given task. These are in a subform. The
>> > subform has
>> > 63 DSR codes that will display on the screen. The user has 5 check
>> > boxes to
>> > select task code for each of these 63 codes. He can only select 1 from
>> > the 5.
>> > I would then like to take the populated check box and write it to a
>> > permanent
>> > table.

>>
>> use an append query that uses the checkboxes to filter the data.
>> then create a delete query to delete those records from the original
>> temp table once completed.
>>



 
Reply With Quote
 
Michelle
Guest
Posts: n/a
 
      24th Sep 2008
Okay, thanks. I appreciate the help.

"Michelle" wrote:

> How do you write records from a temporary table to a permanent table.
> I have a one to many form where I am trying to have the user select which
> task code they want for a given task. These are in a subform. The subform has
> 63 DSR codes that will display on the screen. The user has 5 check boxes to
> select task code for each of these 63 codes. He can only select 1 from the 5.
> I would then like to take the populated check box and write it to a permanent
> table.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2003 code to create Outlook 2003 Meeting Invites Always OpenTo Suggestions Microsoft Access VBA Modules 1 9th Apr 2009 05:25 PM
Access 2003 Code Doesn't Work in Access 2007 Nika Microsoft Access Forms 3 27th Oct 2008 10:47 PM
Access 2003 VB Code Export Query Failing with Access 2007 user PatK Microsoft Access Queries 3 4th Dec 2007 06:20 PM
Application with code digitally signed in Access 2003 crashes Access 2000 Peter R. Fletcher Microsoft Access VBA Modules 5 29th Jan 2005 10:50 PM
vba automation to word 2003 (controlling application Access 2003/2000); sample code? Philip Leduc Microsoft Access 0 23rd Dec 2004 08:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:44 PM.