RE: No Foreign Keys retrieved
- From: mscertified <rupert@xxxxxxxxxxxxx>
- Date: Wed, 12 Nov 2008 16:03:01 -0800
I'm not really sure but you could try creating a stored proc in sql server
that returns the data, then read the stored proc instead of the sql server
table.
If they still don't come through, you could try changing the format of those
columns in the stored proc.
What version of Access are you using?
-David
"Wes from Scottsdale" wrote:
I'm working with SQL Server in an Access project. My query needs to retrieve.
the details of a contract. My query runs fine but none of the foreign key
value are populated.
My query is:
strSQL = "SELECT [AuthFormDate], [ApprovedDate], [ExecutionDate],
[CouncilDate]" _
& ", [ExpirationDate], [ClosedDate], [ContractAmt], [Notes],
[ContractID], " _
& "[FirmID], [RenewalID], [InHouseCounsel], [DepartmentPayingID], " _
& "[ClientDepartmentID], [MatterID], [OriginalOnFile],
[AuthFormOnFile], " _
& "[SelectionMemoOnFile], [ConType], [OrigDoc], [AuthFormDoc],
[SelMemoDoc]" _
& " FROM [tContract] WHERE [ContractID] = '" & lstSearch.Column(0) & "'"
The foreign key values are FirmID, InHouseCounsel, DepartmentPayingID,
ClientDepartmentID and MatterID. They are all Not Null of Int data type.
Again, the row is retrieving everything except for the Foriegn Key values,
which are brought back blank. I've also tried the query using an * instead
of column names, with the same result. If I run the same query in SQL Server
Manager, all data exists so the problem only comes up in Access.
Any ideas?
- Follow-Ups:
- RE: No Foreign Keys retrieved
- From: Wes from Scottsdale
- RE: No Foreign Keys retrieved
- References:
- No Foreign Keys retrieved
- From: Wes from Scottsdale
- No Foreign Keys retrieved
- Prev by Date: Re: Why aren't there Application Events for Access?
- Next by Date: Re: Query not firing...sometimes
- Previous by thread: No Foreign Keys retrieved
- Next by thread: RE: No Foreign Keys retrieved
- Index(es):
Relevant Pages
|
Loading