Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Linked MS-SQL Table and lost default values

Posted on 2002-05-13
6
Medium Priority
?
407 Views
Last Modified: 2012-06-27
I have a DB in MS-SQL. Some fields in my table as default values.

When I link my table in MSAccess, I don't see the default values of the fields.

What can I do to see the default values in MSAccess.

Thank you
0
Comment
Question by:cocacola
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 54

Expert Comment

by:nico5038
ID: 7007653
The setting of the defaultvalue needs to be in MS SQL, as that's the location where you're real data is stored.
Just use a stored procedure to initialize your default value there.

Nic;o)
0
 

Author Comment

by:cocacola
ID: 7008568
In MSAccess, if a table is empty and you select all rows from it, you will have one empty row with default values on specific fields.

In MSAccess with a table linked from MSSQL, if a table is empty and you select all rows from it, you will have one empty row with blank fields ... no default values.

That`s my problem because I have a screen who is already dealing with an empty row from a MSAccess table (form controls initialises with default value of recordset).  But if I change MSAccess table for a linked table from MS-SQL I have an error because no value on empty recordset on the same screen.


Maybe there`s no answer to that and you cant use default values of MS-SQL in MSAccess.  If so, I will have to fix the codes on my MSAccess application.
0
 

Author Comment

by:cocacola
ID: 7008585
In MSAccess, if a table is empty and you select all rows from it, you will have one empty row with default values on specific fields.

In MSAccess with a table linked from MSSQL, if a table is empty and you select all rows from it, you will have one empty row with blank fields ... no default values.

That`s my problem because I have a screen who is already dealing with an empty row from a MSAccess table (form controls initialises with default value of recordset).  But if I change MSAccess table for a linked table from MS-SQL I have an error because no value on empty recordset on the same screen.


Maybe there`s no answer to that and you cant use default values of MS-SQL in MSAccess.  If so, I will have to fix the codes on my MSAccess application.
0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
LVL 54

Expert Comment

by:nico5038
ID: 7009065
Besides the default value setting in the table, you can also set them when displayed on a field.
These settings can differ from the table settings.
These however won't work on the "bare" tables, but they will work on bot "normal" and datasheet forms.
I guess the origin of the row doesn't bother there.

Nic;o)
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7220175

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
 - PAQ'd and pts refunded
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
Jgould earned 0 total points
ID: 7240355
Question has been moved to PAQ and points refunded as per recommendation

Nico > points for you here
http://www.experts-exchange.com/Databases/MS_Access/Q_20340856.html

JGould-EE Moderator
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question