Solved Copy current form/subform to a new form/subform (1 Viewer)

Leo_Polla_Psemata

Registered User.
Local time
Today, 00:23
Joined
Mar 24, 2014
Messages
364
Hi, I have a form/subform, one to many.
This is about a quotation.
On the form, I display the main quotation details (quotation number, customer name /customer folder number, validity, etc)
while in subform (data sheet format) I type the cost, charges, surcharges. Each form has minimum 4 records in subform.

I know how to copy current item to new form (using dlookup) , but I can’t copy the items from the subform on the new form/subform.

So far, I copy paste manually, is there any way I could copy paste the current form subform to a new form subform ?
 

Leo_Polla_Psemata

Registered User.
Local time
Today, 00:23
Joined
Mar 24, 2014
Messages
364
Hi , i have converted this code to my database field names.
I get the error
"Compile Error: Method or data member not found"
in this part of code
"FROM [Order Details] WHERE OrderID = " & Me.OrderID & ";" (this is as per Allen Browne example)

"FROM [Of2] WHERE OF1ID = " & Me.OF1ID & ";" (these fields are after i converted Allen Browne code fields to my db fields)

Do you have any idea ? I have reviewed line by line , letter by letter all code parts and i can't find anything not converted well ??!!
 

Gasman

Enthusiastic Amateur
Local time
Today, 08:23
Joined
Sep 21, 2011
Messages
14,232
Access does not lie :)
So upload your DB, or show the control properties on the form?
Where is that code actually located as well?
 

Leo_Polla_Psemata

Registered User.
Local time
Today, 00:23
Joined
Mar 24, 2014
Messages
364
Access does not lie :)
So upload your DB, or show the control properties on the form?
Where is that code actually located as well?
Hi, i will upload, but, this error stands for control property field name error ?
 

Gasman

Enthusiastic Amateur
Local time
Today, 08:23
Joined
Sep 21, 2011
Messages
14,232
Hi, i will upload, but, this error stands for control property field name error ?
I realise that, but if you cannot see it you need anothers set of eyes. :) It appears from what you have said, control OF1ID is at fault?
 

Leo_Polla_Psemata

Registered User.
Local time
Today, 00:23
Joined
Mar 24, 2014
Messages
364
I realise that, but if you cannot see it you need anothers set of eyes. :) It appears from what you have said, control OF1ID is at fault?
Yes, the code highlights exactly this part, now i am not on my work station and can't copy paste but this is it
 

Leo_Polla_Psemata

Registered User.
Local time
Today, 00:23
Joined
Mar 24, 2014
Messages
364
Okay, i found it and now works perfectly.
I should type correctly the field property (not the control source)

Now works
 

theDBguy

I’m here to help
Staff member
Local time
Today, 00:23
Joined
Oct 29, 2018
Messages
21,454
Okay, i found it and now works perfectly.
I should type correctly the field property (not the control source)

Now works
Congratulations! Glad to hear you got it sorted out. Good luck with your project.
 

Users who are viewing this thread

Top Bottom