Solved Copy current form/subform to a new form/subform

Leo_Polla_Psemata

Registered User.
Local time
Today, 13:25
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 ?
 
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 ??!!
 
Access does not lie :)
So upload your DB, or show the control properties on the form?
Where is that code actually located as well?
 
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 ?
 
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?
 
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
 
Okay, i found it and now works perfectly.
I should type correctly the field property (not the control source)

Now works
 
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

Back
Top Bottom