A
andy.cowman
Hello
I have been trying to work this out for a while, I am sure I have done
something like it before but just can't seem to get it now.
Basically I have a table containing client information and another
containing transactions infomation. Both have an address field becuase
the transaction may not be about the client's corrsaspondance address.
Sometimes it is though and so I wanted on my form that display the
Client Info to have a button that click and it copies that clients
address details to the other table. At the moment the button has the
following code in VB
Dim stDocName As String
Forms("frmClientDetails").Refresh
stDocName = "qryCopyAddressDetails"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Forms("frmClientDetails").Refresh
and it calls an append query which will then ask for the ClientID
number which is unique and will then copy that persons corraspondance
address into a new record in the transaction table. The form then uses
tabs to move onto entering the data for the transaction relating to
that address.
This works fine but ideally I do not want to have enter the Client ID.
I would like the button to use pick up the client ID from the form and
automatically use that. It seems like it should be quite simple but I
can't do it?
Please advise!!
many thanks
Andy
I have been trying to work this out for a while, I am sure I have done
something like it before but just can't seem to get it now.
Basically I have a table containing client information and another
containing transactions infomation. Both have an address field becuase
the transaction may not be about the client's corrsaspondance address.
Sometimes it is though and so I wanted on my form that display the
Client Info to have a button that click and it copies that clients
address details to the other table. At the moment the button has the
following code in VB
Dim stDocName As String
Forms("frmClientDetails").Refresh
stDocName = "qryCopyAddressDetails"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Forms("frmClientDetails").Refresh
and it calls an append query which will then ask for the ClientID
number which is unique and will then copy that persons corraspondance
address into a new record in the transaction table. The form then uses
tabs to move onto entering the data for the transaction relating to
that address.
This works fine but ideally I do not want to have enter the Client ID.
I would like the button to use pick up the client ID from the form and
automatically use that. It seems like it should be quite simple but I
can't do it?
Please advise!!
many thanks
Andy