MailroomTracing.ADP with backend to MS SQL 2005 STD.
On the Tracking input form I need to add some data validation rules but I am not sure where to do it.
I was thinking that it should be in the form, but would like a little advice on this one.
Table is.
So the logic should be something like.
[BoxNumber] cannot equal [FileNumber] AND [BoxNumber] > 13 aphanumeric characters long AND [FileNumber] like [a-zA-Z]% but less than 10 characters long OR FileNumber] like [a-zA-Z][a-zA-Z][a-zA-Z]% but less than 13 characters long.
Thanks
John Fuhrman
On the Tracking input form I need to add some data validation rules but I am not sure where to do it.
I was thinking that it should be in the form, but would like a little advice on this one.
Table is.
Code:
USE [MailroomTracking]
GO
/****** Object: Table [dbo].[tblTrackingTable] Script Date: 05/12/2010 16:37:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tblTrackingTable](
[Tracking_ID] [int] IDENTITY(1,1) NOT NULL,
[EmployeeID] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[MachineName] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[BoxNumber] [varchar](45) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[FileNumber] [varchar](25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TrackingDate] [datetime] NULL,
CONSTRAINT [PK_tblTrackingTable] PRIMARY KEY CLUSTERED
(
[Tracking_ID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
So the logic should be something like.
[BoxNumber] cannot equal [FileNumber] AND [BoxNumber] > 13 aphanumeric characters long AND [FileNumber] like [a-zA-Z]% but less than 10 characters long OR FileNumber] like [a-zA-Z][a-zA-Z][a-zA-Z]% but less than 13 characters long.
Thanks
John Fuhrman