The following code works great except for the 'out line
'Invoices:Title.value = parentform:Title.value
When I run this line, I get the error message:
Error: Parentform: Title not found
I've checked the parent form, The field title is there, it's the 2nd field where data is entered. I've checked the varialble and fields on the Called form, it's there too.
I'm including most of the code, the part where there might be an error. I beileve to code is OK, there's something missing on the parent form. But what? Where? Any clues?
Thanks, kenn
'Assign a value to that record
Invoices:Customer_id.value = parentform:Customer_id.value
'Invoices:Title.value = parentform:Title.value
Invoices:Lastname.value = parentform:Lastname.value
Invoices:Firstname.value = parentform:Firstname.value
'Assign value to the local var on the called form (invoices)
Invoices:VarCustomer_id.value = parentform:Customer_id.value
'Invoices:VarTitle.value = parentform:Title.value
Invoices:VarLastname.value = parentform:Lastname.value
Invoices:VarFirstname.value = parentform:Firstname.value
'Display the called form
Invoices.show()
Invoices.activate()
else
Form.load("Invoices")
Invoices.new_record()
'Assign value to that record
Invoices:Customer_id.value = parentform:Customer_id.value
'Invoices:Title.value = parentform:Title.value
Invoices:Lastname.value = parentform:Lastname.value
Invoices:Firstname.value = parentform:Firstname.value
'assign value to the local var on the called form
Invoices:VarCustomer_id.value = parentform:Customer_id.value
'Invoices:VarTitle.value = parentform:Title.value
Invoices:VarLastname.value = parentform:Lastname.value
Invoices:VarFirstname.value = parentform:Firstname.value
'Invoices:Title.value = parentform:Title.value
When I run this line, I get the error message:
Error: Parentform: Title not found
I've checked the parent form, The field title is there, it's the 2nd field where data is entered. I've checked the varialble and fields on the Called form, it's there too.
I'm including most of the code, the part where there might be an error. I beileve to code is OK, there's something missing on the parent form. But what? Where? Any clues?
Thanks, kenn
'Assign a value to that record
Invoices:Customer_id.value = parentform:Customer_id.value
'Invoices:Title.value = parentform:Title.value
Invoices:Lastname.value = parentform:Lastname.value
Invoices:Firstname.value = parentform:Firstname.value
'Assign value to the local var on the called form (invoices)
Invoices:VarCustomer_id.value = parentform:Customer_id.value
'Invoices:VarTitle.value = parentform:Title.value
Invoices:VarLastname.value = parentform:Lastname.value
Invoices:VarFirstname.value = parentform:Firstname.value
'Display the called form
Invoices.show()
Invoices.activate()
else
Form.load("Invoices")
Invoices.new_record()
'Assign value to that record
Invoices:Customer_id.value = parentform:Customer_id.value
'Invoices:Title.value = parentform:Title.value
Invoices:Lastname.value = parentform:Lastname.value
Invoices:Firstname.value = parentform:Firstname.value
'assign value to the local var on the called form
Invoices:VarCustomer_id.value = parentform:Customer_id.value
'Invoices:VarTitle.value = parentform:Title.value
Invoices:VarLastname.value = parentform:Lastname.value
Invoices:VarFirstname.value = parentform:Firstname.value
Comment