Index: Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs
===================================================================
--- Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs	(revision 941)
+++ Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs	(revision 964)
@@ -511,5 +511,5 @@
 		public void LoadResourceUserTable(bool bAllUsers)
 		{
-			string sCommandText = "SELECT BMXIEN RESOURCEUSER_ID, RESOURCENAME, INTERNAL[RESOURCENAME] RESOURCEID, OVERBOOK, MODIFY_SCHEDULE, MODIFY_APPOINTMENTS, USERNAME, INTERNAL[USERNAME] USERID FROM BSDX_RESOURCE_USER";
+			string sCommandText = "SELECT BMXIEN RESOURCEUSER_ID, RESOURCENAME, INTERNAL[RESOURCENAME] RESOURCEID, OVERBOOK, MODIFY_SCHEDULE, MODIFY_APPOINTMENTS, USERNAME, INTERNAL[USERNAME] USERID FROM BSDX_RESOURCE_USER WHERE INTERNAL[INSTITUTION]=" + m_ConnectInfo.DUZ2;
 			ConnectInfo.RPMSDataTable(sCommandText, "ResourceUser", m_dsGlobal);
 			Debug.Write("LoadGlobalRecordsets -- ResourceUser loaded\n");
Index: Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
===================================================================
--- Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs	(revision 941)
+++ Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs	(revision 964)
@@ -2095,4 +2095,11 @@
 				}
 
+                // Added check for making Walk-ins in the past. 9/28/2010
+                if (dStart.Date < DateTime.Today.Date)
+                {
+                    var result = MessageBox.Show("Are you sure you want to make a Walk-in in the past?", "Windows Scheduling", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);
+                    if (result == DialogResult.No) return;
+                }
+
 				/*
 				 * 8-10-05 Added overbook prompt for walkin
@@ -2172,5 +2179,12 @@
 				if (bRet == false)
 					return;
-				
+
+                // Added check for making Walk-ins in the past. 9/28/2010
+                if (dStart.Date < DateTime.Today.Date)
+                {
+                    var result = MessageBox.Show("Are you sure you want to make an appointment in the past?", "Windows Scheduling", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);
+                    if (result == DialogResult.No) return;
+                }
+
 				//Test dStart for Holiday
 				DataView dvHoliday = new DataView(this.DocManager.GlobalDataSet.Tables["HOLIDAY"]);
@@ -2657,4 +2671,11 @@
 				}
 
+                // Added check for making Walk-ins/appts in the past. 9/28/2010 //smh
+                if (e.StartTime < DateTime.Today.Date)
+                {
+                    var result = MessageBox.Show("Are you sure you want to make an appointment in the past?", "Windows Scheduling", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);
+                    if (result == DialogResult.No) return;
+                }
+
 				if (EditAppointmentEnabled(e.Resource) == false)
 					return;
@@ -2708,6 +2729,7 @@
 				m_Document.CreateAppointment(e.Appointment);
 			
-				string sError = AppointmentDeleteOne(e.Appointment.AppointmentKey);
-				if (sError != "")
+				
+                string sError = AppointmentDeleteOne(e.Appointment.AppointmentKey);
+                if (sError != "")
 				{
 					MessageBox.Show(sError);
@@ -2866,4 +2888,12 @@
 				if (bModAppts == false)
 					return;
+
+                // Added check for making Walk-ins/appts in the past. 9/28/2010 //smh
+                if (e.StartTime < DateTime.Today.Date)
+                {
+                    var result = MessageBox.Show("Are you sure you want to make an appointment in the past?", "Windows Scheduling", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);
+                    if (result == DialogResult.No) return;
+                }
+
 
 				bOverbook = (bool) this.m_htOverbook[e.Resource.ToString()];
Index: Scheduling/trunk/cs/bsdx0200GUISourceCode/DCheckIn.cs
===================================================================
--- Scheduling/trunk/cs/bsdx0200GUISourceCode/DCheckIn.cs	(revision 941)
+++ Scheduling/trunk/cs/bsdx0200GUISourceCode/DCheckIn.cs	(revision 964)
@@ -241,6 +241,5 @@
                 //an experiment (doesn't work yet, but leaving for future enlightenment): LINQ
                 var defProv = from Provider in m_dtProvider.AsEnumerable() 
-                              where 
-                                Provider["DEFAULT"] == "YES" 
+                              where Provider.Field<string>("DEFAULT") == "YES" 
                               select Provider;
 
Index: Scheduling/trunk/cs/bsdx0200GUISourceCode/dsPatientApptDisplay2.Designer.cs
===================================================================
--- Scheduling/trunk/cs/bsdx0200GUISourceCode/dsPatientApptDisplay2.Designer.cs	(revision 941)
+++ Scheduling/trunk/cs/bsdx0200GUISourceCode/dsPatientApptDisplay2.Designer.cs	(revision 964)
@@ -328,5 +328,5 @@
         [global::System.Serializable()]
         [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
-        public partial class PatientApptsDataTable : global::System.Data.TypedTableBase<PatientApptsRow> {
+        public partial class PatientApptsDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
             
             private global::System.Data.DataColumn columnName;
@@ -605,4 +605,10 @@
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+            public virtual global::System.Collections.IEnumerator GetEnumerator() {
+                return this.Rows.GetEnumerator();
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
             public override global::System.Data.DataTable Clone() {
                 PatientApptsDataTable cln = ((PatientApptsDataTable)(base.Clone()));
@@ -804,5 +810,5 @@
         [global::System.Serializable()]
         [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
-        public partial class BSDXResourceDataTable : global::System.Data.TypedTableBase<BSDXResourceRow> {
+        public partial class BSDXResourceDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
             
             private global::System.Data.DataColumn columnRESOURCEID;
@@ -915,4 +921,10 @@
                 this.Rows.Add(rowBSDXResourceRow);
                 return rowBSDXResourceRow;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+            public virtual global::System.Collections.IEnumerator GetEnumerator() {
+                return this.Rows.GetEnumerator();
             }
             
Index: Scheduling/trunk/cs/bsdx0200GUISourceCode/dsRebookAppts.Designer.cs
===================================================================
--- Scheduling/trunk/cs/bsdx0200GUISourceCode/dsRebookAppts.Designer.cs	(revision 941)
+++ Scheduling/trunk/cs/bsdx0200GUISourceCode/dsRebookAppts.Designer.cs	(revision 964)
@@ -328,5 +328,5 @@
         [global::System.Serializable()]
         [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
-        public partial class PatientApptsDataTable : global::System.Data.TypedTableBase<PatientApptsRow> {
+        public partial class PatientApptsDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
             
             private global::System.Data.DataColumn columnName;
@@ -617,4 +617,10 @@
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+            public virtual global::System.Collections.IEnumerator GetEnumerator() {
+                return this.Rows.GetEnumerator();
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
             public override global::System.Data.DataTable Clone() {
                 PatientApptsDataTable cln = ((PatientApptsDataTable)(base.Clone()));
@@ -819,5 +825,5 @@
         [global::System.Serializable()]
         [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
-        public partial class BSDXResourceDataTable : global::System.Data.TypedTableBase<BSDXResourceRow> {
+        public partial class BSDXResourceDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
             
             private global::System.Data.DataColumn columnRESOURCEID;
@@ -952,4 +958,10 @@
                 this.Rows.Add(rowBSDXResourceRow);
                 return rowBSDXResourceRow;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+            public virtual global::System.Collections.IEnumerator GetEnumerator() {
+                return this.Rows.GetEnumerator();
             }
             
