A
Aubrey
An AccessProject Census Report uses several UDFs to Select subsets of Active
Accounts. On Notebooks, with local MSDE and Anonymous Merge Replica of
Database, these work correctly. But the Desktops, connected to SS2K on
SBS2003, return 0 (zero) records. Is it the system date format? an Access
setting? or the date compare operators?
Any ideas? or suggestions to resolve this?
CREATE FUNCTION [dbo].[fctsubrptCensusReferral](@prmStartDate datetime,
@prmEndDate datetime)
RETURNS TABLE
AS
RETURN ( SELECT TOP 100 PERCENT dbo.Patients.PID, dbo.Patients.[Patient
ID #], ISNULL(dbo.Patients.[Patient Name First] + N' ', N'')
+ dbo.Patients.[Patient Name Last] AS PtName,
dbo.Patients.[Date of Separation], dbo.Patients.[Referral Date],
dbo.tblProviders.ProvName,
dbo.Patients.[Patient Name Last],
dbo.Patients.[Patient Name First]
FROM dbo.Patients LEFT OUTER JOIN
dbo.tblProviders ON dbo.Patients.AdmitRN =
dbo.tblProviders.ProvID
WHERE (dbo.Patients.[Referral Date] >= @prmStartDate) AND
(dbo.Patients.[Referral Date] <= @prmEndDate) AND
(dbo.Patients.[Patient Name Last] IS NOT NULL) AND
(dbo.Patients.[Date of Admission] IS NULL)
ORDER BY dbo.Patients.[Referral Date], dbo.Patients.[Patient Name Last],
dbo.Patients.[Patient Name First] )
Migrated an Access Application (MDB/MDE) to an Access Project (ADP/ADE). An
Access Form provides the @prmDates via ServerFilter of the form:
@prmStartDate = forms.frmMainPtCare.tbxStartDate
- - - - - - -
Aubrey Kelley
Accounts. On Notebooks, with local MSDE and Anonymous Merge Replica of
Database, these work correctly. But the Desktops, connected to SS2K on
SBS2003, return 0 (zero) records. Is it the system date format? an Access
setting? or the date compare operators?
Any ideas? or suggestions to resolve this?
CREATE FUNCTION [dbo].[fctsubrptCensusReferral](@prmStartDate datetime,
@prmEndDate datetime)
RETURNS TABLE
AS
RETURN ( SELECT TOP 100 PERCENT dbo.Patients.PID, dbo.Patients.[Patient
ID #], ISNULL(dbo.Patients.[Patient Name First] + N' ', N'')
+ dbo.Patients.[Patient Name Last] AS PtName,
dbo.Patients.[Date of Separation], dbo.Patients.[Referral Date],
dbo.tblProviders.ProvName,
dbo.Patients.[Patient Name Last],
dbo.Patients.[Patient Name First]
FROM dbo.Patients LEFT OUTER JOIN
dbo.tblProviders ON dbo.Patients.AdmitRN =
dbo.tblProviders.ProvID
WHERE (dbo.Patients.[Referral Date] >= @prmStartDate) AND
(dbo.Patients.[Referral Date] <= @prmEndDate) AND
(dbo.Patients.[Patient Name Last] IS NOT NULL) AND
(dbo.Patients.[Date of Admission] IS NULL)
ORDER BY dbo.Patients.[Referral Date], dbo.Patients.[Patient Name Last],
dbo.Patients.[Patient Name First] )
Migrated an Access Application (MDB/MDE) to an Access Project (ADP/ADE). An
Access Form provides the @prmDates via ServerFilter of the form:
@prmStartDate = forms.frmMainPtCare.tbxStartDate
- - - - - - -
Aubrey Kelley