A
all21 via AccessMonster.com
dear all......
i have a form with save button inside.....
my concept is if i click the save button, the recors is daved then add new
record in database
but if when i click the save button, it only says error message 2501 he
runcommand avtion was cancelled.....
i've try to find any solution in much forum, but i still not statisfied of
the rsult..
now i was thinking........how if i change my concept to sql.....
means : in form, i only use unbound textbox, and if i click savebutton, it
runs any sql statement like this : INSERT INTO tbpelunasanutang (field1
field2 field3........) FROM (idon't know what to write here )
can u help me with the statement ?
this is the structure of my dtabase that i use in the form :
1. tblpembelianheader :
|Field Name |Data Type |Description |
|Notransaksi |Text | |
[quoted text clipped - 5 lines]
|TotalBeli |Number | |
|byr |Yes/No |Bayar Cash Aau Tidak |
2. tbpelunasanutang :
|Field Name |Data Type |Description |
|NoPembayaran |Text | |
[quoted text clipped - 6 lines]
|TotalUtang |Number | |
|TotalByr |Number | |
3. qryutang :
SELECT TBLPembelianHeader.NoTransaksi, TBLPembelianHeader.Tanggal,
TBLPembelianHeader.NoVendor, TBLVendor.NamaPerusahaan, TBLPembelianHeader.
TotalQty, TBLPembelianHeader.TotalBeli, TBLPembelianHeader.bayar,
TBLPembelianHeader.Status
FROM TBLVendor INNER JOIN TBLPembelianHeader ON TBLVendor.NoVendor =
TBLPembelianHeader.NoVendor
WHERE (((TBLPembelianHeader.bayar)<>True) AND ((TBLPembelianHeader.Status)
<>"Retur"));
Help me with this one please............
warm regrads,
all21
i have a form with save button inside.....
my concept is if i click the save button, the recors is daved then add new
record in database
but if when i click the save button, it only says error message 2501 he
runcommand avtion was cancelled.....
i've try to find any solution in much forum, but i still not statisfied of
the rsult..
now i was thinking........how if i change my concept to sql.....
means : in form, i only use unbound textbox, and if i click savebutton, it
runs any sql statement like this : INSERT INTO tbpelunasanutang (field1
field2 field3........) FROM (idon't know what to write here )
can u help me with the statement ?
this is the structure of my dtabase that i use in the form :
1. tblpembelianheader :
|Field Name |Data Type |Description |
|Notransaksi |Text | |
[quoted text clipped - 5 lines]
|TotalBeli |Number | |
|byr |Yes/No |Bayar Cash Aau Tidak |
2. tbpelunasanutang :
|Field Name |Data Type |Description |
|NoPembayaran |Text | |
[quoted text clipped - 6 lines]
|TotalUtang |Number | |
|TotalByr |Number | |
3. qryutang :
SELECT TBLPembelianHeader.NoTransaksi, TBLPembelianHeader.Tanggal,
TBLPembelianHeader.NoVendor, TBLVendor.NamaPerusahaan, TBLPembelianHeader.
TotalQty, TBLPembelianHeader.TotalBeli, TBLPembelianHeader.bayar,
TBLPembelianHeader.Status
FROM TBLVendor INNER JOIN TBLPembelianHeader ON TBLVendor.NoVendor =
TBLPembelianHeader.NoVendor
WHERE (((TBLPembelianHeader.bayar)<>True) AND ((TBLPembelianHeader.Status)
<>"Retur"));
Help me with this one please............
warm regrads,
all21