Can some one tell me what is wrong with this SQL statement?
it wont update the field.....
update PM017M01 Set BXAEDT = 1011213 where Prevcustnum = 'LUTS-4L3QRW-001' & BXB6CD = '02' & BXDANB = 1 & BXAEDT = 1010601
Printable View
Can some one tell me what is wrong with this SQL statement?
it wont update the field.....
update PM017M01 Set BXAEDT = 1011213 where Prevcustnum = 'LUTS-4L3QRW-001' & BXB6CD = '02' & BXDANB = 1 & BXAEDT = 1010601
1. From where are you passing the statement, i.e., VB or directly from a query generator in your database?
2. Does it generate an error, or does simply not do anything?
i'm using this in vb... but it wont work in access either.. it dosent get an error... it just says about to update 0 rows.... like its not getting a match in the db... but the 4 fields i have picked to match on are there and they match... so i dont know what is wrong...
it has somthing to do with the fact that i'm specifiying multiple where fields.. if i take all but one out it works fine.. anyone know how to do this with all 4 of my fields????
Try
pdate PM017M01 Set BXAEDT = 1011213 where Prevcustnum = 'LUTS-4L3QRW-001' AND BXB6CD = '02' AND BXDANB = 1 AND BXAEDT = 1010601
well i just messed with access and figured it out... if anyone cares this is what it should be....
update PM017M01 Set BXAEDT = 1011213 where(Prevcustnum = 'LUTS-4L3QRW-001' and BXB6CD = '02' and BXDANB = 1 and BXAEDT = 1010601)