A
Amateur
Dear Sirs
- I have a table named "clientspool"
- I have a field in this table called "eurodeposit"
- I have a form with a command button NOT based on that table, which is
executing already some tasks.
This is the code for the button until now:
Private Sub Command20_Click()
Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE""
""C:\cps208\writeinvoices.mdb"" /X invoicenumbersdelete", 0)
Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE""
""C:\cps208\trading.mdb"" /X endofday2", 0)
Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE""
""C:\cps208\trading.mdb"" /X endofmonth", 0)
Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE""
""C:\cps208\trading.mdb"" /X endofday2", 0)
End Sub
I know if the form would based on that table I would have to write the
command button like this:
Private Sub cmdZeroDeposit_Click()
Me!Eurodeposit = 0
End Sub
But the form I am using is NOT based on that table - so -
I would like that this command button as well sets my table values for the
field "eurodeposit" to "0" - so, somehow I have to tell that the field
"eurodeposit" in the table "clientspool" = 0 when I click the button
(something like
Me!clientspool.eurodeposit = 0).
Can you help?
Thanks very much
Klaus
- I have a table named "clientspool"
- I have a field in this table called "eurodeposit"
- I have a form with a command button NOT based on that table, which is
executing already some tasks.
This is the code for the button until now:
Private Sub Command20_Click()
Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE""
""C:\cps208\writeinvoices.mdb"" /X invoicenumbersdelete", 0)
Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE""
""C:\cps208\trading.mdb"" /X endofday2", 0)
Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE""
""C:\cps208\trading.mdb"" /X endofmonth", 0)
Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE""
""C:\cps208\trading.mdb"" /X endofday2", 0)
End Sub
I know if the form would based on that table I would have to write the
command button like this:
Private Sub cmdZeroDeposit_Click()
Me!Eurodeposit = 0
End Sub
But the form I am using is NOT based on that table - so -
I would like that this command button as well sets my table values for the
field "eurodeposit" to "0" - so, somehow I have to tell that the field
"eurodeposit" in the table "clientspool" = 0 when I click the button
(something like
Me!clientspool.eurodeposit = 0).
Can you help?
Thanks very much
Klaus