It does work, our POS framework at work does it. A query with zero record count returns blanks for the fields. At the top of a form that is used for both input and updating a query can run to pull out all the fields and then a cfparam just needs to be done on the PK so that by default it is equal to a non-existant one such as ID = 0. Then essentially for something like a text input it does something like <input type="text" name="whatevertheDBfieldnameis" value="#GetData.whatevertheDBfieldnameis#">
On 11/17/05, Bobby Hartsfield <[EMAIL PROTECTED]> wrote: > > If it would even work (without undefined var errors when no record was > found) it's an all around bad idea for a few different reasons. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224587 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

