X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1267CD1B366 for ; Fri, 16 Jul 2004 11:44:23 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70782-07 for ; Fri, 16 Jul 2004 14:44:22 +0000 (GMT) Received: from web20813.mail.yahoo.com (web20813.mail.yahoo.com [216.136.226.218]) by svr1.postgresql.org (Postfix) with SMTP id 9F0E8D1B23C for ; Fri, 16 Jul 2004 11:44:16 -0300 (ADT) Message-ID: <20040716144420.26765.qmail@web20813.mail.yahoo.com> Received: from [24.248.12.72] by web20813.mail.yahoo.com via HTTP; Fri, 16 Jul 2004 07:44:20 PDT Date: Fri, 16 Jul 2004 07:44:20 -0700 (PDT) From: Jeff Eckermann Subject: Re: time columns: ms-access bound controls To: lists Cc: pgsql-odbc@postgresql.org In-Reply-To: <40F73208.3040400@dds.uconn.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.1 tagged_above=0.0 required=5.0 tests=MAILTO_TO_SPAM_ADDR X-Spam-Level: * X-Archive-Number: 200407/73 X-Sequence-Number: 4206 --- lists wrote: > thanks for the reply - > > Jeff Eckermann wrote: > > --- lists wrote: > >>i have an ms-access form with a textbox bound to a > >>"time" column in an > >>underlying postgresql table. > >> > >>initially, the field displays correctly: > >> > >> 16:00 > >> > >>...but when i click in the field to begin editing, > >>the text in the > >>textbox changes by adding a date component set to > >>the current date: > >> > >> 7/15/2004 4:00:00 PM > >> > >>this is would be quite confusing to our users. > > > > > > This is a display problem, not a data problem. > You > > need to set the display format, either in the > control > > properties, or in the table properties. Probably > > easiest to set the format at the table level (open > in > > design view, highlight that field, set the > "format" > > value to your preference. > > i'd already tried setting format and input mask both > on the column and > on the control... > > any other suggestions? Hmm, looking closer, I see your problem. This is not something that I have had to deal with before. The problem appears to relate to the fact that Access has only one data representation for both date and time, with the display determining how the data is represented to the user; whereas SQL has separate date and time types. Odd that the problem should only be evident on mouse click; when I tab to the control, the format is not changed! My brief research has not found any answer. I am thinking that this is really an Access issue. Perhaps you may do better on the microsoft.public.access.odbcclientsvr newsgroup. > > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail