Re: Table Defaults

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



In my test, I don't see the sp_MShelpcolumns called each a new record become
dirty; only for the first record created after the form is opened. More
important, this behavior doesn't seem to have any effect on the keystrokes;
ie. they don't get jumbled.

I suppose that you making some strange things in your code like playing with
the display.

Another possibility could be the Autocorrect option. If I were you, I would
deactivate all autocorrect options and see what this is giving.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)


"RJ" <RJ@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:57E1292A-265D-450E-A1B6-AA393C329414@xxxxxxxxxxxxxxxx
Yes, I understand what you are saying, but wouldn't that make the
property
DISPLAY DEFAULTS????

This following definition is from Microsoft

http://www.microsoft.com/mspress/books/sampchap/5600b.aspx

Fetch Defaults Choose Yes (the default) to have the form fetch the default
values from the field definitions when you move to a new row. Set this
property to No to use only the Default Value settings you have specified
for
controls.

My problem really has to do with the call to sp_Mshelpcolumns procedure
is
getting in the way of user entry. As the user types and the form becomes
dirty, the keystrokes get lost / jumbled. Franklin becomes nklinFa. Not
exactly user friendly. On most forms it is not a problem but on those more
complex forms with an underlying table with many columns it becomes an
issue.
One workaround is to redesign those lengthy tables but then that gets in
the
way bound forms / User interface which is the benefit of using Access as a
front end.

I have tested against a table that has no defaults and it doesn't seem to
matter.

I think I know where this is headed eventually. aka .Net

For some tables it actually inhibits

"Tom van Stiphout" wrote:

On Tue, 6 Nov 2007 05:27:00 -0800, RJ <RJ@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:

It appears you assume FetchDefaults prevents the server call. However,
the help file says "Returns or sets a Boolean indicating whether
Microsoft Access SHOWS default values for new rows on the specified
form before the row is saved."

I'm reading this such that the call is always made, but the results
are optionally shown on the form.

-Tom.



Is it normal???

When adding a new record, via a form, as soon as the form goes dirty
(user
keystroke) ADP/SQL Server goes out the underlying table to retrieve all
defaults defined for any column. It does this by calling the
sp_Mshelpcolumns procedure which is very costly.

For some tables it actually inhibits / interferes with the user entry. I
rarely use control default values however I assumed (or is that hope)
that
table defaults would be applied at the server level and not the client
level.
Is there anything I can do to eliminate/reduce this problem?

The form property has Fetch defaults as False. ADP 2003 (now SP2) Sql
Server 2k sp4.

I have looked online but have found little on the topic. Help me
please!



.



Relevant Pages

  • Re: Table Defaults
    ... Form Dirty event than with a call to the sp_Mshelpcolumns procedure. ... Sylvain Lafontaine, ing. ... Another possibility could be the Autocorrect option. ... It appears you assume FetchDefaults prevents the server call. ...
    (microsoft.public.access.adp.sqlserver)
  • [PATCH -mm] Fix and add EXPORT_SYMBOL(filemap_write_and_wait)
    ... dead disk, unplugged cable, etc. ... ("invalidating remote inode since open detected it " ... /* BB check if we need to refresh inode from server now? ... write out dirty pages of bmap ...
    (Linux-Kernel)
  • Re: Huge problem joining windows 2003 domain
    ... what a funny (dirty dirty) network;) ... you should change your network mask: ... 192.168.2.X for PC1 and server ... 192.168.3.X for pc2 and server. ...
    (microsoft.public.windows.server.general)
  • Re: Table Defaults
    ... I noticed that the user input was ... actually coming out exactly backwards. ... On Form Dirty I am enabling write / undo command buttons and disabling ... It appears you assume FetchDefaults prevents the server call. ...
    (microsoft.public.access.adp.sqlserver)
  • Re: On Reboot Wants to Run CHKDSK on Quorum Drive
    ... The disk that is marked as "dirty" is the quorum disk. ... server in the cluster at the time dies not report the same disk as dirty. ...
    (microsoft.public.windows.server.clustering)