>>>>Is it working?
>>>>I would remove [Models] from Tables property :-)
>>>
>>>Yes, I was thinking about it too a moment ago. Give me a second. Also, since my fields don't allow NULLs, may be I can use CAST(NVL(Cost,0) as N(10,2)) as Cost, etc. in the SelectCmd.
>>
>>Sure, every fields that not allow NULLs should be converted.
>
>BTW, one little detail - not sure if important. In the DealerOpts table the field is called Type, not cType. May be I should go ahead and better rename this field as cType - the DealerOpts table is new anyway. What do you think?
BTW if you want the AutoInc field to be automatically populated after insert/update you should add these 4 properties:
InsertCmdRefreshFieldList = "OPTSID"
UpdateCmdRefreshFieldList = "OPTSID"
InsertCmdRefreshCmd = "SELECT OPTSID FROM DealerOpts WHERE OPTSID = GETAUTOINCVALUE()"
UpdateCmdRefreshCmd = "SELECT OPTSID FROM DealerOpts WHERE OPTSID = GETAUTOINCVALUE()"
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.