PC Review


Reply
Thread Tools Rate Thread

How to Append Clone Rec?

 
 
tom
Guest
Posts: n/a
 
      7th Jun 2004
Hello,

I just simply want to append a clone record. Basically, I cloned a record
then modified couple of fields and then I wanted to append this modified
record to the table.

----------------------------------------------------------------------------
-----------------------------
Dim curRec As Recordset

'modify current record
Set curRec = Me.RecordsetClone
curRec.Fields(DSCRIPTION).Value = "Blah blah blah blah blah"
curRec.Fields(DUE_DATE).Value = curRec.Fields(DUE_DATE).Value - 45

'Now I wont to append the modified record to the database
' I've tried something following but I got error : "Can't assign to read
only property"
Me.AllowAdditions = True
????????
Me.NewRecord = curRec
????????
----------------------------------------------------------------------------
-----------------------------

Any help is greatly appreciated,
Tom



 
Reply With Quote
 
 
 
 
Stephen Lebans
Guest
Posts: n/a
 
      7th Jun 2004
Would you please stop multiposting!!
If you need to post to more than one group at a time then Crosspost by
including all of the NG's at once in the Address line!
--


Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


"tom" <(E-Mail Removed)> wrote in message
news:2S2xc.8368$(E-Mail Removed)...
> Hello,
>
> I just simply want to append a clone record. Basically, I cloned a

record
> then modified couple of fields and then I wanted to append this

modified
> record to the table.
>
> ----------------------------------------------------------------------

------
> -----------------------------
> Dim curRec As Recordset
>
> 'modify current record
> Set curRec = Me.RecordsetClone
> curRec.Fields(DSCRIPTION).Value = "Blah blah blah blah blah"
> curRec.Fields(DUE_DATE).Value = curRec.Fields(DUE_DATE).Value - 45
>
> 'Now I wont to append the modified record to the database
> ' I've tried something following but I got error : "Can't assign

to read
> only property"
> Me.AllowAdditions = True
> ????????
> Me.NewRecord = curRec
> ????????
> ----------------------------------------------------------------------

------
> -----------------------------
>
> Any help is greatly appreciated,
> Tom
>
>
>


 
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
How to Append Clone Rec? tom Microsoft Access Queries 1 8th Jun 2004 12:17 PM
How to Append Clone Rec? tom Microsoft Access Getting Started 0 7th Jun 2004 07:55 PM
How to Append Clone Rec? tom Microsoft Access Forms 0 7th Jun 2004 07:53 PM
How to Append Clone Rec? tom Microsoft Access Form Coding 0 7th Jun 2004 07:52 PM
How to Append Clone Rec? tom Microsoft Access Forms 0 7th Jun 2004 07:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:52 PM.