one textbox value store into two table field

cmw

Registered User.
Local time
Tomorrow, 04:24
Joined
Jan 21, 2008
Messages
46
I have a voucher form contains voucher_type,customer_name,Amount. I select a DR or CR in a combobox, If DR then customer code store into tab_field1 or customercode store into tab_field2. I get customercode from customer_name combobox. How will assign customer_name control source? If controlsouce is unbound, before selected name also change. How will I do it?
 
Voucher Table contains vch_type, CR_customercode,DR_customercode,Amount. Voucher form contains vch_type,customercode,Amount. I select vch_type='DR' then customercode save into DR_customercode else customercode save into CR_customercode. How will do customercode controlsource?
 
How will attachment my form?
 
I attach voucher Continuous subform. I select it vch_type
IF vch_type='DR' then
DR_CustomerCode=customercode
else
CR_CustomerCode=Customercode
end if

How will do it?
 

Attachments

helloo CMW!
i saw that u have asked ur query several times but this person uncle gizmo repled u the same "Sorry it's not clear what you want, please could you clarify" .hahahahahahahaha
it is pet sentence of this person he dnt have any idea about access n just making people fooooooooooooooooool.so just try somewhereelse n dnt waste ur time here.
 
helloo CMW!
i saw that u have asked ur query several times but this person uncle gizmo repled u the same "Sorry it's not clear what you want, please could you clarify" .hahahahahahahaha
it is pet sentence of this person he dnt have any idea about access n just making people fooooooooooooooooool.so just try somewhereelse n dnt waste ur time here.
See the link in my signature for advice on how to get a helpful response. I am afraid I was also unclear as to your particular problem. Uncle Gizmo is a long time member of this forum and has helped many many people.

It may help us to help you if you can post a copy of your DB so we can see where the problems are
 
I would not have two different fields. I would just have a single field for customer code. Store a separate field for voucher type (Dr or Cr) - then its easy to filter out the just the Drs or the Crs.

you dont (shouldnt) need to store the customer name with this record. just the code - then get the name using the code either by a lookup, or by constructing a query as appropriate.


What sort of transaction is this for?
 

Users who are viewing this thread

Back
Top Bottom