You may have marked more than one field as a key field in the view designer.
>>Paul, >> >>>>Function arguement value, type, or count in invalid >>Line 152 >>lcDefaultValue = DBGETPROP(lcBaseTable + "." cPrimaryKey,"Field","DefualtValue") >>Method: onnew> >> >>In the DBGETPROP function I believe you missed a + before cPrimaryKey. >> >>Kind Regards, >> >>Mat Kennedy > > Yeah, I did. Just a typo in my message, not in the code (it's framework code, not my own). In the actual code it says: > >lcDefaultValue = DBGETPROP(lcBaseTable + "." + lcPrimaryKey,"Field","DefaultValue") > > so that's not the problem. Thanks anyways.