PC Review


Reply
Thread Tools Rate Thread

Code new record in subform from outside of subform

 
 
Colin Possamai
Guest
Posts: n/a
 
      18th Feb 2006
I have 3 tables that are linked in relationship. Customers, orders, and
order details.
I have them on one form (customers) and 2 subforms (orders and order
details.)
I need the orders to be linked to customers and order details to orders.
This all works well with relationship.

My problem is I need to put up to 12 orders for one customer at one time
with a separate form and code.
I have made the form, and have all the required data I need to put into the
tables. What I can't work out, is how to add records in orders (and order
details) from outside the forms.

I have tried
DoCmd.GoToRecord , , acNewRec

but it just makes a new record on customers (main form)
I need to make a new record on subfor relating to customer relationship.

Hope this is understandable and someone can help me.

Thank you


 
Reply With Quote
 
 
 
 
Colin Possamai
Guest
Posts: n/a
 
      18th Feb 2006
Fixed it. Thank you

"Colin Possamai" <(E-Mail Removed)> wrote in message
news:43f6a610$0$18699$(E-Mail Removed)...
>I have 3 tables that are linked in relationship. Customers, orders, and
>order details.
> I have them on one form (customers) and 2 subforms (orders and order
> details.)
> I need the orders to be linked to customers and order details to orders.
> This all works well with relationship.
>
> My problem is I need to put up to 12 orders for one customer at one time
> with a separate form and code.
> I have made the form, and have all the required data I need to put into
> the tables. What I can't work out, is how to add records in orders (and
> order details) from outside the forms.
>
> I have tried
> DoCmd.GoToRecord , , acNewRec
>
> but it just makes a new record on customers (main form)
> I need to make a new record on subfor relating to customer relationship.
>
> Hope this is understandable and someone can help me.
>
> Thank you
>



 
Reply With Quote
 
MB
Guest
Posts: n/a
 
      28th Apr 2006
I'm trying to do something similar, how did you fix it?

Thanks
Marc Berman

"Colin Possamai" <(E-Mail Removed)> wrote in message
news:43f6cdf6$0$15128$(E-Mail Removed)...
> Fixed it. Thank you
>
> "Colin Possamai" <(E-Mail Removed)> wrote in message
> news:43f6a610$0$18699$(E-Mail Removed)...
>>I have 3 tables that are linked in relationship. Customers, orders, and
>>order details.
>> I have them on one form (customers) and 2 subforms (orders and order
>> details.)
>> I need the orders to be linked to customers and order details to orders.
>> This all works well with relationship.
>>
>> My problem is I need to put up to 12 orders for one customer at one time
>> with a separate form and code.
>> I have made the form, and have all the required data I need to put into
>> the tables. What I can't work out, is how to add records in orders (and
>> order details) from outside the forms.
>>
>> I have tried
>> DoCmd.GoToRecord , , acNewRec
>>
>> but it just makes a new record on customers (main form)
>> I need to make a new record on subfor relating to customer relationship.
>>
>> Hope this is understandable and someone can help me.
>>
>> Thank you
>>

>
>



 
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
Double click record in subform to go to new record in Main (and subform) Jpipher@gmail.com Microsoft Access 14 3rd Feb 2007 07:06 AM
Wierd subform behaviour, subform not cycling through after updating a subform record Mikal Microsoft Access Forms 2 25th May 2006 07:15 PM
Code new record in subform from outside of subform Colin Possamai Microsoft Access Forms 2 28th Apr 2006 01:28 AM
code to delete a record in one subform when a record in a related subform is deleted Helen Microsoft Access Form Coding 3 3rd Apr 2005 10:01 PM
Urgent !!! - Values from Subform - #Error if no records in Subform and Only grabs first subform record Greg Microsoft Access Forms 0 17th Feb 2005 01:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:15 AM.