PC Review


Reply
Thread Tools Rate Thread

addnew record

 
 
=?Utf-8?B?VHVyaW4=?=
Guest
Posts: n/a
 
      17th Apr 2006
using: access 2003
what to accomplish:
double-clicking on a field (NSN) on a subform (STNDISS) will add that
record to another table (OCIE).
Problem:
the main form (person_frm) contains some data (SSN) that needs to be
added to the same table (OCIE). I don't know how to reference the field (SSN).

I am using .AddNew and .Update. I can get the code to add the record (with
NSN) but the (SSN) is blank.

 
Reply With Quote
 
 
 
 
John Spencer
Guest
Posts: n/a
 
      17th Apr 2006
Try referencing the control on the main form with the syntax
Assuming the control on the main form is named SSN

[Forms]!Person_Frm!SSN

Or

Me.Parent.SSN


"Turin" <(E-Mail Removed)> wrote in message
news:1DB52D8D-7EC1-4940-8ADF-(E-Mail Removed)...
> using: access 2003
> what to accomplish:
> double-clicking on a field (NSN) on a subform (STNDISS) will add that
> record to another table (OCIE).
> Problem:
> the main form (person_frm) contains some data (SSN) that needs to be
> added to the same table (OCIE). I don't know how to reference the field
> (SSN).
>
> I am using .AddNew and .Update. I can get the code to add the record (with
> NSN) but the (SSN) is blank.
>



 
Reply With Quote
 
=?Utf-8?B?VHVyaW4=?=
Guest
Posts: n/a
 
      2nd May 2006
This worked. Thank you.

"John Spencer" wrote:

> Try referencing the control on the main form with the syntax
> Assuming the control on the main form is named SSN
>
> [Forms]!Person_Frm!SSN
>
> Or
>
> Me.Parent.SSN
>
>
> "Turin" <(E-Mail Removed)> wrote in message
> news:1DB52D8D-7EC1-4940-8ADF-(E-Mail Removed)...
> > using: access 2003
> > what to accomplish:
> > double-clicking on a field (NSN) on a subform (STNDISS) will add that
> > record to another table (OCIE).
> > Problem:
> > the main form (person_frm) contains some data (SSN) that needs to be
> > added to the same table (OCIE). I don't know how to reference the field
> > (SSN).
> >
> > I am using .AddNew and .Update. I can get the code to add the record (with
> > NSN) but the (SSN) is blank.
> >

>
>
>

 
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
AddNew but I Don't See the New Record SigmaBeta Microsoft Access Form Coding 9 19th Feb 2008 01:23 AM
C# insertion of a record with CurrencyManager AddNew() method during the insertion of a father table record (with CurrencyManager AddNew() too) polocar Microsoft C# .NET 0 27th Sep 2006 06:51 PM
Last Record overwritten using .AddNew jeffrey.bergstedt@cox.com Microsoft Access VBA Modules 2 20th Sep 2006 04:03 PM
Re: Want AddNew record at EOF not BOF Ken Snell [MVP] Microsoft Access External Data 0 20th Sep 2004 05:51 PM
Want AddNew record at EOF not BOF =?Utf-8?B?aG9ydGVuc2lv?= Microsoft Access External Data 0 20th Sep 2004 04:49 PM


Features
 

Advertising
 

Newsgroups
 


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