Solved

Linked MS-SQL Table and lost default values

Posted on 2002-05-13
6
406 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
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

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

622 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