Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Linked MS-SQL Table and lost default values

Posted on 2002-05-13
6
Medium Priority
?
409 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
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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…
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

971 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