PC Review


Reply
Thread Tools Rate Thread

Copy form fields to related table

 
 
RcCypher
Guest
Posts: n/a
 
      18th Mar 2010
I'm very new to access and I'm working with a database that is rather
beyond my own skill. However I have been tasked to find a way to
implement the solution that has been requested. So hopefully someone
will be able to save me from falling on my sword

The problem is basically this, I have a form in access that tracks
families, both parents and their kid, the addresses phone numbers
dates contacted etc.
Well occasionally we have to update phone numbers and addresses as
people move and get new phone plans etc. As such what they would like
me to do is find a way to automatically copy the updated fields from
the specific individual into a subform built to track the old
addresses and phone numbers. They would also like the subform to
automatically date itself based on the day the update was made. I
figure a macro would be the best approach to solve this problem
however I have 0 experience building Maco's in access. Can anyone
point me to good reference materials or perhaps recommend a simple
solution?
 
Reply With Quote
 
 
 
 
RcCypher
Guest
Posts: n/a
 
      19th Mar 2010
On Mar 19, 6:02*am, "PieterLinden via AccessMonster.com" <u49887@uwe>
wrote:
> RcCypher wrote:
> >I'm very new to access and I'm working with a database that is rather
> >beyond my own skill. However I have been tasked to find a way to
> >implement the solution that has been requested. So hopefully someone
> >will be able to save me from falling on my sword

>
> >The problem is basically this, I have a form in access that tracks
> >families, both parents and their kid, the addresses phone numbers
> >dates contacted etc.
> >Well occasionally we have to update phone numbers and addresses as
> >people move and get new phone plans etc. As such what they would like
> >me to do is find a way to automatically copy the updated fields from
> >the specific individual into a subform built to track the old
> >addresses and phone numbers. They would also like the subform to
> >automatically date itself based on the day the update was made. I
> >figure a macro would be the best approach to solve this problem
> >however I have 0 experience building Maco's in access. Can anyone
> >point me to good reference materials or perhaps recommend a simple
> >solution?

>
> You should be able to do it with a simple append query. *Create a select
> query based on your main form's recordsource. *Then turn that into an append
> query. *I would probably add the datestamp as a general date/time to the
> subform's recordsource. *Then all you need is a short macro
> SetWarnings False
> RunQuery "AppendQueryName"
> SetWarnings True
>
> --
> Message posted viahttp://www.accessmonster.com


So I took your advise on this and have had great success. It took me a
while to figure out that I wasn't building a qry but a stored
procedure. But once I got past that point everything seemed to be
golden, until (I hate until's heh) I built the macro. Everything
works, I run the macro it adds the info the the table just like its
suppose to. However as soon as its done adding the data to the table.
I get an error message.

Action Failed
Macro Name:
z_address_update_master_form
Condition:
True
Action Name:
OpenStoredProcedure
Arguements:
child_address_update_procedure, Datasheet, Add
Error Number:
2950

Now I googled this error message and poked around on the web. The best
Microsoft can tell me is that its because the database is not in my
trusted locations. Well as best I can tell it is, the local copy is in
the folder located in my trusted locations, and the sql server copy is
added to my trusted locations on an admin share. So unless I am
overlooking something that is not the problem.

I've experimented with various arguments to see if that would resolve
the issue but I have had no luck with that fixing things.

Suggestions?
 
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
Copy data from textbox on form to multiple fields in table shmoussa Microsoft Access Form Coding 7 29th May 2007 09:27 PM
Calculated Form Fields do not fill data into related table fields =?Utf-8?B?cmljaDE4Mzg=?= Microsoft Access Forms 1 12th Feb 2005 08:11 AM
Populate Form and Table with Related Fields Kevin Sullivan Microsoft Access Forms 0 25th May 2004 04:47 PM
Control on form to copy fields to another table dscully Microsoft Access Form Coding 4 11th Nov 2003 05:33 PM
Copy some form fields into same table as new record tina Microsoft Access Form Coding 0 12th Sep 2003 08:56 PM


Features
 

Advertising
 

Newsgroups
 


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