A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to Append Clone Rec?



 
 
Thread Tools Display Modes
  #1  
Old June 7th, 2004, 07:52 PM
tom
external usenet poster
 
Posts: n/a
Default How to Append Clone Rec?

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


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.