|
Long Island Lune -> RE: Updating Access DB from .asp Form (10/28/2003 12:41:54)
|
quote:
Page 3 has the following statement... UPDATE DrvTable SET DrvPswd=('::iDrvPswd::'), DrvName=('::iDrvName::'), DrvBio=('::iDrvBio::'), DrvAward=(::iDrvAward::), DrvPic=('::iDrvPic::') WHERE ID=('::iID::') Fantastic. But there is only one thing.... Now that you have a numeric field to refer too, you have to change the way numeric fields are inturpretted. VERY EASY. WHERE ID= ::ID:: Text fields and Memos: '::xxxx::' Numerics: ::xxxx:: Like in: UPDATE DrvTable SET DrvPswd=('::iDrvPswd::'), DrvName= ('::iDrvName::'), DrvBio=('::iDrvBio::'), DrvAward= ('::iDrvAward::'), DrvPic=('::iDrvPic::') WHERE ID=(::iID::) Do you like brackets better? You can do it with or without. Make no difference. UPDATE DrvTable Set (DrvNum= ‘::DrvNum::’, DrvPswd= ‘::DrvPswd::’, DrvBio= ‘::DrvBio::’, DrvAward= ‘::DrvAward::’, DrvPic= ‘::DrvPic::’ WHERE (ID = ::iID::) Plus you were missing ' and ' around iDrvAward. In the future, you can keep your form field names the same as your database table fields if that is easier. ie: WHERE (ID = ::ID::) This applies to any db and tbl fields. AGAIN, this doesn't really matter. You can leave it the way it is. We're almost there!!! [:)]
|
|
|
|