From shamil at smsconsulting.spb.ru Wed Sep 1 00:22:28 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 1 Sep 2010 09:22:28 +0400 Subject: [AccessD] Leave a bound form in a library. In-Reply-To: <4C7DAE73.8050309@colbyconsulting.com> References: <4C7DAE73.8050309@colbyconsulting.com> Message-ID: <75EBCCCF2213404FA9A85D2F5AC60CC1@nant> Hi John -- What about linked tables? I used them in library MS Access databases and that worked well for me and for my customers in many projects. Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 01, 2010 5:38 AM To: Access Developers discussion and problem solving Subject: [AccessD] Leave a bound form in a library. One of the challenges of using an "addin" library is placing forms in the add-in but having them load records from the FE. For example if I make a bound form to load the users table but I leave that form in the library (add-in), then when the form opens it tries to load the data from the table in the library. IOW a form tries to pull its data from whatever container it is placed in. One way around that is to use the "in 'MyFePath\MyDbName.mdb' syntax that is valid in access. As an example SQL to pull the records from the FE might look as follows: SELECT * FROM usystblPLSObjFrm in 'C:\Dev\C2DbPLS\C2DbPLS.mda' ORDER BY PLSF_Name; This would obviously pull all fields from the table usystblPLSObjFrm physically located in C:\Dev\C2DbPLS\C2DbPLS.mda. This is a PITA and requires jumping through hoops but that is the only solution that I know of. If any of you know of another solution please let me know since I do have to get adept at hoop jumping to do it my way. Thanks, -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Sep 1 00:37:57 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 01 Sep 2010 01:37:57 -0400 Subject: [AccessD] Leave a bound form in a library. In-Reply-To: <75EBCCCF2213404FA9A85D2F5AC60CC1@nant> References: <4C7DAE73.8050309@colbyconsulting.com> <75EBCCCF2213404FA9A85D2F5AC60CC1@nant> Message-ID: <4C7DE6B5.4060107@colbyconsulting.com> Shamil, I take it you mean linking the tables from the FE back into the lib so that the form opens seeing the security info for the FE. I did something like this but ended up with problems when the client wanted to use the library for two different FEs which needed different security info. John W. Colby www.ColbyConsulting.com Shamil Salakhetdinov wrote: > Hi John -- > > What about linked tables? > I used them in library MS Access databases and that worked well for me and > for my customers in many projects. > > Thank you. > > -- Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 01, 2010 5:38 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Leave a bound form in a library. > > One of the challenges of using an "addin" library is placing forms in the > add-in but having them > load records from the FE. For example if I make a bound form to load the > users table but I leave > that form in the library (add-in), then when the form opens it tries to load > the data from the table > in the library. IOW a form tries to pull its data from whatever container > it is placed in. > > One way around that is to use the "in 'MyFePath\MyDbName.mdb' syntax that is > valid in access. As an > example SQL to pull the records from the FE might look as follows: > > SELECT * FROM usystblPLSObjFrm in 'C:\Dev\C2DbPLS\C2DbPLS.mda' ORDER BY > PLSF_Name; > > This would obviously pull all fields from the table usystblPLSObjFrm > physically located in > C:\Dev\C2DbPLS\C2DbPLS.mda. > > This is a PITA and requires jumping through hoops but that is the only > solution that I know of. > > If any of you know of another solution please let me know since I do have to > get adept at hoop > jumping to do it my way. > > Thanks, From adtp at airtelmail.in Wed Sep 1 01:03:10 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Wed, 1 Sep 2010 11:33:10 +0530 Subject: [AccessD] Leave a bound form in a library. References: <4C7DAE73.8050309@colbyconsulting.com> Message-ID: <03536A84F9204C039C3743BECA55525B@personal4a8ede> AddIns ===== J.C., Once an AddIn is in loaded state, CodeDb & CodeProject refer to the AddIn, while CurrentDb & CurrentProject refer to host db. For using host db data as record source for a form belonging to the AddIn, four alternatives are available: Style 1 - Using a query executed via CodeDb, so as to populate a table belonging to the AddIn. With this approach, there is no need to use the "IN 'DbPath'" syntax. Style 2 - Using a recordset created via CodeDb, so as to populate a table belonging to the AddIn. Here too, there is no need to use the "IN 'DbPath'" syntax. Style 3 - Using a query executed via CurrentDb, so as to populate a table created in host db. In this case, use of "IN 'HostDbPath'" syntax becomes necessary. Style 4 - Using a recordset created via CurrentDb, so as to populate a table beloging to the AddIn. In this case, use of "IN 'AddInPath'" syntax becomes necessary. Sample code in load event of form belonging to the AddIn, for all the four alternative styles mentioned above, is placed below (at the end of this post). Practical use of various alternatives is demonstrated in my sample AddIn named Reports_AddIn. Only one form conforming to style 1 is in active use, while other forms included for the purpose of demonstrating styles 2 to 4 are prefixed with "ZZZ". The sample AddIn is in access 2000 file format and is available at Rogers Access Library. Link - http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=45 Certain interesting factors pertaining to Add-Ins in general, are summarized below for ready reference: 1 - For code contained in modules belonging to the Add-In: (a) If the AddIn is opened independently, CurrentProject / CurrentDb are identical to CodeProject / CodeDb respectively (all refer to AddIn itself). (b) If the AddIn is activated in host db, CurrentProject / CurrentDb refer to host db while CodeProject / CodeDb refer to AddIn itself. (c) Host applications AllForms / AllReports / AllModules collections can be accessed by code in AddIn, using CurrentProject. (d) Tables / Queries are not covered by collections like those in prev para. (e) While the AddIn is in activated state, any query / table / form / report, whether in host db or in the AddIn, as well as modules in host db can be opened directly by name, using DoCmd statement in AddIn code, without having to use any special qualifier. (f) If any pair of similar objects exists both in the AddIn as well as the host db, code in AddIn module will act upon the object located in the AddIn itself. (g) For code in AddIn module, when the AddIn is in activated mode, queries / recordests based upon CurrentDb do not recognize the tables in AddIn itself, unless referred via IN clause, giving full path of the AddIN. This path, returned by CodeProject.FullName, refers to the original location of AddIn mda file e.g. C:\SelfSaveAddIn\SelfSaveAddIn.mda and not the shadow AddIn file in AddIns folder in MyDocuments. There is no such problem if queries / recordsets are based upon CodeDb instead of CurrentDb. (h) Modules belonging to the AddIn can not be opened by DoCmd mehod or otherwise addressed, even by code in the AddIn. DoCmd.CopyObject command can however be used for copying modules from AddIn to host db. 2 - For code contained in modules belonging to the host db: (a) CurrentProject / CurrentDb are identical to CodeProject / CodeDb respectively, always referring to the host db, irrespective of the fact whether the AddIn is in activated state or not. (b) Whereas code in the AddIn can access all tables / queries / forms / reports, whether belonging to AddIn or the host db (see para 1 (e) above), code in host db can directly access only the objects belonging to host db itself. ====================================== Best wishes, A.D. Tejpal ------------ ' Code in load event of form belonging to the AddIn ' LstReports is the name of list box located on this form ' CodeDb & CodeProject refer to the AddIn ' while CurrentDb & CurrentProject refer to host db '=================================== ' Style 1 - Using append query executed via CodeDb ' (Table TA_Reports belongs to the AddIn) '----------------------------------------------------- Private Sub Form_Load() On Error GoTo ErrTrap Dim db As DAO.Database Dim obj As AccessObject Dim Qst As String ' In AdIn's code modules, when AddIn is ' opened independently, CurrentProject as ' well as CodeProject refer to the AddIn. ' When AddIn is loaded in host db, ' CurrentProject refers to the host db ' and CodeProject refers to the AddIn. Set db = CodeDb ' Refers to AddIn ' Clear table TA_Reports in the AddIn Qst = "DELETE FROM TA_Reports;" db.Execute Qst, dbFailOnError If CurrentProject.AllReports.Count > 0 Then Else Me.LstReports.Requery GoTo ExitPoint End If ' Cycle through AllReports collection of host db ' and append report names to table TA_Reports ' in the AddIn For Each obj In CurrentProject.AllReports Qst = "INSERT INTO TA_Reports " & _ "(RepName) VALUES ('" & _ obj.Name & "');" db.Execute Qst, dbFailOnError Next With Me.LstReports .Requery .SetFocus .Selected(0) = True End With ExitPoint: On Error Resume Next Set obj = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ErrTrap: MsgBox Err.Number & " - " & Err.Description Resume ExitPoint ' Note - Row source for list box is permanently ' set to query QA_Reports of AddIn End Sub '----------------------------------------------------- ' Style 2 - Using recordset opened via CodeDb ' (Table TA_Reports belongs to the AddIn) '----------------------------------------------------- Private Sub Form_Load() On Error GoTo ErrTrap Dim db As DAO.Database Dim obj As AccessObject Dim rst As DAO.Recordset Dim Qst As String ' In AdIn's code modules, when AddIn is ' opened independently, CurrentProject as ' well as CodeProject refer to the AddIn. ' When AddIn is loaded in host db, ' CurrentProject refers to the host db ' and CodeProject refers to the AddIn. Set db = CodeDb ' Refers to AddIn ' Clear table TA_Reports in the AddIn Qst = "DELETE FROM TA_Reports;" db.Execute Qst, dbFailOnError If CurrentProject.AllReports.Count > 0 Then Else Me.LstReports.Requery GoTo ExitPoint End If ' Cycle through AllReports collection of host db ' and append report names to table TA_Reports ' in the AddIn Set rst = db.OpenRecordset("TA_Reports") For Each obj In CurrentProject.AllReports With rst .AddNew .Fields(0) = obj.Name .Update End With Next rst.Close Set rst = Nothing With Me.LstReports .Requery .SetFocus .Selected(0) = True End With ExitPoint: On Error Resume Next Set obj = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ErrTrap: MsgBox Err.Number & " - " & Err.Description Resume ExitPoint ' Note - Row source for list box is permanently ' set to query QA_Reports of AddIn End Sub '----------------------------------------------------- ' Style 3 - Using append query executed via CurrentDb ' (Table TA_Reports is created in host db via code in ' AddIn) '----------------------------------------------------- Private Sub Form_Load() On Error Resume Next Dim db As DAO.Database Dim obj As AccessObject Dim Qst As String ' Clear the row source for list box ' (so as to free up table TA_Reports) Me.LstReports.RowSource = "" ' Note - In this particular case, the above ' statement is redundant as no permanent ' row source has been assigned to the list ' box. (Retained to demonstrate the idea). ' In AdIn's code modules, when AddIn is ' opened independently, CurrentProject as ' well as CodeProject refer to the AddIn. ' When AddIn is loaded in host db, ' CurrentProject refers to the host db ' and CodeProject refers to the AddIn. If CurrentProject.AllReports.Count > 0 Then Else Exit Sub End If Set db = CurrentDb ' Refers to host db ' Delete table TA_Reports in host db - if existing Qst = "DROP TABLE TA_Reports;" ' (A) db.Execute Qst, dbFailOnError ' Create table TA_Reports in host db Qst = "CREATE TABLE TA_Reports " & _ "(RepName TEXT);" ' (B) db.Execute Qst, dbFailOnError ' Cycle through AllReports collection and ' append report names to table TA_Reports ' in host db For Each obj In CurrentProject.AllReports Qst = "INSERT INTO TA_Reports " & _ "(RepName) VALUES ('" & _ obj.Name & "');" db.Execute Qst, dbFailOnError ' (C) Next Set obj = Nothing Set db = Nothing ' Set the row source for list box, based upon ' table TA_Reports in host db Me.LstReports.RowSource = _ "SELECT RepName " & _ "FROM TA_Reports IN '" & _ CurrentProject.FullName & _ "' ORDER BY RepName;" ' (D) Me.LstReports.SetFocus Me.LstReports.Selected(0) = True On Error GoTo 0 ' Note - When AddIn is loaded, statements (A) to (C) ' look for table TA_Reports in host db only. ' In statement (D) IN clause identifying the db ' to which the table belongs, is found necessary. ' (Apparently on account of the fact that the ' form & table do not belong to same db). End Sub '----------------------------------------------------- ' Style 4 - Using recordset opened via CurrentDb ' (Table TA_Reports belongs to the AddIn) '----------------------------------------------------- Private Sub Form_Load() On Error GoTo ErrTrap Dim db As DAO.Database Dim obj As AccessObject Dim rst As DAO.Recordset Dim Qst As String ' In AddIn's code modules, when AddIn is ' opened independently, CurrentProject as ' well as CodeProject refer to the AddIn. ' When AddIn is loaded in host db, ' CurrentProject refers to the host db ' and CodeProject refers to the AddIn. Set db = CurrentDb ' Refers to host db ' Clear table TA_Reports in the AddIn Qst = "DELETE FROM TA_Reports " & _ "IN '" & CodeProject.FullName & "';" db.Execute Qst, dbFailOnError If CurrentProject.AllReports.Count > 0 Then Else Me.LstReports.Requery GoTo ExitPoint End If ' Cycle through AllReports collection of host db ' and append report names to table TA_Reports ' in the AddIn Qst = "SELECT * FROM TA_Reports " & _ "IN '" & CodeProject.FullName & "';" Set rst = db.OpenRecordset(Qst) For Each obj In CurrentProject.AllReports With rst .AddNew .Fields(0) = obj.Name .Update End With Next rst.Close Set rst = Nothing With Me.LstReports .Requery .SetFocus .Selected(0) = True End With ExitPoint: On Error Resume Next Set obj = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ErrTrap: MsgBox Err.Number & " - " & Err.Description Resume ExitPoint ' Note - Row source for list box is permanently ' set to query QA_Reports of AddIn End Sub '----------------------------------------------------- ----- Original Message ----- From: jwcolby To: Access Developers discussion and problem solving Sent: Wednesday, September 01, 2010 07:07 Subject: [AccessD] Leave a bound form in a library. One of the challenges of using an "addin" library is placing forms in the add-in but having them load records from the FE. For example if I make a bound form to load the users table but I leave that form in the library (add-in), then when the form opens it tries to load the data from the table in the library. IOW a form tries to pull its data from whatever container it is placed in. One way around that is to use the "in 'MyFePath\MyDbName.mdb' syntax that is valid in access. As an example SQL to pull the records from the FE might look as follows: SELECT * FROM usystblPLSObjFrm in 'C:\Dev\C2DbPLS\C2DbPLS.mda' ORDER BY PLSF_Name; This would obviously pull all fields from the table usystblPLSObjFrm physically located in C:\Dev\C2DbPLS\C2DbPLS.mda. This is a PITA and requires jumping through hoops but that is the only solution that I know of. If any of you know of another solution please let me know since I do have to get adept at hoop jumping to do it my way. Thanks, -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Sep 1 02:16:03 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Sep 2010 09:16:03 +0200 Subject: [AccessD] Duplicates Query Message-ID: Hi Rocky Yes. Look up a not so old thread: http://databaseadvisors.com/pipermail/accessd/2009-May/068576.html /gustav >>> rockysmolin at bchacc.com 31-08-2010 18:42 >>> Dear List: I used the find duplicates query wizard to make a query to find duplicate records in a table. Is there a quick way to then delete all but one occurrence of the duplicated records? MTIA Rocky Smolin Beach Access Software 858-259-4334 From shamil at smsconsulting.spb.ru Wed Sep 1 02:19:09 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 1 Sep 2010 11:19:09 +0400 Subject: [AccessD] Leave a bound form in a library. In-Reply-To: <4C7DE6B5.4060107@colbyconsulting.com> References: <4C7DAE73.8050309@colbyconsulting.com><75EBCCCF2213404FA9A85D2F5AC60CC1@nant> <4C7DE6B5.4060107@colbyconsulting.com> Message-ID: <39BD352A6783430398FDC77C08CBA03C@nant> John -- Yes, I "mean linking the tables from the FE back into the lib". Why not "clone" library database for every FE? Did that client have two FEs stored in the same folder? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 01, 2010 9:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Leave a bound form in a library. Shamil, I take it you mean linking the tables from the FE back into the lib so that the form opens seeing the security info for the FE. I did something like this but ended up with problems when the client wanted to use the library for two different FEs which needed different security info. John W. Colby www.ColbyConsulting.com Shamil Salakhetdinov wrote: > Hi John -- > > What about linked tables? > I used them in library MS Access databases and that worked well for me and > for my customers in many projects. > > Thank you. > > -- Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 01, 2010 5:38 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Leave a bound form in a library. > > One of the challenges of using an "addin" library is placing forms in the > add-in but having them > load records from the FE. For example if I make a bound form to load the > users table but I leave > that form in the library (add-in), then when the form opens it tries to load > the data from the table > in the library. IOW a form tries to pull its data from whatever container > it is placed in. > > One way around that is to use the "in 'MyFePath\MyDbName.mdb' syntax that is > valid in access. As an > example SQL to pull the records from the FE might look as follows: > > SELECT * FROM usystblPLSObjFrm in 'C:\Dev\C2DbPLS\C2DbPLS.mda' ORDER BY > PLSF_Name; > > This would obviously pull all fields from the table usystblPLSObjFrm > physically located in > C:\Dev\C2DbPLS\C2DbPLS.mda. > > This is a PITA and requires jumping through hoops but that is the only > solution that I know of. > > If any of you know of another solution please let me know since I do have to > get adept at hoop > jumping to do it my way. > > Thanks, -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at mattysconsulting.com Wed Sep 1 08:30:10 2010 From: michael at mattysconsulting.com (Michael Mattys) Date: Wed, 1 Sep 2010 09:30:10 -0400 Subject: [AccessD] Leave a bound form in a library. In-Reply-To: <03536A84F9204C039C3743BECA55525B@personal4a8ede> References: <4C7DAE73.8050309@colbyconsulting.com> <03536A84F9204C039C3743BECA55525B@personal4a8ede> Message-ID: <1801DCA729AC4BEA98778EC3251BD05D@Gateway> Excellent, A.D. - that's what I was trying to think of late last night. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Wednesday, September 01, 2010 2:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Leave a bound form in a library. AddIns ===== J.C., Once an AddIn is in loaded state, CodeDb & CodeProject refer to the AddIn, while CurrentDb & CurrentProject refer to host db. For using host db data as record source for a form belonging to the AddIn, four alternatives are available: Style 1 - Using a query executed via CodeDb, so as to populate a table belonging to the AddIn. With this approach, there is no need to use the "IN 'DbPath'" syntax. Style 2 - Using a recordset created via CodeDb, so as to populate a table belonging to the AddIn. Here too, there is no need to use the "IN 'DbPath'" syntax. Style 3 - Using a query executed via CurrentDb, so as to populate a table created in host db. In this case, use of "IN 'HostDbPath'" syntax becomes necessary. Style 4 - Using a recordset created via CurrentDb, so as to populate a table beloging to the AddIn. In this case, use of "IN 'AddInPath'" syntax becomes necessary. Sample code in load event of form belonging to the AddIn, for all the four alternative styles mentioned above, is placed below (at the end of this post). Practical use of various alternatives is demonstrated in my sample AddIn named Reports_AddIn. Only one form conforming to style 1 is in active use, while other forms included for the purpose of demonstrating styles 2 to 4 are prefixed with "ZZZ". The sample AddIn is in access 2000 file format and is available at Rogers Access Library. Link - http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=45 Certain interesting factors pertaining to Add-Ins in general, are summarized below for ready reference: 1 - For code contained in modules belonging to the Add-In: (a) If the AddIn is opened independently, CurrentProject / CurrentDb are identical to CodeProject / CodeDb respectively (all refer to AddIn itself). (b) If the AddIn is activated in host db, CurrentProject / CurrentDb refer to host db while CodeProject / CodeDb refer to AddIn itself. (c) Host applications AllForms / AllReports / AllModules collections can be accessed by code in AddIn, using CurrentProject. (d) Tables / Queries are not covered by collections like those in prev para. (e) While the AddIn is in activated state, any query / table / form / report, whether in host db or in the AddIn, as well as modules in host db can be opened directly by name, using DoCmd statement in AddIn code, without having to use any special qualifier. (f) If any pair of similar objects exists both in the AddIn as well as the host db, code in AddIn module will act upon the object located in the AddIn itself. (g) For code in AddIn module, when the AddIn is in activated mode, queries / recordests based upon CurrentDb do not recognize the tables in AddIn itself, unless referred via IN clause, giving full path of the AddIN. This path, returned by CodeProject.FullName, refers to the original location of AddIn mda file e.g. C:\SelfSaveAddIn\SelfSaveAddIn.mda and not the shadow AddIn file in AddIns folder in MyDocuments. There is no such problem if queries / recordsets are based upon CodeDb instead of CurrentDb. (h) Modules belonging to the AddIn can not be opened by DoCmd mehod or otherwise addressed, even by code in the AddIn. DoCmd.CopyObject command can however be used for copying modules from AddIn to host db. 2 - For code contained in modules belonging to the host db: (a) CurrentProject / CurrentDb are identical to CodeProject / CodeDb respectively, always referring to the host db, irrespective of the fact whether the AddIn is in activated state or not. (b) Whereas code in the AddIn can access all tables / queries / forms / reports, whether belonging to AddIn or the host db (see para 1 (e) above), code in host db can directly access only the objects belonging to host db itself. ====================================== Best wishes, A.D. Tejpal ------------ ' Code in load event of form belonging to the AddIn ' LstReports is the name of list box located on this form ' CodeDb & CodeProject refer to the AddIn ' while CurrentDb & CurrentProject refer to host db '=================================== ' Style 1 - Using append query executed via CodeDb ' (Table TA_Reports belongs to the AddIn) '----------------------------------------------------- Private Sub Form_Load() On Error GoTo ErrTrap Dim db As DAO.Database Dim obj As AccessObject Dim Qst As String ' In AdIn's code modules, when AddIn is ' opened independently, CurrentProject as ' well as CodeProject refer to the AddIn. ' When AddIn is loaded in host db, ' CurrentProject refers to the host db ' and CodeProject refers to the AddIn. Set db = CodeDb ' Refers to AddIn ' Clear table TA_Reports in the AddIn Qst = "DELETE FROM TA_Reports;" db.Execute Qst, dbFailOnError If CurrentProject.AllReports.Count > 0 Then Else Me.LstReports.Requery GoTo ExitPoint End If ' Cycle through AllReports collection of host db ' and append report names to table TA_Reports ' in the AddIn For Each obj In CurrentProject.AllReports Qst = "INSERT INTO TA_Reports " & _ "(RepName) VALUES ('" & _ obj.Name & "');" db.Execute Qst, dbFailOnError Next With Me.LstReports .Requery .SetFocus .Selected(0) = True End With ExitPoint: On Error Resume Next Set obj = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ErrTrap: MsgBox Err.Number & " - " & Err.Description Resume ExitPoint ' Note - Row source for list box is permanently ' set to query QA_Reports of AddIn End Sub '----------------------------------------------------- ' Style 2 - Using recordset opened via CodeDb ' (Table TA_Reports belongs to the AddIn) '----------------------------------------------------- Private Sub Form_Load() On Error GoTo ErrTrap Dim db As DAO.Database Dim obj As AccessObject Dim rst As DAO.Recordset Dim Qst As String ' In AdIn's code modules, when AddIn is ' opened independently, CurrentProject as ' well as CodeProject refer to the AddIn. ' When AddIn is loaded in host db, ' CurrentProject refers to the host db ' and CodeProject refers to the AddIn. Set db = CodeDb ' Refers to AddIn ' Clear table TA_Reports in the AddIn Qst = "DELETE FROM TA_Reports;" db.Execute Qst, dbFailOnError If CurrentProject.AllReports.Count > 0 Then Else Me.LstReports.Requery GoTo ExitPoint End If ' Cycle through AllReports collection of host db ' and append report names to table TA_Reports ' in the AddIn Set rst = db.OpenRecordset("TA_Reports") For Each obj In CurrentProject.AllReports With rst .AddNew .Fields(0) = obj.Name .Update End With Next rst.Close Set rst = Nothing With Me.LstReports .Requery .SetFocus .Selected(0) = True End With ExitPoint: On Error Resume Next Set obj = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ErrTrap: MsgBox Err.Number & " - " & Err.Description Resume ExitPoint ' Note - Row source for list box is permanently ' set to query QA_Reports of AddIn End Sub '----------------------------------------------------- ' Style 3 - Using append query executed via CurrentDb ' (Table TA_Reports is created in host db via code in ' AddIn) '----------------------------------------------------- Private Sub Form_Load() On Error Resume Next Dim db As DAO.Database Dim obj As AccessObject Dim Qst As String ' Clear the row source for list box ' (so as to free up table TA_Reports) Me.LstReports.RowSource = "" ' Note - In this particular case, the above ' statement is redundant as no permanent ' row source has been assigned to the list ' box. (Retained to demonstrate the idea). ' In AdIn's code modules, when AddIn is ' opened independently, CurrentProject as ' well as CodeProject refer to the AddIn. ' When AddIn is loaded in host db, ' CurrentProject refers to the host db ' and CodeProject refers to the AddIn. If CurrentProject.AllReports.Count > 0 Then Else Exit Sub End If Set db = CurrentDb ' Refers to host db ' Delete table TA_Reports in host db - if existing Qst = "DROP TABLE TA_Reports;" ' (A) db.Execute Qst, dbFailOnError ' Create table TA_Reports in host db Qst = "CREATE TABLE TA_Reports " & _ "(RepName TEXT);" ' (B) db.Execute Qst, dbFailOnError ' Cycle through AllReports collection and ' append report names to table TA_Reports ' in host db For Each obj In CurrentProject.AllReports Qst = "INSERT INTO TA_Reports " & _ "(RepName) VALUES ('" & _ obj.Name & "');" db.Execute Qst, dbFailOnError ' (C) Next Set obj = Nothing Set db = Nothing ' Set the row source for list box, based upon ' table TA_Reports in host db Me.LstReports.RowSource = _ "SELECT RepName " & _ "FROM TA_Reports IN '" & _ CurrentProject.FullName & _ "' ORDER BY RepName;" ' (D) Me.LstReports.SetFocus Me.LstReports.Selected(0) = True On Error GoTo 0 ' Note - When AddIn is loaded, statements (A) to (C) ' look for table TA_Reports in host db only. ' In statement (D) IN clause identifying the db ' to which the table belongs, is found necessary. ' (Apparently on account of the fact that the ' form & table do not belong to same db). End Sub '----------------------------------------------------- ' Style 4 - Using recordset opened via CurrentDb ' (Table TA_Reports belongs to the AddIn) '----------------------------------------------------- Private Sub Form_Load() On Error GoTo ErrTrap Dim db As DAO.Database Dim obj As AccessObject Dim rst As DAO.Recordset Dim Qst As String ' In AddIn's code modules, when AddIn is ' opened independently, CurrentProject as ' well as CodeProject refer to the AddIn. ' When AddIn is loaded in host db, ' CurrentProject refers to the host db ' and CodeProject refers to the AddIn. Set db = CurrentDb ' Refers to host db ' Clear table TA_Reports in the AddIn Qst = "DELETE FROM TA_Reports " & _ "IN '" & CodeProject.FullName & "';" db.Execute Qst, dbFailOnError If CurrentProject.AllReports.Count > 0 Then Else Me.LstReports.Requery GoTo ExitPoint End If ' Cycle through AllReports collection of host db ' and append report names to table TA_Reports ' in the AddIn Qst = "SELECT * FROM TA_Reports " & _ "IN '" & CodeProject.FullName & "';" Set rst = db.OpenRecordset(Qst) For Each obj In CurrentProject.AllReports With rst .AddNew .Fields(0) = obj.Name .Update End With Next rst.Close Set rst = Nothing With Me.LstReports .Requery .SetFocus .Selected(0) = True End With ExitPoint: On Error Resume Next Set obj = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ErrTrap: MsgBox Err.Number & " - " & Err.Description Resume ExitPoint ' Note - Row source for list box is permanently ' set to query QA_Reports of AddIn End Sub '----------------------------------------------------- ----- Original Message ----- From: jwcolby To: Access Developers discussion and problem solving Sent: Wednesday, September 01, 2010 07:07 Subject: [AccessD] Leave a bound form in a library. One of the challenges of using an "addin" library is placing forms in the add-in but having them load records from the FE. For example if I make a bound form to load the users table but I leave that form in the library (add-in), then when the form opens it tries to load the data from the table in the library. IOW a form tries to pull its data from whatever container it is placed in. One way around that is to use the "in 'MyFePath\MyDbName.mdb' syntax that is valid in access. As an example SQL to pull the records from the FE might look as follows: SELECT * FROM usystblPLSObjFrm in 'C:\Dev\C2DbPLS\C2DbPLS.mda' ORDER BY PLSF_Name; This would obviously pull all fields from the table usystblPLSObjFrm physically located in C:\Dev\C2DbPLS\C2DbPLS.mda. This is a PITA and requires jumping through hoops but that is the only solution that I know of. If any of you know of another solution please let me know since I do have to get adept at hoop jumping to do it my way. Thanks, -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Sep 1 10:38:33 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 1 Sep 2010 08:38:33 -0700 Subject: [AccessD] Duplicates Query In-Reply-To: References: Message-ID: Gustav: Looks right but it has step 2 as: 2. Create a totals Query1 which shows GroupBy the name, and First of the PK. I assume totals query = summation query. But "GroupBy the name" - what does 'name' refer to? And how to do First of the PK? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 01, 2010 12:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicates Query Hi Rocky Yes. Look up a not so old thread: http://databaseadvisors.com/pipermail/accessd/2009-May/068576.html /gustav >>> rockysmolin at bchacc.com 31-08-2010 18:42 >>> Dear List: I used the find duplicates query wizard to make a query to find duplicate records in a table. Is there a quick way to then delete all but one occurrence of the duplicated records? MTIA Rocky Smolin Beach Access Software 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Sep 1 10:48:57 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Sep 2010 17:48:57 +0200 Subject: [AccessD] Duplicates Query Message-ID: Hi Rocky Use First or Last or Max or Min - just one that will return only one PK of the records where the field named "name" holds identical values. /gustav >>> rockysmolin at bchacc.com 01-09-2010 17:38 >>> Gustav: Looks right but it has step 2 as: 2. Create a totals Query1 which shows GroupBy the name, and First of the PK. I assume totals query = summation query. But "GroupBy the name" - what does 'name' refer to? And how to do First of the PK? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 01, 2010 12:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicates Query Hi Rocky Yes. Look up a not so old thread: http://databaseadvisors.com/pipermail/accessd/2009-May/068576.html /gustav >>> rockysmolin at bchacc.com 31-08-2010 18:42 >>> Dear List: I used the find duplicates query wizard to make a query to find duplicate records in a table. Is there a quick way to then delete all but one occurrence of the duplicated records? MTIA Rocky Smolin Beach Access Software 858-259-4334 From charlotte.foust at gmail.com Wed Sep 1 10:59:38 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Wed, 1 Sep 2010 08:59:38 -0700 Subject: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef In-Reply-To: References: Message-ID: I don't think I understand what you're doing. What are you trying to output the temporary query to? I've never tried to output a temporary query using code, so I'm not sure whether or not it's possible. A little more information might help. Charlotte Foust On Tue, Aug 31, 2010 at 3:32 PM, Brad Marks wrote: > All, > > > > Is it possible to use the "DoCmd.OutputTo acOutputQuery" command with a > Temporary QueryDef? > > > > I have experimented but cannot get this to work. ?I think that I am > missing something. > > > > An example would be most appreciated. > > > > Thanks, > > Brad > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Wed Sep 1 10:59:45 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 01 Sep 2010 11:59:45 -0400 Subject: [AccessD] Leave a bound form in a library. In-Reply-To: <39BD352A6783430398FDC77C08CBA03C@nant> References: <4C7DAE73.8050309@colbyconsulting.com><75EBCCCF2213404FA9A85D2F5AC60CC1@nant> <4C7DE6B5.4060107@colbyconsulting.com> <39BD352A6783430398FDC77C08CBA03C@nant> Message-ID: <4C7E7871.2010502@colbyconsulting.com> > Did that client have two FEs stored in the same folder? Yes. Of course I can work around the issue but I prefer to have it "just work". Of course having the tables in the Fe itself introduces issues as well. There is no free lunch. John W. Colby www.ColbyConsulting.com Shamil Salakhetdinov wrote: > John -- > > Yes, I "mean linking the tables from the FE back into the lib". > Why not "clone" library database for every FE? > Did that client have two FEs stored in the same folder? > > -- Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 01, 2010 9:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Leave a bound form in a library. > > Shamil, > > I take it you mean linking the tables from the FE back into the lib so that > the form opens seeing > the security info for the FE. > > I did something like this but ended up with problems when the client wanted > to use the library for > two different FEs which needed different security info. > > John W. Colby > www.ColbyConsulting.com > > > Shamil Salakhetdinov wrote: >> Hi John -- >> >> What about linked tables? >> I used them in library MS Access databases and that worked well for me and >> for my customers in many projects. >> >> Thank you. >> >> -- Shamil >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, September 01, 2010 5:38 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Leave a bound form in a library. >> >> One of the challenges of using an "addin" library is placing forms in the >> add-in but having them >> load records from the FE. For example if I make a bound form to load the >> users table but I leave >> that form in the library (add-in), then when the form opens it tries to > load >> the data from the table >> in the library. IOW a form tries to pull its data from whatever container >> it is placed in. >> >> One way around that is to use the "in 'MyFePath\MyDbName.mdb' syntax that > is >> valid in access. As an >> example SQL to pull the records from the FE might look as follows: >> >> SELECT * FROM usystblPLSObjFrm in 'C:\Dev\C2DbPLS\C2DbPLS.mda' ORDER BY >> PLSF_Name; >> >> This would obviously pull all fields from the table usystblPLSObjFrm >> physically located in >> C:\Dev\C2DbPLS\C2DbPLS.mda. >> >> This is a PITA and requires jumping through hoops but that is the only >> solution that I know of. >> >> If any of you know of another solution please let me know since I do have > to >> get adept at hoop >> jumping to do it my way. >> >> Thanks, From jwcolby at colbyconsulting.com Wed Sep 1 11:14:05 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 01 Sep 2010 12:14:05 -0400 Subject: [AccessD] Leave a bound form in a library. In-Reply-To: <03536A84F9204C039C3743BECA55525B@personal4a8ede> References: <4C7DAE73.8050309@colbyconsulting.com> <03536A84F9204C039C3743BECA55525B@personal4a8ede> Message-ID: <4C7E7BCD.7070708@colbyconsulting.com> A.D. Thanks for that. I am working on a Presentation Level Security System (PLSS) AKA my Lightweight Security System. The PLSS is not an add-in in the typical sense of having an entry in the Add-in menu of the tool bar. PLSS is really a set of forms in the PLSS which the security administrator uses to set up security, but mostly (on a day to day basis to the user) it is a security framework that forces a user log in, associates a user with a group or groups, associates application forms with a group / groups and controls the forms based on a VENN diagram intersection of the user's groups and the form's groups. IOW it emulates Windows Security system for Access objects. I really do not know how your "add-in factors" relate to using the forms stored in the library to access data stored in the FE. The actual code in the library pretty much just works for my purposes. I have been doing this kind of thing since somewhere around 2001. Access 2K brings some interesting challenges as it has a bug relating to circular references between a form pointing to a class which sinks events for the form. That bug was fixed in Access 2002. The PLSS is now working at the form level, for Access 2002 and above, and I have a test / demo database which exercises the user / group / form security in a realistic (if small) environment. John W. Colby www.ColbyConsulting.com A.D. Tejpal wrote: > AddIns > ===== > > J.C., From shamil at smsconsulting.spb.ru Wed Sep 1 11:50:24 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 1 Sep 2010 20:50:24 +0400 Subject: [AccessD] Leave a bound form in a library. In-Reply-To: <4C7E7871.2010502@colbyconsulting.com> References: <4C7DAE73.8050309@colbyconsulting.com><75EBCCCF2213404FA9A85D2F5AC60CC1@nant> <4C7DE6B5.4060107@colbyconsulting.com><39BD352A6783430398FDC77C08CBA03C@nant> <4C7E7871.2010502@colbyconsulting.com> Message-ID: <7F52BF6670EC4B5ABF85EAD85B6242EA@nant> John -- I see. But then why rebinding form in Open or Load event to a query, which uses IN '' clause, is considered as not so efficient workaround there? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 01, 2010 8:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Leave a bound form in a library. > Did that client have two FEs stored in the same folder? Yes. Of course I can work around the issue but I prefer to have it "just work". Of course having the tables in the Fe itself introduces issues as well. There is no free lunch. John W. Colby www.ColbyConsulting.com Shamil Salakhetdinov wrote: > John -- > > Yes, I "mean linking the tables from the FE back into the lib". > Why not "clone" library database for every FE? > Did that client have two FEs stored in the same folder? > > -- Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 01, 2010 9:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Leave a bound form in a library. > > Shamil, > > I take it you mean linking the tables from the FE back into the lib so that > the form opens seeing > the security info for the FE. > > I did something like this but ended up with problems when the client wanted > to use the library for > two different FEs which needed different security info. > > John W. Colby > www.ColbyConsulting.com > > > Shamil Salakhetdinov wrote: >> Hi John -- >> >> What about linked tables? >> I used them in library MS Access databases and that worked well for me and >> for my customers in many projects. >> >> Thank you. >> >> -- Shamil >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, September 01, 2010 5:38 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Leave a bound form in a library. >> >> One of the challenges of using an "addin" library is placing forms in the >> add-in but having them >> load records from the FE. For example if I make a bound form to load the >> users table but I leave >> that form in the library (add-in), then when the form opens it tries to > load >> the data from the table >> in the library. IOW a form tries to pull its data from whatever container >> it is placed in. >> >> One way around that is to use the "in 'MyFePath\MyDbName.mdb' syntax that > is >> valid in access. As an >> example SQL to pull the records from the FE might look as follows: >> >> SELECT * FROM usystblPLSObjFrm in 'C:\Dev\C2DbPLS\C2DbPLS.mda' ORDER BY >> PLSF_Name; >> >> This would obviously pull all fields from the table usystblPLSObjFrm >> physically located in >> C:\Dev\C2DbPLS\C2DbPLS.mda. >> >> This is a PITA and requires jumping through hoops but that is the only >> solution that I know of. >> >> If any of you know of another solution please let me know since I do have > to >> get adept at hoop >> jumping to do it my way. >> >> Thanks, -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Sep 1 11:56:45 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 1 Sep 2010 09:56:45 -0700 Subject: [AccessD] Duplicates Query In-Reply-To: References: Message-ID: <7D5AA81A2E1445BA9DD6F453C4344866@HAL9005> Gustav: There are actually three fields that have to match up to make a duplicate. I suppose I could add another field which is the concatenation of those three but that seems kludgey. Any other more elegant solution? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 01, 2010 8:49 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicates Query Hi Rocky Use First or Last or Max or Min - just one that will return only one PK of the records where the field named "name" holds identical values. /gustav >>> rockysmolin at bchacc.com 01-09-2010 17:38 >>> Gustav: Looks right but it has step 2 as: 2. Create a totals Query1 which shows GroupBy the name, and First of the PK. I assume totals query = summation query. But "GroupBy the name" - what does 'name' refer to? And how to do First of the PK? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 01, 2010 12:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicates Query Hi Rocky Yes. Look up a not so old thread: http://databaseadvisors.com/pipermail/accessd/2009-May/068576.html /gustav >>> rockysmolin at bchacc.com 31-08-2010 18:42 >>> Dear List: I used the find duplicates query wizard to make a query to find duplicate records in a table. Is there a quick way to then delete all but one occurrence of the duplicated records? MTIA Rocky Smolin Beach Access Software 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Sep 1 12:09:15 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Sep 2010 19:09:15 +0200 Subject: [AccessD] Duplicates Query Message-ID: Hi Rocky I believe you will have to group by these fields in a way to build a unique string, say: Group By [Field1] & "-" & [Field2] & "-" & [Field3] /gustav >>> rockysmolin at bchacc.com 01-09-2010 18:56 >>> Gustav: There are actually three fields that have to match up to make a duplicate. I suppose I could add another field which is the concatenation of those three but that seems kludgey. Any other more elegant solution? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 01, 2010 8:49 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicates Query Hi Rocky Use First or Last or Max or Min - just one that will return only one PK of the records where the field named "name" holds identical values. /gustav >>> rockysmolin at bchacc.com 01-09-2010 17:38 >>> Gustav: Looks right but it has step 2 as: 2. Create a totals Query1 which shows GroupBy the name, and First of the PK. I assume totals query = summation query. But "GroupBy the name" - what does 'name' refer to? And how to do First of the PK? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 01, 2010 12:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicates Query Hi Rocky Yes. Look up a not so old thread: http://databaseadvisors.com/pipermail/accessd/2009-May/068576.html /gustav >>> rockysmolin at bchacc.com 31-08-2010 18:42 >>> Dear List: I used the find duplicates query wizard to make a query to find duplicate records in a table. Is there a quick way to then delete all but one occurrence of the duplicated records? MTIA Rocky Smolin Beach Access Software 858-259-4334 From adtp at airtelmail.in Wed Sep 1 12:05:40 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Wed, 1 Sep 2010 22:35:40 +0530 Subject: [AccessD] Leave a bound form in a library. References: <4C7DAE73.8050309@colbyconsulting.com><03536A84F9204C039C3743BECA55525B@personal4a8ede> <1801DCA729AC4BEA98778EC3251BD05D@Gateway> Message-ID: Thanks Michael! So nice of you. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Michael Mattys To: 'Access Developers discussion and problem solving' Sent: Wednesday, September 01, 2010 19:00 Subject: Re: [AccessD] Leave a bound form in a library. Excellent, A.D. - that's what I was trying to think of late last night. Michael R Mattys Business Process Developers www.mattysconsulting.com From jwcolby at colbyconsulting.com Wed Sep 1 12:09:37 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 01 Sep 2010 13:09:37 -0400 Subject: [AccessD] Leave a bound form in a library. In-Reply-To: <7F52BF6670EC4B5ABF85EAD85B6242EA@nant> References: <4C7DAE73.8050309@colbyconsulting.com><75EBCCCF2213404FA9A85D2F5AC60CC1@nant> <4C7DE6B5.4060107@colbyconsulting.com><39BD352A6783430398FDC77C08CBA03C@nant> <4C7E7871.2010502@colbyconsulting.com> <7F52BF6670EC4B5ABF85EAD85B6242EA@nant> Message-ID: <4C7E88D1.7050307@colbyconsulting.com> Shamil, that workaround only has to be applied to the forms stored in my library. Obviously there is a development cost but after that it works fine. I don't have to do that for the forms in the application that I am applying security to. John W. Colby www.ColbyConsulting.com Shamil Salakhetdinov wrote: > John -- > > I see. But then why rebinding form in Open or Load event to a query, which > uses IN '' clause, is considered as not so efficient workaround there? > > -- Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 01, 2010 8:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Leave a bound form in a library. > > > Did that client have two FEs stored in the same folder? > > Yes. Of course I can work around the issue but I prefer to have it "just > work". Of course having > the tables in the Fe itself introduces issues as well. There is no free > lunch. > > John W. Colby > www.ColbyConsulting.com > > > Shamil Salakhetdinov wrote: >> John -- >> >> Yes, I "mean linking the tables from the FE back into the lib". >> Why not "clone" library database for every FE? >> Did that client have two FEs stored in the same folder? >> >> -- Shamil >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, September 01, 2010 9:38 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Leave a bound form in a library. >> >> Shamil, >> >> I take it you mean linking the tables from the FE back into the lib so > that >> the form opens seeing >> the security info for the FE. >> >> I did something like this but ended up with problems when the client > wanted >> to use the library for >> two different FEs which needed different security info. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Shamil Salakhetdinov wrote: >>> Hi John -- >>> >>> What about linked tables? >>> I used them in library MS Access databases and that worked well for me > and >>> for my customers in many projects. >>> >>> Thank you. >>> >>> -- Shamil >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Wednesday, September 01, 2010 5:38 AM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Leave a bound form in a library. >>> >>> One of the challenges of using an "addin" library is placing forms in the >>> add-in but having them >>> load records from the FE. For example if I make a bound form to load the >>> users table but I leave >>> that form in the library (add-in), then when the form opens it tries to >> load >>> the data from the table >>> in the library. IOW a form tries to pull its data from whatever > container >>> it is placed in. >>> >>> One way around that is to use the "in 'MyFePath\MyDbName.mdb' syntax that >> is >>> valid in access. As an >>> example SQL to pull the records from the FE might look as follows: >>> >>> SELECT * FROM usystblPLSObjFrm in 'C:\Dev\C2DbPLS\C2DbPLS.mda' ORDER BY >>> PLSF_Name; >>> >>> This would obviously pull all fields from the table usystblPLSObjFrm >>> physically located in >>> C:\Dev\C2DbPLS\C2DbPLS.mda. >>> >>> This is a PITA and requires jumping through hoops but that is the only >>> solution that I know of. >>> >>> If any of you know of another solution please let me know since I do have >> to >>> get adept at hoop >>> jumping to do it my way. >>> >>> Thanks, From Lambert.Heenan at chartisinsurance.com Wed Sep 1 12:27:48 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 1 Sep 2010 13:27:48 -0400 Subject: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef In-Reply-To: References: Message-ID: No you cannot do that. OutputTo requires the name of the object being output. So you would think that this would work... Dim db As Database Dim qdfTemp As QueryDef Set db = fnThisDb With db ' Create temporary QueryDef. Set qdfTemp = .CreateQueryDef("", _ "SELECT * FROM SomeTable") DoCmd.OutputTo acOutputQuery, qdfTemp.Name, acFormatRTF, "H:\test.trf" .Close End With If you code Debug.Print qdfTemp.Name then you will see the name is #Temporary QueryDef#, but if you try using qdefTemp.name as show above then all you get is an error 3011, [Jet] database engine could not find the object '#Temporary QueryDef#'. So you need to create a real querydef, with a real name, and then delete it afterwards... Dim qdfNew as QuerDef Set qdfNew = .CreateQueryDef("NewQueryDef", "SELECT * FROM SomeTable") DoCmd.OutputTo acOutputQuery, "NewQueryDef", acFormatRTF, "H:\test.trf" CurrentDb.QueryDefs.Delete qdfNew.Name Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 01, 2010 12:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef I don't think I understand what you're doing. What are you trying to output the temporary query to? I've never tried to output a temporary query using code, so I'm not sure whether or not it's possible. A little more information might help. Charlotte Foust On Tue, Aug 31, 2010 at 3:32 PM, Brad Marks wrote: > All, > > > > Is it possible to use the "DoCmd.OutputTo acOutputQuery" command with > a Temporary QueryDef? > > > > I have experimented but cannot get this to work. ?I think that I am > missing something. > > > > An example would be most appreciated. > > > > Thanks, > > Brad > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Wed Sep 1 12:32:29 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Wed, 1 Sep 2010 23:02:29 +0530 Subject: [AccessD] Duplicates Query References: Message-ID: <366BEE3635EF4521A10EF10284B52FE9@personal4a8ede> Rocky, You could also try two other alternatives as per sample queries given below, for removing all duplicates beyond the first occurrence. F1 to F4 are the names of four fields, combined contents of which, determine the duplicate status. ID is the name of PK field. Query Q_DEL_DupsBeyondFirst_ByNotInTop1 is expected to be more efficient as compared to Q_DEL_DupsBeyondFirst_ByCount. (There would be only one record featuring in the Not In clause). Note: (a) Individual comparison of fields, one at a time, has been preferred over using their concatenated contents, so as to eliminate the risk of inconsistent results arising out of potential sliding match. Moreover, contrived concatenation can detract from optimum performance. (b) Use of Nz() function while comparing the field values, eliminating the potential for erratic results arising out of Null values getting compared via = operator. Best wishes, A.D. Tejpal ------------ Q_DEL_DupsBeyondFirst_ByNotInTop1 ========================================== DELETE * FROM T_Data WHERE T_Data.ID Not In (SELECT TOP 1 ID FROM T_Data AS T WHERE Nz(T.F1, "") = Nz(T_Data.F1, "") AND Nz(T.F2, "") = Nz(T_Data.F2, "") AND Nz(T.F3, "") = Nz(T_Data.F3, "") AND Nz(T.F4, "") = Nz(T_Data.F4, "") ORDER BY ID); ========================================== Q_DEL_DupsBeyondFirst_ByCount ========================================== DELETE * FROM T_Data WHERE (SELECT Count(*) FROM T_Data AS T WHERE Nz(T.F1, "") = Nz(T_Data.F1, "") AND Nz(T.F2, "") = Nz(T_Data.F2, "") AND Nz(T.F3, "") = Nz(T_Data.F3, "") AND Nz(T.F4, "") = Nz(T_Data.F4, "") AND T.ID <= T_Data.ID) > 1; ========================================== ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Wednesday, September 01, 2010 22:39 Subject: Re: [AccessD] Duplicates Query Hi Rocky I believe you will have to group by these fields in a way to build a unique string, say: Group By [Field1] & "-" & [Field2] & "-" & [Field3] /gustav >>> rockysmolin at bchacc.com 01-09-2010 18:56 >>> Gustav: There are actually three fields that have to match up to make a duplicate. I suppose I could add another field which is the concatenation of those three but that seems kludgey. Any other more elegant solution? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 01, 2010 8:49 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicates Query Hi Rocky Use First or Last or Max or Min - just one that will return only one PK of the records where the field named "name" holds identical values. /gustav >>> rockysmolin at bchacc.com 01-09-2010 17:38 >>> Gustav: Looks right but it has step 2 as: 2. Create a totals Query1 which shows GroupBy the name, and First of the PK. I assume totals query = summation query. But "GroupBy the name" - what does 'name' refer to? And how to do First of the PK? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 01, 2010 12:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicates Query Hi Rocky Yes. Look up a not so old thread: http://databaseadvisors.com/pipermail/accessd/2009-May/068576.html /gustav >>> rockysmolin at bchacc.com 31-08-2010 18:42 >>> Dear List: I used the find duplicates query wizard to make a query to find duplicate records in a table. Is there a quick way to then delete all but one occurrence of the duplicated records? MTIA Rocky Smolin Beach Access Software 858-259-4334 From accessd at shaw.ca Wed Sep 1 12:52:18 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 1 Sep 2010 10:52:18 -0700 Subject: [AccessD] Leave a bound form in a library. In-Reply-To: <4C7E88D1.7050307@colbyconsulting.com> References: <4C7DAE73.8050309@colbyconsulting.com> <75EBCCCF2213404FA9A85D2F5AC60CC1@nant> <4C7DE6B5.4060107@colbyconsulting.com> <39BD352A6783430398FDC77C08CBA03C@nant> <4C7E7871.2010502@colbyconsulting.com> <7F52BF6670EC4B5ABF85EAD85B6242EA@nant> <4C7E88D1.7050307@colbyconsulting.com> Message-ID: John: I have not been following this thread carefully but does not a form and/or module loaded/called from either the local MDB or a remote one, reside in memory until a unhandled error occurs or the FE MDB is exited? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 01, 2010 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Leave a bound form in a library. Shamil, that workaround only has to be applied to the forms stored in my library. Obviously there is a development cost but after that it works fine. I don't have to do that for the forms in the application that I am applying security to. John W. Colby www.ColbyConsulting.com Shamil Salakhetdinov wrote: > John -- > > I see. But then why rebinding form in Open or Load event to a query, which > uses IN '' clause, is considered as not so efficient workaround there? > > -- Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 01, 2010 8:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Leave a bound form in a library. > > > Did that client have two FEs stored in the same folder? > > Yes. Of course I can work around the issue but I prefer to have it "just > work". Of course having > the tables in the Fe itself introduces issues as well. There is no free > lunch. > > John W. Colby > www.ColbyConsulting.com > > > Shamil Salakhetdinov wrote: >> John -- >> >> Yes, I "mean linking the tables from the FE back into the lib". >> Why not "clone" library database for every FE? >> Did that client have two FEs stored in the same folder? >> >> -- Shamil >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, September 01, 2010 9:38 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Leave a bound form in a library. >> >> Shamil, >> >> I take it you mean linking the tables from the FE back into the lib so > that >> the form opens seeing >> the security info for the FE. >> >> I did something like this but ended up with problems when the client > wanted >> to use the library for >> two different FEs which needed different security info. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Shamil Salakhetdinov wrote: >>> Hi John -- >>> >>> What about linked tables? >>> I used them in library MS Access databases and that worked well for me > and >>> for my customers in many projects. >>> >>> Thank you. >>> >>> -- Shamil >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Wednesday, September 01, 2010 5:38 AM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Leave a bound form in a library. >>> >>> One of the challenges of using an "addin" library is placing forms in the >>> add-in but having them >>> load records from the FE. For example if I make a bound form to load the >>> users table but I leave >>> that form in the library (add-in), then when the form opens it tries to >> load >>> the data from the table >>> in the library. IOW a form tries to pull its data from whatever > container >>> it is placed in. >>> >>> One way around that is to use the "in 'MyFePath\MyDbName.mdb' syntax that >> is >>> valid in access. As an >>> example SQL to pull the records from the FE might look as follows: >>> >>> SELECT * FROM usystblPLSObjFrm in 'C:\Dev\C2DbPLS\C2DbPLS.mda' ORDER BY >>> PLSF_Name; >>> >>> This would obviously pull all fields from the table usystblPLSObjFrm >>> physically located in >>> C:\Dev\C2DbPLS\C2DbPLS.mda. >>> >>> This is a PITA and requires jumping through hoops but that is the only >>> solution that I know of. >>> >>> If any of you know of another solution please let me know since I do have >> to >>> get adept at hoop >>> jumping to do it my way. >>> >>> Thanks, -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From charlotte.foust at gmail.com Wed Sep 1 13:07:20 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Wed, 1 Sep 2010 11:07:20 -0700 Subject: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef In-Reply-To: References: Message-ID: If that is so, then the instructions are somewhat misleading, since the directions I found indicate that when the current object is being exported, you don't need the name. Might be a versional difference. Charlotte Foust On Wed, Sep 1, 2010 at 10:27 AM, Heenan, Lambert wrote: > No you cannot do that. OutputTo requires the name of the object being output. So you would think that this would work... > > > ? ?Dim db As Database > ? ?Dim qdfTemp As QueryDef > > ? ?Set db = fnThisDb > > ? ?With db > ? ? ? ?' Create temporary QueryDef. > ? ? ? ?Set qdfTemp = .CreateQueryDef("", _ > ? ? ? ? ? ?"SELECT * FROM SomeTable") > ? ? ? ?DoCmd.OutputTo acOutputQuery, qdfTemp.Name, acFormatRTF, "H:\test.trf" > ? ? ? ?.Close > ? ?End With > > > > If you code Debug.Print qdfTemp.Name ?then you will see the name is #Temporary QueryDef#, but if you try using qdefTemp.name as show above then all you get is an error 3011, [Jet] database engine could not find the object '#Temporary QueryDef#'. > > So you need to create a real querydef, with a real name, and then delete it afterwards... > > Dim qdfNew as QuerDef > > Set qdfNew = .CreateQueryDef("NewQueryDef", "SELECT * FROM SomeTable") > DoCmd.OutputTo acOutputQuery, "NewQueryDef", acFormatRTF, "H:\test.trf" > CurrentDb.QueryDefs.Delete qdfNew.Name > > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Wednesday, September 01, 2010 12:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef > > I don't think I understand what you're doing. ?What are you trying to output the temporary query to? ?I've never tried to output a temporary query using code, so I'm not sure whether or not it's possible. ?A little more information might help. > > Charlotte Foust > > On Tue, Aug 31, 2010 at 3:32 PM, Brad Marks wrote: >> All, >> >> >> >> Is it possible to use the "DoCmd.OutputTo acOutputQuery" command with >> a Temporary QueryDef? >> >> >> >> I have experimented but cannot get this to work. ?I think that I am >> missing something. >> >> >> >> An example would be most appreciated. >> >> >> >> Thanks, >> >> Brad >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Wed Sep 1 13:10:14 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 01 Sep 2010 14:10:14 -0400 Subject: [AccessD] To framework or not? Message-ID: <4C7E9706.40907@colbyconsulting.com> You can own a car, which consists of every single part of the car, just sitting in a pile (or even neatly stored in parts bins on shelves. Technically you own a car but that car doesn't inherently do anything, and in fact can't do anything. Or you can have that same car, with every part assembled where it is supposed to go, sitting in your driveway. Now the car can do things. Because the parts are assembled where they are supposed to go, when you turn the key electricity starts to flow. A solenoid kicks in, extending a starter gear to the engine and starts causing the engine to rotate. Electricity causes the fuel pump to pump gas, sparks start to fire and the engine roars to life (hopefully). Same car, just in a different state. Instead of a pile of parts, it is a system of parts which can perform work "all by itself". Pressing buttons can cause seats or mirrors to move. Moving the gearshift can cause a chain reaction that causes the transmission to start working. Pressing the gas pedal causes the engine to rev, and if the transmission is engaged the transmission starts to apply power to the drive shaft. Teeny little stimuli applied by a user causes massive state changes. But the user doesn't have to intentionally do massive things, just teeny things. Some people use libraries, which are collections of functions. Each function does something but in general it is just a pile of functions. I write frameworks. When I turn the key, (call a single initialization function), code starts to execute. SysVars Load, security information loads about groups, users and users in groups and caches that info to structures in the framework. A login form opens and forces the user to login. As the user logs in, the framework takes the user's loginID and looks it up in the user cache, then runs the password through an MD5 hash function. The resulting hash code checks whether it matches the password hash from the user cache. If so then the framework saves a pointer to the logged in user into a variable in my framework object. If not the user is told to try again. Once the framework is initialized, it is sitting there monitoring what is happening in the application. When a form loads, a form class is initialized. It immediately checks its security (the groups that can open the form) against the logged in user's security groups. If any of the groups match, the form continues to load (doing still more framework kind of stuff) otherwise the user is informed that (s)he is not allowed to open that form. Same library, just in a different state. Instead of a pile of functions, it is an assembled system that can perform a work all by itself. I apply teeny little stimuli and the framework responds entirely automatically. Loading three lines of code in the form causes an entire validation functionality to occur. -- John W. Colby www.ColbyConsulting.com From BradM at blackforestltd.com Wed Sep 1 13:17:25 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Wed, 1 Sep 2010 13:17:25 -0500 Subject: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef References: Message-ID: Charlotte and Lambert, Thanks for the assistance, I really appreciate it. Here is what I am trying to do. We have a report that has a filter that varies (or can be on/off). We would like to Export this report to Excel. We can easily export to Excel from the underlying query (the report's record source). The catch is that if we do this, it doesn't take into account the filter which may or may not be in affect when the report is displayed. I have been working on creating a new Query by combining the original Query with the selection criteria contained in the filter. I then use this new query to export to Excel. I have this working with a permanent query, but I thought that it would be best of employ a temporary query. I believe that I once read that if you are adding and deleting QueryDefs a lot, problems may arise. I am not sure if this is really true or not. Anyway, this is what I am trying to do. I am still learning new things everyday. Thanks Again, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, September 01, 2010 12:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef No you cannot do that. OutputTo requires the name of the object being output. So you would think that this would work... Dim db As Database Dim qdfTemp As QueryDef Set db = fnThisDb With db ' Create temporary QueryDef. Set qdfTemp = .CreateQueryDef("", _ "SELECT * FROM SomeTable") DoCmd.OutputTo acOutputQuery, qdfTemp.Name, acFormatRTF, "H:\test.trf" .Close End With If you code Debug.Print qdfTemp.Name then you will see the name is #Temporary QueryDef#, but if you try using qdefTemp.name as show above then all you get is an error 3011, [Jet] database engine could not find the object '#Temporary QueryDef#'. So you need to create a real querydef, with a real name, and then delete it afterwards... Dim qdfNew as QuerDef Set qdfNew = .CreateQueryDef("NewQueryDef", "SELECT * FROM SomeTable") DoCmd.OutputTo acOutputQuery, "NewQueryDef", acFormatRTF, "H:\test.trf" CurrentDb.QueryDefs.Delete qdfNew.Name Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 01, 2010 12:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef I don't think I understand what you're doing. What are you trying to output the temporary query to? I've never tried to output a temporary query using code, so I'm not sure whether or not it's possible. A little more information might help. Charlotte Foust On Tue, Aug 31, 2010 at 3:32 PM, Brad Marks wrote: > All, > > > > Is it possible to use the "DoCmd.OutputTo acOutputQuery" command with > a Temporary QueryDef? > > > > I have experimented but cannot get this to work. ?I think that I am > missing something. > > > > An example would be most appreciated. > > > > Thanks, > > Brad > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From jwcolby at colbyconsulting.com Wed Sep 1 13:26:01 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 01 Sep 2010 14:26:01 -0400 Subject: [AccessD] Leave a bound form in a library. In-Reply-To: References: <4C7DAE73.8050309@colbyconsulting.com> <75EBCCCF2213404FA9A85D2F5AC60CC1@nant> <4C7DE6B5.4060107@colbyconsulting.com> <39BD352A6783430398FDC77C08CBA03C@nant> <4C7E7871.2010502@colbyconsulting.com> <7F52BF6670EC4B5ABF85EAD85B6242EA@nant> <4C7E88D1.7050307@colbyconsulting.com> Message-ID: <4C7E9AB9.9060609@colbyconsulting.com> Jim, I am discussing where the data comes from that is displayed in the form. John W. Colby www.ColbyConsulting.com Jim Lawrence wrote: > John: > > I have not been following this thread carefully but does not a form and/or > module loaded/called from either the local MDB or a remote one, reside in > memory until a unhandled error occurs or the FE MDB is exited? > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 01, 2010 10:10 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Leave a bound form in a library. > > Shamil, > > that workaround only has to be applied to the forms stored in my library. > Obviously there is a > development cost but after that it works fine. I don't have to do that for > the forms in the > application that I am applying security to. > > John W. Colby > www.ColbyConsulting.com > > > Shamil Salakhetdinov wrote: >> John -- >> >> I see. But then why rebinding form in Open or Load event to a query, which >> uses IN '' clause, is considered as not so efficient workaround there? >> >> -- Shamil >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, September 01, 2010 8:00 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Leave a bound form in a library. >> >> > Did that client have two FEs stored in the same folder? >> >> Yes. Of course I can work around the issue but I prefer to have it "just >> work". Of course having >> the tables in the Fe itself introduces issues as well. There is no free >> lunch. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Shamil Salakhetdinov wrote: >>> John -- >>> >>> Yes, I "mean linking the tables from the FE back into the lib". >>> Why not "clone" library database for every FE? >>> Did that client have two FEs stored in the same folder? >>> >>> -- Shamil >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Wednesday, September 01, 2010 9:38 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Leave a bound form in a library. >>> >>> Shamil, >>> >>> I take it you mean linking the tables from the FE back into the lib so >> that >>> the form opens seeing >>> the security info for the FE. >>> >>> I did something like this but ended up with problems when the client >> wanted >>> to use the library for >>> two different FEs which needed different security info. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Shamil Salakhetdinov wrote: >>>> Hi John -- >>>> >>>> What about linked tables? >>>> I used them in library MS Access databases and that worked well for me >> and >>>> for my customers in many projects. >>>> >>>> Thank you. >>>> >>>> -- Shamil >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: Wednesday, September 01, 2010 5:38 AM >>>> To: Access Developers discussion and problem solving >>>> Subject: [AccessD] Leave a bound form in a library. >>>> >>>> One of the challenges of using an "addin" library is placing forms in > the >>>> add-in but having them >>>> load records from the FE. For example if I make a bound form to load > the >>>> users table but I leave >>>> that form in the library (add-in), then when the form opens it tries to >>> load >>>> the data from the table >>>> in the library. IOW a form tries to pull its data from whatever >> container >>>> it is placed in. >>>> >>>> One way around that is to use the "in 'MyFePath\MyDbName.mdb' syntax > that >>> is >>>> valid in access. As an >>>> example SQL to pull the records from the FE might look as follows: >>>> >>>> SELECT * FROM usystblPLSObjFrm in 'C:\Dev\C2DbPLS\C2DbPLS.mda' ORDER BY >>>> PLSF_Name; >>>> >>>> This would obviously pull all fields from the table usystblPLSObjFrm >>>> physically located in >>>> C:\Dev\C2DbPLS\C2DbPLS.mda. >>>> >>>> This is a PITA and requires jumping through hoops but that is the only >>>> solution that I know of. >>>> >>>> If any of you know of another solution please let me know since I do > have >>> to >>>> get adept at hoop >>>> jumping to do it my way. >>>> >>>> Thanks, From Lambert.Heenan at chartisinsurance.com Wed Sep 1 13:37:26 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 1 Sep 2010 14:37:26 -0400 Subject: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef In-Reply-To: References: Message-ID: Hmm. I'm running Access 2003. If you had a temporary querydef, AKA an anonymous querydef, how would you make it the current object so that it could be exported? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 01, 2010 2:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef If that is so, then the instructions are somewhat misleading, since the directions I found indicate that when the current object is being exported, you don't need the name. Might be a versional difference. Charlotte Foust On Wed, Sep 1, 2010 at 10:27 AM, Heenan, Lambert wrote: > No you cannot do that. OutputTo requires the name of the object being output. So you would think that this would work... > > > ? ?Dim db As Database > ? ?Dim qdfTemp As QueryDef > > ? ?Set db = fnThisDb > > ? ?With db > ? ? ? ?' Create temporary QueryDef. > ? ? ? ?Set qdfTemp = .CreateQueryDef("", _ > ? ? ? ? ? ?"SELECT * FROM SomeTable") > ? ? ? ?DoCmd.OutputTo acOutputQuery, qdfTemp.Name, acFormatRTF, "H:\test.trf" > ? ? ? ?.Close > ? ?End With > > > > If you code Debug.Print qdfTemp.Name ?then you will see the name is #Temporary QueryDef#, but if you try using qdefTemp.name as show above then all you get is an error 3011, [Jet] database engine could not find the object '#Temporary QueryDef#'. > > So you need to create a real querydef, with a real name, and then delete it afterwards... > > Dim qdfNew as QuerDef > > Set qdfNew = .CreateQueryDef("NewQueryDef", "SELECT * FROM SomeTable") > DoCmd.OutputTo acOutputQuery, "NewQueryDef", acFormatRTF, "H:\test.trf" > CurrentDb.QueryDefs.Delete qdfNew.Name > > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Wednesday, September 01, 2010 12:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary > QueryDef > > I don't think I understand what you're doing. ?What are you trying to output the temporary query to? ?I've never tried to output a temporary query using code, so I'm not sure whether or not it's possible. ?A little more information might help. > > Charlotte Foust > > On Tue, Aug 31, 2010 at 3:32 PM, Brad Marks wrote: >> All, >> >> >> >> Is it possible to use the "DoCmd.OutputTo acOutputQuery" command with >> a Temporary QueryDef? >> >> >> >> I have experimented but cannot get this to work. ?I think that I am >> missing something. >> >> >> >> An example would be most appreciated. >> >> >> >> Thanks, >> >> Brad >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 1 14:11:59 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 1 Sep 2010 12:11:59 -0700 Subject: [AccessD] To framework or not? In-Reply-To: <4C7E9706.40907@colbyconsulting.com> References: <4C7E9706.40907@colbyconsulting.com> Message-ID: <24E0A1EF7D6E42708A1C5733F5C64CB8@creativesystemdesigns.com> Good analogy John. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 01, 2010 11:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] To framework or not? You can own a car, which consists of every single part of the car, just sitting in a pile (or even neatly stored in parts bins on shelves. Technically you own a car but that car doesn't inherently do anything, and in fact can't do anything. Or you can have that same car, with every part assembled where it is supposed to go, sitting in your driveway. Now the car can do things. Because the parts are assembled where they are supposed to go, when you turn the key electricity starts to flow. A solenoid kicks in, extending a starter gear to the engine and starts causing the engine to rotate. Electricity causes the fuel pump to pump gas, sparks start to fire and the engine roars to life (hopefully). Same car, just in a different state. Instead of a pile of parts, it is a system of parts which can perform work "all by itself". Pressing buttons can cause seats or mirrors to move. Moving the gearshift can cause a chain reaction that causes the transmission to start working. Pressing the gas pedal causes the engine to rev, and if the transmission is engaged the transmission starts to apply power to the drive shaft. Teeny little stimuli applied by a user causes massive state changes. But the user doesn't have to intentionally do massive things, just teeny things. Some people use libraries, which are collections of functions. Each function does something but in general it is just a pile of functions. I write frameworks. When I turn the key, (call a single initialization function), code starts to execute. SysVars Load, security information loads about groups, users and users in groups and caches that info to structures in the framework. A login form opens and forces the user to login. As the user logs in, the framework takes the user's loginID and looks it up in the user cache, then runs the password through an MD5 hash function. The resulting hash code checks whether it matches the password hash from the user cache. If so then the framework saves a pointer to the logged in user into a variable in my framework object. If not the user is told to try again. Once the framework is initialized, it is sitting there monitoring what is happening in the application. When a form loads, a form class is initialized. It immediately checks its security (the groups that can open the form) against the logged in user's security groups. If any of the groups match, the form continues to load (doing still more framework kind of stuff) otherwise the user is informed that (s)he is not allowed to open that form. Same library, just in a different state. Instead of a pile of functions, it is an assembled system that can perform a work all by itself. I apply teeny little stimuli and the framework responds entirely automatically. Loading three lines of code in the form causes an entire validation functionality to occur. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 1 14:22:08 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 1 Sep 2010 12:22:08 -0700 Subject: [AccessD] Leave a bound form in a library. In-Reply-To: <4C7E9AB9.9060609@colbyconsulting.com> References: <4C7DAE73.8050309@colbyconsulting.com> <75EBCCCF2213404FA9A85D2F5AC60CC1@nant> <4C7DE6B5.4060107@colbyconsulting.com> <39BD352A6783430398FDC77C08CBA03C@nant> <4C7E7871.2010502@colbyconsulting.com> <7F52BF6670EC4B5ABF85EAD85B6242EA@nant> <4C7E88D1.7050307@colbyconsulting.com> <4C7E9AB9.9060609@colbyconsulting.com> Message-ID: <77A51FB3BBB9447AA814F1CD0DCD073D@creativesystemdesigns.com> John: Ahh, got you. When just starting an app, delays in getting from initialization to "ready to go" are, unless outlandish, and no graphic indicator of progress, are irrelevant. No one cares about a start delay just an operational delay...so with the theory in mind I front load everything I can. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 01, 2010 11:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Leave a bound form in a library. Jim, I am discussing where the data comes from that is displayed in the form. John W. Colby www.ColbyConsulting.com Jim Lawrence wrote: > John: > > I have not been following this thread carefully but does not a form and/or > module loaded/called from either the local MDB or a remote one, reside in > memory until a unhandled error occurs or the FE MDB is exited? > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 01, 2010 10:10 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Leave a bound form in a library. > > Shamil, > > that workaround only has to be applied to the forms stored in my library. > Obviously there is a > development cost but after that it works fine. I don't have to do that for > the forms in the > application that I am applying security to. > > John W. Colby > www.ColbyConsulting.com > > > Shamil Salakhetdinov wrote: >> John -- >> >> I see. But then why rebinding form in Open or Load event to a query, which >> uses IN '' clause, is considered as not so efficient workaround there? >> >> -- Shamil >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, September 01, 2010 8:00 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Leave a bound form in a library. >> >> > Did that client have two FEs stored in the same folder? >> >> Yes. Of course I can work around the issue but I prefer to have it "just >> work". Of course having >> the tables in the Fe itself introduces issues as well. There is no free >> lunch. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Shamil Salakhetdinov wrote: >>> John -- >>> >>> Yes, I "mean linking the tables from the FE back into the lib". >>> Why not "clone" library database for every FE? >>> Did that client have two FEs stored in the same folder? >>> >>> -- Shamil >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Wednesday, September 01, 2010 9:38 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Leave a bound form in a library. >>> >>> Shamil, >>> >>> I take it you mean linking the tables from the FE back into the lib so >> that >>> the form opens seeing >>> the security info for the FE. >>> >>> I did something like this but ended up with problems when the client >> wanted >>> to use the library for >>> two different FEs which needed different security info. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Shamil Salakhetdinov wrote: >>>> Hi John -- >>>> >>>> What about linked tables? >>>> I used them in library MS Access databases and that worked well for me >> and >>>> for my customers in many projects. >>>> >>>> Thank you. >>>> >>>> -- Shamil >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: Wednesday, September 01, 2010 5:38 AM >>>> To: Access Developers discussion and problem solving >>>> Subject: [AccessD] Leave a bound form in a library. >>>> >>>> One of the challenges of using an "addin" library is placing forms in > the >>>> add-in but having them >>>> load records from the FE. For example if I make a bound form to load > the >>>> users table but I leave >>>> that form in the library (add-in), then when the form opens it tries to >>> load >>>> the data from the table >>>> in the library. IOW a form tries to pull its data from whatever >> container >>>> it is placed in. >>>> >>>> One way around that is to use the "in 'MyFePath\MyDbName.mdb' syntax > that >>> is >>>> valid in access. As an >>>> example SQL to pull the records from the FE might look as follows: >>>> >>>> SELECT * FROM usystblPLSObjFrm in 'C:\Dev\C2DbPLS\C2DbPLS.mda' ORDER BY >>>> PLSF_Name; >>>> >>>> This would obviously pull all fields from the table usystblPLSObjFrm >>>> physically located in >>>> C:\Dev\C2DbPLS\C2DbPLS.mda. >>>> >>>> This is a PITA and requires jumping through hoops but that is the only >>>> solution that I know of. >>>> >>>> If any of you know of another solution please let me know since I do > have >>> to >>>> get adept at hoop >>>> jumping to do it my way. >>>> >>>> Thanks, -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Wed Sep 1 15:08:14 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 01 Sep 2010 16:08:14 -0400 Subject: [AccessD] To framework or not? In-Reply-To: <4C7E9706.40907@colbyconsulting.com> References: <4C7E9706.40907@colbyconsulting.com> Message-ID: <79C29AB7CB2244B2874A5CE91DCAA71F@XPS> I think your opening statement is incorrect; a pile of parts that can be made into a car is not a car - it's just a pile of parts. It doesn't become a car until it's assembled. Proof of point: I can dis-assemble a car into a pile of parts and then use those parts to make something other then the car. For example, I might make a trike. And a car once assembled can only function in one specific way. That's the downside to frameworks; their rigid. Upside is it makes them very easy to use. Having to assemble a pile of parts every time I would want to go for a spin around the block would be difficult at best. But if today I need a trike instead of a car, then having a car won't do me much good where as a pile of parts would. Somewhere in between those two ideas is a balance. Personally I like frameworks for application level services (like your security system, menuing, logins, etc). But all too often frameworks become bloated because they need to allow for variation in logic while still being rigid and that's their downfall. You end up with a lot of code and overhead for things you may not need today, but might tomorrow (aka .Net) For example, the next customer that comes along may want security down to the field level, so you build that in. But the next twenty want security only to the record level, or maybe not even at all. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 01, 2010 2:10 PM To: Access Developers discussion and problem solving Subject: [AccessD] To framework or not? You can own a car, which consists of every single part of the car, just sitting in a pile (or even neatly stored in parts bins on shelves. Technically you own a car but that car doesn't inherently do anything, and in fact can't do anything. Or you can have that same car, with every part assembled where it is supposed to go, sitting in your driveway. Now the car can do things. Because the parts are assembled where they are supposed to go, when you turn the key electricity starts to flow. A solenoid kicks in, extending a starter gear to the engine and starts causing the engine to rotate. Electricity causes the fuel pump to pump gas, sparks start to fire and the engine roars to life (hopefully). Same car, just in a different state. Instead of a pile of parts, it is a system of parts which can perform work "all by itself". Pressing buttons can cause seats or mirrors to move. Moving the gearshift can cause a chain reaction that causes the transmission to start working. Pressing the gas pedal causes the engine to rev, and if the transmission is engaged the transmission starts to apply power to the drive shaft. Teeny little stimuli applied by a user causes massive state changes. But the user doesn't have to intentionally do massive things, just teeny things. Some people use libraries, which are collections of functions. Each function does something but in general it is just a pile of functions. I write frameworks. When I turn the key, (call a single initialization function), code starts to execute. SysVars Load, security information loads about groups, users and users in groups and caches that info to structures in the framework. A login form opens and forces the user to login. As the user logs in, the framework takes the user's loginID and looks it up in the user cache, then runs the password through an MD5 hash function. The resulting hash code checks whether it matches the password hash from the user cache. If so then the framework saves a pointer to the logged in user into a variable in my framework object. If not the user is told to try again. Once the framework is initialized, it is sitting there monitoring what is happening in the application. When a form loads, a form class is initialized. It immediately checks its security (the groups that can open the form) against the logged in user's security groups. If any of the groups match, the form continues to load (doing still more framework kind of stuff) otherwise the user is informed that (s)he is not allowed to open that form. Same library, just in a different state. Instead of a pile of functions, it is an assembled system that can perform a work all by itself. I apply teeny little stimuli and the framework responds entirely automatically. Loading three lines of code in the form causes an entire validation functionality to occur. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Sep 1 16:09:23 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 01 Sep 2010 17:09:23 -0400 Subject: [AccessD] To framework or not? In-Reply-To: <79C29AB7CB2244B2874A5CE91DCAA71F@XPS> References: <4C7E9706.40907@colbyconsulting.com> <79C29AB7CB2244B2874A5CE91DCAA71F@XPS> Message-ID: <4C7EC103.1020409@colbyconsulting.com> Jim, To extend your analogy, trying to assemble a trike from a pile of car parts would be a lot of work and would almost certainly fail without a ton of parts not included in the pile at hand. There is certainly no free lunch. My framework evolved from common stuff that I did for projects over the years. In fact I have a stated agreement with my clients that they pay me by the hour for the work I do on their project. If code that I write is generic and I can use it in my framework, then that code belongs to me (even though they paid me to write it) and I place it into my framework library. If the code is specific to their application or could reasonably be considered a "trade secret" kind of thing, then the code belongs to them. So while you are correct on all counts, the fact is that things don't go into the framework unless I find it useful over multiple projects. Of course there is bloat, but that is also true for a plain old library. Id a client doesn't want security then that doesn't get loaded or used even though it exists in the library. In fact I use Framework SysVars to initialize the framework. A sysvar can be something like: VarName VarVal UseSecurity True Now my code that initializes the framework simply checks the sysvars. If the client indicates they want security, I simply place a true in that SysVar and voila, security is available. Security is one place where there is significant setup required to specify which forms use security, and which groups can use the various form capability. Still, having the security written and in the framework as a service allows me to turn my attention to setting up the security of objects in the FE, not hunting around for how I applied security last time. In general, frameworks provide services, and DotNet is a fine example of that. Prewritten code that does a ton of stuff. dotNet is not a framework in the same sense as I am discussing however. Windows or Linux is closer to what I am talking about. A program that is always running that provides services to an application. John W. Colby www.ColbyConsulting.com Jim Dettman wrote: > I think your opening statement is incorrect; a pile of parts that can be > made into a car is not a car - it's just a pile of parts. It doesn't become > a car until it's assembled. Proof of point: I can dis-assemble a car into a > pile of parts and then use those parts to make something other then the car. > For example, I might make a trike. > > And a car once assembled can only function in one specific way. That's > the downside to frameworks; their rigid. Upside is it makes them very easy > to use. > > Having to assemble a pile of parts every time I would want to go for a > spin around the block would be difficult at best. But if today I need a > trike instead of a car, then having a car won't do me much good where as a > pile of parts would. > > Somewhere in between those two ideas is a balance. > > Personally I like frameworks for application level services (like your > security system, menuing, logins, etc). But all too often frameworks become > bloated because they need to allow for variation in logic while still being > rigid and that's their downfall. You end up with a lot of code and overhead > for things you may not need today, but might tomorrow (aka .Net) > > For example, the next customer that comes along may want security down to > the field level, so you build that in. But the next twenty want security > only to the record level, or maybe not even at all. > > Jim. From rockysmolin at bchacc.com Wed Sep 1 19:59:19 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 1 Sep 2010 17:59:19 -0700 Subject: [AccessD] Duplicates Query In-Reply-To: <366BEE3635EF4521A10EF10284B52FE9@personal4a8ede> References: <366BEE3635EF4521A10EF10284B52FE9@personal4a8ede> Message-ID: <0F3B283F19BB4391A595F1FBCD540343@HAL9005> A.D. (et al): Thank you. Worked perfectly. Efficiency was not too important as it was a one time run from converting some data imported from another system and the amount of data was small - 4 fields, <1000 records. Best, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Wednesday, September 01, 2010 10:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Duplicates Query Rocky, You could also try two other alternatives as per sample queries given below, for removing all duplicates beyond the first occurrence. F1 to F4 are the names of four fields, combined contents of which, determine the duplicate status. ID is the name of PK field. Query Q_DEL_DupsBeyondFirst_ByNotInTop1 is expected to be more efficient as compared to Q_DEL_DupsBeyondFirst_ByCount. (There would be only one record featuring in the Not In clause). Note: (a) Individual comparison of fields, one at a time, has been preferred over using their concatenated contents, so as to eliminate the risk of inconsistent results arising out of potential sliding match. Moreover, contrived concatenation can detract from optimum performance. (b) Use of Nz() function while comparing the field values, eliminating the potential for erratic results arising out of Null values getting compared via = operator. Best wishes, A.D. Tejpal ------------ Q_DEL_DupsBeyondFirst_ByNotInTop1 ========================================== DELETE * FROM T_Data WHERE T_Data.ID Not In (SELECT TOP 1 ID FROM T_Data AS T WHERE Nz(T.F1, "") = Nz(T_Data.F1, "") AND Nz(T.F2, "") = Nz(T_Data.F2, "") AND Nz(T.F3, "") = Nz(T_Data.F3, "") AND Nz(T.F4, "") = Nz(T_Data.F4, "") ORDER BY ID); ========================================== Q_DEL_DupsBeyondFirst_ByCount ========================================== DELETE * FROM T_Data WHERE (SELECT Count(*) FROM T_Data AS T WHERE Nz(T.F1, "") = Nz(T_Data.F1, "") AND Nz(T.F2, "") = Nz(T_Data.F2, "") AND Nz(T.F3, "") = Nz(T_Data.F3, "") AND Nz(T.F4, "") = Nz(T_Data.F4, "") AND T.ID <= T_Data.ID) > 1; ========================================== ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Wednesday, September 01, 2010 22:39 Subject: Re: [AccessD] Duplicates Query Hi Rocky I believe you will have to group by these fields in a way to build a unique string, say: Group By [Field1] & "-" & [Field2] & "-" & [Field3] /gustav >>> rockysmolin at bchacc.com 01-09-2010 18:56 >>> Gustav: There are actually three fields that have to match up to make a duplicate. I suppose I could add another field which is the concatenation of those three but that seems kludgey. Any other more elegant solution? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 01, 2010 8:49 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicates Query Hi Rocky Use First or Last or Max or Min - just one that will return only one PK of the records where the field named "name" holds identical values. /gustav >>> rockysmolin at bchacc.com 01-09-2010 17:38 >>> Gustav: Looks right but it has step 2 as: 2. Create a totals Query1 which shows GroupBy the name, and First of the PK. I assume totals query = summation query. But "GroupBy the name" - what does 'name' refer to? And how to do First of the PK? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 01, 2010 12:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicates Query Hi Rocky Yes. Look up a not so old thread: http://databaseadvisors.com/pipermail/accessd/2009-May/068576.html /gustav >>> rockysmolin at bchacc.com 31-08-2010 18:42 >>> Dear List: I used the find duplicates query wizard to make a query to find duplicate records in a table. Is there a quick way to then delete all but one occurrence of the duplicated records? MTIA Rocky Smolin Beach Access Software 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 2 08:56:52 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 02 Sep 2010 09:56:52 -0400 Subject: [AccessD] disable scroll wheel Message-ID: <4C7FAD24.6000901@colbyconsulting.com> I am trying to use the archives and I am getting nothing on anything I search. Possibly down? Anyway, I remember a discussion about disabling the scroll wheel in Access. I didn't need that info at the time so I just noted it in the back of my brain. Well now I need it. Can anyone discuss how it is done, and at what level? Is it code that turns it on and off? Is it turned on in a specific form or table or in all of Access? Thanks! -- John W. Colby www.ColbyConsulting.com From df.waters at comcast.net Thu Sep 2 09:12:00 2010 From: df.waters at comcast.net (Dan Waters) Date: Thu, 2 Sep 2010 09:12:00 -0500 Subject: [AccessD] disable scroll wheel In-Reply-To: <4C7FAD24.6000901@colbyconsulting.com> References: <4C7FAD24.6000901@colbyconsulting.com> Message-ID: <392842757D7745A5BEC25B9A95C9A091@danwaters> Hi John, I've been using this for about a year and it's worked great! http://www.everythingaccess.com/tutorials.asp?ID=A-new-method-for-disabling- the-Mouse-Scroll-Wheel-in-Access-forms Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 02, 2010 8:57 AM To: Access Developers discussion and problem solving Subject: [AccessD] disable scroll wheel I am trying to use the archives and I am getting nothing on anything I search. Possibly down? Anyway, I remember a discussion about disabling the scroll wheel in Access. I didn't need that info at the time so I just noted it in the back of my brain. Well now I need it. Can anyone discuss how it is done, and at what level? Is it code that turns it on and off? Is it turned on in a specific form or table or in all of Access? Thanks! -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Sep 2 09:37:03 2010 From: andy at minstersystems.co.uk (Andrew Lacey) Date: Thu, 2 Sep 2010 15:37:03 +0100 (BST) Subject: [AccessD] disable scroll wheel In-Reply-To: <392842757D7745A5BEC25B9A95C9A091@danwaters> References: <4C7FAD24.6000901@colbyconsulting.com> <392842757D7745A5BEC25B9A95C9A091@danwaters> Message-ID: <357343854.310856.1283438223417.JavaMail.open-xchange@oxltgw03.schlund.de> I use something called MouseHook.dll. Just put the dll in the same folder as your mdb and it disables the mouse wheel completely for that app. Can't remember where it came from. ? Andy On 02 September 2010 at 16:12 Dan Waters wrote: > Hi John, > > I've been using this for about a year and it's worked great! > > http://www.everythingaccess.com/tutorials.asp?ID=A-new-method-for-disabling- > the-Mouse-Scroll-Wheel-in-Access-forms > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 02, 2010 8:57 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] disable scroll wheel > > I am trying to use the archives and I am getting nothing on anything I > search.? Possibly down? > > Anyway, I remember a discussion about disabling the scroll wheel in Access. > I didn't need that info > at the time so I just noted it in the back of my brain. > > Well now I need it.? Can anyone discuss how it is done, and at what level? > Is it code that turns it > on and off?? Is it turned on in a specific form or table or in all of > Access? > > Thanks! > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From charlotte.foust at gmail.com Thu Sep 2 10:07:19 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Thu, 2 Sep 2010 08:07:19 -0700 Subject: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef In-Reply-To: References: Message-ID: That was what I was trying to figure out. I suppose you might do it by creating a recordset from the querydef and doing an export on the recordset object, but until the most recent explanation, I hadn't realized a report was involved. The report itself could be exported, of course, although the formatting would be lousy. I wonder if you could export the recordsource of the report and get the right data? Charlotte Foust On Wed, Sep 1, 2010 at 11:37 AM, Heenan, Lambert wrote: > Hmm. I'm running Access 2003. > > If you had a temporary querydef, AKA an anonymous querydef, how would you make it the current object so that it could be exported? > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Wednesday, September 01, 2010 2:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef > > If that is so, then the instructions are somewhat misleading, since the directions I found indicate that when the current object is being exported, you don't need the name. ?Might be a versional difference. > > Charlotte Foust > > On Wed, Sep 1, 2010 at 10:27 AM, Heenan, Lambert wrote: >> No you cannot do that. OutputTo requires the name of the object being output. So you would think that this would work... >> >> >> ? ?Dim db As Database >> ? ?Dim qdfTemp As QueryDef >> >> ? ?Set db = fnThisDb >> >> ? ?With db >> ? ? ? ?' Create temporary QueryDef. >> ? ? ? ?Set qdfTemp = .CreateQueryDef("", _ >> ? ? ? ? ? ?"SELECT * FROM SomeTable") >> ? ? ? ?DoCmd.OutputTo acOutputQuery, qdfTemp.Name, acFormatRTF, "H:\test.trf" >> ? ? ? ?.Close >> ? ?End With >> >> >> >> If you code Debug.Print qdfTemp.Name ?then you will see the name is #Temporary QueryDef#, but if you try using qdefTemp.name as show above then all you get is an error 3011, [Jet] database engine could not find the object '#Temporary QueryDef#'. >> >> So you need to create a real querydef, with a real name, and then delete it afterwards... >> >> Dim qdfNew as QuerDef >> >> Set qdfNew = .CreateQueryDef("NewQueryDef", "SELECT * FROM SomeTable") >> DoCmd.OutputTo acOutputQuery, "NewQueryDef", acFormatRTF, "H:\test.trf" >> CurrentDb.QueryDefs.Delete qdfNew.Name >> >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >> Foust >> Sent: Wednesday, September 01, 2010 12:00 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary >> QueryDef >> >> I don't think I understand what you're doing. ?What are you trying to output the temporary query to? ?I've never tried to output a temporary query using code, so I'm not sure whether or not it's possible. ?A little more information might help. >> >> Charlotte Foust >> >> On Tue, Aug 31, 2010 at 3:32 PM, Brad Marks wrote: >>> All, >>> >>> >>> >>> Is it possible to use the "DoCmd.OutputTo acOutputQuery" command with >>> a Temporary QueryDef? >>> >>> >>> >>> I have experimented but cannot get this to work. ?I think that I am >>> missing something. >>> >>> >>> >>> An example would be most appreciated. >>> >>> >>> >>> Thanks, >>> >>> Brad >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From charlotte.foust at gmail.com Thu Sep 2 10:08:27 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Thu, 2 Sep 2010 08:08:27 -0700 Subject: [AccessD] disable scroll wheel In-Reply-To: <4C7FAD24.6000901@colbyconsulting.com> References: <4C7FAD24.6000901@colbyconsulting.com> Message-ID: Didn't Lebans have a utility for that? Charlotte Foust On Thu, Sep 2, 2010 at 6:56 AM, jwcolby wrote: > I am trying to use the archives and I am getting nothing on anything I search. ?Possibly down? > > Anyway, I remember a discussion about disabling the scroll wheel in Access. ?I didn't need that info > at the time so I just noted it in the back of my brain. > > Well now I need it. ?Can anyone discuss how it is done, and at what level? ?Is it code that turns it > on and off? ?Is it turned on in a specific form or table or in all of Access? > > Thanks! > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Sep 2 10:31:47 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 02 Sep 2010 11:31:47 -0400 Subject: [AccessD] disable scroll wheel In-Reply-To: <392842757D7745A5BEC25B9A95C9A091@danwaters> References: <4C7FAD24.6000901@colbyconsulting.com> <392842757D7745A5BEC25B9A95C9A091@danwaters> Message-ID: <4C7FC363.3080209@colbyconsulting.com> This is a fascinating solution. Thanks! John W. Colby www.ColbyConsulting.com Dan Waters wrote: > Hi John, > > I've been using this for about a year and it's worked great! > > http://www.everythingaccess.com/tutorials.asp?ID=A-new-method-for-disabling- > the-Mouse-Scroll-Wheel-in-Access-forms > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 02, 2010 8:57 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] disable scroll wheel > > I am trying to use the archives and I am getting nothing on anything I > search. Possibly down? > > Anyway, I remember a discussion about disabling the scroll wheel in Access. > I didn't need that info > at the time so I just noted it in the back of my brain. > > Well now I need it. Can anyone discuss how it is done, and at what level? > Is it code that turns it > on and off? Is it turned on in a specific form or table or in all of > Access? > > Thanks! > From accessd at shaw.ca Thu Sep 2 10:50:15 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 2 Sep 2010 08:50:15 -0700 Subject: [AccessD] disable scroll wheel In-Reply-To: <392842757D7745A5BEC25B9A95C9A091@danwaters> References: <4C7FAD24.6000901@colbyconsulting.com> <392842757D7745A5BEC25B9A95C9A091@danwaters> Message-ID: Hi Dan: Wow, that is an awesome piece of code. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, September 02, 2010 7:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] disable scroll wheel Hi John, I've been using this for about a year and it's worked great! http://www.everythingaccess.com/tutorials.asp?ID=A-new-method-for-disabling- the-Mouse-Scroll-Wheel-in-Access-forms Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 02, 2010 8:57 AM To: Access Developers discussion and problem solving Subject: [AccessD] disable scroll wheel I am trying to use the archives and I am getting nothing on anything I search. Possibly down? Anyway, I remember a discussion about disabling the scroll wheel in Access. I didn't need that info at the time so I just noted it in the back of my brain. Well now I need it. Can anyone discuss how it is done, and at what level? Is it code that turns it on and off? Is it turned on in a specific form or table or in all of Access? Thanks! -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 2 11:07:11 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 2 Sep 2010 09:07:11 -0700 Subject: [AccessD] disable scroll wheel In-Reply-To: <392842757D7745A5BEC25B9A95C9A091@danwaters> References: <4C7FAD24.6000901@colbyconsulting.com> <392842757D7745A5BEC25B9A95C9A091@danwaters> Message-ID: <00A768B04D3F4C74AB88D863D62FEFD8@creativesystemdesigns.com> I was thinking that using that technique to stash unformatted information in memory could be used to created or extend the definitive security system in Access. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, September 02, 2010 7:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] disable scroll wheel Hi John, I've been using this for about a year and it's worked great! http://www.everythingaccess.com/tutorials.asp?ID=A-new-method-for-disabling- the-Mouse-Scroll-Wheel-in-Access-forms Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 02, 2010 8:57 AM To: Access Developers discussion and problem solving Subject: [AccessD] disable scroll wheel I am trying to use the archives and I am getting nothing on anything I search. Possibly down? Anyway, I remember a discussion about disabling the scroll wheel in Access. I didn't need that info at the time so I just noted it in the back of my brain. Well now I need it. Can anyone discuss how it is done, and at what level? Is it code that turns it on and off? Is it turned on in a specific form or table or in all of Access? Thanks! -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Thu Sep 2 12:15:25 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 02 Sep 2010 13:15:25 -0400 Subject: [AccessD] disable scroll wheel In-Reply-To: <357343854.310856.1283438223417.JavaMail.open-xchange@oxltgw03.schlund.de> References: <4C7FAD24.6000901@colbyconsulting.com> <392842757D7745A5BEC25B9A95C9A091@danwaters> <357343854.310856.1283438223417.JavaMail.open-xchange@oxltgw03.schlund.de> Message-ID: <224ECE33A4C149728AF93EF31B51DE70@XPS> That's Lebans utility: http://www.lebans.com/mousewheelonoff.htm Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andrew Lacey Sent: Thursday, September 02, 2010 10:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] disable scroll wheel I use something called MouseHook.dll. Just put the dll in the same folder as your mdb and it disables the mouse wheel completely for that app. Can't remember where it came from. ? Andy On 02 September 2010 at 16:12 Dan Waters wrote: > Hi John, > > I've been using this for about a year and it's worked great! > > http://www.everythingaccess.com/tutorials.asp?ID=A-new-method-for-disabling- > the-Mouse-Scroll-Wheel-in-Access-forms > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 02, 2010 8:57 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] disable scroll wheel > > I am trying to use the archives and I am getting nothing on anything I > search.? Possibly down? > > Anyway, I remember a discussion about disabling the scroll wheel in Access. > I didn't need that info > at the time so I just noted it in the back of my brain. > > Well now I need it.? Can anyone discuss how it is done, and at what level? > Is it code that turns it > on and off?? Is it turned on in a specific form or table or in all of > Access? > > Thanks! > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 2 13:03:01 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 02 Sep 2010 14:03:01 -0400 Subject: [AccessD] Connect to Remote desktop sessions Message-ID: <4C7FE6D5.5010406@colbyconsulting.com> Does anyone know how to connect to a remote desktop session? I run a VM on my Windows 2003 server. I remote desktop into the server and run the VMWare local host server software, fire up the vm and let it run. I have had instances where I disconnect from the RD session and can't connect to that session again. If anything goes wrong I don't want to reboot the server with the VM running. It just occurred to me that I could probably RD into the VM and shut that down, then even though the VMWare server software was running it wouldn't damage my VM to do a reboot. I just thought I'd ask if anyone out there has seen this issue. Also, does anyone know if there is a free vmware "bare metal" server software that would allow me to set up a VMWare server that runs directly on the hardware instead of on an instance of Windows Server. -- John W. Colby www.ColbyConsulting.com From BradM at blackforestltd.com Thu Sep 2 13:00:45 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 2 Sep 2010 13:00:45 -0500 Subject: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef References: Message-ID: Charlotte, Thanks for your help. Yes, I could export the Report's RecordSource (the underlying query). The catch is that if the report has a filter, using the underlying query will return all records (not filtered). Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 02, 2010 10:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef That was what I was trying to figure out. I suppose you might do it by creating a recordset from the querydef and doing an export on the recordset object, but until the most recent explanation, I hadn't realized a report was involved. The report itself could be exported, of course, although the formatting would be lousy. I wonder if you could export the recordsource of the report and get the right data? Charlotte Foust On Wed, Sep 1, 2010 at 11:37 AM, Heenan, Lambert wrote: > Hmm. I'm running Access 2003. > > If you had a temporary querydef, AKA an anonymous querydef, how would you make it the current object so that it could be exported? > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Wednesday, September 01, 2010 2:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary QueryDef > > If that is so, then the instructions are somewhat misleading, since the directions I found indicate that when the current object is being exported, you don't need the name. ?Might be a versional difference. > > Charlotte Foust > > On Wed, Sep 1, 2010 at 10:27 AM, Heenan, Lambert wrote: >> No you cannot do that. OutputTo requires the name of the object being output. So you would think that this would work... >> >> >> ? ?Dim db As Database >> ? ?Dim qdfTemp As QueryDef >> >> ? ?Set db = fnThisDb >> >> ? ?With db >> ? ? ? ?' Create temporary QueryDef. >> ? ? ? ?Set qdfTemp = .CreateQueryDef("", _ >> ? ? ? ? ? ?"SELECT * FROM SomeTable") >> ? ? ? ?DoCmd.OutputTo acOutputQuery, qdfTemp.Name, acFormatRTF, "H:\test.trf" >> ? ? ? ?.Close >> ? ?End With >> >> >> >> If you code Debug.Print qdfTemp.Name ?then you will see the name is #Temporary QueryDef#, but if you try using qdefTemp.name as show above then all you get is an error 3011, [Jet] database engine could not find the object '#Temporary QueryDef#'. >> >> So you need to create a real querydef, with a real name, and then delete it afterwards... >> >> Dim qdfNew as QuerDef >> >> Set qdfNew = .CreateQueryDef("NewQueryDef", "SELECT * FROM SomeTable") >> DoCmd.OutputTo acOutputQuery, "NewQueryDef", acFormatRTF, "H:\test.trf" >> CurrentDb.QueryDefs.Delete qdfNew.Name >> >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >> Foust >> Sent: Wednesday, September 01, 2010 12:00 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] DoCmd.OutputTo acOutputQuery with Temporary >> QueryDef >> >> I don't think I understand what you're doing. ?What are you trying to output the temporary query to? ?I've never tried to output a temporary query using code, so I'm not sure whether or not it's possible. ?A little more information might help. >> >> Charlotte Foust >> >> On Tue, Aug 31, 2010 at 3:32 PM, Brad Marks wrote: >>> All, >>> >>> >>> >>> Is it possible to use the "DoCmd.OutputTo acOutputQuery" command with >>> a Temporary QueryDef? >>> >>> >>> >>> I have experimented but cannot get this to work. ?I think that I am >>> missing something. >>> >>> >>> >>> An example would be most appreciated. >>> >>> >>> >>> Thanks, >>> >>> Brad >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From jwcolby at colbyconsulting.com Thu Sep 2 13:38:54 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 02 Sep 2010 14:38:54 -0400 Subject: [AccessD] VMWare VSphere Message-ID: <4C7FEF3E.7070708@colbyconsulting.com> This appears to be a bare metal hypervisor that is free. Has anyone tried to use it to set up a hypervisor on consumer hardware? IOW I have available systems with quad core AMD processors and 16G of ram. But the motherboards are just workstation type of motherboards, with AMD built in graphics and the like. I have never set up a bare metal hypervisor, and would like to know what I am getting into before I launch down that road. -- John W. Colby www.ColbyConsulting.com From Lambert.Heenan at chartisinsurance.com Thu Sep 2 14:26:43 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 2 Sep 2010 15:26:43 -0400 Subject: [AccessD] Treat string as array In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C213E0C63E@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C213E0C63E@XLIVMBX35bkup.aig.com> Message-ID: Fair enough, but is there anything wrong with... Sub StringItter(str As String) Dim n As Long For n = 1 To Len(str) 'dosomething Mid(str, n, 1) Debug.Print Mid(str, n, 1) Next n End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 22, 2008 8:11 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Treat string as array Hi John Have you forgotten how to read a file into a byte array? It is so easy as it hurts: Public Function aTest(strA As String) Dim abytTest() As Byte Dim intChar As Integer abytTest = strConv(strA, vbFromUnicode) For intChar = LBound(abytTest) To UBound(abytTest) Debug.Print abytTest(intChar); Next Debug.Print For intChar = LBound(abytTest) To UBound(abytTest) Debug.Print Chr(abytTest(intChar)); Next End Function /gustav >>> jwcolby at colbyconsulting.com 22-03-2008 22:14:56 >>> How can I turn a string into an array? I need to iterate through the characters of a string. For each char in str dosomething char Next char John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 2 14:34:25 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 2 Sep 2010 12:34:25 -0700 Subject: [AccessD] Connect to Remote desktop sessions In-Reply-To: <4C7FE6D5.5010406@colbyconsulting.com> References: <4C7FE6D5.5010406@colbyconsulting.com> Message-ID: Well, I could say Linux... Debian server and Ubuntu. Make this same request on the VB list and someone will provide absolute details. (son-in-law) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 02, 2010 11:03 AM To: Access Developers discussion and problem solving Subject: [AccessD] Connect to Remote desktop sessions Does anyone know how to connect to a remote desktop session? I run a VM on my Windows 2003 server. I remote desktop into the server and run the VMWare local host server software, fire up the vm and let it run. I have had instances where I disconnect from the RD session and can't connect to that session again. If anything goes wrong I don't want to reboot the server with the VM running. It just occurred to me that I could probably RD into the VM and shut that down, then even though the VMWare server software was running it wouldn't damage my VM to do a reboot. I just thought I'd ask if anyone out there has seen this issue. Also, does anyone know if there is a free vmware "bare metal" server software that would allow me to set up a VMWare server that runs directly on the hardware instead of on an instance of Windows Server. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Thu Sep 2 14:46:55 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 02 Sep 2010 15:46:55 -0400 Subject: [AccessD] Connect to Remote desktop sessions In-Reply-To: <4C7FE6D5.5010406@colbyconsulting.com> References: <4C7FE6D5.5010406@colbyconsulting.com> Message-ID: <29D30DCDFC394BCEB69C98BC5C3E4950@XPS> John, Remote in again with another RDP session. Start terminal services manager. You'll see your other session and the console. Right click on your other session and select connect. Your current session will be killed and you'll be attached to the other session. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 02, 2010 2:03 PM To: Access Developers discussion and problem solving Subject: [AccessD] Connect to Remote desktop sessions Does anyone know how to connect to a remote desktop session? I run a VM on my Windows 2003 server. I remote desktop into the server and run the VMWare local host server software, fire up the vm and let it run. I have had instances where I disconnect from the RD session and can't connect to that session again. If anything goes wrong I don't want to reboot the server with the VM running. It just occurred to me that I could probably RD into the VM and shut that down, then even though the VMWare server software was running it wouldn't damage my VM to do a reboot. I just thought I'd ask if anyone out there has seen this issue. Also, does anyone know if there is a free vmware "bare metal" server software that would allow me to set up a VMWare server that runs directly on the hardware instead of on an instance of Windows Server. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Thu Sep 2 14:48:20 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 2 Sep 2010 15:48:20 -0400 Subject: [AccessD] Treat string as array In-Reply-To: References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C213E0C63E@XLIVMBX35bkup.aig.com> Message-ID: Silly me. I looked into an old folder and did not notice quite how ancient it was. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, September 02, 2010 3:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Treat string as array Fair enough, but is there anything wrong with... Sub StringItter(str As String) Dim n As Long For n = 1 To Len(str) 'dosomething Mid(str, n, 1) Debug.Print Mid(str, n, 1) Next n End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 22, 2008 8:11 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Treat string as array Hi John Have you forgotten how to read a file into a byte array? It is so easy as it hurts: Public Function aTest(strA As String) Dim abytTest() As Byte Dim intChar As Integer abytTest = strConv(strA, vbFromUnicode) For intChar = LBound(abytTest) To UBound(abytTest) Debug.Print abytTest(intChar); Next Debug.Print For intChar = LBound(abytTest) To UBound(abytTest) Debug.Print Chr(abytTest(intChar)); Next End Function /gustav >>> jwcolby at colbyconsulting.com 22-03-2008 22:14:56 >>> How can I turn a string into an array? I need to iterate through the characters of a string. For each char in str dosomething char Next char John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 2 14:53:45 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 2 Sep 2010 12:53:45 -0700 Subject: [AccessD] VMWare VSphere In-Reply-To: <4C7FEF3E.7070708@colbyconsulting.com> References: <4C7FEF3E.7070708@colbyconsulting.com> Message-ID: <8E7D3D0EC8814A02B855939284AC8979@creativesystemdesigns.com> I have heard it is all command prompts based... no GUI but real men and women don't need fancy graphics. ;-) Graphics sucks up a huge amount of resources so for best performance, if you can heave that presentation manager, receiving a 50% performance bounce would not be an unreasonable expectation. I will be working on a Debian Linux server (the station is an old beater box, 4 years ago state-of-the-art and now state-of-the-ark) this weekend, for a site backup (a full Windows LAN and a couple of remotes) and trying to put in a Virtual Windows7 station in as well, so by Tuesday I should be an expert. 8-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 02, 2010 11:39 AM To: Access Developers discussion and problem solving Subject: [AccessD] VMWare VSphere This appears to be a bare metal hypervisor that is free. Has anyone tried to use it to set up a hypervisor on consumer hardware? IOW I have available systems with quad core AMD processors and 16G of ram. But the motherboards are just workstation type of motherboards, with AMD built in graphics and the like. I have never set up a bare metal hypervisor, and would like to know what I am getting into before I launch down that road. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 2 14:57:47 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 02 Sep 2010 15:57:47 -0400 Subject: [AccessD] Treat string as array In-Reply-To: References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C213E0C63E@XLIVMBX35bkup.aig.com> Message-ID: <4C8001BB.9020107@colbyconsulting.com> ROTFL. I was a wonderin' John W. Colby www.ColbyConsulting.com Heenan, Lambert wrote: > Silly me. I looked into an old folder and did not notice quite how ancient it was. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Thursday, September 02, 2010 3:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Treat string as array > > Fair enough, but is there anything wrong with... > > > Sub StringItter(str As String) > Dim n As Long > > > For n = 1 To Len(str) > 'dosomething Mid(str, n, 1) > Debug.Print Mid(str, n, 1) > Next n > > End Sub > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Saturday, March 22, 2008 8:11 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Treat string as array > > Hi John > > Have you forgotten how to read a file into a byte array? It is so easy as it hurts: > > Public Function aTest(strA As String) > > Dim abytTest() As Byte > Dim intChar As Integer > > abytTest = strConv(strA, vbFromUnicode) > > For intChar = LBound(abytTest) To UBound(abytTest) > Debug.Print abytTest(intChar); > Next > Debug.Print > For intChar = LBound(abytTest) To UBound(abytTest) > Debug.Print Chr(abytTest(intChar)); > Next > > End Function > > /gustav > >>>> jwcolby at colbyconsulting.com 22-03-2008 22:14:56 >>> > How can I turn a string into an array? I need to iterate through the characters of a string. > > For each char in str > dosomething char > Next char > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dbdoug at gmail.com Thu Sep 2 17:13:15 2010 From: dbdoug at gmail.com (Doug Steele) Date: Thu, 2 Sep 2010 15:13:15 -0700 Subject: [AccessD] Fill array from a record Message-ID: Isn't there a function in Access to copy the fields of a row directly to an array? I thought there was, but I can't find anything in help Thanks, Doug From charlotte.foust at gmail.com Thu Sep 2 17:39:23 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Thu, 2 Sep 2010 15:39:23 -0700 Subject: [AccessD] Fill array from a record In-Reply-To: References: Message-ID: There's a GetRows function, in 2007 at least, and if I recall it was in 2002 as well: Set dbsNorthwind = CurrentDb strSQL = "SELECT FirstName, LastName, Title FROM Employees" Set rstEmployees = dbsNorthwind.OpenRecordset(SQL, dbOpenSnapshot) varRecords = rstEmployees.GetRows(3) intNumReturned = UBound(varRecords, 2) + 1 intNumColumns = UBound(varRecords, 1) + 1 Charlotte Foust On Thu, Sep 2, 2010 at 3:13 PM, Doug Steele wrote: > Isn't there a function in Access to copy the fields of a row directly to an > array? ?I thought there was, but I can't find anything in help > > Thanks, > Doug > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dbdoug at gmail.com Thu Sep 2 18:07:00 2010 From: dbdoug at gmail.com (Doug Steele) Date: Thu, 2 Sep 2010 16:07:00 -0700 Subject: [AccessD] Fill array from a record In-Reply-To: References: Message-ID: Thanks, Charlotte, that's what I was thinking of. My brain was stuck on 'CopyToArray'. At least my memory is semi-functional - at my age, I guess that's all I can hope for. Doug On Thu, Sep 2, 2010 at 3:39 PM, Charlotte Foust wrote: > There's a GetRows function, in 2007 at least, and if I recall it was > in 2002 as well: > > Set dbsNorthwind = CurrentDb > strSQL = "SELECT FirstName, LastName, Title FROM Employees" > Set rstEmployees = dbsNorthwind.OpenRecordset(SQL, dbOpenSnapshot) > > varRecords = rstEmployees.GetRows(3) > intNumReturned = UBound(varRecords, 2) + 1 > intNumColumns = UBound(varRecords, 1) + 1 > > Charlotte Foust > > On Thu, Sep 2, 2010 at 3:13 PM, Doug Steele wrote: > > Isn't there a function in Access to copy the fields of a row directly to > an > > array? I thought there was, but I can't find anything in help > > > > Thanks, > > Doug > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From charlotte.foust at gmail.com Thu Sep 2 19:01:25 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Thu, 2 Sep 2010 17:01:25 -0700 Subject: [AccessD] Fill array from a record In-Reply-To: References: Message-ID: Feel free to write your own "CopyToArray" function using GetRows if you like! LOL Charlotte Foust On Thu, Sep 2, 2010 at 4:07 PM, Doug Steele wrote: > Thanks, Charlotte, that's what I was thinking of. ?My brain was stuck on > 'CopyToArray'. ?At least my memory is semi-functional - at my age, I guess > that's all I can hope for. > > Doug > > On Thu, Sep 2, 2010 at 3:39 PM, Charlotte Foust > wrote: > >> There's a GetRows function, in 2007 at least, and if I recall it was >> in 2002 as well: >> >> ?Set dbsNorthwind = CurrentDb >> ? strSQL = "SELECT FirstName, LastName, Title FROM Employees" >> ? Set rstEmployees = dbsNorthwind.OpenRecordset(SQL, dbOpenSnapshot) >> >> ? varRecords = rstEmployees.GetRows(3) >> ? intNumReturned = UBound(varRecords, 2) + 1 >> ? intNumColumns = UBound(varRecords, 1) + 1 >> >> Charlotte Foust >> >> On Thu, Sep 2, 2010 at 3:13 PM, Doug Steele wrote: >> > Isn't there a function in Access to copy the fields of a row directly to >> an >> > array? ?I thought there was, but I can't find anything in help >> > >> > Thanks, >> > Doug >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Sep 2 23:18:52 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 03 Sep 2010 00:18:52 -0400 Subject: [AccessD] decompile doesn't continue Message-ID: <4C80772C.7000204@colbyconsulting.com> I am attempting to decompile in a batch file. I need to decompile my framework, compact the framework, decompile the fe, compact the fe. I put it all in a batch file and the decompile opens the framework and stops. If I manually close Access then the batch file continues processing. Does anyone know how to do this without the batch file stalling on the decompile? rem Copy from server to local xcopy W:\disnew\C2DbFWA2K.mda c:\Dev\Disnew /Y rem decompile and compact "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /Decompile "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /compact rem copy to final xcopy c:\Dev\Disnew\C2DbFWA2K.mda c:\DisFE /Y rem copy to local xcopy W:\disnew\Disco_FE.mdb c:\Dev\Disnew /Y rem decompile and compact "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /Decompile "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /compact -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu Sep 2 23:33:24 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 03 Sep 2010 00:33:24 -0400 Subject: [AccessD] Compile from the command line Message-ID: <4C807A94.20006@colbyconsulting.com> When you decompile a database it leaves the database in a state where the source needs to be compiled. You can do the /decompile from the command line but there seems to be no /compile command line switch. When using a library, if you truly want to correctly implement the decompile / compile, the lib needs to be decompiled / compiled and the the FE needs to be decompiled / compiled. It is easy to do but a batch file would still be nice. Unfortunately since there is no /compile command line switch I am finding no way to actually do it all in one batch file. -- John W. Colby www.ColbyConsulting.com From charlotte.foust at gmail.com Thu Sep 2 23:40:16 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Thu, 2 Sep 2010 21:40:16 -0700 Subject: [AccessD] decompile doesn't continue In-Reply-To: <4C80772C.7000204@colbyconsulting.com> References: <4C80772C.7000204@colbyconsulting.com> Message-ID: Don't you have to specify a new filename to compact to, John? I know internally, Access compacts to a new file name and then deletes the old file and renames the compacted version to the old filename. That could be why the process stops after the decompile. A batch file wouldn't return the error messages you would get from code or the db window. Charlotte Foust On Thu, Sep 2, 2010 at 9:18 PM, jwcolby wrote: > I am attempting to decompile in a batch file. ?I need to decompile my framework, compact the > framework, decompile the fe, compact the fe. > > I put it all in a batch file and the decompile opens the framework and stops. ?If I manually close > Access then the batch file continues processing. > > Does anyone know how to do this without the batch file stalling on the decompile? > > rem Copy from server to local > xcopy W:\disnew\C2DbFWA2K.mda c:\Dev\Disnew /Y > > rem decompile and compact > "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /Decompile > "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /compact > > rem copy to final > xcopy c:\Dev\Disnew\C2DbFWA2K.mda c:\DisFE /Y > > rem copy to local > xcopy W:\disnew\Disco_FE.mdb c:\Dev\Disnew /Y > > rem decompile and compact > "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /Decompile > "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /compact > > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Fri Sep 3 00:00:47 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 03 Sep 2010 01:00:47 -0400 Subject: [AccessD] decompile doesn't continue In-Reply-To: References: <4C80772C.7000204@colbyconsulting.com> Message-ID: <4C8080FF.7030909@colbyconsulting.com> I thought the new file name thing was for the compact switch. John W. Colby www.ColbyConsulting.com Charlotte Foust wrote: > Don't you have to specify a new filename to compact to, John? I know > internally, Access compacts to a new file name and then deletes the > old file and renames the compacted version to the old filename. That > could be why the process stops after the decompile. A batch file > wouldn't return the error messages you would get from code or the db > window. > > Charlotte Foust > > On Thu, Sep 2, 2010 at 9:18 PM, jwcolby wrote: >> I am attempting to decompile in a batch file. I need to decompile my framework, compact the >> framework, decompile the fe, compact the fe. >> >> I put it all in a batch file and the decompile opens the framework and stops. If I manually close >> Access then the batch file continues processing. >> >> Does anyone know how to do this without the batch file stalling on the decompile? >> >> rem Copy from server to local >> xcopy W:\disnew\C2DbFWA2K.mda c:\Dev\Disnew /Y >> >> rem decompile and compact >> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /Decompile >> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /compact >> >> rem copy to final >> xcopy c:\Dev\Disnew\C2DbFWA2K.mda c:\DisFE /Y >> >> rem copy to local >> xcopy W:\disnew\Disco_FE.mdb c:\Dev\Disnew /Y >> >> rem decompile and compact >> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /Decompile >> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /compact >> >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From Gustav at cactus.dk Fri Sep 3 01:26:33 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Sep 2010 08:26:33 +0200 Subject: [AccessD] Connect to Remote desktop sessions Message-ID: Hi John Never had issues with RD to the host system. If connection is lost just open a new session. You can RD into a guest system as well. That may be preferable to using the VM console. /gustav >>> jwcolby at colbyconsulting.com 02-09-2010 20:03 >>> Does anyone know how to connect to a remote desktop session? I run a VM on my Windows 2003 server. I remote desktop into the server and run the VMWare local host server software, fire up the vm and let it run. I have had instances where I disconnect from the RD session and can't connect to that session again. If anything goes wrong I don't want to reboot the server with the VM running. It just occurred to me that I could probably RD into the VM and shut that down, then even though the VMWare server software was running it wouldn't damage my VM to do a reboot. I just thought I'd ask if anyone out there has seen this issue. Also, does anyone know if there is a free vmware "bare metal" server software that would allow me to set up a VMWare server that runs directly on the hardware instead of on an instance of Windows Server. -- John W. Colby www.ColbyConsulting.com From charlotte.foust at gmail.com Fri Sep 3 01:26:53 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Thu, 2 Sep 2010 23:26:53 -0700 Subject: [AccessD] decompile doesn't continue In-Reply-To: <4C8080FF.7030909@colbyconsulting.com> References: <4C80772C.7000204@colbyconsulting.com> <4C8080FF.7030909@colbyconsulting.com> Message-ID: Yes, but you're telling it to compact without giving it a destination filename. I don't think that would run, since behind the scenes, it ALWAYS compacts to a new filename. Charlotte Foust On Thu, Sep 2, 2010 at 10:00 PM, jwcolby wrote: > I thought the new file name thing was for the compact switch. > > John W. Colby > www.ColbyConsulting.com > > > Charlotte Foust wrote: >> Don't you have to specify a new filename to compact to, John? ?I know >> internally, Access compacts to a new file name and then deletes the >> old file and renames the compacted version to the old filename. ?That >> could be why the process stops after the decompile. ?A batch file >> wouldn't return the error messages you would get from code or the db >> window. >> >> Charlotte Foust >> >> On Thu, Sep 2, 2010 at 9:18 PM, jwcolby wrote: >>> I am attempting to decompile in a batch file. ?I need to decompile my framework, compact the >>> framework, decompile the fe, compact the fe. >>> >>> I put it all in a batch file and the decompile opens the framework and stops. ?If I manually close >>> Access then the batch file continues processing. >>> >>> Does anyone know how to do this without the batch file stalling on the decompile? >>> >>> rem Copy from server to local >>> xcopy W:\disnew\C2DbFWA2K.mda c:\Dev\Disnew /Y >>> >>> rem decompile and compact >>> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /Decompile >>> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /compact >>> >>> rem copy to final >>> xcopy c:\Dev\Disnew\C2DbFWA2K.mda c:\DisFE /Y >>> >>> rem copy to local >>> xcopy W:\disnew\Disco_FE.mdb c:\Dev\Disnew /Y >>> >>> rem decompile and compact >>> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /Decompile >>> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /compact >>> >>> >>> -- >>> John W. Colby >>> www.ColbyConsulting.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Sep 3 01:32:32 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Sep 2010 08:32:32 +0200 Subject: [AccessD] VMWare VSphere Message-ID: Hi John It runs on specific hardware only. If you look around at the VMware pages, you'll find a tool to download that will verify if a given box contains approved parts and will be able to run the Hypervisor. Also, a list of approved brand-name boxes exists. /gustav >>> jwcolby at colbyconsulting.com 02-09-2010 20:38 >>> This appears to be a bare metal hypervisor that is free. Has anyone tried to use it to set up a hypervisor on consumer hardware? IOW I have available systems with quad core AMD processors and 16G of ram. But the motherboards are just workstation type of motherboards, with AMD built in graphics and the like. I have never set up a bare metal hypervisor, and would like to know what I am getting into before I launch down that road. -- John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Fri Sep 3 01:55:12 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 03 Sep 2010 16:55:12 +1000 Subject: [AccessD] Compile from the command line In-Reply-To: <4C807A94.20006@colbyconsulting.com> References: <4C807A94.20006@colbyconsulting.com> Message-ID: <4C809BD0.29585.5C8E991@stuart.lexacorp.com.pg> Include an Autoexec macro in your database which calls a startup function. In your startup function include the line. If Command = "Compile" Then Application.Quit Then in your batch file, ue the switch /cmd "Compile" The database will compile itself when the Startup function is loaded and the function will then close the database. -- Stuart On 3 Sep 2010 at 0:33, jwcolby wrote: > When you decompile a database it leaves the database in a state where > the source needs to be compiled. You can do the /decompile from the > command line but there seems to be no /compile command line switch. > > When using a library, if you truly want to correctly implement the > decompile / compile, the lib needs to be decompiled / compiled and the > the FE needs to be decompiled / compiled. It is easy to do but a > batch file would still be nice. Unfortunately since there is no > /compile command line switch I am finding no way to actually do it all > in one batch file. > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Johncliviger at aol.com Fri Sep 3 06:20:55 2010 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Fri, 3 Sep 2010 07:20:55 EDT Subject: [AccessD] Windows Remote Desktop Message-ID: <1b1ef9.72d09d0a.39b23417@aol.com> Hi all Anyone found any literature (or even a book) on Windows XP or later Remote Desktop? TIA john cliviger From jimdettman at verizon.net Fri Sep 3 06:42:18 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 03 Sep 2010 07:42:18 -0400 Subject: [AccessD] Compile from the command line In-Reply-To: <4C809BD0.29585.5C8E991@stuart.lexacorp.com.pg> References: <4C807A94.20006@colbyconsulting.com> <4C809BD0.29585.5C8E991@stuart.lexacorp.com.pg> Message-ID: <9A02497BB29C453DA0FB854DF8A073EF@XPS> A call to SysCmd(504, 16483) will compile a VBA project. That coupled with your startup idea should take care of John's problem. Warning: Syscmd(504,x) is un-documented. Your mileage may vary. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, September 03, 2010 2:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Compile from the command line Include an Autoexec macro in your database which calls a startup function. In your startup function include the line. If Command = "Compile" Then Application.Quit Then in your batch file, ue the switch /cmd "Compile" The database will compile itself when the Startup function is loaded and the function will then close the database. -- Stuart On 3 Sep 2010 at 0:33, jwcolby wrote: > When you decompile a database it leaves the database in a state where > the source needs to be compiled. You can do the /decompile from the > command line but there seems to be no /compile command line switch. > > When using a library, if you truly want to correctly implement the > decompile / compile, the lib needs to be decompiled / compiled and the > the FE needs to be decompiled / compiled. It is easy to do but a > batch file would still be nice. Unfortunately since there is no > /compile command line switch I am finding no way to actually do it all > in one batch file. > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 3 06:47:10 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 03 Sep 2010 07:47:10 -0400 Subject: [AccessD] Connect to Remote desktop sessions In-Reply-To: References: Message-ID: <4C80E03E.9040809@colbyconsulting.com> Gustav, > You can RD into a guest system as well. That may be preferable to using the VM console. Yes, you are correct. >If connection is lost just open a new session. The problem is that on Windows 2003 there are actually three user sessions allowed (AFAICT). One is used for the physical login and two for remote desktop. So I log in and start SQL Server and start a process running. In order to keep that software running I do not log out, I just disconnect. Most of the time I RD back in and hit that connection. However occasionally (mistakenly) I open a new session while I have the original open (two open sessions at the same time). Now I close the FIRST session and then close the SECOND session. I had an instance where I could log in but got the second session, and when I tried to log in again it said that I couldn't get the first session. Someone mentioned a RD manager snap in that you can open and select a specific RD session. I will be figuring that out! John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Never had issues with RD to the host system. If connection is lost just open a new session. > You can RD into a guest system as well. That may be preferable to using the VM console. > > /gustav > > >>>> jwcolby at colbyconsulting.com 02-09-2010 20:03 >>> > Does anyone know how to connect to a remote desktop session? > > I run a VM on my Windows 2003 server. I remote desktop into the server and run the VMWare local host > server software, fire up the vm and let it run. I have had instances where I disconnect from the RD > session and can't connect to that session again. If anything goes wrong I don't want to reboot the > server with the VM running. > > It just occurred to me that I could probably RD into the VM and shut that down, then even though the > VMWare server software was running it wouldn't damage my VM to do a reboot. > > I just thought I'd ask if anyone out there has seen this issue. > > Also, does anyone know if there is a free vmware "bare metal" server software that would allow me to > set up a VMWare server that runs directly on the hardware instead of on an instance of Windows Server. > From jwcolby at colbyconsulting.com Fri Sep 3 06:48:17 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 03 Sep 2010 07:48:17 -0400 Subject: [AccessD] decompile doesn't continue In-Reply-To: References: <4C80772C.7000204@colbyconsulting.com> <4C8080FF.7030909@colbyconsulting.com> Message-ID: <4C80E081.8080201@colbyconsulting.com> That compact does work, it does the typical "compact to a new filename and then switch back to the original when done". John W. Colby www.ColbyConsulting.com Charlotte Foust wrote: > Yes, but you're telling it to compact without giving it a destination > filename. I don't think that would run, since behind the scenes, it > ALWAYS compacts to a new filename. > > Charlotte Foust > > On Thu, Sep 2, 2010 at 10:00 PM, jwcolby wrote: >> I thought the new file name thing was for the compact switch. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Charlotte Foust wrote: >>> Don't you have to specify a new filename to compact to, John? I know >>> internally, Access compacts to a new file name and then deletes the >>> old file and renames the compacted version to the old filename. That >>> could be why the process stops after the decompile. A batch file >>> wouldn't return the error messages you would get from code or the db >>> window. >>> >>> Charlotte Foust >>> >>> On Thu, Sep 2, 2010 at 9:18 PM, jwcolby wrote: >>>> I am attempting to decompile in a batch file. I need to decompile my framework, compact the >>>> framework, decompile the fe, compact the fe. >>>> >>>> I put it all in a batch file and the decompile opens the framework and stops. If I manually close >>>> Access then the batch file continues processing. >>>> >>>> Does anyone know how to do this without the batch file stalling on the decompile? >>>> >>>> rem Copy from server to local >>>> xcopy W:\disnew\C2DbFWA2K.mda c:\Dev\Disnew /Y >>>> >>>> rem decompile and compact >>>> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /Decompile >>>> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /compact >>>> >>>> rem copy to final >>>> xcopy c:\Dev\Disnew\C2DbFWA2K.mda c:\DisFE /Y >>>> >>>> rem copy to local >>>> xcopy W:\disnew\Disco_FE.mdb c:\Dev\Disnew /Y >>>> >>>> rem decompile and compact >>>> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /Decompile >>>> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /compact >>>> >>>> >>>> -- >>>> John W. Colby >>>> www.ColbyConsulting.com >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From jwcolby at colbyconsulting.com Fri Sep 3 06:50:25 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 03 Sep 2010 07:50:25 -0400 Subject: [AccessD] Compile from the command line In-Reply-To: <9A02497BB29C453DA0FB854DF8A073EF@XPS> References: <4C807A94.20006@colbyconsulting.com> <4C809BD0.29585.5C8E991@stuart.lexacorp.com.pg> <9A02497BB29C453DA0FB854DF8A073EF@XPS> Message-ID: <4C80E101.4010609@colbyconsulting.com> Cool. Where do we learn such things? John W. Colby www.ColbyConsulting.com Jim Dettman wrote: > A call to SysCmd(504, 16483) will compile a VBA project. That coupled with > your startup idea should take care of John's problem. > > Warning: Syscmd(504,x) is un-documented. Your mileage may vary. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Friday, September 03, 2010 2:55 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Compile from the command line > > Include an Autoexec macro in your database which calls a startup function. > In your startup function include the line. > > If Command = "Compile" Then Application.Quit > > Then in your batch file, ue the switch /cmd "Compile" > > The database will compile itself when the Startup function is loaded and the > function will then > close the database. > > From Gustav at cactus.dk Fri Sep 3 07:15:55 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Sep 2010 14:15:55 +0200 Subject: [AccessD] Compile from the command line Message-ID: Hi John Like you and me - followed the thread "How to Compile from code" in January/February 2000. Note that this command cannot compile the module within it is running - this module has to be compiled earlier. /gustav >>> jwcolby at colbyconsulting.com 03-09-2010 13:50 >>> Cool. Where do we learn such things? John W. Colby www.ColbyConsulting.com Jim Dettman wrote: > A call to SysCmd(504, 16483) will compile a VBA project. That coupled with > your startup idea should take care of John's problem. > > Warning: Syscmd(504,x) is un-documented. Your mileage may vary. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Friday, September 03, 2010 2:55 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Compile from the command line > > Include an Autoexec macro in your database which calls a startup function. > In your startup function include the line. > > If Command = "Compile" Then Application.Quit > > Then in your batch file, ue the switch /cmd "Compile" > > The database will compile itself when the Startup function is loaded and the > function will then close the database. From jimdettman at verizon.net Fri Sep 3 07:17:05 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 03 Sep 2010 08:17:05 -0400 Subject: [AccessD] Compile from the command line In-Reply-To: <4C80E101.4010609@colbyconsulting.com> References: <4C807A94.20006@colbyconsulting.com> <4C809BD0.29585.5C8E991@stuart.lexacorp.com.pg> <9A02497BB29C453DA0FB854DF8A073EF@XPS> <4C80E101.4010609@colbyconsulting.com> Message-ID: <7BB026E7DE3E442AA86FF2F21C71518A@XPS> Tid bits here, tid bits there...check out web sites, read white papers, talk to other developers, etc. And the CompuServe days were great when product support was there; got the inside scoop on a lot of things. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 03, 2010 7:50 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Compile from the command line Cool. Where do we learn such things? John W. Colby www.ColbyConsulting.com Jim Dettman wrote: > A call to SysCmd(504, 16483) will compile a VBA project. That coupled with > your startup idea should take care of John's problem. > > Warning: Syscmd(504,x) is un-documented. Your mileage may vary. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Friday, September 03, 2010 2:55 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Compile from the command line > > Include an Autoexec macro in your database which calls a startup function. > In your startup function include the line. > > If Command = "Compile" Then Application.Quit > > Then in your batch file, ue the switch /cmd "Compile" > > The database will compile itself when the Startup function is loaded and the > function will then > close the database. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 3 07:26:58 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 03 Sep 2010 08:26:58 -0400 Subject: [AccessD] Compile from the command line In-Reply-To: References: Message-ID: <4C80E992.6070707@colbyconsulting.com> Gustav > Like you and me - followed the thread "How to Compile from code" in January/February 2000. ROTFL. Unlike me, he can still remember 2000. ;) Does anyone know if the archives are functioning? I tried a search yesterday and got no result for anything searched for. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Like you and me - followed the thread "How to Compile from code" in January/February 2000. > > Note that this command cannot compile the module within it is running - this module has to be compiled earlier. > > /gustav > > >>>> jwcolby at colbyconsulting.com 03-09-2010 13:50 >>> > Cool. Where do we learn such things? > > John W. Colby > www.ColbyConsulting.com > > > Jim Dettman wrote: >> A call to SysCmd(504, 16483) will compile a VBA project. That coupled with >> your startup idea should take care of John's problem. >> >> Warning: Syscmd(504,x) is un-documented. Your mileage may vary. >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan >> Sent: Friday, September 03, 2010 2:55 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Compile from the command line >> >> Include an Autoexec macro in your database which calls a startup function. >> In your startup function include the line. >> >> If Command = "Compile" Then Application.Quit >> >> Then in your batch file, ue the switch /cmd "Compile" >> >> The database will compile itself when the Startup function is loaded and the >> function will then close the database. > > > From jimdettman at verizon.net Fri Sep 3 07:40:03 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 03 Sep 2010 08:40:03 -0400 Subject: [AccessD] Connect to Remote desktop sessions In-Reply-To: <4C80E03E.9040809@colbyconsulting.com> References: <4C80E03E.9040809@colbyconsulting.com> Message-ID: <35435FE3E8CA40AD8360B6A6477A1676@XPS> <> Click on all programs, admin tools, terminal services, terminal services manager. Sessions are listed. Right click on anyone and select connect. I'm sure it's a snap-in that you can add, but I just access it from the menu. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 03, 2010 7:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connect to Remote desktop sessions Gustav, > You can RD into a guest system as well. That may be preferable to using the VM console. Yes, you are correct. >If connection is lost just open a new session. The problem is that on Windows 2003 there are actually three user sessions allowed (AFAICT). One is used for the physical login and two for remote desktop. So I log in and start SQL Server and start a process running. In order to keep that software running I do not log out, I just disconnect. Most of the time I RD back in and hit that connection. However occasionally (mistakenly) I open a new session while I have the original open (two open sessions at the same time). Now I close the FIRST session and then close the SECOND session. I had an instance where I could log in but got the second session, and when I tried to log in again it said that I couldn't get the first session. Someone mentioned a RD manager snap in that you can open and select a specific RD session. I will be figuring that out! John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Never had issues with RD to the host system. If connection is lost just open a new session. > You can RD into a guest system as well. That may be preferable to using the VM console. > > /gustav > > >>>> jwcolby at colbyconsulting.com 02-09-2010 20:03 >>> > Does anyone know how to connect to a remote desktop session? > > I run a VM on my Windows 2003 server. I remote desktop into the server and run the VMWare local host > server software, fire up the vm and let it run. I have had instances where I disconnect from the RD > session and can't connect to that session again. If anything goes wrong I don't want to reboot the > server with the VM running. > > It just occurred to me that I could probably RD into the VM and shut that down, then even though the > VMWare server software was running it wouldn't damage my VM to do a reboot. > > I just thought I'd ask if anyone out there has seen this issue. > > Also, does anyone know if there is a free vmware "bare metal" server software that would allow me to > set up a VMWare server that runs directly on the hardware instead of on an instance of Windows Server. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 3 07:47:50 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 03 Sep 2010 08:47:50 -0400 Subject: [AccessD] Connect to Remote desktop sessions In-Reply-To: <35435FE3E8CA40AD8360B6A6477A1676@XPS> References: <4C80E03E.9040809@colbyconsulting.com> <35435FE3E8CA40AD8360B6A6477A1676@XPS> Message-ID: <4C80EE76.1050608@colbyconsulting.com> Cool, thanks! John W. Colby www.ColbyConsulting.com Jim Dettman wrote: > < specific RD session. I will > be figuring that out!>> > > Click on all programs, admin tools, terminal services, terminal services > manager. > > Sessions are listed. Right click on anyone and select connect. I'm sure > it's a snap-in that you can add, but I just access it from the menu. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 03, 2010 7:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Connect to Remote desktop sessions > > Gustav, > > > You can RD into a guest system as well. That may be preferable to using > the VM console. > > Yes, you are correct. > > >If connection is lost just open a new session. > > The problem is that on Windows 2003 there are actually three user sessions > allowed (AFAICT). One is > used for the physical login and two for remote desktop. > > So I log in and start SQL Server and start a process running. In order to > keep that software > running I do not log out, I just disconnect. Most of the time I RD back in > and hit that connection. > However occasionally (mistakenly) I open a new session while I have the > original open (two open > sessions at the same time). Now I close the FIRST session and then close > the SECOND session. I had > an instance where I could log in but got the second session, and when I > tried to log in again it > said that I couldn't get the first session. > > Someone mentioned a RD manager snap in that you can open and select a > specific RD session. I will > be figuring that out! > > John W. Colby > www.ColbyConsulting.com > > > Gustav Brock wrote: >> Hi John >> >> Never had issues with RD to the host system. If connection is lost just > open a new session. >> You can RD into a guest system as well. That may be preferable to using > the VM console. >> /gustav >> >> >>>>> jwcolby at colbyconsulting.com 02-09-2010 20:03 >>> >> Does anyone know how to connect to a remote desktop session? >> >> I run a VM on my Windows 2003 server. I remote desktop into the server and > run the VMWare local host >> server software, fire up the vm and let it run. I have had instances > where I disconnect from the RD >> session and can't connect to that session again. If anything goes wrong I > don't want to reboot the >> server with the VM running. >> >> It just occurred to me that I could probably RD into the VM and shut that > down, then even though the >> VMWare server software was running it wouldn't damage my VM to do a > reboot. >> I just thought I'd ask if anyone out there has seen this issue. >> >> Also, does anyone know if there is a free vmware "bare metal" server > software that would allow me to >> set up a VMWare server that runs directly on the hardware instead of on an > instance of Windows Server. From stuart at lexacorp.com.pg Fri Sep 3 08:09:03 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 03 Sep 2010 23:09:03 +1000 Subject: [AccessD] Compile from the command line In-Reply-To: <9A02497BB29C453DA0FB854DF8A073EF@XPS> References: <4C807A94.20006@colbyconsulting.com>, <4C809BD0.29585.5C8E991@stuart.lexacorp.com.pg>, <9A02497BB29C453DA0FB854DF8A073EF@XPS> Message-ID: <4C80F36F.5527.71F2EC2@stuart.lexacorp.com.pg> Alternatively, it turns out there is a documented command. If Command = "Compile" Then RunCommand (AcCommand.acCmdCompileAndSaveAllModules) Application.Quit End If -- Stuart On 3 Sep 2010 at 7:42, Jim Dettman wrote: > > A call to SysCmd(504, 16483) will compile a VBA project. That coupled > with your startup idea should take care of John's problem. > > Warning: Syscmd(504,x) is un-documented. Your mileage may vary. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Friday, September 03, 2010 2:55 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Compile from the command line > > Include an Autoexec macro in your database which calls a startup > function. In your startup function include the line. > > If Command = "Compile" Then Application.Quit > > Then in your batch file, ue the switch /cmd "Compile" > > The database will compile itself when the Startup function is loaded > and the function will then close the database. > > > -- > Stuart > > > > On 3 Sep 2010 at 0:33, jwcolby wrote: > > When you decompile a database it leaves the database in a state > > where the source needs to be compiled. You can do the /decompile > > from the command line but there seems to be no /compile command line > > switch. > > > > When using a library, if you truly want to correctly implement the > > decompile / compile, the lib needs to be decompiled / compiled and > > the the FE needs to be decompiled / compiled. It is easy to do but > > a batch file would still be nice. Unfortunately since there is no > > /compile command line switch I am finding no way to actually do it > > all in one batch file. > > > > -- > > John W. Colby > > www.ColbyConsulting.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at chartisinsurance.com Fri Sep 3 08:16:05 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 3 Sep 2010 09:16:05 -0400 Subject: [AccessD] decompile doesn't continue In-Reply-To: <4C80772C.7000204@colbyconsulting.com> References: <4C80772C.7000204@colbyconsulting.com> Message-ID: To decompile the command line is... "\MSAccess.exe" /decompile "\yourfile.mdb" Unlike compacting which is... "\MSAccess.exe" "\yourfile.mdb" /compact This is what's called using a consistent interface. In MS Land. As for compiling, that's simple, from you batch file just call a macro that executes some code. Access will compile the application then run the code. Just have the code end with Application.Quit. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 03, 2010 12:19 AM To: Access Developers discussion and problem solving Subject: [AccessD] decompile doesn't continue I am attempting to decompile in a batch file. I need to decompile my framework, compact the framework, decompile the fe, compact the fe. I put it all in a batch file and the decompile opens the framework and stops. If I manually close Access then the batch file continues processing. Does anyone know how to do this without the batch file stalling on the decompile? rem Copy from server to local xcopy W:\disnew\C2DbFWA2K.mda c:\Dev\Disnew /Y rem decompile and compact "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /Decompile "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /compact rem copy to final xcopy c:\Dev\Disnew\C2DbFWA2K.mda c:\DisFE /Y rem copy to local xcopy W:\disnew\Disco_FE.mdb c:\Dev\Disnew /Y rem decompile and compact "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /Decompile "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /compact -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Fri Sep 3 08:23:08 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 3 Sep 2010 09:23:08 -0400 Subject: [AccessD] decompile doesn't continue In-Reply-To: <4C80E081.8080201@colbyconsulting.com> References: <4C80772C.7000204@colbyconsulting.com> <4C8080FF.7030909@colbyconsulting.com> <4C80E081.8080201@colbyconsulting.com> Message-ID: The second file name with the compact switch is optional. If provided then the compacted database is created with the new name. Without the second file Access compacts to "db1.mdb" and then deletes the old file and renames the new one automatically at the end of the process. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 03, 2010 7:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] decompile doesn't continue That compact does work, it does the typical "compact to a new filename and then switch back to the original when done". John W. Colby www.ColbyConsulting.com Charlotte Foust wrote: > Yes, but you're telling it to compact without giving it a destination > filename. I don't think that would run, since behind the scenes, it > ALWAYS compacts to a new filename. > > Charlotte Foust > > On Thu, Sep 2, 2010 at 10:00 PM, jwcolby wrote: >> I thought the new file name thing was for the compact switch. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Charlotte Foust wrote: >>> Don't you have to specify a new filename to compact to, John? I >>> know internally, Access compacts to a new file name and then deletes >>> the old file and renames the compacted version to the old filename. >>> That could be why the process stops after the decompile. A batch >>> file wouldn't return the error messages you would get from code or >>> the db window. >>> >>> Charlotte Foust >>> >>> On Thu, Sep 2, 2010 at 9:18 PM, jwcolby wrote: >>>> I am attempting to decompile in a batch file. I need to decompile >>>> my framework, compact the framework, decompile the fe, compact the fe. >>>> >>>> I put it all in a batch file and the decompile opens the framework >>>> and stops. If I manually close Access then the batch file continues processing. >>>> >>>> Does anyone know how to do this without the batch file stalling on the decompile? >>>> >>>> rem Copy from server to local >>>> xcopy W:\disnew\C2DbFWA2K.mda c:\Dev\Disnew /Y >>>> >>>> rem decompile and compact >>>> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" >>>> c:\Dev\Disnew\C2DbFWA2K.mda /Decompile "C:\Program Files\Microsoft >>>> Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /compact >>>> >>>> rem copy to final >>>> xcopy c:\Dev\Disnew\C2DbFWA2K.mda c:\DisFE /Y >>>> >>>> rem copy to local >>>> xcopy W:\disnew\Disco_FE.mdb c:\Dev\Disnew /Y >>>> >>>> rem decompile and compact >>>> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" >>>> c:\Dev\Disnew\Disco_FE.mdb /Decompile "C:\Program Files\Microsoft >>>> Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /compact >>>> >>>> >>>> -- >>>> John W. Colby >>>> www.ColbyConsulting.com >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 3 11:23:33 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 03 Sep 2010 12:23:33 -0400 Subject: [AccessD] decompile doesn't continue In-Reply-To: References: <4C80772C.7000204@colbyconsulting.com> Message-ID: <4C812105.3020905@colbyconsulting.com> Lambert, > As for compiling, that's simple, from you batch file just call a macro that executes some code. Access will compile the application then run the code. Just have the code end with Application.Quit. Not so. Decompiled code is compiled at the instant each module is loaded the first time. Thus only the module that contains the function that you execute would be compiled because only that module would be loaded. John W. Colby www.ColbyConsulting.com Heenan, Lambert wrote: > To decompile the command line is... > > "\MSAccess.exe" /decompile "\yourfile.mdb" > > Unlike compacting which is... > > "\MSAccess.exe" "\yourfile.mdb" /compact > > This is what's called using a consistent interface. In MS Land. > > As for compiling, that's simple, from you batch file just call a macro that executes some code. Access will compile the application then run the code. Just have the code end with Application.Quit. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 03, 2010 12:19 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] decompile doesn't continue > > I am attempting to decompile in a batch file. I need to decompile my framework, compact the framework, decompile the fe, compact the fe. > > I put it all in a batch file and the decompile opens the framework and stops. If I manually close Access then the batch file continues processing. > > Does anyone know how to do this without the batch file stalling on the decompile? > > rem Copy from server to local > xcopy W:\disnew\C2DbFWA2K.mda c:\Dev\Disnew /Y > > rem decompile and compact > "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /Decompile "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /compact > > rem copy to final > xcopy c:\Dev\Disnew\C2DbFWA2K.mda c:\DisFE /Y > > rem copy to local > xcopy W:\disnew\Disco_FE.mdb c:\Dev\Disnew /Y > > rem decompile and compact > "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /Decompile "C:\Program Files\Microsoft Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /compact > > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Fri Sep 3 11:24:13 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 03 Sep 2010 12:24:13 -0400 Subject: [AccessD] decompile doesn't continue In-Reply-To: References: <4C80772C.7000204@colbyconsulting.com> <4C8080FF.7030909@colbyconsulting.com> <4C80E081.8080201@colbyconsulting.com> Message-ID: <4C81212D.3000107@colbyconsulting.com> Right. That is what I said. Kinda. John W. Colby www.ColbyConsulting.com Heenan, Lambert wrote: > The second file name with the compact switch is optional. If provided then the compacted database is created with the new name. Without the second file Access compacts to "db1.mdb" and then deletes the old file and renames the new one automatically at the end of the process. > > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 03, 2010 7:48 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] decompile doesn't continue > > That compact does work, it does the typical "compact to a new filename and then switch back to the original when done". > > John W. Colby > www.ColbyConsulting.com > > > Charlotte Foust wrote: >> Yes, but you're telling it to compact without giving it a destination >> filename. I don't think that would run, since behind the scenes, it >> ALWAYS compacts to a new filename. >> >> Charlotte Foust >> >> On Thu, Sep 2, 2010 at 10:00 PM, jwcolby wrote: >>> I thought the new file name thing was for the compact switch. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Charlotte Foust wrote: >>>> Don't you have to specify a new filename to compact to, John? I >>>> know internally, Access compacts to a new file name and then deletes >>>> the old file and renames the compacted version to the old filename. >>>> That could be why the process stops after the decompile. A batch >>>> file wouldn't return the error messages you would get from code or >>>> the db window. >>>> >>>> Charlotte Foust >>>> >>>> On Thu, Sep 2, 2010 at 9:18 PM, jwcolby wrote: >>>>> I am attempting to decompile in a batch file. I need to decompile >>>>> my framework, compact the framework, decompile the fe, compact the fe. >>>>> >>>>> I put it all in a batch file and the decompile opens the framework >>>>> and stops. If I manually close Access then the batch file continues processing. >>>>> >>>>> Does anyone know how to do this without the batch file stalling on the decompile? >>>>> >>>>> rem Copy from server to local >>>>> xcopy W:\disnew\C2DbFWA2K.mda c:\Dev\Disnew /Y >>>>> >>>>> rem decompile and compact >>>>> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" >>>>> c:\Dev\Disnew\C2DbFWA2K.mda /Decompile "C:\Program Files\Microsoft >>>>> Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /compact >>>>> >>>>> rem copy to final >>>>> xcopy c:\Dev\Disnew\C2DbFWA2K.mda c:\DisFE /Y >>>>> >>>>> rem copy to local >>>>> xcopy W:\disnew\Disco_FE.mdb c:\Dev\Disnew /Y >>>>> >>>>> rem decompile and compact >>>>> "C:\Program Files\Microsoft Office\Office\Msaccess.exe" >>>>> c:\Dev\Disnew\Disco_FE.mdb /Decompile "C:\Program Files\Microsoft >>>>> Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /compact >>>>> >>>>> >>>>> -- >>>>> John W. Colby >>>>> www.ColbyConsulting.com >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at chartisinsurance.com Fri Sep 3 11:49:58 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 3 Sep 2010 12:49:58 -0400 Subject: [AccessD] decompile doesn't continue In-Reply-To: <4C812105.3020905@colbyconsulting.com> References: <4C80772C.7000204@colbyconsulting.com> <4C812105.3020905@colbyconsulting.com> Message-ID: Correct. But Stuart came up with the right answer RunCommand (AcCommand.acCmdCompileAndSaveAllModules) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 03, 2010 12:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] decompile doesn't continue Lambert, > As for compiling, that's simple, from you batch file just call a macro that executes some code. Access will compile the application then run the code. Just have the code end with Application.Quit. Not so. Decompiled code is compiled at the instant each module is loaded the first time. Thus only the module that contains the function that you execute would be compiled because only that module would be loaded. John W. Colby www.ColbyConsulting.com Heenan, Lambert wrote: > To decompile the command line is... > > "\MSAccess.exe" /decompile "\yourfile.mdb" > > Unlike compacting which is... > > "\MSAccess.exe" "\yourfile.mdb" /compact > > This is what's called using a consistent interface. In MS Land. > > As for compiling, that's simple, from you batch file just call a macro that executes some code. Access will compile the application then run the code. Just have the code end with Application.Quit. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 03, 2010 12:19 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] decompile doesn't continue > > I am attempting to decompile in a batch file. I need to decompile my framework, compact the framework, decompile the fe, compact the fe. > > I put it all in a batch file and the decompile opens the framework and stops. If I manually close Access then the batch file continues processing. > > Does anyone know how to do this without the batch file stalling on the decompile? > > rem Copy from server to local > xcopy W:\disnew\C2DbFWA2K.mda c:\Dev\Disnew /Y > > rem decompile and compact > "C:\Program Files\Microsoft Office\Office\Msaccess.exe" > c:\Dev\Disnew\C2DbFWA2K.mda /Decompile "C:\Program Files\Microsoft > Office\Office\Msaccess.exe" c:\Dev\Disnew\C2DbFWA2K.mda /compact > > rem copy to final > xcopy c:\Dev\Disnew\C2DbFWA2K.mda c:\DisFE /Y > > rem copy to local > xcopy W:\disnew\Disco_FE.mdb c:\Dev\Disnew /Y > > rem decompile and compact > "C:\Program Files\Microsoft Office\Office\Msaccess.exe" > c:\Dev\Disnew\Disco_FE.mdb /Decompile "C:\Program Files\Microsoft > Office\Office\Msaccess.exe" c:\Dev\Disnew\Disco_FE.mdb /compact > > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Fri Sep 3 13:29:27 2010 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 3 Sep 2010 13:29:27 -0500 Subject: [AccessD] Windows Remote Desktop In-Reply-To: <1b1ef9.72d09d0a.39b23417@aol.com> References: <1b1ef9.72d09d0a.39b23417@aol.com> Message-ID: No book but Lots of info here..... http://www.microsoft.com/windowsxp/using/mobility/getstarted/remoteintro.mspx http://windows.microsoft.com/en-US/windows-vista/Remote-Desktop-Connection-frequently-asked-questions GK On Fri, Sep 3, 2010 at 6:20 AM, wrote: > > Hi all > > Anyone found any literature (or even a book) on Windows XP or ?later Remote > Desktop? > > TIA > > john cliviger > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From BradM at blackforestltd.com Fri Sep 3 14:49:24 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 3 Sep 2010 14:49:24 -0500 Subject: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph Message-ID: Is there a way force the scale of the X Axis of an Access 2007 graph to only show integers. The items that I would like to graph are always whole numbers. (1.5 parts is confusing) Thanks, Brad From df.waters at comcast.net Fri Sep 3 15:00:35 2010 From: df.waters at comcast.net (Dan Waters) Date: Fri, 3 Sep 2010 15:00:35 -0500 Subject: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph In-Reply-To: References: Message-ID: <692132B658F149829460F8AB5CBA83FF@danwaters> Hi Brad, With the chart in Edit mode, right click on the axis, and select Chart Options (I think). Then select the Axis tab, then uncheck Auto for the Major interval, then enter the major interval that you want the axis to display. It's very similar to Excel. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, September 03, 2010 2:49 PM To: Access Developers discussion and problem solving Subject: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph Is there a way force the scale of the X Axis of an Access 2007 graph to only show integers. The items that I would like to graph are always whole numbers. (1.5 parts is confusing) Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Fri Sep 3 14:57:54 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 3 Sep 2010 14:57:54 -0500 Subject: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph References: <692132B658F149829460F8AB5CBA83FF@danwaters> Message-ID: Dan, Thanks for the tip - works great. I appreciate the assistance. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, September 03, 2010 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph Hi Brad, With the chart in Edit mode, right click on the axis, and select Chart Options (I think). Then select the Axis tab, then uncheck Auto for the Major interval, then enter the major interval that you want the axis to display. It's very similar to Excel. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, September 03, 2010 2:49 PM To: Access Developers discussion and problem solving Subject: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph Is there a way force the scale of the X Axis of an Access 2007 graph to only show integers. The items that I would like to graph are always whole numbers. (1.5 parts is confusing) Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From df.waters at comcast.net Fri Sep 3 15:17:55 2010 From: df.waters at comcast.net (Dan Waters) Date: Fri, 3 Sep 2010 15:17:55 -0500 Subject: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph In-Reply-To: References: <692132B658F149829460F8AB5CBA83FF@danwaters> Message-ID: Great! I do like graphs in Access (MS Graph). Once you get the data source right, the rest is a lot like making a chart/graph in Excel. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, September 03, 2010 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph Dan, Thanks for the tip - works great. I appreciate the assistance. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, September 03, 2010 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph Hi Brad, With the chart in Edit mode, right click on the axis, and select Chart Options (I think). Then select the Axis tab, then uncheck Auto for the Major interval, then enter the major interval that you want the axis to display. It's very similar to Excel. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, September 03, 2010 2:49 PM To: Access Developers discussion and problem solving Subject: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph Is there a way force the scale of the X Axis of an Access 2007 graph to only show integers. The items that I would like to graph are always whole numbers. (1.5 parts is confusing) Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Sep 4 04:01:36 2010 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 04 Sep 2010 11:01:36 +0200 Subject: [AccessD] OT Friday Experience: Rocket Science and submarines Message-ID: Hi all As if it isn't enough to build your own spacecraft, these guys (previously) built a submarine (which is not as easy as you may think). Nautilus it is proudly named after the famous USS nuclear sub passing the North Pole years back . So, of course, this is now used for maneuvering the launch platform to the launch area at a military area of the Baltic Sea: http://www.copenhagensuborbitals.com/index.php This first test flight planned to take place tomorrow, Sunday, aimed at reaching an altitude of only 30 km will only carry a doll. I must say I feel respect for such enthusiasm as all costs and labour are carried by donations and volunteers. By the way, the USS Nautilus was designated a National Historic Landmark and is now settled at the Submarine Force Museum in Connecticut: http://www.ussnautilus.org /gustav From stuart at lexacorp.com.pg Sat Sep 4 04:23:30 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 04 Sep 2010 19:23:30 +1000 Subject: [AccessD] OT Friday Experience: Rocket Science and submarines In-Reply-To: References: Message-ID: <4C821012.32020.B770C2C@stuart.lexacorp.com.pg> Then of course there is The Register's PARIS (Paper Aircraft Released Into Space) effort. Also planned to reach 30Km. http://www.theregister.co.uk/science/paris/ The PARIS mission includes two main components: the main payload and the Vulture 1 aircraft. The main payload is a styrofoambox containing video and stills cameras, GPS tracker unit, back-up beacon transmitter and the all-important Vulture 1 release mechanism. Vulture 1 - an all-paper aircraft - sits under the main payload, and both are lifted by a helium- filled meteorological balloon. At 20,000 metres, Vulture 1 is released to fly to earth, tracked by an onboard GPS radio system. The plane also carries a miniature stills camera to record its journey. The main payload continues to ascend to around 30,000 metres, at which point the balloon bursts and the box descends by parachute. Two tracking teams will follow and recover the main payload and Vulture 1. The main payload GPS transmits its location over the phone network. If that fails, there's a back-up beacon transmiting in morse. Vulture 1's position is plotted live online via the OpenAPRS system. The main payload also offers live positional updates via a dedicated Google map. On 4 Sep 2010 at 11:01, Gustav Brock wrote: > Hi all > > As if it isn't enough to build your own spacecraft, these guys > (previously) built a submarine (which is not as easy as you may > think). Nautilus it is proudly named after the famous USS nuclear sub > passing the North Pole years back . > > So, of course, this is now used for maneuvering the launch platform to > the launch area at a military area of the Baltic Sea: > > http://www.copenhagensuborbitals.com/index.php > > This first test flight planned to take place tomorrow, Sunday, aimed > at reaching an altitude of only 30 km will only carry a doll. I must > say I feel respect for such enthusiasm as all costs and labour are > carried by donations and volunteers. > > By the way, the USS Nautilus was designated a National Historic > Landmark and is now settled at the Submarine Force Museum in > Connecticut: > > http://www.ussnautilus.org > > /gustav > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Johncliviger at aol.com Sat Sep 4 04:54:56 2010 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Sat, 4 Sep 2010 05:54:56 EDT Subject: [AccessD] Windows Remote Desktop Message-ID: <9dc2f.53520e3.39b37170@aol.com> In a message dated 03/09/2010 19:30:22 GMT Daylight Time, garykjos at gmail.com writes: http://windows.microsoft.com/en-US/windows-vista/Remote-Desktop-Connection-f requently-asked-questions Cheers GK jc From brad.marks1 at gmail.com Sat Sep 4 08:29:10 2010 From: brad.marks1 at gmail.com (Brad Marks) Date: Sat, 4 Sep 2010 06:29:10 -0700 Subject: [AccessD] How to Change Access 2007 Chart Colors with VBA Message-ID: All, I would like to learn how to change various Chart attributes with VBA. I set up a new chart (Report Design Tab / Insert Chart). I can use the built-in tools to change the Chart colors manually. I would like to learn how to change things via VBA code. The report name is Report1. The chart name is Chart0. I would like to start by leaning how to change the color of the "Chart Area", the "Plot Area" and the "Data Series" with VBA code. I have surfed the web trying to find an example, but no luck after many tries. An example of how to do this would be most appreciated. Thanks, Brad From fuller.artful at gmail.com Sat Sep 4 10:00:33 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sat, 4 Sep 2010 11:00:33 -0400 Subject: [AccessD] OT Friday Experience: Rocket Science and submarines In-Reply-To: References: Message-ID: IIRC, the first actual Nautilus was named after the sub in Jules Verne's "20,000 Leagues Under the Sea.". Arthur On Sat, Sep 4, 2010 at 5:01 AM, Gustav Brock wrote: > Hi all > > As if it isn't enough to build your own spacecraft, these guys (previously) > built a submarine (which is not as easy as you may think). Nautilus it is > proudly named after the famous USS nuclear sub passing the North Pole years > back . > > From df.waters at comcast.net Sat Sep 4 10:52:46 2010 From: df.waters at comcast.net (Dan Waters) Date: Sat, 4 Sep 2010 10:52:46 -0500 Subject: [AccessD] How to Change Access 2007 Chart Colors with VBA In-Reply-To: References: Message-ID: <3FB35EB53A1F43CFB2F17E366B498907@danwaters> Hi Brad, I've never tried this myself, but I did a search on 'ms graph vba', and got many promising hits. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Saturday, September 04, 2010 8:29 AM To: accessd at databaseadvisors.com Subject: [AccessD] How to Change Access 2007 Chart Colors with VBA All, I would like to learn how to change various Chart attributes with VBA. I set up a new chart (Report Design Tab / Insert Chart). I can use the built-in tools to change the Chart colors manually. I would like to learn how to change things via VBA code. The report name is Report1. The chart name is Chart0. I would like to start by leaning how to change the color of the "Chart Area", the "Plot Area" and the "Data Series" with VBA code. I have surfed the web trying to find an example, but no luck after many tries. An example of how to do this would be most appreciated. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Sep 4 11:40:03 2010 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 04 Sep 2010 18:40:03 +0200 Subject: [AccessD] OT Friday Experience: Rocket Science and submarines Message-ID: Hi Arthur You are of course right. And so is the present mini sub - silly me, I could just have browsed the homepage: http://www.uc3nautilus.dk/ For some reason the Wikipedia page seems more up to date: http://en.wikipedia.org/wiki/UC3_Nautilus /gustav >>> fuller.artful at gmail.com 04-09-2010 17:00 >>> IIRC, the first actual Nautilus was named after the sub in Jules Verne's "20,000 Leagues Under the Sea.". Arthur On Sat, Sep 4, 2010 at 5:01 AM, Gustav Brock wrote: > Hi all > > As if it isn't enough to build your own spacecraft, these guys (previously) > built a submarine (which is not as easy as you may think). Nautilus it is > proudly named after the famous USS nuclear sub passing the North Pole years > back . From shamil at smsconsulting.spb.ru Sun Sep 5 05:52:29 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 5 Sep 2010 14:52:29 +0400 Subject: [AccessD] OT Friday Experience: Rocket Science and submarines In-Reply-To: References: Message-ID: <9FB792EA3E3642D3B840974773ABE68F@nant> Hi Gustav -- The rocket has been launched already there? I haven't seen it flying there from this part of the Baltic sea (Finnish Gulf) :) They say it's(/was) planned to be launched at: <<< LAUNCHING TODAY AT APP 10 UTC, SUN 5, 2010 >>> Do they mean 10 p.m. UTC (GMT)? Thank you for that news. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, September 04, 2010 1:02 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT Friday Experience: Rocket Science and submarines Hi all As if it isn't enough to build your own spacecraft, these guys (previously) built a submarine (which is not as easy as you may think). Nautilus it is proudly named after the famous USS nuclear sub passing the North Pole years back . So, of course, this is now used for maneuvering the launch platform to the launch area at a military area of the Baltic Sea: http://www.copenhagensuborbitals.com/index.php This first test flight planned to take place tomorrow, Sunday, aimed at reaching an altitude of only 30 km will only carry a doll. I must say I feel respect for such enthusiasm as all costs and labour are carried by donations and volunteers. By the way, the USS Nautilus was designated a National Historic Landmark and is now settled at the Submarine Force Museum in Connecticut: http://www.ussnautilus.org /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RickN at NelsonTech.com Sat Sep 4 18:47:29 2010 From: RickN at NelsonTech.com (Rick Nelson) Date: Sat, 4 Sep 2010 16:47:29 -0700 Subject: [AccessD] Windows Remote Desktop (Gary Kjos) In-Reply-To: References: Message-ID: <03b501cb4c8b$8aae3970$a00aac50$@com> Sorry, gang, but after all these years (mostly lurking) I've never figured out how to reply cleanly here - so I apologize if this is scrambled... Just in case you're asking about an RDP book because you want to run an Access app remotely, there's an excellent book on Terminal Server that covers things on RDP I would never have thought possible: Terminal Services for Microsoft Windows Server 2003: Advanced Technical Design Guide http://www.amazon.com/Terminal-Services-Microsoft-Windows-Server/dp/09711510 40/ref=sr_1_4?s=books&ie=UTF8&qid=1283643145&sr=1-4 Brian Madden, the primary author, also has a web site: http://www.brianmadden.com/ which I haven't used for a while but used to have a lot of Term Services / RDP content. He's an excellent source of good info. I'm taking some time to post this info because we've found Term Server / RDP to be an excellent way to provide remote access to complex Access apps, and a great response to "it has to be a web app", which normally means they want remote access. We have one mission-critical Access/SQL Server app with about 100 users around the US that works great (in many ways better than the Salesforce.com app it's linked to...). I've noticed than many Access developers don't seem to be aware of this architecture - hopefully now a few more are... We've had clients using Citrix the same way; it's better but more expensive. There's a ton of great technology in this space and some excellent ways to deploy Access apps with the kind of UI's and functionality you rarely see in a "real" (browser based) web app. Good luck! Rick Nelson Nelson Technology Associates Danville, CA USA Message: 1 Date: Fri, 3 Sep 2010 13:29:27 -0500 From: Gary Kjos Subject: Re: [AccessD] Windows Remote Desktop To: Access Developers discussion and problem solving Message-ID: Content-Type: text/plain; charset=ISO-8859-1 No book but Lots of info here..... http://www.microsoft.com/windowsxp/using/mobility/getstarted/remoteintro.msp x http://windows.microsoft.com/en-US/windows-vista/Remote-Desktop-Connection-f requently-asked-questions GK On Fri, Sep 3, 2010 at 6:20 AM, wrote: > > Hi all > > Anyone found any literature (or even a book) on Windows XP or ?later Remote > Desktop? > > TIA > > john cliviger > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of accessd-request at databaseadvisors.com Sent: Saturday, September 04, 2010 10:00 AM To: accessd at databaseadvisors.com Subject: AccessD Digest, Vol 91, Issue 7 Send AccessD mailing list submissions to accessd at databaseadvisors.com To subscribe or unsubscribe via the World Wide Web, visit http://databaseadvisors.com/mailman/listinfo/accessd or, via email, send a message with subject or body 'help' to accessd-request at databaseadvisors.com You can reach the person managing the list at accessd-owner at databaseadvisors.com When replying, please edit your Subject line so it is more specific than "Re: Contents of AccessD digest..." Today's Topics: 1. Re: Windows Remote Desktop (Gary Kjos) 2. Friday Puzzler - Only Integers on X Axis on Graph (Brad Marks) 3. Re: Friday Puzzler - Only Integers on X Axis on Graph (Dan Waters) 4. Re: Friday Puzzler - Only Integers on X Axis on Graph (Brad Marks) 5. Re: Friday Puzzler - Only Integers on X Axis on Graph (Dan Waters) 6. OT Friday Experience: Rocket Science and submarines (Gustav Brock) 7. Re: OT Friday Experience: Rocket Science and submarines (Stuart McLachlan) 8. Re: Windows Remote Desktop (Johncliviger at aol.com) 9. How to Change Access 2007 Chart Colors with VBA (Brad Marks) 10. Re: OT Friday Experience: Rocket Science and submarines (Arthur Fuller) 11. Re: How to Change Access 2007 Chart Colors with VBA (Dan Waters) 12. Re: OT Friday Experience: Rocket Science and submarines (Gustav Brock) ---------------------------------------------------------------------- Message: 1 Date: Fri, 3 Sep 2010 13:29:27 -0500 From: Gary Kjos Subject: Re: [AccessD] Windows Remote Desktop To: Access Developers discussion and problem solving Message-ID: Content-Type: text/plain; charset=ISO-8859-1 No book but Lots of info here..... http://www.microsoft.com/windowsxp/using/mobility/getstarted/remoteintro.msp x http://windows.microsoft.com/en-US/windows-vista/Remote-Desktop-Connection-f requently-asked-questions GK On Fri, Sep 3, 2010 at 6:20 AM, wrote: > > Hi all > > Anyone found any literature (or even a book) on Windows XP or ?later Remote > Desktop? > > TIA > > john cliviger > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com ------------------------------ Message: 2 Date: Fri, 3 Sep 2010 14:49:24 -0500 From: "Brad Marks" Subject: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph To: "Access Developers discussion and problem solving" Message-ID: Content-Type: text/plain; charset="us-ascii" Is there a way force the scale of the X Axis of an Access 2007 graph to only show integers. The items that I would like to graph are always whole numbers. (1.5 parts is confusing) Thanks, Brad ------------------------------ Message: 3 Date: Fri, 3 Sep 2010 15:00:35 -0500 From: "Dan Waters" Subject: Re: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph To: "'Access Developers discussion and problem solving'" Message-ID: <692132B658F149829460F8AB5CBA83FF at danwaters> Content-Type: text/plain; charset="us-ascii" Hi Brad, With the chart in Edit mode, right click on the axis, and select Chart Options (I think). Then select the Axis tab, then uncheck Auto for the Major interval, then enter the major interval that you want the axis to display. It's very similar to Excel. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, September 03, 2010 2:49 PM To: Access Developers discussion and problem solving Subject: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph Is there a way force the scale of the X Axis of an Access 2007 graph to only show integers. The items that I would like to graph are always whole numbers. (1.5 parts is confusing) Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------ Message: 4 Date: Fri, 3 Sep 2010 14:57:54 -0500 From: "Brad Marks" Subject: Re: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph To: "Access Developers discussion and problem solving" Message-ID: Content-Type: text/plain; charset="us-ascii" Dan, Thanks for the tip - works great. I appreciate the assistance. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, September 03, 2010 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph Hi Brad, With the chart in Edit mode, right click on the axis, and select Chart Options (I think). Then select the Axis tab, then uncheck Auto for the Major interval, then enter the major interval that you want the axis to display. It's very similar to Excel. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, September 03, 2010 2:49 PM To: Access Developers discussion and problem solving Subject: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph Is there a way force the scale of the X Axis of an Access 2007 graph to only show integers. The items that I would like to graph are always whole numbers. (1.5 parts is confusing) Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------ Message: 5 Date: Fri, 3 Sep 2010 15:17:55 -0500 From: "Dan Waters" Subject: Re: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph To: "'Access Developers discussion and problem solving'" Message-ID: Content-Type: text/plain; charset="us-ascii" Great! I do like graphs in Access (MS Graph). Once you get the data source right, the rest is a lot like making a chart/graph in Excel. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, September 03, 2010 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph Dan, Thanks for the tip - works great. I appreciate the assistance. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, September 03, 2010 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph Hi Brad, With the chart in Edit mode, right click on the axis, and select Chart Options (I think). Then select the Axis tab, then uncheck Auto for the Major interval, then enter the major interval that you want the axis to display. It's very similar to Excel. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, September 03, 2010 2:49 PM To: Access Developers discussion and problem solving Subject: [AccessD] Friday Puzzler - Only Integers on X Axis on Graph Is there a way force the scale of the X Axis of an Access 2007 graph to only show integers. The items that I would like to graph are always whole numbers. (1.5 parts is confusing) Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------ Message: 6 Date: Sat, 04 Sep 2010 11:01:36 +0200 From: "Gustav Brock" Subject: [AccessD] OT Friday Experience: Rocket Science and submarines To: Message-ID: Content-Type: text/plain; charset=US-ASCII Hi all As if it isn't enough to build your own spacecraft, these guys (previously) built a submarine (which is not as easy as you may think). Nautilus it is proudly named after the famous USS nuclear sub passing the North Pole years back . So, of course, this is now used for maneuvering the launch platform to the launch area at a military area of the Baltic Sea: http://www.copenhagensuborbitals.com/index.php This first test flight planned to take place tomorrow, Sunday, aimed at reaching an altitude of only 30 km will only carry a doll. I must say I feel respect for such enthusiasm as all costs and labour are carried by donations and volunteers. By the way, the USS Nautilus was designated a National Historic Landmark and is now settled at the Submarine Force Museum in Connecticut: http://www.ussnautilus.org /gustav ------------------------------ Message: 7 Date: Sat, 04 Sep 2010 19:23:30 +1000 From: "Stuart McLachlan" Subject: Re: [AccessD] OT Friday Experience: Rocket Science and submarines To: Access Developers discussion and problem solving Message-ID: <4C821012.32020.B770C2C at stuart.lexacorp.com.pg> Content-Type: text/plain; charset=US-ASCII Then of course there is The Register's PARIS (Paper Aircraft Released Into Space) effort. Also planned to reach 30Km. http://www.theregister.co.uk/science/paris/ The PARIS mission includes two main components: the main payload and the Vulture 1 aircraft. The main payload is a styrofoambox containing video and stills cameras, GPS tracker unit, back-up beacon transmitter and the all-important Vulture 1 release mechanism. Vulture 1 - an all-paper aircraft - sits under the main payload, and both are lifted by a helium- filled meteorological balloon. At 20,000 metres, Vulture 1 is released to fly to earth, tracked by an onboard GPS radio system. The plane also carries a miniature stills camera to record its journey. The main payload continues to ascend to around 30,000 metres, at which point the balloon bursts and the box descends by parachute. Two tracking teams will follow and recover the main payload and Vulture 1. The main payload GPS transmits its location over the phone network. If that fails, there's a back-up beacon transmiting in morse. Vulture 1's position is plotted live online via the OpenAPRS system. The main payload also offers live positional updates via a dedicated Google map. On 4 Sep 2010 at 11:01, Gustav Brock wrote: > Hi all > > As if it isn't enough to build your own spacecraft, these guys > (previously) built a submarine (which is not as easy as you may > think). Nautilus it is proudly named after the famous USS nuclear sub > passing the North Pole years back . > > So, of course, this is now used for maneuvering the launch platform to > the launch area at a military area of the Baltic Sea: > > http://www.copenhagensuborbitals.com/index.php > > This first test flight planned to take place tomorrow, Sunday, aimed > at reaching an altitude of only 30 km will only carry a doll. I must > say I feel respect for such enthusiasm as all costs and labour are > carried by donations and volunteers. > > By the way, the USS Nautilus was designated a National Historic > Landmark and is now settled at the Submarine Force Museum in > Connecticut: > > http://www.ussnautilus.org > > /gustav > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ------------------------------ Message: 8 Date: Sat, 4 Sep 2010 05:54:56 EDT From: Johncliviger at aol.com Subject: Re: [AccessD] Windows Remote Desktop To: accessd at databaseadvisors.com Message-ID: <9dc2f.53520e3.39b37170 at aol.com> Content-Type: text/plain; charset="US-ASCII" In a message dated 03/09/2010 19:30:22 GMT Daylight Time, garykjos at gmail.com writes: http://windows.microsoft.com/en-US/windows-vista/Remote-Desktop-Connection-f requently-asked-questions Cheers GK jc ------------------------------ Message: 9 Date: Sat, 4 Sep 2010 06:29:10 -0700 From: Brad Marks Subject: [AccessD] How to Change Access 2007 Chart Colors with VBA To: accessd at databaseadvisors.com Message-ID: Content-Type: text/plain; charset=ISO-8859-1 All, I would like to learn how to change various Chart attributes with VBA. I set up a new chart (Report Design Tab / Insert Chart). I can use the built-in tools to change the Chart colors manually. I would like to learn how to change things via VBA code. The report name is Report1. The chart name is Chart0. I would like to start by leaning how to change the color of the "Chart Area", the "Plot Area" and the "Data Series" with VBA code. I have surfed the web trying to find an example, but no luck after many tries. An example of how to do this would be most appreciated. Thanks, Brad ------------------------------ Message: 10 Date: Sat, 4 Sep 2010 11:00:33 -0400 From: Arthur Fuller Subject: Re: [AccessD] OT Friday Experience: Rocket Science and submarines To: Access Developers discussion and problem solving Message-ID: Content-Type: text/plain; charset=ISO-8859-1 IIRC, the first actual Nautilus was named after the sub in Jules Verne's "20,000 Leagues Under the Sea.". Arthur On Sat, Sep 4, 2010 at 5:01 AM, Gustav Brock wrote: > Hi all > > As if it isn't enough to build your own spacecraft, these guys (previously) > built a submarine (which is not as easy as you may think). Nautilus it is > proudly named after the famous USS nuclear sub passing the North Pole years > back . > > ------------------------------ Message: 11 Date: Sat, 4 Sep 2010 10:52:46 -0500 From: "Dan Waters" Subject: Re: [AccessD] How to Change Access 2007 Chart Colors with VBA To: "'Access Developers discussion and problem solving'" Message-ID: <3FB35EB53A1F43CFB2F17E366B498907 at danwaters> Content-Type: text/plain; charset="us-ascii" Hi Brad, I've never tried this myself, but I did a search on 'ms graph vba', and got many promising hits. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Saturday, September 04, 2010 8:29 AM To: accessd at databaseadvisors.com Subject: [AccessD] How to Change Access 2007 Chart Colors with VBA All, I would like to learn how to change various Chart attributes with VBA. I set up a new chart (Report Design Tab / Insert Chart). I can use the built-in tools to change the Chart colors manually. I would like to learn how to change things via VBA code. The report name is Report1. The chart name is Chart0. I would like to start by leaning how to change the color of the "Chart Area", the "Plot Area" and the "Data Series" with VBA code. I have surfed the web trying to find an example, but no luck after many tries. An example of how to do this would be most appreciated. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------ Message: 12 Date: Sat, 04 Sep 2010 18:40:03 +0200 From: "Gustav Brock" Subject: Re: [AccessD] OT Friday Experience: Rocket Science and submarines To: Message-ID: Content-Type: text/plain; charset=US-ASCII Hi Arthur You are of course right. And so is the present mini sub - silly me, I could just have browsed the homepage: http://www.uc3nautilus.dk/ For some reason the Wikipedia page seems more up to date: http://en.wikipedia.org/wiki/UC3_Nautilus /gustav >>> fuller.artful at gmail.com 04-09-2010 17:00 >>> IIRC, the first actual Nautilus was named after the sub in Jules Verne's "20,000 Leagues Under the Sea.". Arthur On Sat, Sep 4, 2010 at 5:01 AM, Gustav Brock wrote: > Hi all > > As if it isn't enough to build your own spacecraft, these guys (previously) > built a submarine (which is not as easy as you may think). Nautilus it is > proudly named after the famous USS nuclear sub passing the North Pole years > back . ------------------------------ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd End of AccessD Digest, Vol 91, Issue 7 ************************************** From gustav at cactus.dk Sun Sep 5 13:11:23 2010 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 05 Sep 2010 20:11:23 +0200 Subject: [AccessD] OT Friday Experience: Rocket Science and submarines Message-ID: Hi Shamil No, sadly the launch failed due to a valve not responding. After two firing attempts they gave up and sailed the platform back. The rocket is intact. No new launch date has been given yet. /gustav >>> shamil at smsconsulting.spb.ru 05-09-2010 12:52 >>> Hi Gustav -- The rocket has been launched already there? I haven't seen it flying there from this part of the Baltic sea (Finnish Gulf) :) They say it's(/was) planned to be launched at: <<< LAUNCHING TODAY AT APP 10 UTC, SUN 5, 2010 >>> Do they mean 10 p.m. UTC (GMT)? Thank you for that news. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, September 04, 2010 1:02 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT Friday Experience: Rocket Science and submarines Hi all As if it isn't enough to build your own spacecraft, these guys (previously) built a submarine (which is not as easy as you may think). Nautilus it is proudly named after the famous USS nuclear sub passing the North Pole years back . So, of course, this is now used for maneuvering the launch platform to the launch area at a military area of the Baltic Sea: http://www.copenhagensuborbitals.com/index.php This first test flight planned to take place tomorrow, Sunday, aimed at reaching an altitude of only 30 km will only carry a doll. I must say I feel respect for such enthusiasm as all costs and labour are carried by donations and volunteers. By the way, the USS Nautilus was designated a National Historic Landmark and is now settled at the Submarine Force Museum in Connecticut: http://www.ussnautilus.org /gustav From Johncliviger at aol.com Mon Sep 6 03:38:28 2010 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Mon, 6 Sep 2010 04:38:28 EDT Subject: [AccessD] Windows Remote Desktop (Gary Kjos) Message-ID: Hi Rick Thank you for your comments. I'll follow them up Kind regards john cliviger From Darryl.Collins at iag.com.au Mon Sep 6 19:02:09 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 7 Sep 2010 10:02:09 +1000 Subject: [AccessD] disable scroll wheel In-Reply-To: <4C7FAD24.6000901@colbyconsulting.com> Message-ID: <201009070002.o87026Bl019437@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi John, I assume you have this solved, but this may be helpful for you or others in future. I had hell with this issue a few years back, mainly because the corporate network I was very locked down and would not allow me to register the .dll file or use some of the other suggestions to make this work. Finally I found a viable solution via Trigeminal. Here is everything I found out on making that darn mouse wheel behave in Access I stored here for future use. <> regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, 2 September 2010 11:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] disable scroll wheel I am trying to use the archives and I am getting nothing on anything I search. Possibly down? Anyway, I remember a discussion about disabling the scroll wheel in Access. I didn't need that info at the time so I just noted it in the back of my brain. Well now I need it. Can anyone discuss how it is done, and at what level? Is it code that turns it on and off? Is it turned on in a specific form or table or in all of Access? Thanks! -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From terry.mace at baesystems.com Mon Sep 6 23:29:09 2010 From: terry.mace at baesystems.com (MACE, Terry) Date: Tue, 7 Sep 2010 13:59:09 +0930 Subject: [AccessD] Strange Behaviour with Popup Forms in Acc2007 Message-ID: <54735D33F2EFB343A5196F837657ED6D04C29F79AE@MWLSVEXM002.au.baesystems.com> Hi all, Our company is moving from Acc97 to Acc2007 and an app that I wrote a long time ago is behaving 'incorrectly' when converted to Acc2007. I have a continuous form set to popup with a double-click field, which when clicked opens another popup form, which then opens a further form. In Acc97 each form opens one on top of the other as they should. In Acc2007, the second form opens behind the first form and is not visible. If the forms are moved around to get to the second form, the third form will then open on top of the others. The forms that open on top are started from a command button, whereas the one that doesn't starts from a double-click text field. The code that is not working is: Private Sub Part_Number_DblClick(Cancel As Integer) DoCmd.OpenForm "frmItemSelect", , , , , , Me.Part_Number End Sub When stepping through the code, the form is in front until the End Sub statement is executed, when the form with the code comes back to the front. Any ideas on getting the forms to open in the right order would be most appreciated. Cheers Terry "Warning: The information contained in this email and any attached files is confidential to BAE Systems Australia. If you are not the intended recipient, any use, disclosure or copying of this email or any attachments is expressly prohibited. If you have received this email in error, please notify us immediately. VIRUS: Every care has been taken to ensure this email and its attachments are virus free, however, any loss or damage incurred in using this email is not the sender's responsibility. It is your responsibility to ensure virus checks are completed before installing any data sent in this email to your computer." From jengross at gte.net Tue Sep 7 10:44:38 2010 From: jengross at gte.net (Jennifer Gross) Date: Tue, 07 Sep 2010 08:44:38 -0700 Subject: [AccessD] Replication as a tool for updating FE Message-ID: <008b01cb4ea3$94c2c7e0$b901a8c0@Schroeder> It has been suggested to me to use Replication to keep the FE version up to date. I have never used replication for data and didn't even consider it for the FE/code side of things. Does anyone have any experience with Replication as the means of propagating changes to the FE? Jennifer Gross From Lambert.Heenan at chartisinsurance.com Tue Sep 7 11:27:58 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 7 Sep 2010 12:27:58 -0400 Subject: [AccessD] Replication as a tool for updating FE In-Reply-To: <008b01cb4ea3$94c2c7e0$b901a8c0@Schroeder> References: <008b01cb4ea3$94c2c7e0$b901a8c0@Schroeder> Message-ID: Speaking from experience in Access 97 land, this is surely not a good idea. On the face of it it looks great, but the problem is that every time you make a change (in the design master) to any objects in the front end, forms, modules, report, queries, etc. records are written to an MSYS table to which you have no edit rights, and the size of that table grows rather rapidly as you develop the application. The end result is uncontrollable bloat. I would stick with the various front-end updater solutions that are "out there". Anyone care to point to a current, active link to the FE Updater? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Tuesday, September 07, 2010 11:45 AM To: AccessD List Subject: [AccessD] Replication as a tool for updating FE It has been suggested to me to use Replication to keep the FE version up to date. I have never used replication for data and didn't even consider it for the FE/code side of things. Does anyone have any experience with Replication as the means of propagating changes to the FE? Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Tue Sep 7 11:54:29 2010 From: df.waters at comcast.net (Dan Waters) Date: Tue, 7 Sep 2010 11:54:29 -0500 Subject: [AccessD] Replication as a tool for updating FE In-Reply-To: References: <008b01cb4ea3$94c2c7e0$b901a8c0@Schroeder> Message-ID: <5428D04E03DA41838D1C65338E0B2E4E@danwaters> Look at: http://autofeupdater.com/ You can also make your own! I use a separate .mdb file to copy files from a source folder on the server to the user's folder when a user wants to open the app. This is helpful because if you have a specific situation you can get it resolved with your own solution. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, September 07, 2010 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Replication as a tool for updating FE Speaking from experience in Access 97 land, this is surely not a good idea. On the face of it it looks great, but the problem is that every time you make a change (in the design master) to any objects in the front end, forms, modules, report, queries, etc. records are written to an MSYS table to which you have no edit rights, and the size of that table grows rather rapidly as you develop the application. The end result is uncontrollable bloat. I would stick with the various front-end updater solutions that are "out there". Anyone care to point to a current, active link to the FE Updater? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Tuesday, September 07, 2010 11:45 AM To: AccessD List Subject: [AccessD] Replication as a tool for updating FE It has been suggested to me to use Replication to keep the FE version up to date. I have never used replication for data and didn't even consider it for the FE/code side of things. Does anyone have any experience with Replication as the means of propagating changes to the FE? Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Tue Sep 7 11:58:05 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 07 Sep 2010 12:58:05 -0400 Subject: [AccessD] Replication as a tool for updating FE In-Reply-To: <008b01cb4ea3$94c2c7e0$b901a8c0@Schroeder> References: <008b01cb4ea3$94c2c7e0$b901a8c0@Schroeder> Message-ID: <708BFFFD343044908A0C12299BA6F56F@XPS> Jennifer, General rule of thumb has always been that replication is OK for data, but poor for everything else (a FE). Anyone I know that's tried to use replication for code/object changes has always had problems. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Tuesday, September 07, 2010 11:45 AM To: AccessD List Subject: [AccessD] Replication as a tool for updating FE It has been suggested to me to use Replication to keep the FE version up to date. I have never used replication for data and didn't even consider it for the FE/code side of things. Does anyone have any experience with Replication as the means of propagating changes to the FE? Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Tue Sep 7 12:05:22 2010 From: jengross at gte.net (Jennifer Gross) Date: Tue, 07 Sep 2010 10:05:22 -0700 Subject: [AccessD] Replication as a tool for updating FE In-Reply-To: <708BFFFD343044908A0C12299BA6F56F@XPS> Message-ID: <009001cb4eae$dc09b1d0$b901a8c0@Schroeder> Thanks you guys. I appreciate the feedback. I have been using an updater from Ted Avery for about 10 years now that has worked well as long as permissions are proper on the drives. This is a new project for a new organization and they suggested replication. In the event that it avoided any drive permission issues I wanted to look into using replication. I'll look into the updaters that have been suggested and stick with rolling my own. Take care, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, September 07, 2010 9:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Replication as a tool for updating FE Jennifer, General rule of thumb has always been that replication is OK for data, but poor for everything else (a FE). Anyone I know that's tried to use replication for code/object changes has always had problems. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Tuesday, September 07, 2010 11:45 AM To: AccessD List Subject: [AccessD] Replication as a tool for updating FE It has been suggested to me to use Replication to keep the FE version up to date. I have never used replication for data and didn't even consider it for the FE/code side of things. Does anyone have any experience with Replication as the means of propagating changes to the FE? Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Tue Sep 7 12:12:55 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 07 Sep 2010 13:12:55 -0400 Subject: [AccessD] Replication as a tool for updating FE In-Reply-To: <009001cb4eae$dc09b1d0$b901a8c0@Schroeder> References: <708BFFFD343044908A0C12299BA6F56F@XPS> <009001cb4eae$dc09b1d0$b901a8c0@Schroeder> Message-ID: <6A5B393EF72A4925BB342D3A8BB6BADD@XPS> Jennifer, The other issue is that if you start using the new ACE format (Access 2007 and up), you won't be able to do replication anyway and would be backing yourself into a corner if you started to use it now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Tuesday, September 07, 2010 1:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Replication as a tool for updating FE Thanks you guys. I appreciate the feedback. I have been using an updater from Ted Avery for about 10 years now that has worked well as long as permissions are proper on the drives. This is a new project for a new organization and they suggested replication. In the event that it avoided any drive permission issues I wanted to look into using replication. I'll look into the updaters that have been suggested and stick with rolling my own. Take care, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, September 07, 2010 9:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Replication as a tool for updating FE Jennifer, General rule of thumb has always been that replication is OK for data, but poor for everything else (a FE). Anyone I know that's tried to use replication for code/object changes has always had problems. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Tuesday, September 07, 2010 11:45 AM To: AccessD List Subject: [AccessD] Replication as a tool for updating FE It has been suggested to me to use Replication to keep the FE version up to date. I have never used replication for data and didn't even consider it for the FE/code side of things. Does anyone have any experience with Replication as the means of propagating changes to the FE? Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Sep 7 12:27:33 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 07 Sep 2010 13:27:33 -0400 Subject: [AccessD] Strange Behaviour with Popup Forms in Acc2007 In-Reply-To: <54735D33F2EFB343A5196F837657ED6D04C29F79AE@MWLSVEXM002.au.baesystems.com> References: <54735D33F2EFB343A5196F837657ED6D04C29F79AE@MWLSVEXM002.au.baesystems.com> Message-ID: <4C867605.30109@colbyconsulting.com> Terry, Since no one has offered anything... It surely sounds like a bug, although it may also be that this form is not opening modal or popup whereas one of the others you mentioned are. If that is the case, then this would be the expected behavior and your old application simply did not respond as it should have. Modal forms are supposed to be on top at all times and cannot lose the focus. Popups are supposed to start out on top but can lose the focus. Are any of the other forms mentioned being opened modal or popup? John W. Colby www.ColbyConsulting.com On 9/7/2010 12:29 AM, MACE, Terry wrote: > Hi all, > > Our company is moving from Acc97 to Acc2007 and an app that I wrote a long time ago is behaving 'incorrectly' when converted to Acc2007. > > I have a continuous form set to popup with a double-click field, which when clicked opens another popup form, which then opens a further form. In Acc97 each form opens one on top of the other as they should. > > In Acc2007, the second form opens behind the first form and is not visible. If the forms are moved around to get to the second form, the third form will then open on top of the others. > > The forms that open on top are started from a command button, whereas the one that doesn't starts from a double-click text field. > > The code that is not working is: > Private Sub Part_Number_DblClick(Cancel As Integer) > DoCmd.OpenForm "frmItemSelect", , , , , , Me.Part_Number > End Sub > > When stepping through the code, the form is in front until the End Sub statement is executed, when the form with the code comes back to the front. > > Any ideas on getting the forms to open in the right order would be most appreciated. > > Cheers > > Terry > > "Warning: > The information contained in this email and any attached files is > confidential to BAE Systems Australia. If you are not the intended > recipient, any use, disclosure or copying of this email or any > attachments is expressly prohibited. If you have received this email > in error, please notify us immediately. VIRUS: Every care has been > taken to ensure this email and its attachments are virus free, > however, any loss or damage incurred in using this email is not the > sender's responsibility. It is your responsibility to ensure virus > checks are completed before installing any data sent in this email to > your computer." > From davidmcafee at gmail.com Tue Sep 7 12:47:40 2010 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 7 Sep 2010 10:47:40 -0700 Subject: [AccessD] Replication as a tool for updating FE In-Reply-To: <008b01cb4ea3$94c2c7e0$b901a8c0@Schroeder> References: <008b01cb4ea3$94c2c7e0$b901a8c0@Schroeder> Message-ID: Jennifer, another thing you can do is launch a batch file or some other type of file. I wrote a little VB.Net "launcher" that I use. I compile it one time and create a text file (renamed to *.ini) that contains two lines: LatestVersion:PS_010.adp DeleteVersion:PS_00*.adp When I "release" a new versionof the FE, I simply copy the ADP (or MDB, ACCDB) to the network, rename the file and increment the first line in the ini file by one. I like to leave the previous version incase I make a mistake and want to quickly resort back to the old version. If I decided to delete a block of old FE's still on the users system, I put an asterisk in the "Delete" line (the example above will delete PS_001.adp to PS_009.adp, if they exist on the users PC) The compiled exe is copied to the users' desktop and they double click it to launch the file. The app starts, checks if the latest version already exists on the users' PC. If it does, it launches it, if not it copies it over and launches it. Very simple. (a batch file can do the same, but this was a neat fun .net project for me to write) David Imports System.IO Imports System.Environment Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim OldVersion As String = "" 'Don't update this string here, they are populated by the ini file Dim NewVersion As String = "" 'Don't update this string here, they are populated by the ini file Dim iniFile As String = "PS.ini" Dim NetPath As String = "\\fs1\MOCapps$\PS\" Dim LocPath As String = System.Environment.GetFolderPath(SpecialFolder.LocalApplicationData).ToString + "\Moc\PS\" Debug.Print(LocPath) UpDateCaption("Reading ini") Dim oRead As System.IO.StreamReader Dim LineIn As String oRead = File.OpenText((NetPath + iniFile)) While (oRead.Peek <> -1) LineIn = oRead.ReadLine If (LineIn.Substring(0, 14) = "LatestVersion:") Then NewVersion = LineIn.Substring((LineIn.Length - (LineIn.Length - 14))) ElseIf (LineIn.Substring(0, 14) = "DeleteVersion:") Then OldVersion = LineIn.Substring((LineIn.Length - (LineIn.Length - 14))) ' Delete the previous version ' If File.Exists(LocPath + OldVersion) Then ' File.Delete(LocPath + OldVersion) ' End If Else LineIn = "" End If End While oRead.Close() If Directory.Exists(NetPath) Then ' If the network path exists, continue with the local path checks If Directory.Exists(LocPath) Then ' if the local path exists then check for the actual file If Not File.Exists((LocPath + NewVersion)) Then ' Check to see if the new file is already installed UpDateCaption("Copying ") File.Copy((NetPath + NewVersion), (LocPath + NewVersion)) ' If NOT, copy the file :) End If Else ' Directory did not exist, so create it and copy new file over Directory.CreateDirectory(LocPath) File.Copy((NetPath + NewVersion), (LocPath + NewVersion)) End If ' If the new file exists on local computer, start the new version on the local PC If File.Exists((LocPath + NewVersion)) Then UpDateCaption("Starting application") System.Diagnostics.Process.Start((LocPath + NewVersion)) Else MessageBox.Show(("Cannot find " + (LocPath + (NewVersion + "."))), "unable to start PS") End If ' Delete the previous version ' If File.Exists(LocPath + OldVersion) Then ' File.Delete(LocPath + OldVersion) ' End If For Each FileFound As String In Directory.GetFiles(LocPath, OldVersion) File.Delete(FileFound) Next Else ' The network path was unavailable, so alert the user MessageBox.Show(("Network path: " + (NetPath + " is unavailable")), "Unable to start Pull Sheet Database") End If UpDateCaption("") Application.Exit() End Sub Private Sub UpDateCaption(ByVal strCaption As String) lblStatus.Text = strCaption System.Windows.Forms.Application.DoEvents() End Sub End Class On Tue, Sep 7, 2010 at 8:44 AM, Jennifer Gross wrote: > It has been suggested to me to use Replication to keep the FE version up to > date. ?I have never used replication for data and didn't even consider it > for the FE/code side of things. ?Does anyone have any experience with > Replication as the means of propagating changes to the FE? > > > > Jennifer Gross > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Sep 7 13:03:28 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 07 Sep 2010 14:03:28 -0400 Subject: [AccessD] Access version Message-ID: <4C867E70.5060903@colbyconsulting.com> Access 97 and Access 2K have "issues" with using event handling in classes, in particular with storing a pointer to the form in the class and then closing the form without first intentionally closing the class. These issues were fixed in Access 2002 and above. As a result of these issues, I need to force the form close to go through a button where I can insert cleanup code, thus I need to make sure the AllowClose button is not enabled in these environments. I have never used code that figures out the version. Does anyone have such code? -- John W. Colby www.ColbyConsulting.com From jengross at gte.net Tue Sep 7 13:14:55 2010 From: jengross at gte.net (Jennifer Gross) Date: Tue, 07 Sep 2010 11:14:55 -0700 Subject: [AccessD] Replication as a tool for updating FE In-Reply-To: Message-ID: <009401cb4eb8$931420f0$b901a8c0@Schroeder> Thanks David. Might be a good 'get my feet wet' project in .net to see if I can get your code working. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Tuesday, September 07, 2010 10:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Replication as a tool for updating FE Jennifer, another thing you can do is launch a batch file or some other type of file. I wrote a little VB.Net "launcher" that I use. I compile it one time and create a text file (renamed to *.ini) that contains two lines: LatestVersion:PS_010.adp DeleteVersion:PS_00*.adp When I "release" a new versionof the FE, I simply copy the ADP (or MDB, ACCDB) to the network, rename the file and increment the first line in the ini file by one. I like to leave the previous version incase I make a mistake and want to quickly resort back to the old version. If I decided to delete a block of old FE's still on the users system, I put an asterisk in the "Delete" line (the example above will delete PS_001.adp to PS_009.adp, if they exist on the users PC) The compiled exe is copied to the users' desktop and they double click it to launch the file. The app starts, checks if the latest version already exists on the users' PC. If it does, it launches it, if not it copies it over and launches it. Very simple. (a batch file can do the same, but this was a neat fun .net project for me to write) David Imports System.IO Imports System.Environment Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim OldVersion As String = "" 'Don't update this string here, they are populated by the ini file Dim NewVersion As String = "" 'Don't update this string here, they are populated by the ini file Dim iniFile As String = "PS.ini" Dim NetPath As String = "\\fs1\MOCapps$\PS\" Dim LocPath As String = System.Environment.GetFolderPath(SpecialFolder.LocalApplicationData).ToStrin g + "\Moc\PS\" Debug.Print(LocPath) UpDateCaption("Reading ini") Dim oRead As System.IO.StreamReader Dim LineIn As String oRead = File.OpenText((NetPath + iniFile)) While (oRead.Peek <> -1) LineIn = oRead.ReadLine If (LineIn.Substring(0, 14) = "LatestVersion:") Then NewVersion = LineIn.Substring((LineIn.Length - (LineIn.Length - 14))) ElseIf (LineIn.Substring(0, 14) = "DeleteVersion:") Then OldVersion = LineIn.Substring((LineIn.Length - (LineIn.Length - 14))) ' Delete the previous version ' If File.Exists(LocPath + OldVersion) Then ' File.Delete(LocPath + OldVersion) ' End If Else LineIn = "" End If End While oRead.Close() If Directory.Exists(NetPath) Then ' If the network path exists, continue with the local path checks If Directory.Exists(LocPath) Then ' if the local path exists then check for the actual file If Not File.Exists((LocPath + NewVersion)) Then ' Check to see if the new file is already installed UpDateCaption("Copying ") File.Copy((NetPath + NewVersion), (LocPath + NewVersion)) ' If NOT, copy the file :) End If Else ' Directory did not exist, so create it and copy new file over Directory.CreateDirectory(LocPath) File.Copy((NetPath + NewVersion), (LocPath + NewVersion)) End If ' If the new file exists on local computer, start the new version on the local PC If File.Exists((LocPath + NewVersion)) Then UpDateCaption("Starting application") System.Diagnostics.Process.Start((LocPath + NewVersion)) Else MessageBox.Show(("Cannot find " + (LocPath + (NewVersion + "."))), "unable to start PS") End If ' Delete the previous version ' If File.Exists(LocPath + OldVersion) Then ' File.Delete(LocPath + OldVersion) ' End If For Each FileFound As String In Directory.GetFiles(LocPath, OldVersion) File.Delete(FileFound) Next Else ' The network path was unavailable, so alert the user MessageBox.Show(("Network path: " + (NetPath + " is unavailable")), "Unable to start Pull Sheet Database") End If UpDateCaption("") Application.Exit() End Sub Private Sub UpDateCaption(ByVal strCaption As String) lblStatus.Text = strCaption System.Windows.Forms.Application.DoEvents() End Sub End Class On Tue, Sep 7, 2010 at 8:44 AM, Jennifer Gross wrote: > It has been suggested to me to use Replication to keep the FE version up to > date. ?I have never used replication for data and didn't even consider it > for the FE/code side of things. ?Does anyone have any experience with > Replication as the means of propagating changes to the FE? > > > > Jennifer Gross > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Tue Sep 7 13:22:03 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 7 Sep 2010 14:22:03 -0400 Subject: [AccessD] Access version In-Reply-To: <4C867E70.5060903@colbyconsulting.com> References: <4C867E70.5060903@colbyconsulting.com> Message-ID: It's long and complicated, so fasten your seat belt... syscmd(acSysCmdAccessVer) Lambert :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 07, 2010 2:03 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access version Access 97 and Access 2K have "issues" with using event handling in classes, in particular with storing a pointer to the form in the class and then closing the form without first intentionally closing the class. These issues were fixed in Access 2002 and above. As a result of these issues, I need to force the form close to go through a button where I can insert cleanup code, thus I need to make sure the AllowClose button is not enabled in these environments. I have never used code that figures out the version. Does anyone have such code? -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From patrinod at gmail.com Tue Sep 7 14:20:27 2010 From: patrinod at gmail.com (Den Patrino) Date: Tue, 7 Sep 2010 15:20:27 -0400 Subject: [AccessD] Scroll button Message-ID: John ... re - mouse scroll If your concern with the mouse scroll is to prevent the user from moving to another record on a form with the scroll button, you don't have to worry about dll's etc. An easy solution is to: Private Sub Form_Current() 'This code prevents the user from moving to another record via the mouse wheel button DoCmd.GoToRecord , , acFirst End Sub Dennis Patrino From: accessd-bounces at databaseadvisors.com [mailto: accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, 2 September 2010 11:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] disable scroll wheel I am trying to use the archives and I am getting nothing on anything I search. Possibly down? Anyway, I remember a discussion about disabling the scroll wheel in Access. I didn't need that info at the time so I just noted it in the back of my brain. Well now I need it. Can anyone discuss how it is done, and at what level? Is it code that turns it on and off? Is it turned on in a specific form or table or in all of Access? Thanks! -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Sep 7 14:40:54 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 7 Sep 2010 19:40:54 +0000 Subject: [AccessD] Access version In-Reply-To: References: <4C867E70.5060903@colbyconsulting.com>, Message-ID: Apparently Lambert can type faster than I can copy/paste... > From: Lambert.Heenan at chartisinsurance.com > To: accessd at databaseadvisors.com > Date: Tue, 7 Sep 2010 14:22:03 -0400 > Subject: Re: [AccessD] Access version > > It's long and complicated, so fasten your seat belt... > > syscmd(acSysCmdAccessVer) > > Lambert :-) > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, September 07, 2010 2:03 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access version > > Access 97 and Access 2K have "issues" with using event handling in classes, in particular with storing a pointer to the form in the class and then closing the form without first intentionally closing the class. These issues were fixed in Access 2002 and above. > > As a result of these issues, I need to force the form close to go through a button where I can insert cleanup code, thus I need to make sure the AllowClose button is not enabled in these environments. > > I have never used code that figures out the version. Does anyone have such code? > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Sep 7 15:09:52 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 07 Sep 2010 16:09:52 -0400 Subject: [AccessD] Scroll button In-Reply-To: References: Message-ID: <4C869C10.4090500@colbyconsulting.com> The user wants the mouse scroll to be ignored. This seems like it would move to the first record which is not what they want. John W. Colby www.ColbyConsulting.com On 9/7/2010 3:20 PM, Den Patrino wrote: > John ... > > re - mouse scroll > If your concern with the mouse scroll is to prevent the user from moving to > another record on a form with the scroll button, you don't have to worry > about dll's etc. > > An easy solution is to: > Private Sub Form_Current() > 'This code prevents the user from moving to another record via the mouse > wheel button > DoCmd.GoToRecord , , acFirst > End Sub > > Dennis Patrino > > > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, 2 September 2010 11:57 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] disable scroll wheel > > I am trying to use the archives and I am getting nothing on anything I > search. Possibly down? > > Anyway, I remember a discussion about disabling the scroll wheel in Access. > I didn't need that info > at the time so I just noted it in the back of my brain. > > Well now I need it. Can anyone discuss how it is done, and at what level? > Is it code that turns it > on and off? Is it turned on in a specific form or table or in all of > Access? > > Thanks! > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Sep 7 16:51:41 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 07 Sep 2010 17:51:41 -0400 Subject: [AccessD] Access version In-Reply-To: References: <4C867E70.5060903@colbyconsulting.com> Message-ID: <4C86B3ED.8070507@colbyconsulting.com> OK... now is there a way to determine the database container version? I am getting an error "cannot open the database properties". When I Google this it appears that it is caused by opening a container in A2K where the container was created in a later version. This may in fact be the cause though I thought that Access 2K would refuse to open a later container at all. I created my PLSS MDA in 2003 but I do not remember being given a choice of container, though I do remember being offered such a choice in the distant past. John W. Colby www.ColbyConsulting.com On 9/7/2010 2:22 PM, Heenan, Lambert wrote: > It's long and complicated, so fasten your seat belt... > > syscmd(acSysCmdAccessVer) > > Lambert :-) > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, September 07, 2010 2:03 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access version > > Access 97 and Access 2K have "issues" with using event handling in classes, in particular with storing a pointer to the form in the class and then closing the form without first intentionally closing the class. These issues were fixed in Access 2002 and above. > > As a result of these issues, I need to force the form close to go through a button where I can insert cleanup code, thus I need to make sure the AllowClose button is not enabled in these environments. > > I have never used code that figures out the version. Does anyone have such code? > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Sep 7 17:10:32 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 07 Sep 2010 18:10:32 -0400 Subject: [AccessD] Access container version Message-ID: <4C86B858.7030204@colbyconsulting.com> Just an FYI, I created a container in A2K and imported all the stuff from my original container and the "can't open database properties" error went away. Which brings us to the question, what functionality do we lose by not using the later version container? -- John W. Colby www.ColbyConsulting.com From terry.mace at baesystems.com Tue Sep 7 17:23:22 2010 From: terry.mace at baesystems.com (MACE, Terry) Date: Wed, 8 Sep 2010 07:53:22 +0930 Subject: [AccessD] Strange Behaviour with Popup Forms in Acc2007 In-Reply-To: <4C867605.30109@colbyconsulting.com> References: <54735D33F2EFB343A5196F837657ED6D04C29F79AE@MWLSVEXM002.au.baesystems.com> <4C867605.30109@colbyconsulting.com> Message-ID: <54735D33F2EFB343A5196F837657ED6D04C29F79DB@MWLSVEXM002.au.baesystems.com> John, None of the forms are modal but all are pop up. I've also found another area in the database that exhibits the same behaviour and it's also fired from a double-click event. All the ones that are fired from a command button work fine. You may be right in that it is a bug. Regards Terry Mace Logistics Support Officer & Maintenance Supervisor -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, 8 September 2010 3:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Strange Behaviour with Popup Forms in Acc2007 Terry, Since no one has offered anything... It surely sounds like a bug, although it may also be that this form is not opening modal or popup whereas one of the others you mentioned are. If that is the case, then this would be the expected behavior and your old application simply did not respond as it should have. Modal forms are supposed to be on top at all times and cannot lose the focus. Popups are supposed to start out on top but can lose the focus. Are any of the other forms mentioned being opened modal or popup? John W. Colby www.ColbyConsulting.com On 9/7/2010 12:29 AM, MACE, Terry wrote: > Hi all, > > Our company is moving from Acc97 to Acc2007 and an app that I wrote a long time ago is behaving 'incorrectly' when converted to Acc2007. > > I have a continuous form set to popup with a double-click field, which when clicked opens another popup form, which then opens a further form. In Acc97 each form opens one on top of the other as they should. > > In Acc2007, the second form opens behind the first form and is not visible. If the forms are moved around to get to the second form, the third form will then open on top of the others. > > The forms that open on top are started from a command button, whereas the one that doesn't starts from a double-click text field. > > The code that is not working is: > Private Sub Part_Number_DblClick(Cancel As Integer) > DoCmd.OpenForm "frmItemSelect", , , , , , Me.Part_Number > End Sub > > When stepping through the code, the form is in front until the End Sub statement is executed, when the form with the code comes back to the front. > > Any ideas on getting the forms to open in the right order would be most appreciated. > > Cheers > > Terry > > "Warning: > The information contained in this email and any attached files is > confidential to BAE Systems Australia. If you are not the intended > recipient, any use, disclosure or copying of this email or any > attachments is expressly prohibited. If you have received this email > in error, please notify us immediately. VIRUS: Every care has been > taken to ensure this email and its attachments are virus free, > however, any loss or damage incurred in using this email is not the > sender's responsibility. It is your responsibility to ensure virus > checks are completed before installing any data sent in this email to > your computer." > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "Warning: The information contained in this email and any attached files is confidential to BAE Systems Australia. If you are not the intended recipient, any use, disclosure or copying of this email or any attachments is expressly prohibited. If you have received this email in error, please notify us immediately. VIRUS: Every care has been taken to ensure this email and its attachments are virus free, however, any loss or damage incurred in using this email is not the sender's responsibility. It is your responsibility to ensure virus checks are completed before installing any data sent in this email to your computer." From davidmcafee at gmail.com Tue Sep 7 18:49:28 2010 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 7 Sep 2010 16:49:28 -0700 Subject: [AccessD] Strange Behaviour with Popup Forms in Acc2007 In-Reply-To: <54735D33F2EFB343A5196F837657ED6D04C29F79DB@MWLSVEXM002.au.baesystems.com> References: <54735D33F2EFB343A5196F837657ED6D04C29F79AE@MWLSVEXM002.au.baesystems.com> <4C867605.30109@colbyconsulting.com> <54735D33F2EFB343A5196F837657ED6D04C29F79DB@MWLSVEXM002.au.baesystems.com> Message-ID: I might have missed this but under Access options, Current Database, you do have the overlapping windows option checked instead of tabbed documents, right? On Tue, Sep 7, 2010 at 3:23 PM, MACE, Terry wrote: > John, > > None of the forms are modal but all are pop up. I've also found another area in the database that exhibits the same behaviour and it's also fired from a double-click event. All the ones that are fired from a command button work fine. > You may be right in that it is a bug. > > Regards > > Terry Mace > Logistics Support Officer & Maintenance Supervisor > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, 8 September 2010 3:28 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Strange Behaviour with Popup Forms in Acc2007 > > Terry, > > Since no one has offered anything... > > It surely sounds like a bug, although it may also be that this form is not opening modal or popup > whereas one of the others you mentioned are. > > If that is the case, then this would be the expected behavior and your old application simply did > not respond as it should have. > > Modal forms are supposed to be on top at all times and cannot lose the focus. ?Popups are supposed > to start out on top but can lose the focus. > > Are any of the other forms mentioned being opened modal or popup? > > John W. Colby > www.ColbyConsulting.com > > On 9/7/2010 12:29 AM, MACE, Terry wrote: >> Hi all, >> >> Our company is moving from Acc97 to Acc2007 and an app that I wrote a long time ago is behaving 'incorrectly' when converted to Acc2007. >> >> I have a continuous form set to popup with a double-click field, which when clicked opens another popup form, which then opens a further form. In Acc97 each form opens one on top of the other as they should. >> >> In Acc2007, the second form opens behind the first form and is not visible. ?If the forms are moved around to get to the second form, the third form will then open on top of the others. >> >> The forms that open on top are started from a command button, whereas the one that doesn't starts from a double-click text field. >> >> The code that is not working is: >> Private Sub Part_Number_DblClick(Cancel As Integer) >> ? ? ?DoCmd.OpenForm "frmItemSelect", , , , , , Me.Part_Number >> End Sub >> >> When stepping through the code, the form is in front until the End Sub statement is executed, when the form with the code comes back to the front. >> >> Any ideas on getting the forms to open in the right order would be most appreciated. >> >> Cheers >> >> Terry >> >> "Warning: >> The information contained in this email and any attached files is >> confidential to BAE Systems Australia. If you are not the intended >> recipient, any use, disclosure or copying of this email or any >> attachments is expressly prohibited. ?If you have received this email >> in error, please notify us immediately. VIRUS: Every care has been >> taken to ensure this email and its attachments are virus free, >> however, any loss or damage incurred in using this email is not the >> sender's responsibility. ?It is your responsibility to ensure virus >> checks are completed before installing any data sent in this email to >> your computer." >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > "Warning: > The information contained in this email and any attached files is > confidential to BAE Systems Australia. If you are not the intended > recipient, any use, disclosure or copying of this email or any > attachments is expressly prohibited. ?If you have received this email > in error, please notify us immediately. VIRUS: Every care has been > taken to ensure this email and its attachments are virus free, > however, any loss or damage incurred in using this email is not the > sender's responsibility. ?It is your responsibility to ensure virus > checks are completed before installing any data sent in this email to > your computer." > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From terry.mace at baesystems.com Tue Sep 7 22:15:19 2010 From: terry.mace at baesystems.com (MACE, Terry) Date: Wed, 8 Sep 2010 12:45:19 +0930 Subject: [AccessD] Strange Behaviour with Popup Forms in Acc2007 In-Reply-To: References: <54735D33F2EFB343A5196F837657ED6D04C29F79AE@MWLSVEXM002.au.baesystems.com> <4C867605.30109@colbyconsulting.com> <54735D33F2EFB343A5196F837657ED6D04C29F79DB@MWLSVEXM002.au.baesystems.com> Message-ID: <54735D33F2EFB343A5196F837657ED6D04C29F7A37@MWLSVEXM002.au.baesystems.com> Yes I do Regards Terry Mace -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, 8 September 2010 9:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Strange Behaviour with Popup Forms in Acc2007 I might have missed this but under Access options, Current Database, you do have the overlapping windows option checked instead of tabbed documents, right? On Tue, Sep 7, 2010 at 3:23 PM, MACE, Terry wrote: > John, > > None of the forms are modal but all are pop up. I've also found another area in the database that exhibits the same behaviour and it's also fired from a double-click event. All the ones that are fired from a command button work fine. > You may be right in that it is a bug. > > Regards > > Terry Mace > Logistics Support Officer & Maintenance Supervisor > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, 8 September 2010 3:28 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Strange Behaviour with Popup Forms in Acc2007 > > Terry, > > Since no one has offered anything... > > It surely sounds like a bug, although it may also be that this form is not opening modal or popup > whereas one of the others you mentioned are. > > If that is the case, then this would be the expected behavior and your old application simply did > not respond as it should have. > > Modal forms are supposed to be on top at all times and cannot lose the focus. Popups are supposed > to start out on top but can lose the focus. > > Are any of the other forms mentioned being opened modal or popup? > > John W. Colby > www.ColbyConsulting.com > > On 9/7/2010 12:29 AM, MACE, Terry wrote: >> Hi all, >> >> Our company is moving from Acc97 to Acc2007 and an app that I wrote a long time ago is behaving 'incorrectly' when converted to Acc2007. >> >> I have a continuous form set to popup with a double-click field, which when clicked opens another popup form, which then opens a further form. In Acc97 each form opens one on top of the other as they should. >> >> In Acc2007, the second form opens behind the first form and is not visible. If the forms are moved around to get to the second form, the third form will then open on top of the others. >> >> The forms that open on top are started from a command button, whereas the one that doesn't starts from a double-click text field. >> >> The code that is not working is: >> Private Sub Part_Number_DblClick(Cancel As Integer) >> DoCmd.OpenForm "frmItemSelect", , , , , , Me.Part_Number >> End Sub >> >> When stepping through the code, the form is in front until the End Sub statement is executed, when the form with the code comes back to the front. >> >> Any ideas on getting the forms to open in the right order would be most appreciated. >> >> Cheers >> >> Terry >> >> "Warning: >> The information contained in this email and any attached files is >> confidential to BAE Systems Australia. If you are not the intended >> recipient, any use, disclosure or copying of this email or any >> attachments is expressly prohibited. If you have received this email >> in error, please notify us immediately. VIRUS: Every care has been >> taken to ensure this email and its attachments are virus free, >> however, any loss or damage incurred in using this email is not the >> sender's responsibility. It is your responsibility to ensure virus >> checks are completed before installing any data sent in this email to >> your computer." >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > "Warning: > The information contained in this email and any attached files is > confidential to BAE Systems Australia. If you are not the intended > recipient, any use, disclosure or copying of this email or any > attachments is expressly prohibited. If you have received this email > in error, please notify us immediately. VIRUS: Every care has been > taken to ensure this email and its attachments are virus free, > however, any loss or damage incurred in using this email is not the > sender's responsibility. It is your responsibility to ensure virus > checks are completed before installing any data sent in this email to > your computer." > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "Warning: The information contained in this email and any attached files is confidential to BAE Systems Australia. If you are not the intended recipient, any use, disclosure or copying of this email or any attachments is expressly prohibited. If you have received this email in error, please notify us immediately. VIRUS: Every care has been taken to ensure this email and its attachments are virus free, however, any loss or damage incurred in using this email is not the sender's responsibility. It is your responsibility to ensure virus checks are completed before installing any data sent in this email to your computer." From Gustav at cactus.dk Wed Sep 8 01:20:14 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 08 Sep 2010 08:20:14 +0200 Subject: [AccessD] Access version Message-ID: Hi John Do remember that the returned version "number" is a string ... /gustav >>> Lambert.Heenan at chartisinsurance.com 07-09-2010 20:22:03 >>> It's long and complicated, so fasten your seat belt... syscmd(acSysCmdAccessVer) Lambert :-) From jwcolby at colbyconsulting.com Wed Sep 8 09:36:22 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 08 Sep 2010 10:36:22 -0400 Subject: [AccessD] Presentation Level Security System (PLSS) Message-ID: <4C879F66.2000708@colbyconsulting.com> Guys, PLSS is proceeding apace! I have applied it to (my client) DIS' application and am now actively controlling form security in a real application. DIS' application is called DISCO and in DISCO I use my framework called C2DbFWA2K (2nd generation). Inside of C2DbFWA2K I had designed security which I lovingly called Light Weight Security (LWS). That security was not table driven; I had to write lines of code in each form's OnOpen to set up the security. Anyway, I had to strip all of that out, remove all LWS tables, forms, queries and modules. So DISCO still uses C2DbFWA2K_PLSS (the PLSS indicating that LWS was removed) and it also uses C2DbPLSS. Of course C2DbPLSS now controls security. DISCO_PLSS references C2DbFWA2K_PLSS first so that it has access to the framework functionality, then it references C2DbPLSS so that it has PLSS functionality. I have migrated their existing users / groups / user groups info into PLSS since the data was virtually identical. Disco_PLSS now correctly controls form properties based on that data. This is a huge step for me since it allows the client to actually start testing and hopefully soon push this into production (they need it quickly). I still have a little work to do on the form security wizard. And of course I have to develop the control security wizard. I am open to input on that wizard. The issue is that while I could just go to msysObjects to get a list of every form in the database, getting the controls on any given form is more work. The only way I know to do it is to open the form in design view and start iterating the controls collection of the form. By itself this is no huge deal, but it does cause populating the controls list to be slower than populating the form's combo. Essentially as I select a form I have to open the selected form, scan the controls collection, run each control through a case statement to see if I want to even display that type of control etc. It may also cause issues binding the list to the names of the controls if there are very many controls. I am guessing a temp table is in order. I need your input on what kinds of controls you feel would have security applied. All bound controls, command buttons etc. But what about lines, Labels, Images etc? If so should I have check boxes to filter out and only show the types of items selected in the check boxes? This control wizard will end up having the same functionality and look similar to the form wizard but may be harder to use simply because of the sheer number of control types. Any input cheerfully accepted. Anyone interested in beta testing also gratefully accepted. -- John W. Colby www.ColbyConsulting.com From DWUTKA at Marlow.com Wed Sep 8 10:09:38 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 8 Sep 2010 10:09:38 -0500 Subject: [AccessD] Strange Behaviour with Popup Forms in Acc2007 In-Reply-To: <54735D33F2EFB343A5196F837657ED6D04C29F79DB@MWLSVEXM002.au.baesystems.com> References: <54735D33F2EFB343A5196F837657ED6D04C29F79AE@MWLSVEXM002.au.baesystems.com><4C867605.30109@colbyconsulting.com> <54735D33F2EFB343A5196F837657ED6D04C29F79DB@MWLSVEXM002.au.baesystems.com> Message-ID: Back when I used to use Access as an interface, I liked to put my forms on the desktop (hide the Access window). In 97, it worked fine to make the windows 'popup', but in 2000 and later, initially, the code I had for hiding the Access window also required the window to be modal, to show up on the desktop. Found a way around that, which might help circumvent the bug you have run into: Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Private Const SW_SHOW = 5 'put the above in the forms declarations , then the following in the on load event (or on open) ShowWindow Me.hwnd, SW_SHOW Me.Repaint Hope that helps. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MACE, Terry Sent: Tuesday, September 07, 2010 5:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Strange Behaviour with Popup Forms in Acc2007 John, None of the forms are modal but all are pop up. I've also found another area in the database that exhibits the same behaviour and it's also fired from a double-click event. All the ones that are fired from a command button work fine. You may be right in that it is a bug. Regards Terry Mace Logistics Support Officer & Maintenance Supervisor The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Wed Sep 8 11:36:18 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 8 Sep 2010 09:36:18 -0700 Subject: [AccessD] Getting Access Back On Top Message-ID: <1161FE102BCB4AB4B3FAFD721D4B8BE0@HAL9005> Dear List: I have written a routine for a client to transfer their contact information from their database to a folder in Outlook. The first I do is pop up the folder selector so that they can select the contact folder that they want to transfer their contacts into. However, when the folder selector dialog box pops up, Outlook is has the focus. After they select the folder, Outlook is still on top and they have to alt-Tab to get back to Access. Is there a way in Access to get the access app back on top? Second problem is that I delete all of the contacts in the target folder before the transfer using: ' delete all the current contacts For Each olContactItem In olFolder.Items olContactItem.Delete Next where: Dim olContactItem As outlook.ContactItem Dim olFolder As outlook.MAPIFolder The loop takes a while to run but after it's done the contacts are still in the folder. Can anyone see what I'm doing wrong here? MMTIA, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From ssharkins at gmail.com Wed Sep 8 15:09:12 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 8 Sep 2010 13:09:12 -0700 Subject: [AccessD] Getting Access Back On Top References: <1161FE102BCB4AB4B3FAFD721D4B8BE0@HAL9005> Message-ID: <3814D5D9F6AE41929BB19FDDC5EC9752@salvationomc4p> Rocky, can't say, but have you checked Helen Feddema's site -- she has a ton of authomation code for Outlook. Susan H. > Dear List: > > I have written a routine for a client to transfer their contact > information > from their database to a folder in Outlook. The first I do is pop up the > folder selector so that they can select the contact folder that they want > to > transfer their contacts into. However, when the folder selector dialog > box > pops up, Outlook is has the focus. After they select the folder, Outlook > is > still on top and they have to alt-Tab to get back to Access. Is there a > way > in Access to get the access app back on top? > > Second problem is that I delete all of the contacts in the target folder > before the transfer using: > > ' delete all the current contacts > For Each olContactItem In olFolder.Items > olContactItem.Delete > Next > > where: > > Dim olContactItem As outlook.ContactItem > Dim olFolder As outlook.MAPIFolder > > > The loop takes a while to run but after it's done the contacts are still > in > the folder. Can anyone see what I'm doing wrong here? > > MMTIA, > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -------------------------------------------------------------------------------- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kismert at gmail.com Wed Sep 8 12:21:06 2010 From: kismert at gmail.com (Kenneth Ismert) Date: Wed, 8 Sep 2010 12:21:06 -0500 Subject: [AccessD] Scroll button Message-ID: > > jwcolby: > The user wants the mouse scroll to be ignored. This seems like it would > move to the first record which is not what they want. > I'll remind everyone of my super-stupid, no-code, fool-proof mouse scroll solution: 1. Have a parent form which lists all of the records 2. Have a a pop-up edit form with: * The form's query to restricted in the where clause to ONLY the record being edited * Allow Additions turned OFF The user is free to use the mouse wheel to scroll amongst the one record in the edit form. Works in all versions. -Ken From rockysmolin at bchacc.com Wed Sep 8 12:30:52 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 8 Sep 2010 10:30:52 -0700 Subject: [AccessD] Getting Access Back On Top In-Reply-To: <3814D5D9F6AE41929BB19FDDC5EC9752@salvationomc4p> References: <1161FE102BCB4AB4B3FAFD721D4B8BE0@HAL9005> <3814D5D9F6AE41929BB19FDDC5EC9752@salvationomc4p> Message-ID: <8345189E457544D49D14C9B0D4796048@HAL9005> Yeah, I used her stuff to get this far. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 08, 2010 1:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting Access Back On Top Rocky, can't say, but have you checked Helen Feddema's site -- she has a ton of authomation code for Outlook. Susan H. > Dear List: > > I have written a routine for a client to transfer their contact > information from their database to a folder in Outlook. The first I > do is pop up the folder selector so that they can select the contact > folder that they want to transfer their contacts into. However, when > the folder selector dialog box pops up, Outlook is has the focus. > After they select the folder, Outlook is still on top and they have to > alt-Tab to get back to Access. Is there a way in Access to get the > access app back on top? > > Second problem is that I delete all of the contacts in the target > folder before the transfer using: > > ' delete all the current contacts > For Each olContactItem In olFolder.Items > olContactItem.Delete > Next > > where: > > Dim olContactItem As outlook.ContactItem Dim olFolder As > outlook.MAPIFolder > > > The loop takes a while to run but after it's done the contacts are > still in the folder. Can anyone see what I'm doing wrong here? > > MMTIA, > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > ---------------------------------------------------------------------------- ---- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Wed Sep 8 12:37:53 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 8 Sep 2010 13:37:53 -0400 Subject: [AccessD] Getting Access Back On Top In-Reply-To: <1161FE102BCB4AB4B3FAFD721D4B8BE0@HAL9005> References: <1161FE102BCB4AB4B3FAFD721D4B8BE0@HAL9005> Message-ID: A few API calls can do that... Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, _ ByVal wCmd As Long) As Long Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _ (ByVal hwnd As Long, ByVal lpString As String, ByVal CCh As Long) As Long Private Declare Function GetWindowTextLength Lib "user32" Alias _ "GetWindowTextLengthA" (ByVal hwnd As Long) As Long Private Declare Function IsWindowVisible Lib "user32" _ (ByVal hwnd As Long) As Long 'GetWindow() constants Private Const GW_HWNDFIRST = 0 Private Const GW_HWNDLAST = 1 Private Const GW_HWNDNEXT = 2 Private Const GW_HWNDPREV = 3 Private Const GW_OWNER = 4 Private Const GW_CHILD = 5 Private Const GWL_HWNDPARENT = (-8) Private Const GWW_HWNDPARENT = (-8) Private Function FindAppWindow(sAppTitle As String, hWndStart As Long) As Long 'Finds a Window handle by its (partial) Title. 'Only top level windows that have WS_VISIBLE style are 'searched. '''''''''''''''''''''''''''''''''''''''''''''''' 'sAppTitle - string that is contained in the Window title. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'On success returns the hWnd of the window that contains the 'sAppTitle string and copies the Complete Title into sAppTitle; 'Otherwise returns 0. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Dim CurrWnd As Long Dim Length As Long Dim TaskName As String Dim lPos As Long CurrWnd = GetWindow(hWndStart, GW_HWNDFIRST) While CurrWnd <> 0 If CurrWnd <> hWndStart And (0 <> IsWindowVisible(CurrWnd)) And (0 = GetWindow(CurrWnd, GW_OWNER)) Then 'Find the length of the Title Length = GetWindowTextLength(CurrWnd) 'Does the Window have any title If Length > 0 Then 'Allocate enough memory for the text TaskName = Space$(Length + 1) 'Get the title text of the window Length = GetWindowText(CurrWnd, TaskName, Length + 1) 'Get the Window's title TaskName = Left(TaskName, Len(TaskName) - 1) 'Check if it is the window we are looking for If InStr(1, TaskName, sAppTitle) > 0 Then 'We found it FindAppWindow = CurrWnd sAppTitle = TaskName Exit Function End If End If End If 'Get next window handle CurrWnd = GetWindow(CurrWnd, GW_HWNDNEXT) DoEvents Wend End Function Sub ActivateWindowWithTitle(sAppName As String) Dim hwnd As Long hwnd = FindAppWindow(sAppName, Application.hWndAccessApp) If hwnd <> 0 Then 'Program is running 'Send the keys 'Activate the App AppActivate sAppName 'Send Kyes End If End Sub HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 12:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Getting Access Back On Top Dear List: I have written a routine for a client to transfer their contact information from their database to a folder in Outlook. The first I do is pop up the folder selector so that they can select the contact folder that they want to transfer their contacts into. However, when the folder selector dialog box pops up, Outlook is has the focus. After they select the folder, Outlook is still on top and they have to alt-Tab to get back to Access. Is there a way in Access to get the access app back on top? Second problem is that I delete all of the contacts in the target folder before the transfer using: ' delete all the current contacts For Each olContactItem In olFolder.Items olContactItem.Delete Next where: Dim olContactItem As outlook.ContactItem Dim olFolder As outlook.MAPIFolder The loop takes a while to run but after it's done the contacts are still in the folder. Can anyone see what I'm doing wrong here? MMTIA, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Wed Sep 8 13:28:33 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 8 Sep 2010 11:28:33 -0700 Subject: [AccessD] Getting Access Back On Top In-Reply-To: References: <1161FE102BCB4AB4B3FAFD721D4B8BE0@HAL9005> Message-ID: <35D3DD340677440A9DB3E517120AE307@HAL9005> Lambert: Thanks but I can't get it to work. Calling ActivateWindowWithTitle what should I pass to it in sAppName? Meanwhile I modified the delete code to: For Each olContactItem In olContacts olContactItem.Delete DoEvents Next And each time I call it, it deletes about 1/2 the contacts. Very strange. Anyone know why it should do that? MTIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, September 08, 2010 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting Access Back On Top A few API calls can do that... Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, _ ByVal wCmd As Long) As Long Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _ (ByVal hwnd As Long, ByVal lpString As String, ByVal CCh As Long) As Long Private Declare Function GetWindowTextLength Lib "user32" Alias _ "GetWindowTextLengthA" (ByVal hwnd As Long) As Long Private Declare Function IsWindowVisible Lib "user32" _ (ByVal hwnd As Long) As Long 'GetWindow() constants Private Const GW_HWNDFIRST = 0 Private Const GW_HWNDLAST = 1 Private Const GW_HWNDNEXT = 2 Private Const GW_HWNDPREV = 3 Private Const GW_OWNER = 4 Private Const GW_CHILD = 5 Private Const GWL_HWNDPARENT = (-8) Private Const GWW_HWNDPARENT = (-8) Private Function FindAppWindow(sAppTitle As String, hWndStart As Long) As Long 'Finds a Window handle by its (partial) Title. 'Only top level windows that have WS_VISIBLE style are 'searched. '''''''''''''''''''''''''''''''''''''''''''''''' 'sAppTitle - string that is contained in the Window title. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'On success returns the hWnd of the window that contains the 'sAppTitle string and copies the Complete Title into sAppTitle; 'Otherwise returns 0. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Dim CurrWnd As Long Dim Length As Long Dim TaskName As String Dim lPos As Long CurrWnd = GetWindow(hWndStart, GW_HWNDFIRST) While CurrWnd <> 0 If CurrWnd <> hWndStart And (0 <> IsWindowVisible(CurrWnd)) And (0 = GetWindow(CurrWnd, GW_OWNER)) Then 'Find the length of the Title Length = GetWindowTextLength(CurrWnd) 'Does the Window have any title If Length > 0 Then 'Allocate enough memory for the text TaskName = Space$(Length + 1) 'Get the title text of the window Length = GetWindowText(CurrWnd, TaskName, Length + 1) 'Get the Window's title TaskName = Left(TaskName, Len(TaskName) - 1) 'Check if it is the window we are looking for If InStr(1, TaskName, sAppTitle) > 0 Then 'We found it FindAppWindow = CurrWnd sAppTitle = TaskName Exit Function End If End If End If 'Get next window handle CurrWnd = GetWindow(CurrWnd, GW_HWNDNEXT) DoEvents Wend End Function Sub ActivateWindowWithTitle(sAppName As String) Dim hwnd As Long hwnd = FindAppWindow(sAppName, Application.hWndAccessApp) If hwnd <> 0 Then 'Program is running 'Send the keys 'Activate the App AppActivate sAppName 'Send Kyes End If End Sub HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 12:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Getting Access Back On Top Dear List: I have written a routine for a client to transfer their contact information from their database to a folder in Outlook. The first I do is pop up the folder selector so that they can select the contact folder that they want to transfer their contacts into. However, when the folder selector dialog box pops up, Outlook is has the focus. After they select the folder, Outlook is still on top and they have to alt-Tab to get back to Access. Is there a way in Access to get the access app back on top? Second problem is that I delete all of the contacts in the target folder before the transfer using: ' delete all the current contacts For Each olContactItem In olFolder.Items olContactItem.Delete Next where: Dim olContactItem As outlook.ContactItem Dim olFolder As outlook.MAPIFolder The loop takes a while to run but after it's done the contacts are still in the folder. Can anyone see what I'm doing wrong here? MMTIA, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Sep 8 13:39:47 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 8 Sep 2010 11:39:47 -0700 Subject: [AccessD] Getting Access Back On Top In-Reply-To: <35D3DD340677440A9DB3E517120AE307@HAL9005> References: <1161FE102BCB4AB4B3FAFD721D4B8BE0@HAL9005> <35D3DD340677440A9DB3E517120AE307@HAL9005> Message-ID: <9DB158CD8158487A8BB2DDD215EF57B0@HAL9005> I moved the set olFolder so that it apparently refreshes the count after the delete. Now looks like: DeleteAgain: Me.txtProcessing = "Deleting..." & olContacts.Count For Each olContactItem In olContacts 'MsgBox olContactItem.LastName & ", " & olContactItem.FirstName & " - " & olContacts.Count olContactItem.Delete DoEvents Next Set olContacts = olFolder.Items If olContacts.Count <> 0 Then GoTo DeleteAgain: MsgBox "Deletes Done" Each time through the For loop it deletes half the contacts. Crazy. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Getting Access Back On Top Lambert: Thanks but I can't get it to work. Calling ActivateWindowWithTitle what should I pass to it in sAppName? Meanwhile I modified the delete code to: For Each olContactItem In olContacts olContactItem.Delete DoEvents Next And each time I call it, it deletes about 1/2 the contacts. Very strange. Anyone know why it should do that? MTIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, September 08, 2010 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting Access Back On Top A few API calls can do that... Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, _ ByVal wCmd As Long) As Long Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _ (ByVal hwnd As Long, ByVal lpString As String, ByVal CCh As Long) As Long Private Declare Function GetWindowTextLength Lib "user32" Alias _ "GetWindowTextLengthA" (ByVal hwnd As Long) As Long Private Declare Function IsWindowVisible Lib "user32" _ (ByVal hwnd As Long) As Long 'GetWindow() constants Private Const GW_HWNDFIRST = 0 Private Const GW_HWNDLAST = 1 Private Const GW_HWNDNEXT = 2 Private Const GW_HWNDPREV = 3 Private Const GW_OWNER = 4 Private Const GW_CHILD = 5 Private Const GWL_HWNDPARENT = (-8) Private Const GWW_HWNDPARENT = (-8) Private Function FindAppWindow(sAppTitle As String, hWndStart As Long) As Long 'Finds a Window handle by its (partial) Title. 'Only top level windows that have WS_VISIBLE style are 'searched. '''''''''''''''''''''''''''''''''''''''''''''''' 'sAppTitle - string that is contained in the Window title. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'On success returns the hWnd of the window that contains the 'sAppTitle string and copies the Complete Title into sAppTitle; 'Otherwise returns 0. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Dim CurrWnd As Long Dim Length As Long Dim TaskName As String Dim lPos As Long CurrWnd = GetWindow(hWndStart, GW_HWNDFIRST) While CurrWnd <> 0 If CurrWnd <> hWndStart And (0 <> IsWindowVisible(CurrWnd)) And (0 = GetWindow(CurrWnd, GW_OWNER)) Then 'Find the length of the Title Length = GetWindowTextLength(CurrWnd) 'Does the Window have any title If Length > 0 Then 'Allocate enough memory for the text TaskName = Space$(Length + 1) 'Get the title text of the window Length = GetWindowText(CurrWnd, TaskName, Length + 1) 'Get the Window's title TaskName = Left(TaskName, Len(TaskName) - 1) 'Check if it is the window we are looking for If InStr(1, TaskName, sAppTitle) > 0 Then 'We found it FindAppWindow = CurrWnd sAppTitle = TaskName Exit Function End If End If End If 'Get next window handle CurrWnd = GetWindow(CurrWnd, GW_HWNDNEXT) DoEvents Wend End Function Sub ActivateWindowWithTitle(sAppName As String) Dim hwnd As Long hwnd = FindAppWindow(sAppName, Application.hWndAccessApp) If hwnd <> 0 Then 'Program is running 'Send the keys 'Activate the App AppActivate sAppName 'Send Kyes End If End Sub HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 12:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Getting Access Back On Top Dear List: I have written a routine for a client to transfer their contact information from their database to a folder in Outlook. The first I do is pop up the folder selector so that they can select the contact folder that they want to transfer their contacts into. However, when the folder selector dialog box pops up, Outlook is has the focus. After they select the folder, Outlook is still on top and they have to alt-Tab to get back to Access. Is there a way in Access to get the access app back on top? Second problem is that I delete all of the contacts in the target folder before the transfer using: ' delete all the current contacts For Each olContactItem In olFolder.Items olContactItem.Delete Next where: Dim olContactItem As outlook.ContactItem Dim olFolder As outlook.MAPIFolder The loop takes a while to run but after it's done the contacts are still in the folder. Can anyone see what I'm doing wrong here? MMTIA, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Wed Sep 8 14:42:04 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 8 Sep 2010 15:42:04 -0400 Subject: [AccessD] Getting Access Back On Top In-Reply-To: <35D3DD340677440A9DB3E517120AE307@HAL9005> References: <1161FE102BCB4AB4B3FAFD721D4B8BE0@HAL9005> <35D3DD340677440A9DB3E517120AE307@HAL9005> Message-ID: You want to get Access back on top, so sAppName (poor choice of variable name I admit) is all or part of the text in the Access window title bar. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 2:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Getting Access Back On Top Lambert: Thanks but I can't get it to work. Calling ActivateWindowWithTitle what should I pass to it in sAppName? Meanwhile I modified the delete code to: For Each olContactItem In olContacts olContactItem.Delete DoEvents Next And each time I call it, it deletes about 1/2 the contacts. Very strange. Anyone know why it should do that? MTIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, September 08, 2010 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting Access Back On Top A few API calls can do that... Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, _ ByVal wCmd As Long) As Long Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _ (ByVal hwnd As Long, ByVal lpString As String, ByVal CCh As Long) As Long Private Declare Function GetWindowTextLength Lib "user32" Alias _ "GetWindowTextLengthA" (ByVal hwnd As Long) As Long Private Declare Function IsWindowVisible Lib "user32" _ (ByVal hwnd As Long) As Long 'GetWindow() constants Private Const GW_HWNDFIRST = 0 Private Const GW_HWNDLAST = 1 Private Const GW_HWNDNEXT = 2 Private Const GW_HWNDPREV = 3 Private Const GW_OWNER = 4 Private Const GW_CHILD = 5 Private Const GWL_HWNDPARENT = (-8) Private Const GWW_HWNDPARENT = (-8) Private Function FindAppWindow(sAppTitle As String, hWndStart As Long) As Long 'Finds a Window handle by its (partial) Title. 'Only top level windows that have WS_VISIBLE style are 'searched. '''''''''''''''''''''''''''''''''''''''''''''''' 'sAppTitle - string that is contained in the Window title. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'On success returns the hWnd of the window that contains the 'sAppTitle string and copies the Complete Title into sAppTitle; 'Otherwise returns 0. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Dim CurrWnd As Long Dim Length As Long Dim TaskName As String Dim lPos As Long CurrWnd = GetWindow(hWndStart, GW_HWNDFIRST) While CurrWnd <> 0 If CurrWnd <> hWndStart And (0 <> IsWindowVisible(CurrWnd)) And (0 = GetWindow(CurrWnd, GW_OWNER)) Then 'Find the length of the Title Length = GetWindowTextLength(CurrWnd) 'Does the Window have any title If Length > 0 Then 'Allocate enough memory for the text TaskName = Space$(Length + 1) 'Get the title text of the window Length = GetWindowText(CurrWnd, TaskName, Length + 1) 'Get the Window's title TaskName = Left(TaskName, Len(TaskName) - 1) 'Check if it is the window we are looking for If InStr(1, TaskName, sAppTitle) > 0 Then 'We found it FindAppWindow = CurrWnd sAppTitle = TaskName Exit Function End If End If End If 'Get next window handle CurrWnd = GetWindow(CurrWnd, GW_HWNDNEXT) DoEvents Wend End Function Sub ActivateWindowWithTitle(sAppName As String) Dim hwnd As Long hwnd = FindAppWindow(sAppName, Application.hWndAccessApp) If hwnd <> 0 Then 'Program is running 'Send the keys 'Activate the App AppActivate sAppName 'Send Kyes End If End Sub HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 12:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Getting Access Back On Top Dear List: I have written a routine for a client to transfer their contact information from their database to a folder in Outlook. The first I do is pop up the folder selector so that they can select the contact folder that they want to transfer their contacts into. However, when the folder selector dialog box pops up, Outlook is has the focus. After they select the folder, Outlook is still on top and they have to alt-Tab to get back to Access. Is there a way in Access to get the access app back on top? Second problem is that I delete all of the contacts in the target folder before the transfer using: ' delete all the current contacts For Each olContactItem In olFolder.Items olContactItem.Delete Next where: Dim olContactItem As outlook.ContactItem Dim olFolder As outlook.MAPIFolder The loop takes a while to run but after it's done the contacts are still in the folder. Can anyone see what I'm doing wrong here? MMTIA, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Sep 8 15:07:18 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 8 Sep 2010 13:07:18 -0700 Subject: [AccessD] Getting Access Back On Top In-Reply-To: References: <1161FE102BCB4AB4B3FAFD721D4B8BE0@HAL9005><35D3DD340677440A9DB3E517120AE307@HAL9005> Message-ID: <602EA21947EE4C8CB13A0147EBACD6DC@HAL9005> Lambert: The title of this app in the Application Title box of the Startup dialog box is 'DocketWorks (R) Version 3.379 rev 100906'. I put a MsgBox into the code to see what the various Task Names were as they were found by the function but none of them resembled the app title. What am I doing wrong? Regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, September 08, 2010 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting Access Back On Top You want to get Access back on top, so sAppName (poor choice of variable name I admit) is all or part of the text in the Access window title bar. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 2:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Getting Access Back On Top Lambert: Thanks but I can't get it to work. Calling ActivateWindowWithTitle what should I pass to it in sAppName? Meanwhile I modified the delete code to: For Each olContactItem In olContacts olContactItem.Delete DoEvents Next And each time I call it, it deletes about 1/2 the contacts. Very strange. Anyone know why it should do that? MTIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, September 08, 2010 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting Access Back On Top A few API calls can do that... Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, _ ByVal wCmd As Long) As Long Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _ (ByVal hwnd As Long, ByVal lpString As String, ByVal CCh As Long) As Long Private Declare Function GetWindowTextLength Lib "user32" Alias _ "GetWindowTextLengthA" (ByVal hwnd As Long) As Long Private Declare Function IsWindowVisible Lib "user32" _ (ByVal hwnd As Long) As Long 'GetWindow() constants Private Const GW_HWNDFIRST = 0 Private Const GW_HWNDLAST = 1 Private Const GW_HWNDNEXT = 2 Private Const GW_HWNDPREV = 3 Private Const GW_OWNER = 4 Private Const GW_CHILD = 5 Private Const GWL_HWNDPARENT = (-8) Private Const GWW_HWNDPARENT = (-8) Private Function FindAppWindow(sAppTitle As String, hWndStart As Long) As Long 'Finds a Window handle by its (partial) Title. 'Only top level windows that have WS_VISIBLE style are 'searched. '''''''''''''''''''''''''''''''''''''''''''''''' 'sAppTitle - string that is contained in the Window title. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'On success returns the hWnd of the window that contains the 'sAppTitle string and copies the Complete Title into sAppTitle; 'Otherwise returns 0. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Dim CurrWnd As Long Dim Length As Long Dim TaskName As String Dim lPos As Long CurrWnd = GetWindow(hWndStart, GW_HWNDFIRST) While CurrWnd <> 0 If CurrWnd <> hWndStart And (0 <> IsWindowVisible(CurrWnd)) And (0 = GetWindow(CurrWnd, GW_OWNER)) Then 'Find the length of the Title Length = GetWindowTextLength(CurrWnd) 'Does the Window have any title If Length > 0 Then 'Allocate enough memory for the text TaskName = Space$(Length + 1) 'Get the title text of the window Length = GetWindowText(CurrWnd, TaskName, Length + 1) 'Get the Window's title TaskName = Left(TaskName, Len(TaskName) - 1) 'Check if it is the window we are looking for If InStr(1, TaskName, sAppTitle) > 0 Then 'We found it FindAppWindow = CurrWnd sAppTitle = TaskName Exit Function End If End If End If 'Get next window handle CurrWnd = GetWindow(CurrWnd, GW_HWNDNEXT) DoEvents Wend End Function Sub ActivateWindowWithTitle(sAppName As String) Dim hwnd As Long hwnd = FindAppWindow(sAppName, Application.hWndAccessApp) If hwnd <> 0 Then 'Program is running 'Send the keys 'Activate the App AppActivate sAppName 'Send Kyes End If End Sub HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 12:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Getting Access Back On Top Dear List: I have written a routine for a client to transfer their contact information from their database to a folder in Outlook. The first I do is pop up the folder selector so that they can select the contact folder that they want to transfer their contacts into. However, when the folder selector dialog box pops up, Outlook is has the focus. After they select the folder, Outlook is still on top and they have to alt-Tab to get back to Access. Is there a way in Access to get the access app back on top? Second problem is that I delete all of the contacts in the target folder before the transfer using: ' delete all the current contacts For Each olContactItem In olFolder.Items olContactItem.Delete Next where: Dim olContactItem As outlook.ContactItem Dim olFolder As outlook.MAPIFolder The loop takes a while to run but after it's done the contacts are still in the folder. Can anyone see what I'm doing wrong here? MMTIA, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Wed Sep 8 16:08:15 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 8 Sep 2010 17:08:15 -0400 Subject: [AccessD] Getting Access Back On Top In-Reply-To: <602EA21947EE4C8CB13A0147EBACD6DC@HAL9005> References: <1161FE102BCB4AB4B3FAFD721D4B8BE0@HAL9005><35D3DD340677440A9DB3E517120AE307@HAL9005> <602EA21947EE4C8CB13A0147EBACD6DC@HAL9005> Message-ID: I just tested it and I have the same problem. I put the routine together to force Excel to the fore, and never thought to try it out with Access. It plain does not work with Access, so I suspect the issue is linked to the way that Access deals with window handles. Drat! Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Getting Access Back On Top Lambert: The title of this app in the Application Title box of the Startup dialog box is 'DocketWorks (R) Version 3.379 rev 100906'. I put a MsgBox into the code to see what the various Task Names were as they were found by the function but none of them resembled the app title. What am I doing wrong? Regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, September 08, 2010 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting Access Back On Top You want to get Access back on top, so sAppName (poor choice of variable name I admit) is all or part of the text in the Access window title bar. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 2:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Getting Access Back On Top Lambert: Thanks but I can't get it to work. Calling ActivateWindowWithTitle what should I pass to it in sAppName? Meanwhile I modified the delete code to: For Each olContactItem In olContacts olContactItem.Delete DoEvents Next And each time I call it, it deletes about 1/2 the contacts. Very strange. Anyone know why it should do that? MTIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, September 08, 2010 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting Access Back On Top A few API calls can do that... Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, _ ByVal wCmd As Long) As Long Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _ (ByVal hwnd As Long, ByVal lpString As String, ByVal CCh As Long) As Long Private Declare Function GetWindowTextLength Lib "user32" Alias _ "GetWindowTextLengthA" (ByVal hwnd As Long) As Long Private Declare Function IsWindowVisible Lib "user32" _ (ByVal hwnd As Long) As Long 'GetWindow() constants Private Const GW_HWNDFIRST = 0 Private Const GW_HWNDLAST = 1 Private Const GW_HWNDNEXT = 2 Private Const GW_HWNDPREV = 3 Private Const GW_OWNER = 4 Private Const GW_CHILD = 5 Private Const GWL_HWNDPARENT = (-8) Private Const GWW_HWNDPARENT = (-8) Private Function FindAppWindow(sAppTitle As String, hWndStart As Long) As Long 'Finds a Window handle by its (partial) Title. 'Only top level windows that have WS_VISIBLE style are 'searched. '''''''''''''''''''''''''''''''''''''''''''''''' 'sAppTitle - string that is contained in the Window title. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'On success returns the hWnd of the window that contains the 'sAppTitle string and copies the Complete Title into sAppTitle; 'Otherwise returns 0. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Dim CurrWnd As Long Dim Length As Long Dim TaskName As String Dim lPos As Long CurrWnd = GetWindow(hWndStart, GW_HWNDFIRST) While CurrWnd <> 0 If CurrWnd <> hWndStart And (0 <> IsWindowVisible(CurrWnd)) And (0 = GetWindow(CurrWnd, GW_OWNER)) Then 'Find the length of the Title Length = GetWindowTextLength(CurrWnd) 'Does the Window have any title If Length > 0 Then 'Allocate enough memory for the text TaskName = Space$(Length + 1) 'Get the title text of the window Length = GetWindowText(CurrWnd, TaskName, Length + 1) 'Get the Window's title TaskName = Left(TaskName, Len(TaskName) - 1) 'Check if it is the window we are looking for If InStr(1, TaskName, sAppTitle) > 0 Then 'We found it FindAppWindow = CurrWnd sAppTitle = TaskName Exit Function End If End If End If 'Get next window handle CurrWnd = GetWindow(CurrWnd, GW_HWNDNEXT) DoEvents Wend End Function Sub ActivateWindowWithTitle(sAppName As String) Dim hwnd As Long hwnd = FindAppWindow(sAppName, Application.hWndAccessApp) If hwnd <> 0 Then 'Program is running 'Send the keys 'Activate the App AppActivate sAppName 'Send Kyes End If End Sub HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 12:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Getting Access Back On Top Dear List: I have written a routine for a client to transfer their contact information from their database to a folder in Outlook. The first I do is pop up the folder selector so that they can select the contact folder that they want to transfer their contacts into. However, when the folder selector dialog box pops up, Outlook is has the focus. After they select the folder, Outlook is still on top and they have to alt-Tab to get back to Access. Is there a way in Access to get the access app back on top? Second problem is that I delete all of the contacts in the target folder before the transfer using: ' delete all the current contacts For Each olContactItem In olFolder.Items olContactItem.Delete Next where: Dim olContactItem As outlook.ContactItem Dim olFolder As outlook.MAPIFolder The loop takes a while to run but after it's done the contacts are still in the folder. Can anyone see what I'm doing wrong here? MMTIA, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Wed Sep 8 16:19:52 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 8 Sep 2010 17:19:52 -0400 Subject: [AccessD] Getting Access Back On Top References: <1161FE102BCB4AB4B3FAFD721D4B8BE0@HAL9005><35D3DD340677440A9DB3E517120AE307@HAL9005> <602EA21947EE4C8CB13A0147EBACD6DC@HAL9005> Message-ID: Weird. I found that if one Access app calls the routine for *another* access app. Then it works. -----Original Message----- From: Heenan, Lambert Sent: Wednesday, September 08, 2010 5:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Getting Access Back On Top I just tested it and I have the same problem. I put the routine together to force Excel to the fore, and never thought to try it out with Access. It plain does not work with Access, so I suspect the issue is linked to the way that Access deals with window handles. Drat! Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Getting Access Back On Top Lambert: The title of this app in the Application Title box of the Startup dialog box is 'DocketWorks (R) Version 3.379 rev 100906'. I put a MsgBox into the code to see what the various Task Names were as they were found by the function but none of them resembled the app title. What am I doing wrong? Regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, September 08, 2010 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting Access Back On Top You want to get Access back on top, so sAppName (poor choice of variable name I admit) is all or part of the text in the Access window title bar. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 2:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Getting Access Back On Top Lambert: Thanks but I can't get it to work. Calling ActivateWindowWithTitle what should I pass to it in sAppName? Meanwhile I modified the delete code to: For Each olContactItem In olContacts olContactItem.Delete DoEvents Next And each time I call it, it deletes about 1/2 the contacts. Very strange. Anyone know why it should do that? MTIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, September 08, 2010 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting Access Back On Top A few API calls can do that... Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, _ ByVal wCmd As Long) As Long Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _ (ByVal hwnd As Long, ByVal lpString As String, ByVal CCh As Long) As Long Private Declare Function GetWindowTextLength Lib "user32" Alias _ "GetWindowTextLengthA" (ByVal hwnd As Long) As Long Private Declare Function IsWindowVisible Lib "user32" _ (ByVal hwnd As Long) As Long 'GetWindow() constants Private Const GW_HWNDFIRST = 0 Private Const GW_HWNDLAST = 1 Private Const GW_HWNDNEXT = 2 Private Const GW_HWNDPREV = 3 Private Const GW_OWNER = 4 Private Const GW_CHILD = 5 Private Const GWL_HWNDPARENT = (-8) Private Const GWW_HWNDPARENT = (-8) Private Function FindAppWindow(sAppTitle As String, hWndStart As Long) As Long 'Finds a Window handle by its (partial) Title. 'Only top level windows that have WS_VISIBLE style are 'searched. '''''''''''''''''''''''''''''''''''''''''''''''' 'sAppTitle - string that is contained in the Window title. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'On success returns the hWnd of the window that contains the 'sAppTitle string and copies the Complete Title into sAppTitle; 'Otherwise returns 0. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Dim CurrWnd As Long Dim Length As Long Dim TaskName As String Dim lPos As Long CurrWnd = GetWindow(hWndStart, GW_HWNDFIRST) While CurrWnd <> 0 If CurrWnd <> hWndStart And (0 <> IsWindowVisible(CurrWnd)) And (0 = GetWindow(CurrWnd, GW_OWNER)) Then 'Find the length of the Title Length = GetWindowTextLength(CurrWnd) 'Does the Window have any title If Length > 0 Then 'Allocate enough memory for the text TaskName = Space$(Length + 1) 'Get the title text of the window Length = GetWindowText(CurrWnd, TaskName, Length + 1) 'Get the Window's title TaskName = Left(TaskName, Len(TaskName) - 1) 'Check if it is the window we are looking for If InStr(1, TaskName, sAppTitle) > 0 Then 'We found it FindAppWindow = CurrWnd sAppTitle = TaskName Exit Function End If End If End If 'Get next window handle CurrWnd = GetWindow(CurrWnd, GW_HWNDNEXT) DoEvents Wend End Function Sub ActivateWindowWithTitle(sAppName As String) Dim hwnd As Long hwnd = FindAppWindow(sAppName, Application.hWndAccessApp) If hwnd <> 0 Then 'Program is running 'Send the keys 'Activate the App AppActivate sAppName 'Send Kyes End If End Sub HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 08, 2010 12:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Getting Access Back On Top Dear List: I have written a routine for a client to transfer their contact information from their database to a folder in Outlook. The first I do is pop up the folder selector so that they can select the contact folder that they want to transfer their contacts into. However, when the folder selector dialog box pops up, Outlook is has the focus. After they select the folder, Outlook is still on top and they have to alt-Tab to get back to Access. Is there a way in Access to get the access app back on top? Second problem is that I delete all of the contacts in the target folder before the transfer using: ' delete all the current contacts For Each olContactItem In olFolder.Items olContactItem.Delete Next where: Dim olContactItem As outlook.ContactItem Dim olFolder As outlook.MAPIFolder The loop takes a while to run but after it's done the contacts are still in the folder. Can anyone see what I'm doing wrong here? MMTIA, From terry.mace at baesystems.com Wed Sep 8 17:16:37 2010 From: terry.mace at baesystems.com (MACE, Terry) Date: Thu, 9 Sep 2010 07:46:37 +0930 Subject: [AccessD] Strange Behaviour with Popup Forms in Acc2007 In-Reply-To: References: <54735D33F2EFB343A5196F837657ED6D04C29F79AE@MWLSVEXM002.au.baesystems.com><4C867605.30109@colbyconsulting.com> <54735D33F2EFB343A5196F837657ED6D04C29F79DB@MWLSVEXM002.au.baesystems.com> Message-ID: <54735D33F2EFB343A5196F837657ED6D04C29F7A91@MWLSVEXM002.au.baesystems.com> Thanks Drew Didn't solve the problem though, the form opens on top but as soon as the initiating forms code hits the End Sub it pops back on top. I only have two instances where this happens so I'll have to open the second form at the bottom of the screen where the users can see and use it and then everything will continue to work. Terry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, 9 September 2010 1:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Strange Behaviour with Popup Forms in Acc2007 Back when I used to use Access as an interface, I liked to put my forms on the desktop (hide the Access window). In 97, it worked fine to make the windows 'popup', but in 2000 and later, initially, the code I had for hiding the Access window also required the window to be modal, to show up on the desktop. Found a way around that, which might help circumvent the bug you have run into: Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Private Const SW_SHOW = 5 'put the above in the forms declarations , then the following in the on load event (or on open) ShowWindow Me.hwnd, SW_SHOW Me.Repaint Hope that helps. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MACE, Terry Sent: Tuesday, September 07, 2010 5:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Strange Behaviour with Popup Forms in Acc2007 John, None of the forms are modal but all are pop up. I've also found another area in the database that exhibits the same behaviour and it's also fired from a double-click event. All the ones that are fired from a command button work fine. You may be right in that it is a bug. Regards Terry Mace Logistics Support Officer & Maintenance Supervisor The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "Warning: The information contained in this email and any attached files is confidential to BAE Systems Australia. If you are not the intended recipient, any use, disclosure or copying of this email or any attachments is expressly prohibited. If you have received this email in error, please notify us immediately. VIRUS: Every care has been taken to ensure this email and its attachments are virus free, however, any loss or damage incurred in using this email is not the sender's responsibility. It is your responsibility to ensure virus checks are completed before installing any data sent in this email to your computer." From patrinod at gmail.com Wed Sep 8 22:18:39 2010 From: patrinod at gmail.com (Den Patrino) Date: Wed, 8 Sep 2010 23:18:39 -0400 Subject: [AccessD] Scroll button Message-ID: John ... The code sent is used on a form that returns one record for editing/updating. The form cycle property is to current record so the user doesn't go to a new record after finishing his updates. The only problem that I've encountered with the mouse wheel is that the form will go to a new record if the user accidentally moves the scroll button. To solve this problem, the code prevents the user from going to a new record without the need of using a dll to disable the scroll wheel. It works for that purpose, is simple and one doesn't have to worry about distributing and registering a dll. Private Sub Form_Current() DoCmd.GoToRecord , , acFirst End Sub I've never had any other problems with the scroll button. Can you give me an example of a problem? Thanks, Dennis Patrino > Message: 10 > Date: Tue, 07 Sep 2010 16:09:52 -0400 > From: jwcolby > Subject: Re: [AccessD] Scroll button > To: Access Developers discussion and problem solving > > Message-ID: <4C869C10.4090500 at colbyconsulting.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > The user wants the mouse scroll to be ignored. This seems like it would > move to the first record > which is not what they want. > > John W. Colby > www.ColbyConsulting.com > > On 9/7/2010 3:20 PM, Den Patrino wrote: > > John ... > > > > re - mouse scroll > > If your concern with the mouse scroll is to prevent the user from moving > to > > another record on a form with the scroll button, you don't have to worry > > about dll's etc. > > > > An easy solution is to: > > Private Sub Form_Current() > > 'This code prevents the user from moving to another record via the mouse > > wheel button > > DoCmd.GoToRecord , , acFirst > > End Sub > > > > Dennis Patrino > > > > > > From: accessd-bounces at databaseadvisors.com [mailto: > > accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Thursday, 2 September 2010 11:57 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] disable scroll wheel > > > > I am trying to use the archives and I am getting nothing on anything I > > search. Possibly down? > > > > Anyway, I remember a discussion about disabling the scroll wheel in > Access. > > I didn't need that info > > at the time so I just noted it in the back of my brain. > > > > Well now I need it. Can anyone discuss how it is done, and at what > level? > > Is it code that turns it > > on and off? Is it turned on in a specific form or table or in all of > > Access? > > > > Thanks! > > > > -- > > John W. Colby > > www.ColbyConsulting.com > From jwcolby at colbyconsulting.com Thu Sep 9 07:05:30 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 09 Sep 2010 08:05:30 -0400 Subject: [AccessD] Scroll button In-Reply-To: References: Message-ID: <4C88CD8A.5070004@colbyconsulting.com> The user pulls a set of records that have to be entered field by field into a web page. They open the web page in one monitor and the app in another. The web page is huge and they use the mouse wheel to scroll up and down. The application uses the click event of the text boxes to copy the contents of the text box into the paste buffer, so that they can click in app (automatically copied to the paste buffer) Click in web form paste click in app (automatically copied to the paste buffer) click in web form paste I would dearly LOVE to programmatically find the data in the web page and insert it myself but I do not know how to do that. So... the problem is that they use the scroll wheel in the web page but if they accidentally scroll in the app it moves to the next record. Now they are copying data from the wrong record to the web page. But when they are done with that record in the application, they click a button and move to the next record. So basically I could design the app to only have a single record in the form and somehow display the next record when they clicked the button, or I could disable the scroll wheel in the form. If the form only displays a single record and the AllowAdd property is false, then the scroll wheel can't move the record anyway so "disabling" the wheel becomes a non issue. I was just trying to do this without programming behind the form to only display a single record. As it turns out the whole web application that they are entering data into is screwy and after entering a set of records, I get information back from the web app, and I do stuff to the previous records entered, so having them in the form's recordset allows me to programmatically move backwards through the data when I need to do that update. If anyone can talk about programmatically finding controls on a web page and pushing data into those controls, I am all ears. This is a medical billing application for the state of Pennsylvania and their web page pretty much sucks. One size fits all, 200 controls on the web form and you choose which 10 you are going to put data in. This thing BEGS for data files but they can't accept them, though they do give them back to me. John W. Colby www.ColbyConsulting.com On 9/8/2010 11:18 PM, Den Patrino wrote: > John ... > > The code sent is used on a form that returns one record for > editing/updating. > The form cycle property is to current record so the user doesn't go to a new > record after finishing his updates. > The only problem that I've encountered with the mouse wheel is that the form > will go to a new record if the user accidentally moves the scroll button. > To solve this problem, the code prevents the user from going to a new record > without the need of using a dll to disable the scroll wheel. > It works for that purpose, is simple and one doesn't have to worry about > distributing and registering a dll. > > Private Sub Form_Current() > DoCmd.GoToRecord , , acFirst > End Sub > > I've never had any other problems with the scroll button. Can you give me > an example of a problem? > > Thanks, > Dennis Patrino From rockysmolin at bchacc.com Thu Sep 9 10:25:07 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 9 Sep 2010 08:25:07 -0700 Subject: [AccessD] Deleting Outlook Contacts Message-ID: <980E7551815E4BC38A013C7D6DD730F8@HAL9005> Dear List: Still struggling with deleting the Outlook contacts. I found that looping through the items and deleting them deleted half so if I started with 1000 contacts at the end of the loop I had 500 left. If I sent the program back through the loop I ended up with 250. etc. So iterating that loop until the Count = 0 works but it's kludgey. Why does it leave half of the contacts behind each time? Here's the code: ' delete all the current contacts Set olContacts = olFolder.Items DeleteAgain: Me.txtProcessing = "Deleting..." & olContacts.Count Me.Repaint For Each olContactItem In olContacts 'MsgBox olContactItem.LastName & ", " & olContactItem.FirstName & " - " & olContacts.Count olContactItem.Delete DoEvents Next Set olContacts = olFolder.Items If olContacts.Count <> 0 Then GoTo DeleteAgain: Me.txtProcessing displays the number of contacts each time through the big loop. So that's how I know it's only deleting 1/2 each time. When I uncomment the MsgBox line inside the loop, it shows the count going to zero each time the loop executes. But after the loop finishes, there's still 1/2 the contacts left. refreshing the count by Set olContacts = olFolder.Items gives the right count again. Any idea what the heck is going on here? MTIA Rocky From steve at goodhall.info Thu Sep 9 10:54:48 2010 From: steve at goodhall.info (Steve Goodhall) Date: Thu, 9 Sep 2010 10:54:48 -0500 Subject: [AccessD] Deleting Outlook Contacts Message-ID: <62988.1284047688@goodhall.info> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I think your problem is with the way For Each iterates in olContacts. I am out on a customer site and don't have access to all my test beds, but I would suggest that you index the contact to be deleted and count down from the number of items in the olContacts collection. I don't remember whether that index is zero based or one based. I also suggest that you lose the "GoTo" but that's just style. Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Thu 09/09/10 11:25 AM , "Rocky Smolin" rockysmolin at bchacc.com sent: Dear List: Still struggling with deleting the Outlook contacts. I found that looping through the items and deleting them deleted half so if I started with 1000 contacts at the end of the loop I had 500 left. If I sent the program back through the loop I ended up with 250. etc. So iterating that loop until the Count = 0 works but it's kludgey. Why does it leave half of the contacts behind each time? Here's the code: ' delete all the current contacts Set olContacts = olFolder.Items DeleteAgain: Me.txtProcessing = "Deleting..." & olContacts.Count Me.Repaint For Each olContactItem In olContacts 'MsgBox olContactItem.LastName & ", " & olContactItem.FirstName & " - " & olContacts.Count olContactItem.Delete DoEvents Next Set olContacts = olFolder.Items If olContacts.Count 0 Then GoTo DeleteAgain: Me.txtProcessing displays the number of contacts each time through the big loop. So that's how I know it's only deleting 1/2 each time. When I uncomment the MsgBox line inside the loop, it shows the count going to zero each time the loop executes. But after the loop finishes, there's still 1/2 the contacts left. refreshing the count by Set olContacts = olFolder.Items gives the right count again. Any idea what the heck is going on here? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com [1] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] mailto:AccessD at databaseadvisors.com From rockysmolin at bchacc.com Thu Sep 9 11:03:11 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 9 Sep 2010 09:03:11 -0700 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: <62988.1284047688@goodhall.info> References: <62988.1284047688@goodhall.info> Message-ID: <455D5CF1270144C585F53E93016840B9@HAL9005> Steve: " index the contact to be deleted " not sure what you mean. I'm a real amateur at the Outlook object model. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Goodhall Sent: Thursday, September 09, 2010 8:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Deleting Outlook Contacts BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I think your problem is with the way For Each iterates in olContacts. I am out on a customer site and don't have access to all my test beds, but I would suggest that you index the contact to be deleted and count down from the number of items in the olContacts collection. I don't remember whether that index is zero based or one based. I also suggest that you lose the "GoTo" but that's just style. Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Thu 09/09/10 11:25 AM , "Rocky Smolin" rockysmolin at bchacc.com sent: Dear List: Still struggling with deleting the Outlook contacts. I found that looping through the items and deleting them deleted half so if I started with 1000 contacts at the end of the loop I had 500 left. If I sent the program back through the loop I ended up with 250. etc. So iterating that loop until the Count = 0 works but it's kludgey. Why does it leave half of the contacts behind each time? Here's the code: ' delete all the current contacts Set olContacts = olFolder.Items DeleteAgain: Me.txtProcessing = "Deleting..." & olContacts.Count Me.Repaint For Each olContactItem In olContacts 'MsgBox olContactItem.LastName & ", " & olContactItem.FirstName & " - " & olContacts.Count olContactItem.Delete DoEvents Next Set olContacts = olFolder.Items If olContacts.Count 0 Then GoTo DeleteAgain: Me.txtProcessing displays the number of contacts each time through the big loop. So that's how I know it's only deleting 1/2 each time. When I uncomment the MsgBox line inside the loop, it shows the count going to zero each time the loop executes. But after the loop finishes, there's still 1/2 the contacts left. refreshing the count by Set olContacts = olFolder.Items gives the right count again. Any idea what the heck is going on here? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com [1] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] mailto:AccessD at databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Thu Sep 9 11:12:04 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Thu, 9 Sep 2010 11:12:04 -0500 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: <455D5CF1270144C585F53E93016840B9@HAL9005> References: <62988.1284047688@goodhall.info> <455D5CF1270144C585F53E93016840B9@HAL9005> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFD8DC@CPIEMAIL-EVS1.CPIQPC.NET> Rocky, I've had the same issue with traversing through items in the Inbox folder. I had the same solution as you, keep going through it until there's nothing left. One thing I have not tried since moving to Access 2003 (from 97), is linking the Outlook folder as a table in Access and creating a recordset off the linked table to do the processing. It "should" work just like any other Access table. The only reason I haven't tried it is that it works as is, so it's not at the top of the priority list. HTH, Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, September 09, 2010 11:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Deleting Outlook Contacts Steve: " index the contact to be deleted " not sure what you mean. I'm a real amateur at the Outlook object model. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Goodhall Sent: Thursday, September 09, 2010 8:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Deleting Outlook Contacts BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I think your problem is with the way For Each iterates in olContacts. I am out on a customer site and don't have access to all my test beds, but I would suggest that you index the contact to be deleted and count down from the number of items in the olContacts collection. I don't remember whether that index is zero based or one based. I also suggest that you lose the "GoTo" but that's just style. Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Thu 09/09/10 11:25 AM , "Rocky Smolin" rockysmolin at bchacc.com sent: Dear List: Still struggling with deleting the Outlook contacts. I found that looping through the items and deleting them deleted half so if I started with 1000 contacts at the end of the loop I had 500 left. If I sent the program back through the loop I ended up with 250. etc. So iterating that loop until the Count = 0 works but it's kludgey. Why does it leave half of the contacts behind each time? Here's the code: ' delete all the current contacts Set olContacts = olFolder.Items DeleteAgain: Me.txtProcessing = "Deleting..." & olContacts.Count Me.Repaint For Each olContactItem In olContacts 'MsgBox olContactItem.LastName & ", " & olContactItem.FirstName & " - " & olContacts.Count olContactItem.Delete DoEvents Next Set olContacts = olFolder.Items If olContacts.Count 0 Then GoTo DeleteAgain: Me.txtProcessing displays the number of contacts each time through the big loop. So that's how I know it's only deleting 1/2 each time. When I uncomment the MsgBox line inside the loop, it shows the count going to zero each time the loop executes. But after the loop finishes, there's still 1/2 the contacts left. refreshing the count by Set olContacts = olFolder.Items gives the right count again. Any idea what the heck is going on here? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com [1] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] mailto:AccessD at databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From rockysmolin at bchacc.com Thu Sep 9 11:20:13 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 9 Sep 2010 09:20:13 -0700 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: <455D5CF1270144C585F53E93016840B9@HAL9005> References: <62988.1284047688@goodhall.info> <455D5CF1270144C585F53E93016840B9@HAL9005> Message-ID: <39B5ACCCEFD746E4B55B812213B649A5@HAL9005> OK, here's what's working: ' delete all the current contacts DeleteAgain: Set olContacts = olFolder.Items If olContacts.Count = 0 Then GoTo DeleteDone: Me.txtProcessing = "Deleting Contacts..." & olContacts.Count Me.Repaint Set olContactItem = olContacts.GetFirst olContactItem.Delete GoTo DeleteAgain: DeleteDone: It may not be optimized or the most elegant, but it works. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, September 09, 2010 9:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Deleting Outlook Contacts Steve: " index the contact to be deleted " not sure what you mean. I'm a real amateur at the Outlook object model. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Goodhall Sent: Thursday, September 09, 2010 8:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Deleting Outlook Contacts BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I think your problem is with the way For Each iterates in olContacts. I am out on a customer site and don't have access to all my test beds, but I would suggest that you index the contact to be deleted and count down from the number of items in the olContacts collection. I don't remember whether that index is zero based or one based. I also suggest that you lose the "GoTo" but that's just style. Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Thu 09/09/10 11:25 AM , "Rocky Smolin" rockysmolin at bchacc.com sent: Dear List: Still struggling with deleting the Outlook contacts. I found that looping through the items and deleting them deleted half so if I started with 1000 contacts at the end of the loop I had 500 left. If I sent the program back through the loop I ended up with 250. etc. So iterating that loop until the Count = 0 works but it's kludgey. Why does it leave half of the contacts behind each time? Here's the code: ' delete all the current contacts Set olContacts = olFolder.Items DeleteAgain: Me.txtProcessing = "Deleting..." & olContacts.Count Me.Repaint For Each olContactItem In olContacts 'MsgBox olContactItem.LastName & ", " & olContactItem.FirstName & " - " & olContacts.Count olContactItem.Delete DoEvents Next Set olContacts = olFolder.Items If olContacts.Count 0 Then GoTo DeleteAgain: Me.txtProcessing displays the number of contacts each time through the big loop. So that's how I know it's only deleting 1/2 each time. When I uncomment the MsgBox line inside the loop, it shows the count going to zero each time the loop executes. But after the loop finishes, there's still 1/2 the contacts left. refreshing the count by Set olContacts = olFolder.Items gives the right count again. Any idea what the heck is going on here? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com [1] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] mailto:AccessD at databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From steve at goodhall.info Thu Sep 9 11:38:56 2010 From: steve at goodhall.info (Steve Goodhall) Date: Thu, 9 Sep 2010 11:38:56 -0500 Subject: [AccessD] Deleting Outlook Contacts Message-ID: <64762.1284050336@goodhall.info> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I will look at my stuff tonight and see if I have an example. I have been having problems with my cable modem so I may not get a reply back until tomorrow. Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Thu 09/09/10 12:03 PM , "Rocky Smolin" rockysmolin at bchacc.com sent: Steve: " index the contact to be deleted " not sure what you mean. I'm a real amateur at the Outlook object model. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [1] [accessd-bounces at databaseadvisors.com [2]] On Behalf Of Steve Goodhall Sent: Thursday, September 09, 2010 8:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Deleting Outlook Contacts BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I think your problem is with the way For Each iterates in olContacts. I am out on a customer site and don't have access to all my test beds, but I would suggest that you index the contact to be deleted and count down from the number of items in the olContacts collection. I don't remember whether that index is zero based or one based. I also suggest that you lose the "GoTo" but that's just style. Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Thu 09/09/10 11:25 AM , "Rocky Smolin" rockysmolin at bchacc.com [3] sent: Dear List: Still struggling with deleting the Outlook contacts. I found that looping through the items and deleting them deleted half so if I started with 1000 contacts at the end of the loop I had 500 left. If I sent the program back through the loop I ended up with 250. etc. So iterating that loop until the Count = 0 works but it's kludgey. Why does it leave half of the contacts behind each time? Here's the code: ' delete all the current contacts Set olContacts = olFolder.Items DeleteAgain: Me.txtProcessing = "Deleting..." & olContacts.Count Me.Repaint For Each olContactItem In olContacts 'MsgBox olContactItem.LastName & ", " & olContactItem.FirstName & " - " & olContacts.Count olContactItem.Delete DoEvents Next Set olContacts = olFolder.Items If olContacts.Count 0 Then GoTo DeleteAgain: Me.txtProcessing displays the number of contacts each time through the big loop. So that's how I know it's only deleting 1/2 each time. When I uncomment the MsgBox line inside the loop, it shows the count going to zero each time the loop executes. But after the loop finishes, there's still 1/2 the contacts left. refreshing the count by Set olContacts = olFolder.Items gives the right count again. Any idea what the heck is going on here? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com [4] [1] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] AccessD at databaseadvisors.com [5] -- AccessD mailing list AccessD at databaseadvisors.com [6] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com [7] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] mailto:accessd-bounces at databaseadvisors.com [2] mailto:accessd-bounces at databaseadvisors.com [3] mailto:rockysmolin at bchacc.com [4] mailto:AccessD at databaseadvisors.com [5] mailto:AccessD at databaseadvisors.com [6] mailto:AccessD at databaseadvisors.com [7] mailto:AccessD at databaseadvisors.com From kismert at gmail.com Thu Sep 9 12:54:42 2010 From: kismert at gmail.com (Kenneth Ismert) Date: Thu, 9 Sep 2010 12:54:42 -0500 Subject: [AccessD] Scroll button Message-ID: > jwcolby: > > ... I would dearly LOVE to programmatically find the data in the web page > and insert it myself but I do not know how to do that... > Well, there is the RIGHT way to do it, and the WRONG way... ;) First, the RIGHT way: Build a web service that allows you to update the records in a completely generic, standards-compliant way. Any properly-credentialed client could add or update information on the site. This would add the most value to what you are giving your client. SOAP On the web side, you first would build a WSDL file which describes the service, then you would have to build a web service that supports entering the data, and returning success or an error. On the Access side, there are SOAP and REST COM automation objects that let you interact with a web service via VBA. I have used the SOAP object with VBA to interact with a PHP SOAP web service that I built, and it works. Here is an overview, using the SOAP Toolkit 2.0... http://www.soapuser.com/client4.html The latest is SOAP Toolkit 3.0 -- here is an example on the VBA side: http://oreilly.com/pub/h/1306 REST REST web services are simpler than SOAP, because you don't have to build a WSDL file describing the service. Calling is simpler, too, because you just create GETs or POSTs with data to URIs. Actually, building the web service is easier, too, because you don't have to decode a SOAP XML request to figure out what to do. Excel, VBA, and REST URLs - A Sample Application http://developer.webtrends.com/community/dx/blog/2009/08/26/excel-vba-and-rest-urls--a-sample-application How to call web services with REST instead of SOAP http://www.oreillynet.com/windows/blog/2004/09/how_to_call_web_services_with.html REST is not CRUD, and here?s why. http://blog.punchbarrel.com/2008/10/31/rest-is-not-crud-and-heres-why/ Then there is the WRONG way: Automate Internet Explorer to fill in the forms programmatically. This is wrong because it binds you to a particular browser, and will break if they change their web page. You would start an IE instance in code, and traverse the DOM tree for the page until you found the HTML that held the web controls you were looking for, and fill them in, and programmatically 'click' and update control. Depending on the complexity of the HTML page, and how it is structured, this could be moderately easy or very hard. If they want to interact with the browser while your program is working, that may add additional complexity. Automate Internet Explorer http://www.codeforexcelandoutlook.com/excel-vba/automate-internet-explorer/ InternetExplorer Object http://msdn.microsoft.com/en-us/library/aa752084%28VS.85%29.aspx -Ken From jwcolby at colbyconsulting.com Thu Sep 9 13:32:08 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 09 Sep 2010 14:32:08 -0400 Subject: [AccessD] Scroll button In-Reply-To: References: Message-ID: <4C892828.9010605@colbyconsulting.com> Ken, I guess I wasn't clear. The web site is from the state of Pennsylvania. I didn't write it, nor do I get any input. So I get no input on the right way. The bottom line is all I need is to send them a CSV or similar file. But they don't even accept that. Nope, every person in the state who wants to enter data into their system gets to spend hours every week poking data into a web form. THOUSANDS of man hours monthly across the state, I am sure. This is the front end to being paid by the state of PA for all therapists and agencies that wish to bill the state for services to children (and maybe just services generally). Do you get a clue why medical costs are so high in this retarded place? Now for the wrong way. Yep, it sucks but it has to be better than click / click / paste / repeat for hours on end. And my app is at least SOMEWHAT automated. I am sure most are manually TYPING the data into the state form. Asking thousands of people to enter their specific 10 pieces of information into 200 controls on a "one size fits all" web page, doing this over and over for hundreds of billing records every week is asinine! Do I sound irritated? That would be because I AM irritated. Stupidity irritates me. 8( Or maybe this is PA's equivalent of a "full employment" plan, to keep people off welfare? ;) All of this data is in my database. I could just press a button, dump it to CSV file and email it or FTP it to the state, but no, my client hires people for hours every week to manually enter this into PA's web page. Sigh! John W. Colby www.ColbyConsulting.com On 9/9/2010 1:54 PM, Kenneth Ismert wrote: >> jwcolby: >> >> ... I would dearly LOVE to programmatically find the data in the web page >> and insert it myself but I do not know how to do that... >> > > Well, there is the RIGHT way to do it, and the WRONG way... ;) > > First, the RIGHT way: > > Build a web service that allows you to update the records in a completely > generic, standards-compliant way. Any properly-credentialed client could add > or update information on the site. This would add the most value to what you > are giving your client. > > SOAP > On the web side, you first would build a WSDL file which describes the > service, then you would have to build a web service that supports entering > the data, and returning success or an error. On the Access side, there are > SOAP and REST COM automation objects that let you interact with a web > service via VBA. I have used the SOAP object with VBA to interact with a PHP > SOAP web service that I built, and it works. > > Here is an overview, using the SOAP Toolkit 2.0... > http://www.soapuser.com/client4.html > > The latest is SOAP Toolkit 3.0 -- here is an example on the VBA side: > http://oreilly.com/pub/h/1306 > > REST > REST web services are simpler than SOAP, because you don't have to build a > WSDL file describing the service. Calling is simpler, too, because you just > create GETs or POSTs with data to URIs. Actually, building the web service > is easier, too, because you don't have to decode a SOAP XML request to > figure out what to do. > > Excel, VBA, and REST URLs - A Sample Application > http://developer.webtrends.com/community/dx/blog/2009/08/26/excel-vba-and-rest-urls--a-sample-application > > How to call web services with REST instead of SOAP > http://www.oreillynet.com/windows/blog/2004/09/how_to_call_web_services_with.html > > REST is not CRUD, and here?s why. > http://blog.punchbarrel.com/2008/10/31/rest-is-not-crud-and-heres-why/ > > > Then there is the WRONG way: > > Automate Internet Explorer to fill in the forms programmatically. This is > wrong because it binds you to a particular browser, and will break if they > change their web page. > > You would start an IE instance in code, and traverse the DOM tree for the > page until you found the HTML that held the web controls you were looking > for, and fill them in, and programmatically 'click' and update control. > > Depending on the complexity of the HTML page, and how it is structured, this > could be moderately easy or very hard. If they want to interact with the > browser while your program is working, that may add additional complexity. > > Automate Internet Explorer > http://www.codeforexcelandoutlook.com/excel-vba/automate-internet-explorer/ > > InternetExplorer Object > http://msdn.microsoft.com/en-us/library/aa752084%28VS.85%29.aspx > > -Ken From accessd at shaw.ca Thu Sep 9 14:27:06 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 9 Sep 2010 12:27:06 -0700 Subject: [AccessD] Scroll button In-Reply-To: <4C892828.9010605@colbyconsulting.com> References: <4C892828.9010605@colbyconsulting.com> Message-ID: <560EC601BC6847EBAC7CE0282F1DAC28@creativesystemdesigns.com> Hi John: It is all possible but it requires building automation to do this. I have had some experience with screen scrapping but what you want is the opposite...auto-screen data web entry. Because you have no access to the internals of the web site and the site is most likely setup to stop any data entry through a custom front end you would have to create a looping key logging type app. If you could capture all the keystrokes from the moment of website entry, through the form, populate the data, save record and loop until done. Many years ago I had a little command line app that would read from a text file and write to the keyboard buffer. I used the kludge technique to upload a series of invoices to a closed accounting application...it worked very well. If you are interested I can do some digging as the app is over 20 years old but I am sure I stored it somewhere. Rather than re-write a screen key pad macro there are now a number of products out there that are already built... how good they are I have no idea but here is one: http://www.iopus.com/ HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 09, 2010 11:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Scroll button Ken, I guess I wasn't clear. The web site is from the state of Pennsylvania. I didn't write it, nor do I get any input. So I get no input on the right way. The bottom line is all I need is to send them a CSV or similar file. But they don't even accept that. Nope, every person in the state who wants to enter data into their system gets to spend hours every week poking data into a web form. THOUSANDS of man hours monthly across the state, I am sure. This is the front end to being paid by the state of PA for all therapists and agencies that wish to bill the state for services to children (and maybe just services generally). Do you get a clue why medical costs are so high in this retarded place? Now for the wrong way. Yep, it sucks but it has to be better than click / click / paste / repeat for hours on end. And my app is at least SOMEWHAT automated. I am sure most are manually TYPING the data into the state form. Asking thousands of people to enter their specific 10 pieces of information into 200 controls on a "one size fits all" web page, doing this over and over for hundreds of billing records every week is asinine! Do I sound irritated? That would be because I AM irritated. Stupidity irritates me. 8( Or maybe this is PA's equivalent of a "full employment" plan, to keep people off welfare? ;) All of this data is in my database. I could just press a button, dump it to CSV file and email it or FTP it to the state, but no, my client hires people for hours every week to manually enter this into PA's web page. Sigh! John W. Colby www.ColbyConsulting.com On 9/9/2010 1:54 PM, Kenneth Ismert wrote: >> jwcolby: >> >> ... I would dearly LOVE to programmatically find the data in the web page >> and insert it myself but I do not know how to do that... >> > > Well, there is the RIGHT way to do it, and the WRONG way... ;) > > First, the RIGHT way: > > Build a web service that allows you to update the records in a completely > generic, standards-compliant way. Any properly-credentialed client could add > or update information on the site. This would add the most value to what you > are giving your client. > > SOAP > On the web side, you first would build a WSDL file which describes the > service, then you would have to build a web service that supports entering > the data, and returning success or an error. On the Access side, there are > SOAP and REST COM automation objects that let you interact with a web > service via VBA. I have used the SOAP object with VBA to interact with a PHP > SOAP web service that I built, and it works. > > Here is an overview, using the SOAP Toolkit 2.0... > http://www.soapuser.com/client4.html > > The latest is SOAP Toolkit 3.0 -- here is an example on the VBA side: > http://oreilly.com/pub/h/1306 > > REST > REST web services are simpler than SOAP, because you don't have to build a > WSDL file describing the service. Calling is simpler, too, because you just > create GETs or POSTs with data to URIs. Actually, building the web service > is easier, too, because you don't have to decode a SOAP XML request to > figure out what to do. > > Excel, VBA, and REST URLs - A Sample Application > http://developer.webtrends.com/community/dx/blog/2009/08/26/excel-vba-and-re st-urls--a-sample-application > > How to call web services with REST instead of SOAP > http://www.oreillynet.com/windows/blog/2004/09/how_to_call_web_services_with .html > > REST is not CRUD, and here's why. > http://blog.punchbarrel.com/2008/10/31/rest-is-not-crud-and-heres-why/ > > > Then there is the WRONG way: > > Automate Internet Explorer to fill in the forms programmatically. This is > wrong because it binds you to a particular browser, and will break if they > change their web page. > > You would start an IE instance in code, and traverse the DOM tree for the > page until you found the HTML that held the web controls you were looking > for, and fill them in, and programmatically 'click' and update control. > > Depending on the complexity of the HTML page, and how it is structured, this > could be moderately easy or very hard. If they want to interact with the > browser while your program is working, that may add additional complexity. > > Automate Internet Explorer > http://www.codeforexcelandoutlook.com/excel-vba/automate-internet-explorer/ > > InternetExplorer Object > http://msdn.microsoft.com/en-us/library/aa752084%28VS.85%29.aspx > > -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 9 14:58:41 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 09 Sep 2010 15:58:41 -0400 Subject: [AccessD] Scroll button In-Reply-To: <560EC601BC6847EBAC7CE0282F1DAC28@creativesystemdesigns.com> References: <4C892828.9010605@colbyconsulting.com> <560EC601BC6847EBAC7CE0282F1DAC28@creativesystemdesigns.com> Message-ID: <4C893C71.7050805@colbyconsulting.com> Jim, Many years ago I built an application that looked for specific controls on a web page (in IE) and then grabbed the data from those controls. I did it to automate responding to job listings on one of the job sites. I would search for jobs, then search the results, pulling data off the screen into a table, then filled out a word doc cover letter and emailed it out to the contact. It worked pretty well, allowing me to automate responses and send out hundreds of letters in an organized fashion, logging who I replied to etc. It seems that if I could find and get data out of a control on a web page, I should be able to find and insert data into a control on a web page. Of course that was back when web pages were just html. John W. Colby www.ColbyConsulting.com On 9/9/2010 3:27 PM, Jim Lawrence wrote: > Hi John: > > It is all possible but it requires building automation to do this. I have > had some experience with screen scrapping but what you want is the > opposite...auto-screen data web entry. > > Because you have no access to the internals of the web site and the site is > most likely setup to stop any data entry through a custom front end you > would have to create a looping key logging type app. If you could capture > all the keystrokes from the moment of website entry, through the form, > populate the data, save record and loop until done. > > Many years ago I had a little command line app that would read from a text > file and write to the keyboard buffer. I used the kludge technique to upload > a series of invoices to a closed accounting application...it worked very > well. If you are interested I can do some digging as the app is over 20 > years old but I am sure I stored it somewhere. > > Rather than re-write a screen key pad macro there are now a number of > products out there that are already built... how good they are I have no > idea but here is one: http://www.iopus.com/ > > HTH > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 09, 2010 11:32 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Scroll button > > Ken, > > I guess I wasn't clear. The web site is from the state of Pennsylvania. I > didn't write it, nor do > I get any input. > > So I get no input on the right way. The bottom line is all I need is to > send them a CSV or similar > file. But they don't even accept that. Nope, every person in the state who > wants to enter data > into their system gets to spend hours every week poking data into a web > form. THOUSANDS of man > hours monthly across the state, I am sure. > > This is the front end to being paid by the state of PA for all therapists > and agencies that wish to > bill the state for services to children (and maybe just services generally). > > Do you get a clue why medical costs are so high in this retarded place? > > Now for the wrong way. Yep, it sucks but it has to be better than click / > click / paste / repeat > for hours on end. And my app is at least SOMEWHAT automated. I am sure > most are manually TYPING > the data into the state form. > > Asking thousands of people to enter their specific 10 pieces of information > into 200 controls on a > "one size fits all" web page, doing this over and over for hundreds of > billing records every week is > asinine! > > Do I sound irritated? That would be because I AM irritated. Stupidity > irritates me. > > 8( > > Or maybe this is PA's equivalent of a "full employment" plan, to keep people > off welfare? > > ;) > > All of this data is in my database. I could just press a button, dump it to > CSV file and email it > or FTP it to the state, but no, my client hires people for hours every week > to manually enter this > into PA's web page. > > Sigh! > > John W. Colby > www.ColbyConsulting.com From stuart at lexacorp.com.pg Thu Sep 9 16:39:08 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 10 Sep 2010 07:39:08 +1000 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: <39B5ACCCEFD746E4B55B812213B649A5@HAL9005> References: <62988.1284047688@goodhall.info>, <455D5CF1270144C585F53E93016840B9@HAL9005>, <39B5ACCCEFD746E4B55B812213B649A5@HAL9005> Message-ID: <4C8953FC.30274.864EB15@stuart.lexacorp.com.pg> Does something like this work? (assuming you have set olFolder to the contacts folder) While olContacts.Count > 0 olContacts.Item(0).delete Wend -- Stuart On 9 Sep 2010 at 9:20, Rocky Smolin wrote: > OK, here's what's working: > > ' delete all the current contacts > DeleteAgain: > Set olContacts = olFolder.Items > If olContacts.Count = 0 Then GoTo DeleteDone: > Me.txtProcessing = "Deleting Contacts..." & olContacts.Count > Me.Repaint > Set olContactItem = olContacts.GetFirst > olContactItem.Delete > GoTo DeleteAgain: > > DeleteDone: > > It may not be optimized or the most elegant, but it works. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin Sent: Thursday, September 09, 2010 9:03 AM To: 'Access > Developers discussion and problem solving' Subject: Re: [AccessD] > Deleting Outlook Contacts > > Steve: > > " index the contact to be deleted " not sure what you mean. I'm a > real amateur at the Outlook object model. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > Goodhall Sent: Thursday, September 09, 2010 8:55 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Deleting Outlook Contacts > > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I > think > your problem is with the way For Each iterates in olContacts. I am > out on a customer site and don't have access to all my test beds, but > I would suggest that you index the contact to be deleted and count > down from the number of items in the olContacts collection. I don't > remember whether that index is zero based or one based. > I also suggest that you lose the "GoTo" but that's just style. > Regards, > Steve Goodhall, MSCS, PMP > 248-505-5204 > On Thu 09/09/10 11:25 AM , "Rocky Smolin" rockysmolin at bchacc.com > sent: > Dear List: > Still struggling with deleting the Outlook contacts. I found that > looping > through the items and deleting them deleted half so if I started with > 1000 contacts at the end of the loop I had 500 left. If I sent the > program back through the loop I ended up with 250. etc. > So iterating that loop until the Count = 0 works but it's kludgey. > Why does > it leave half of the contacts behind each time? > Here's the code: > ' delete all the current contacts > Set olContacts = olFolder.Items > DeleteAgain: > Me.txtProcessing = "Deleting..." & olContacts.Count > Me.Repaint > For Each olContactItem In olContacts > 'MsgBox olContactItem.LastName & ", " & > olContactItem.FirstName & " > - " & olContacts.Count > olContactItem.Delete > DoEvents > Next > Set olContacts = olFolder.Items > If olContacts.Count 0 Then GoTo DeleteAgain: > Me.txtProcessing displays the number of contacts each time through > the big > loop. So that's how I know it's only deleting 1/2 each time. When I > uncomment the MsgBox line inside the loop, it shows the count going to > zero each time the loop executes. But after the loop finishes, > there's still 1/2 the contacts left. refreshing the count by Set > olContacts = olFolder.Items gives the right count again. > Any idea what the heck is going on here? > MTIA > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com [1] > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > Links: > ------ > [1] mailto:AccessD at databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Sep 9 16:42:41 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 9 Sep 2010 14:42:41 -0700 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: <4C8953FC.30274.864EB15@stuart.lexacorp.com.pg> References: <62988.1284047688@goodhall.info>, <455D5CF1270144C585F53E93016840B9@HAL9005>, <39B5ACCCEFD746E4B55B812213B649A5@HAL9005> <4C8953FC.30274.864EB15@stuart.lexacorp.com.pg> Message-ID: I'll bet it would end be even easier. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 09, 2010 2:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Deleting Outlook Contacts Does something like this work? (assuming you have set olFolder to the contacts folder) While olContacts.Count > 0 olContacts.Item(0).delete Wend -- Stuart On 9 Sep 2010 at 9:20, Rocky Smolin wrote: > OK, here's what's working: > > ' delete all the current contacts > DeleteAgain: > Set olContacts = olFolder.Items > If olContacts.Count = 0 Then GoTo DeleteDone: > Me.txtProcessing = "Deleting Contacts..." & olContacts.Count > Me.Repaint > Set olContactItem = olContacts.GetFirst > olContactItem.Delete > GoTo DeleteAgain: > > DeleteDone: > > It may not be optimized or the most elegant, but it works. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin Sent: Thursday, September 09, 2010 9:03 AM To: 'Access > Developers discussion and problem solving' Subject: Re: [AccessD] > Deleting Outlook Contacts > > Steve: > > " index the contact to be deleted " not sure what you mean. I'm a > real amateur at the Outlook object model. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > Goodhall Sent: Thursday, September 09, 2010 8:55 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Deleting Outlook Contacts > > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I > think > your problem is with the way For Each iterates in olContacts. I am > out on a customer site and don't have access to all my test beds, but > I would suggest that you index the contact to be deleted and count > down from the number of items in the olContacts collection. I don't > remember whether that index is zero based or one based. > I also suggest that you lose the "GoTo" but that's just style. > Regards, > Steve Goodhall, MSCS, PMP > 248-505-5204 > On Thu 09/09/10 11:25 AM , "Rocky Smolin" rockysmolin at bchacc.com > sent: > Dear List: > Still struggling with deleting the Outlook contacts. I found that > looping through the items and deleting them deleted half so if I > started with 1000 contacts at the end of the loop I had 500 left. If > I sent the program back through the loop I ended up with 250. etc. > So iterating that loop until the Count = 0 works but it's kludgey. > Why does > it leave half of the contacts behind each time? > Here's the code: > ' delete all the current contacts > Set olContacts = olFolder.Items > DeleteAgain: > Me.txtProcessing = "Deleting..." & olContacts.Count > Me.Repaint > For Each olContactItem In olContacts > 'MsgBox olContactItem.LastName & ", " & > olContactItem.FirstName & " > - " & olContacts.Count > olContactItem.Delete > DoEvents > Next > Set olContacts = olFolder.Items > If olContacts.Count 0 Then GoTo DeleteAgain: > Me.txtProcessing displays the number of contacts each time through > the big loop. So that's how I know it's only deleting 1/2 each time. > When I uncomment the MsgBox line inside the loop, it shows the count > going to zero each time the loop executes. But after the loop > finishes, there's still 1/2 the contacts left. refreshing the count > by Set olContacts = olFolder.Items gives the right count again. > Any idea what the heck is going on here? > MTIA > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com [1] > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > Links: > ------ > [1] mailto:AccessD at databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Sep 9 16:48:18 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 10 Sep 2010 07:48:18 +1000 Subject: [AccessD] Scroll button In-Reply-To: <560EC601BC6847EBAC7CE0282F1DAC28@creativesystemdesigns.com> References: , <4C892828.9010605@colbyconsulting.com>, <560EC601BC6847EBAC7CE0282F1DAC28@creativesystemdesigns.com> Message-ID: <4C895622.28469.86D4FEF@stuart.lexacorp.com.pg> If the page never changes and you always fill in the same fields, AutoIt would do it easily. Dump your Access data to a text file and write a small AutoIt application to read the data, open the wepage in a browser, step through form fields on the page and insert the data into the appropriate ones. Probably only a few minutes work. -- Stuart On 9 Sep 2010 at 12:27, Jim Lawrence wrote: > Hi John: > > It is all possible but it requires building automation to do this. I > have had some experience with screen scrapping but what you want is > the opposite...auto-screen data web entry. > > Because you have no access to the internals of the web site and the > site is most likely setup to stop any data entry through a custom > front end you would have to create a looping key logging type app. If > you could capture all the keystrokes from the moment of website entry, > through the form, populate the data, save record and loop until done. > > Many years ago I had a little command line app that would read from a > text file and write to the keyboard buffer. I used the kludge > technique to upload a series of invoices to a closed accounting > application...it worked very well. If you are interested I can do some > digging as the app is over 20 years old but I am sure I stored it > somewhere. > > Rather than re-write a screen key pad macro there are now a number of > products out there that are already built... how good they are I have > no idea but here is one: http://www.iopus.com/ > > HTH > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 09, 2010 11:32 AM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Scroll button > > Ken, > > I guess I wasn't clear. The web site is from the state of > Pennsylvania. I didn't write it, nor do I get any input. > > So I get no input on the right way. The bottom line is all I need is > to send them a CSV or similar file. But they don't even accept that. > Nope, every person in the state who wants to enter data into their > system gets to spend hours every week poking data into a web form. > THOUSANDS of man hours monthly across the state, I am sure. > > This is the front end to being paid by the state of PA for all > therapists and agencies that wish to bill the state for services to > children (and maybe just services generally). > > Do you get a clue why medical costs are so high in this retarded > place? > > Now for the wrong way. Yep, it sucks but it has to be better than > click / click / paste / repeat for hours on end. And my app is at > least SOMEWHAT automated. I am sure most are manually TYPING the data > into the state form. > > Asking thousands of people to enter their specific 10 pieces of > information into 200 controls on a "one size fits all" web page, doing > this over and over for hundreds of billing records every week is > asinine! > > Do I sound irritated? That would be because I AM irritated. > Stupidity irritates me. > > 8( > > Or maybe this is PA's equivalent of a "full employment" plan, to keep > people off welfare? > > ;) > > All of this data is in my database. I could just press a button, dump > it to CSV file and email it or FTP it to the state, but no, my client > hires people for hours every week to manually enter this into PA's web > page. > > Sigh! > > John W. Colby > www.ColbyConsulting.com > > On 9/9/2010 1:54 PM, Kenneth Ismert wrote: > >> jwcolby: > >> > >> ... I would dearly LOVE to programmatically find the data in the > >> web page and insert it myself but I do not know how to do that... > >> > > > > Well, there is the RIGHT way to do it, and the WRONG way... ;) > > > > First, the RIGHT way: > > > > Build a web service that allows you to update the records in a > > completely generic, standards-compliant way. Any > > properly-credentialed client could > add > > or update information on the site. This would add the most value to > > what > you > > are giving your client. > > > > SOAP > > On the web side, you first would build a WSDL file which describes > > the service, then you would have to build a web service that > > supports entering the data, and returning success or an error. On > > the Access side, there are SOAP and REST COM automation objects that > > let you interact with a web service via VBA. I have used the SOAP > > object with VBA to interact with a > PHP > > SOAP web service that I built, and it works. > > > > Here is an overview, using the SOAP Toolkit 2.0... > > http://www.soapuser.com/client4.html > > > > The latest is SOAP Toolkit 3.0 -- here is an example on the VBA > > side: http://oreilly.com/pub/h/1306 > > > > REST > > REST web services are simpler than SOAP, because you don't have to > > build a WSDL file describing the service. Calling is simpler, too, > > because you > just > > create GETs or POSTs with data to URIs. Actually, building the web > > service is easier, too, because you don't have to decode a SOAP XML > > request to figure out what to do. > > > > Excel, VBA, and REST URLs - A Sample Application > > > http://developer.webtrends.com/community/dx/blog/2009/08/26/excel-vba- > and-re st-urls--a-sample-application > > How to call web services with > REST instead of SOAP > > http://www.oreillynet.com/windows/blog/2004/09/how_to_call_web_service > s_with .html > > REST is not CRUD, and here's why. > > http://blog.punchbarrel.com/2008/10/31/rest-is-not-crud-and-heres-why/ > > > > Then there is the WRONG way: > > Automate Internet Explorer to > fill in the forms programmatically. This is > wrong because it binds > you to a particular browser, and will break if they > change their web > page. > > You would start an IE instance in code, and traverse the DOM > tree for the > page until you found the HTML that held the web > controls you were looking > for, and fill them in, and > programmatically 'click' and update control. > > Depending on the > complexity of the HTML page, and how it is structured, this > could be > moderately easy or very hard. If they want to interact with the > > browser while your program is working, that may add additional > complexity. > > Automate Internet Explorer > > http://www.codeforexcelandoutlook.com/excel-vba/automate-internet-expl > orer/ > > InternetExplorer Object > > http://msdn.microsoft.com/en-us/library/aa752084%28VS.85%29.aspx > > > -Ken -- AccessD mailing list AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd Website: > http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Sep 9 16:51:07 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 9 Sep 2010 14:51:07 -0700 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: <4C8953FC.30274.864EB15@stuart.lexacorp.com.pg> References: <62988.1284047688@goodhall.info>, <455D5CF1270144C585F53E93016840B9@HAL9005>, <39B5ACCCEFD746E4B55B812213B649A5@HAL9005> <4C8953FC.30274.864EB15@stuart.lexacorp.com.pg> Message-ID: <3990EBB17A71477AA20A6A1D2801A88A@HAL9005> No - I get an array index out of bounds error message However this works: While olContacts.Count > 0 olContacts.Item(1).Delete Set olContacts = olFolder.Items Me.txtProcessing = "Deleting Contacts..." & olContacts.Count Wend Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 09, 2010 2:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Deleting Outlook Contacts Does something like this work? (assuming you have set olFolder to the contacts folder) While olContacts.Count > 0 olContacts.Item(0).delete Wend -- Stuart On 9 Sep 2010 at 9:20, Rocky Smolin wrote: > OK, here's what's working: > > ' delete all the current contacts > DeleteAgain: > Set olContacts = olFolder.Items > If olContacts.Count = 0 Then GoTo DeleteDone: > Me.txtProcessing = "Deleting Contacts..." & olContacts.Count > Me.Repaint > Set olContactItem = olContacts.GetFirst > olContactItem.Delete > GoTo DeleteAgain: > > DeleteDone: > > It may not be optimized or the most elegant, but it works. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin Sent: Thursday, September 09, 2010 9:03 AM To: 'Access > Developers discussion and problem solving' Subject: Re: [AccessD] > Deleting Outlook Contacts > > Steve: > > " index the contact to be deleted " not sure what you mean. I'm a > real amateur at the Outlook object model. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > Goodhall Sent: Thursday, September 09, 2010 8:55 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Deleting Outlook Contacts > > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I > think > your problem is with the way For Each iterates in olContacts. I am > out on a customer site and don't have access to all my test beds, but > I would suggest that you index the contact to be deleted and count > down from the number of items in the olContacts collection. I don't > remember whether that index is zero based or one based. > I also suggest that you lose the "GoTo" but that's just style. > Regards, > Steve Goodhall, MSCS, PMP > 248-505-5204 > On Thu 09/09/10 11:25 AM , "Rocky Smolin" rockysmolin at bchacc.com > sent: > Dear List: > Still struggling with deleting the Outlook contacts. I found that > looping through the items and deleting them deleted half so if I > started with 1000 contacts at the end of the loop I had 500 left. If > I sent the program back through the loop I ended up with 250. etc. > So iterating that loop until the Count = 0 works but it's kludgey. > Why does > it leave half of the contacts behind each time? > Here's the code: > ' delete all the current contacts > Set olContacts = olFolder.Items > DeleteAgain: > Me.txtProcessing = "Deleting..." & olContacts.Count > Me.Repaint > For Each olContactItem In olContacts > 'MsgBox olContactItem.LastName & ", " & > olContactItem.FirstName & " > - " & olContacts.Count > olContactItem.Delete > DoEvents > Next > Set olContacts = olFolder.Items > If olContacts.Count 0 Then GoTo DeleteAgain: > Me.txtProcessing displays the number of contacts each time through > the big loop. So that's how I know it's only deleting 1/2 each time. > When I uncomment the MsgBox line inside the loop, it shows the count > going to zero each time the loop executes. But after the loop > finishes, there's still 1/2 the contacts left. refreshing the count > by Set olContacts = olFolder.Items gives the right count again. > Any idea what the heck is going on here? > MTIA > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com [1] > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > Links: > ------ > [1] mailto:AccessD at databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Sep 9 16:56:24 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 10 Sep 2010 07:56:24 +1000 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: <3990EBB17A71477AA20A6A1D2801A88A@HAL9005> References: <62988.1284047688@goodhall.info>, <4C8953FC.30274.864EB15@stuart.lexacorp.com.pg>, <3990EBB17A71477AA20A6A1D2801A88A@HAL9005> Message-ID: <4C895808.6410.874B96B@stuart.lexacorp.com.pg> I do wish that MS could make up their minds whether arrays should be zero or one based :-( -- Stuart On 9 Sep 2010 at 14:51, Rocky Smolin wrote: > No - I get an array index out of bounds error message > > However this works: > > While olContacts.Count > 0 > olContacts.Item(1).Delete > Set olContacts = olFolder.Items > Me.txtProcessing = "Deleting Contacts..." & olContacts.Count > Wend > > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Thursday, September 09, 2010 2:39 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Deleting Outlook Contacts > > Does something like this work? > (assuming you have set olFolder to the contacts folder) > > While olContacts.Count > 0 > olContacts.Item(0).delete > Wend > > > -- > Stuart > > On 9 Sep 2010 at 9:20, Rocky Smolin wrote: > > > OK, here's what's working: > > > > ' delete all the current contacts > > DeleteAgain: > > Set olContacts = olFolder.Items > > If olContacts.Count = 0 Then GoTo DeleteDone: > > Me.txtProcessing = "Deleting Contacts..." & olContacts.Count > > Me.Repaint Set olContactItem = olContacts.GetFirst > > olContactItem.Delete GoTo DeleteAgain: > > > > DeleteDone: > > > > It may not be optimized or the most elegant, but it works. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin Sent: Thursday, September 09, 2010 9:03 AM To: 'Access > > Developers discussion and problem solving' Subject: Re: [AccessD] > > Deleting Outlook Contacts > > > > Steve: > > > > " index the contact to be deleted " not sure what you mean. I'm a > > real amateur at the Outlook object model. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > > Goodhall Sent: Thursday, September 09, 2010 8:55 AM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Deleting Outlook Contacts > > > > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I > > think > > your problem is with the way For Each iterates in olContacts. I am > > out on a customer site and don't have access to all my test beds, > > but I would suggest that you index the contact to be deleted and > > count down from the number of items in the olContacts collection. I > > don't remember whether that index is zero based or one based. > > I also suggest that you lose the "GoTo" but that's just style. > > Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Thu 09/09/10 > > 11:25 AM , "Rocky Smolin" rockysmolin at bchacc.com > > sent: > > Dear List: > > Still struggling with deleting the Outlook contacts. I found that > > > > looping through the items and deleting them deleted half so if I > > started with 1000 contacts at the end of the loop I had 500 left. > > If I sent the program back through the loop I ended up with 250. > > etc. > > So iterating that loop until the Count = 0 works but it's kludgey. > > Why does > > it leave half of the contacts behind each time? > > Here's the code: > > ' delete all the current contacts > > Set olContacts = olFolder.Items > > DeleteAgain: > > Me.txtProcessing = "Deleting..." & olContacts.Count > > Me.Repaint > > For Each olContactItem In olContacts > > 'MsgBox olContactItem.LastName & ", " & > > olContactItem.FirstName & " > > - " & olContacts.Count > > olContactItem.Delete > > DoEvents > > Next > > Set olContacts = olFolder.Items > > If olContacts.Count 0 Then GoTo DeleteAgain: > > Me.txtProcessing displays the number of contacts each time through > > > > the big loop. So that's how I know it's only deleting 1/2 each > > time. When I uncomment the MsgBox line inside the loop, it shows the > > count going to zero each time the loop executes. But after the loop > > finishes, there's still 1/2 the contacts left. refreshing the count > > by Set olContacts = olFolder.Items gives the right count again. > > Any idea what the heck is going on here? > > MTIA > > Rocky > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com [1] > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > Links: > > ------ > > [1] mailto:AccessD at databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Sep 9 17:44:18 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 9 Sep 2010 15:44:18 -0700 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: <4C895808.6410.874B96B@stuart.lexacorp.com.pg> References: <62988.1284047688@goodhall.info>, <4C8953FC.30274.864EB15@stuart.lexacorp.com.pg>, <3990EBB17A71477AA20A6A1D2801A88A@HAL9005> <4C895808.6410.874B96B@stuart.lexacorp.com.pg> Message-ID: <94EA78BA7C594B03AE41F22A99D246FD@HAL9005> That would be too easy. What would the MCPs do? :) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 09, 2010 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Deleting Outlook Contacts I do wish that MS could make up their minds whether arrays should be zero or one based :-( -- Stuart On 9 Sep 2010 at 14:51, Rocky Smolin wrote: > No - I get an array index out of bounds error message > > However this works: > > While olContacts.Count > 0 > olContacts.Item(1).Delete > Set olContacts = olFolder.Items > Me.txtProcessing = "Deleting Contacts..." & olContacts.Count Wend > > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Thursday, September 09, 2010 2:39 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Deleting Outlook Contacts > > Does something like this work? > (assuming you have set olFolder to the contacts folder) > > While olContacts.Count > 0 > olContacts.Item(0).delete > Wend > > > -- > Stuart > > On 9 Sep 2010 at 9:20, Rocky Smolin wrote: > > > OK, here's what's working: > > > > ' delete all the current contacts > > DeleteAgain: > > Set olContacts = olFolder.Items > > If olContacts.Count = 0 Then GoTo DeleteDone: > > Me.txtProcessing = "Deleting Contacts..." & olContacts.Count > > Me.Repaint Set olContactItem = olContacts.GetFirst > > olContactItem.Delete GoTo DeleteAgain: > > > > DeleteDone: > > > > It may not be optimized or the most elegant, but it works. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin Sent: Thursday, September 09, 2010 9:03 AM To: 'Access > > Developers discussion and problem solving' Subject: Re: [AccessD] > > Deleting Outlook Contacts > > > > Steve: > > > > " index the contact to be deleted " not sure what you mean. I'm a > > real amateur at the Outlook object model. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > > Goodhall Sent: Thursday, September 09, 2010 8:55 AM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Deleting Outlook Contacts > > > > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I > > think > > your problem is with the way For Each iterates in olContacts. I am > > out on a customer site and don't have access to all my test beds, > > but I would suggest that you index the contact to be deleted and > > count down from the number of items in the olContacts collection. I > > don't remember whether that index is zero based or one based. > > I also suggest that you lose the "GoTo" but that's just style. > > Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Thu 09/09/10 > > 11:25 AM , "Rocky Smolin" rockysmolin at bchacc.com > > sent: > > Dear List: > > Still struggling with deleting the Outlook contacts. I found that > > > > looping through the items and deleting them deleted half so if I > > started with 1000 contacts at the end of the loop I had 500 left. > > If I sent the program back through the loop I ended up with 250. > > etc. > > So iterating that loop until the Count = 0 works but it's kludgey. > > Why does > > it leave half of the contacts behind each time? > > Here's the code: > > ' delete all the current contacts > > Set olContacts = olFolder.Items > > DeleteAgain: > > Me.txtProcessing = "Deleting..." & olContacts.Count > > Me.Repaint > > For Each olContactItem In olContacts > > 'MsgBox olContactItem.LastName & ", " & > > olContactItem.FirstName & " > > - " & olContacts.Count > > olContactItem.Delete > > DoEvents > > Next > > Set olContacts = olFolder.Items > > If olContacts.Count 0 Then GoTo DeleteAgain: > > Me.txtProcessing displays the number of contacts each time through > > > > the big loop. So that's how I know it's only deleting 1/2 each > > time. When I uncomment the MsgBox line inside the loop, it shows the > > count going to zero each time the loop executes. But after the loop > > finishes, there's still 1/2 the contacts left. refreshing the count > > by Set olContacts = olFolder.Items gives the right count again. > > Any idea what the heck is going on here? > > MTIA > > Rocky > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com [1] > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > Links: > > ------ > > [1] mailto:AccessD at databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From charlotte.foust at gmail.com Thu Sep 9 20:38:53 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Thu, 9 Sep 2010 18:38:53 -0700 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: <980E7551815E4BC38A013C7D6DD730F8@HAL9005> References: <980E7551815E4BC38A013C7D6DD730F8@HAL9005> Message-ID: Rocky, To get deletes to work properly, you have to move backwards through the recordset. Instead of using For Each, try moving to the last record first and do until EOF and BOF. Charlotte Foust On Thu, Sep 9, 2010 at 8:25 AM, Rocky Smolin wrote: > Dear List: > > Still struggling with deleting the Outlook contacts. ?I found that looping > through the items and deleting them deleted half so if I started with 1000 > contacts at the end of the loop I had 500 left. ?If I sent the program back > through the loop I ended up with 250. ?etc. > > So iterating that loop until the Count = 0 works but it's kludgey. ?Why does > it leave half of the contacts behind each time? > > Here's the code: > > ? ?' delete all the current contacts > ? ?Set olContacts = olFolder.Items > DeleteAgain: > ? ?Me.txtProcessing = "Deleting..." & olContacts.Count > ? ?Me.Repaint > ? ?For Each olContactItem In olContacts > ? ? ? ?'MsgBox olContactItem.LastName & ", " & olContactItem.FirstName & " > - " & olContacts.Count > ? ? ? ?olContactItem.Delete > ? ? ? ?DoEvents > ? ?Next > ? ?Set olContacts = olFolder.Items > ? ?If olContacts.Count <> 0 Then GoTo DeleteAgain: > > > Me.txtProcessing displays the number of contacts each time through the big > loop. ?So that's how I know it's only deleting 1/2 each time. When I > uncomment the MsgBox line inside the loop, it shows the count going to zero > each time the loop executes. ?But after the loop finishes, there's still 1/2 > the contacts left. ?refreshing the count by Set olContacts = olFolder.Items > gives the right count again. > > Any idea what the heck is going on here? > > > > MTIA > > > > Rocky > > > > > - From accessd at shaw.ca Thu Sep 9 20:44:48 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 9 Sep 2010 18:44:48 -0700 Subject: [AccessD] Scroll button In-Reply-To: <4C895622.28469.86D4FEF@stuart.lexacorp.com.pg> References: <4C892828.9010605@colbyconsulting.com> <560EC601BC6847EBAC7CE0282F1DAC28@creativesystemdesigns.com> <4C895622.28469.86D4FEF@stuart.lexacorp.com.pg> Message-ID: Hi Stuart: Back in the days of simple HTML and stable sites it was easy to scrape and push data into a site. It is still relatively easy to scrape but sites are much more dynamic. OTOH, if the site developers have been doing their job, emulating data input using a copied page is almost impossible. The only way might be through the key board buffer. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 09, 2010 2:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Scroll button If the page never changes and you always fill in the same fields, AutoIt would do it easily. Dump your Access data to a text file and write a small AutoIt application to read the data, open the wepage in a browser, step through form fields on the page and insert the data into the appropriate ones. Probably only a few minutes work. -- Stuart On 9 Sep 2010 at 12:27, Jim Lawrence wrote: > Hi John: > > It is all possible but it requires building automation to do this. I > have had some experience with screen scrapping but what you want is > the opposite...auto-screen data web entry. > > Because you have no access to the internals of the web site and the > site is most likely setup to stop any data entry through a custom > front end you would have to create a looping key logging type app. If > you could capture all the keystrokes from the moment of website entry, > through the form, populate the data, save record and loop until done. > > Many years ago I had a little command line app that would read from a > text file and write to the keyboard buffer. I used the kludge > technique to upload a series of invoices to a closed accounting > application...it worked very well. If you are interested I can do some > digging as the app is over 20 years old but I am sure I stored it > somewhere. > > Rather than re-write a screen key pad macro there are now a number of > products out there that are already built... how good they are I have > no idea but here is one: http://www.iopus.com/ > > HTH > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 09, 2010 11:32 AM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Scroll button > > Ken, > > I guess I wasn't clear. The web site is from the state of > Pennsylvania. I didn't write it, nor do I get any input. > > So I get no input on the right way. The bottom line is all I need is > to send them a CSV or similar file. But they don't even accept that. > Nope, every person in the state who wants to enter data into their > system gets to spend hours every week poking data into a web form. > THOUSANDS of man hours monthly across the state, I am sure. > > This is the front end to being paid by the state of PA for all > therapists and agencies that wish to bill the state for services to > children (and maybe just services generally). > > Do you get a clue why medical costs are so high in this retarded > place? > > Now for the wrong way. Yep, it sucks but it has to be better than > click / click / paste / repeat for hours on end. And my app is at > least SOMEWHAT automated. I am sure most are manually TYPING the data > into the state form. > > Asking thousands of people to enter their specific 10 pieces of > information into 200 controls on a "one size fits all" web page, doing > this over and over for hundreds of billing records every week is > asinine! > > Do I sound irritated? That would be because I AM irritated. > Stupidity irritates me. > > 8( > > Or maybe this is PA's equivalent of a "full employment" plan, to keep > people off welfare? > > ;) > > All of this data is in my database. I could just press a button, dump > it to CSV file and email it or FTP it to the state, but no, my client > hires people for hours every week to manually enter this into PA's web > page. > > Sigh! > > John W. Colby > www.ColbyConsulting.com > > On 9/9/2010 1:54 PM, Kenneth Ismert wrote: > >> jwcolby: > >> > >> ... I would dearly LOVE to programmatically find the data in the > >> web page and insert it myself but I do not know how to do that... > >> > > > > Well, there is the RIGHT way to do it, and the WRONG way... ;) > > > > First, the RIGHT way: > > > > Build a web service that allows you to update the records in a > > completely generic, standards-compliant way. Any > > properly-credentialed client could > add > > or update information on the site. This would add the most value to > > what > you > > are giving your client. > > > > SOAP > > On the web side, you first would build a WSDL file which describes > > the service, then you would have to build a web service that > > supports entering the data, and returning success or an error. On > > the Access side, there are SOAP and REST COM automation objects that > > let you interact with a web service via VBA. I have used the SOAP > > object with VBA to interact with a > PHP > > SOAP web service that I built, and it works. > > > > Here is an overview, using the SOAP Toolkit 2.0... > > http://www.soapuser.com/client4.html > > > > The latest is SOAP Toolkit 3.0 -- here is an example on the VBA > > side: http://oreilly.com/pub/h/1306 > > > > REST > > REST web services are simpler than SOAP, because you don't have to > > build a WSDL file describing the service. Calling is simpler, too, > > because you > just > > create GETs or POSTs with data to URIs. Actually, building the web > > service is easier, too, because you don't have to decode a SOAP XML > > request to figure out what to do. > > > > Excel, VBA, and REST URLs - A Sample Application > > > http://developer.webtrends.com/community/dx/blog/2009/08/26/excel-vba- > and-re st-urls--a-sample-application > > How to call web services with > REST instead of SOAP > > http://www.oreillynet.com/windows/blog/2004/09/how_to_call_web_service > s_with .html > > REST is not CRUD, and here's why. > > http://blog.punchbarrel.com/2008/10/31/rest-is-not-crud-and-heres-why/ > > > > Then there is the WRONG way: > > Automate Internet Explorer to > fill in the forms programmatically. This is > wrong because it binds > you to a particular browser, and will break if they > change their web > page. > > You would start an IE instance in code, and traverse the DOM > tree for the > page until you found the HTML that held the web > controls you were looking > for, and fill them in, and > programmatically 'click' and update control. > > Depending on the > complexity of the HTML page, and how it is structured, this > could be > moderately easy or very hard. If they want to interact with the > > browser while your program is working, that may add additional > complexity. > > Automate Internet Explorer > > http://www.codeforexcelandoutlook.com/excel-vba/automate-internet-expl > orer/ > > InternetExplorer Object > > http://msdn.microsoft.com/en-us/library/aa752084%28VS.85%29.aspx > > > -Ken -- AccessD mailing list AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd Website: > http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Thu Sep 9 20:59:50 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Fri, 10 Sep 2010 11:59:50 +1000 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: Message-ID: <201009100159.o8A1xiMu018229@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ In short, when you delete the contact, the next record becomes the current one. That one is skipped as you do a "move next" to get to the next record, effectively skipping the 'new' current record. This is why only half are removed. Or at least that is my understanding of it. You certainly see that sort of behaviour in Excel when using that sort of method to delete records. regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 10 September 2010 11:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Deleting Outlook Contacts Rocky, To get deletes to work properly, you have to move backwards through the recordset. Instead of using For Each, try moving to the last record first and do until EOF and BOF. Charlotte Foust On Thu, Sep 9, 2010 at 8:25 AM, Rocky Smolin wrote: > Dear List: > > Still struggling with deleting the Outlook contacts. ?I found that looping > through the items and deleting them deleted half so if I started with 1000 > contacts at the end of the loop I had 500 left. ?If I sent the program back > through the loop I ended up with 250. ?etc. > > So iterating that loop until the Count = 0 works but it's kludgey. ?Why does > it leave half of the contacts behind each time? > > Here's the code: > > ? ?' delete all the current contacts > ? ?Set olContacts = olFolder.Items > DeleteAgain: > ? ?Me.txtProcessing = "Deleting..." & olContacts.Count > ? ?Me.Repaint > ? ?For Each olContactItem In olContacts > ? ? ? ?'MsgBox olContactItem.LastName & ", " & olContactItem.FirstName & " > - " & olContacts.Count > ? ? ? ?olContactItem.Delete > ? ? ? ?DoEvents > ? ?Next > ? ?Set olContacts = olFolder.Items > ? ?If olContacts.Count <> 0 Then GoTo DeleteAgain: > > > Me.txtProcessing displays the number of contacts each time through the big > loop. ?So that's how I know it's only deleting 1/2 each time. When I > uncomment the MsgBox line inside the loop, it shows the count going to zero > each time the loop executes. ?But after the loop finishes, there's still 1/2 > the contacts left. ?refreshing the count by Set olContacts = olFolder.Items > gives the right count again. > > Any idea what the heck is going on here? > > > > MTIA > > > > Rocky > > > > > - -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From Gustav at cactus.dk Fri Sep 10 01:54:57 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Sep 2010 08:54:57 +0200 Subject: [AccessD] Automating web page entry (was: Scroll button) Message-ID: Hi John In Visual Studio you have a native browser object which allows you to read the page, input data, and call JavaScript functions of the page. It works very well. For fun I made a test once to "hack" an entry key to a (non-essential) page where the key could be from 0000 to 9999. A simple loop that checked if the confirming page or an error page was showed after the entry. It was cracked in a couple of minutes. /gustav >>> jwcolby at colbyconsulting.com 09-09-2010 20:32 >>> Ken, I guess I wasn't clear. The web site is from the state of Pennsylvania. I didn't write it, nor do I get any input. So I get no input on the right way. The bottom line is all I need is to send them a CSV or similar file. But they don't even accept that. Nope, every person in the state who wants to enter data into their system gets to spend hours every week poking data into a web form. THOUSANDS of man hours monthly across the state, I am sure. This is the front end to being paid by the state of PA for all therapists and agencies that wish to bill the state for services to children (and maybe just services generally). Do you get a clue why medical costs are so high in this retarded place? Now for the wrong way. Yep, it sucks but it has to be better than click / click / paste / repeat for hours on end. And my app is at least SOMEWHAT automated. I am sure most are manually TYPING the data into the state form. Asking thousands of people to enter their specific 10 pieces of information into 200 controls on a "one size fits all" web page, doing this over and over for hundreds of billing records every week is asinine! Do I sound irritated? That would be because I AM irritated. Stupidity irritates me. 8( Or maybe this is PA's equivalent of a "full employment" plan, to keep people off welfare? ;) All of this data is in my database. I could just press a button, dump it to CSV file and email it or FTP it to the state, but no, my client hires people for hours every week to manually enter this into PA's web page. Sigh! John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Fri Sep 10 05:09:56 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 06:09:56 -0400 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: <201009100159.o8A1xiMu018229@databaseadvisors.com> References: <201009100159.o8A1xiMu018229@databaseadvisors.com> Message-ID: <4C8A03F4.1060403@colbyconsulting.com> > In short, when you delete the contact, the next record becomes the current one. That one is skipped as you do a "move next" to get to the next record, effectively skipping the 'new' current record. This is why only half are removed. Or at least that is my understanding of it. You certainly see that sort of behaviour in Excel when using that sort of method to delete records. That is why I do something like while MyCol.Count MyCol(0).remove wend John W. Colby www.ColbyConsulting.com On 9/9/2010 9:59 PM, Darryl Collins wrote: > > _______________________________________________________________________________________ > > Note: This e-mail is subject to the disclaimer contained at the bottom of this message. > _______________________________________________________________________________________ > > > > > In short, when you delete the contact, the next record becomes the current one. That one is skipped as you do a "move next" to get to the next record, effectively skipping the 'new' current record. This is why only half are removed. Or at least that is my understanding of it. You certainly see that sort of behaviour in Excel when using that sort of method to delete records. > > regards > Darryl. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Friday, 10 September 2010 11:39 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Deleting Outlook Contacts > > Rocky, > > To get deletes to work properly, you have to move backwards through > the recordset. Instead of using For Each, try moving to the last > record first and do until EOF and BOF. > > Charlotte Foust > > On Thu, Sep 9, 2010 at 8:25 AM, Rocky Smolin wrote: >> Dear List: >> >> Still struggling with deleting the Outlook contacts. I found that looping >> through the items and deleting them deleted half so if I started with 1000 >> contacts at the end of the loop I had 500 left. If I sent the program back >> through the loop I ended up with 250. etc. >> >> So iterating that loop until the Count = 0 works but it's kludgey. Why does >> it leave half of the contacts behind each time? >> >> Here's the code: >> >> ' delete all the current contacts >> Set olContacts = olFolder.Items >> DeleteAgain: >> Me.txtProcessing = "Deleting..."& olContacts.Count >> Me.Repaint >> For Each olContactItem In olContacts >> 'MsgBox olContactItem.LastName& ", "& olContactItem.FirstName& " >> - "& olContacts.Count >> olContactItem.Delete >> DoEvents >> Next >> Set olContacts = olFolder.Items >> If olContacts.Count<> 0 Then GoTo DeleteAgain: >> >> >> Me.txtProcessing displays the number of contacts each time through the big >> loop. So that's how I know it's only deleting 1/2 each time. When I >> uncomment the MsgBox line inside the loop, it shows the count going to zero >> each time the loop executes. But after the loop finishes, there's still 1/2 >> the contacts left. refreshing the count by Set olContacts = olFolder.Items >> gives the right count again. >> >> Any idea what the heck is going on here? >> >> >> >> MTIA >> >> >> >> Rocky >> >> >> >> >> - > From jwcolby at colbyconsulting.com Fri Sep 10 05:37:12 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 06:37:12 -0400 Subject: [AccessD] can't select data in control when AllowEdit false Message-ID: <4C8A0A58.5080609@colbyconsulting.com> I had forgotten this. Is there a way around it? It is not uncommon to not allow the user to edit the form's underlying record and yet need to click a button or select an item from a list. -- John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Fri Sep 10 06:00:37 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 10 Sep 2010 21:00:37 +1000 Subject: [AccessD] Automating web page entry (was: Scroll button) In-Reply-To: References: Message-ID: <4C8A0FD5.24698.B42B094@stuart.lexacorp.com.pg> I did exactly the same with an application by a paint manufacturer for mixing paints a few years ago using AutoIt. Same result. -- Stuart On 10 Sep 2010 at 8:54, Gustav Brock wrote: > Hi John > > In Visual Studio you have a native browser object which allows you to > read the page, input data, and call JavaScript functions of the page. > > It works very well. For fun I made a test once to "hack" an entry key > to a (non-essential) page where the key could be from 0000 to 9999. A > simple loop that checked if the confirming page or an error page was > showed after the entry. It was cracked in a couple of minutes. > > /gustav > > > >>> jwcolby at colbyconsulting.com 09-09-2010 20:32 >>> > Ken, > > I guess I wasn't clear. The web site is from the state of > Pennsylvania. I didn't write it, nor do I get any input. > > So I get no input on the right way. The bottom line is all I need is > to send them a CSV or similar file. But they don't even accept that. > Nope, every person in the state who wants to enter data into their > system gets to spend hours every week poking data into a web form. > THOUSANDS of man hours monthly across the state, I am sure. > > This is the front end to being paid by the state of PA for all > therapists and agencies that wish to bill the state for services to > children (and maybe just services generally). > > Do you get a clue why medical costs are so high in this retarded > place? > > Now for the wrong way. Yep, it sucks but it has to be better than > click / click / paste / repeat for hours on end. And my app is at > least SOMEWHAT automated. I am sure most are manually TYPING the data > into the state form. > > Asking thousands of people to enter their specific 10 pieces of > information into 200 controls on a "one size fits all" web page, doing > this over and over for hundreds of billing records every week is > asinine! > > Do I sound irritated? That would be because I AM irritated. > Stupidity irritates me. > > 8( > > Or maybe this is PA's equivalent of a "full employment" plan, to keep > people off welfare? > > ;) > > All of this data is in my database. I could just press a button, dump > it to CSV file and email it or FTP it to the state, but no, my client > hires people for hours every week to manually enter this into PA's web > page. > > Sigh! > > John W. Colby > www.ColbyConsulting.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Fri Sep 10 06:02:45 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 10 Sep 2010 21:02:45 +1000 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: <4C8A03F4.1060403@colbyconsulting.com> References: <201009100159.o8A1xiMu018229@databaseadvisors.com>, <4C8A03F4.1060403@colbyconsulting.com> Message-ID: <4C8A1055.5766.B44A780@stuart.lexacorp.com.pg> Unless mycol() decides to be one based like Outlook folder items as Rocky discovered. :-) -- Stuart On 10 Sep 2010 at 6:09, jwcolby wrote: > > In short, when you delete the contact, the next record becomes the > current one. That one is > skipped as you do a "move next" to get to the next record, effectively > skipping the 'new' current record. This is why only half are removed. > Or at least that is my understanding of it. You certainly see that > sort of behaviour in Excel when using that sort of method to delete > records. > > > That is why I do something like > > while MyCol.Count > MyCol(0).remove > wend > > John W. Colby > www.ColbyConsulting.com > > On 9/9/2010 9:59 PM, Darryl Collins wrote: > > > > ____________________________________________________________________ > > ___________________ > > > > Note: This e-mail is subject to the disclaimer contained at the > > bottom of this message. > > ____________________________________________________________________ > > ___________________ > > > > > > > > > > In short, when you delete the contact, the next record becomes the > > current one. That one is skipped as you do a "move next" to get to > > the next record, effectively skipping the 'new' current record. > > This is why only half are removed. Or at least that is my > > understanding of it. You certainly see that sort of behaviour in > > Excel when using that sort of method to delete records. > > > > regards > > Darryl. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust Sent: Friday, 10 September 2010 11:39 AM To: Access Developers > > discussion and problem solving Subject: Re: [AccessD] Deleting > > Outlook Contacts > > > > Rocky, > > > > To get deletes to work properly, you have to move backwards through > > the recordset. Instead of using For Each, try moving to the last > > record first and do until EOF and BOF. > > > > Charlotte Foust > > > > On Thu, Sep 9, 2010 at 8:25 AM, Rocky Smolin > > wrote: > >> Dear List: > >> > >> Still struggling with deleting the Outlook contacts. I found that > >> looping through the items and deleting them deleted half so if I > >> started with 1000 contacts at the end of the loop I had 500 left. > >> If I sent the program back through the loop I ended up with 250. > >> etc. > >> > >> So iterating that loop until the Count = 0 works but it's kludgey. > >> Why does it leave half of the contacts behind each time? > >> > >> Here's the code: > >> > >> ' delete all the current contacts > >> Set olContacts = olFolder.Items > >> DeleteAgain: > >> Me.txtProcessing = "Deleting..."& olContacts.Count > >> Me.Repaint > >> For Each olContactItem In olContacts > >> 'MsgBox olContactItem.LastName& ", "& > >> olContactItem.FirstName& " > >> - "& olContacts.Count > >> olContactItem.Delete > >> DoEvents > >> Next > >> Set olContacts = olFolder.Items > >> If olContacts.Count<> 0 Then GoTo DeleteAgain: > >> > >> > >> Me.txtProcessing displays the number of contacts each time through > >> the big loop. So that's how I know it's only deleting 1/2 each > >> time. When I uncomment the MsgBox line inside the loop, it shows > >> the count going to zero each time the loop executes. But after the > >> loop finishes, there's still 1/2 the contacts left. refreshing the > >> count by Set olContacts = olFolder.Items gives the right count > >> again. > >> > >> Any idea what the heck is going on here? > >> > >> > >> > >> MTIA > >> > >> > >> > >> Rocky > >> > >> > >> > >> > >> - > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Fri Sep 10 06:06:24 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 10 Sep 2010 21:06:24 +1000 Subject: [AccessD] can't select data in control when AllowEdit false In-Reply-To: <4C8A0A58.5080609@colbyconsulting.com> References: <4C8A0A58.5080609@colbyconsulting.com> Message-ID: <4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> Set the form to allow edits but set individual controls to Enabled = Yes and Locked = Yes? On 10 Sep 2010 at 6:37, jwcolby wrote: > I had forgotten this. > > Is there a way around it? It is not uncommon to not allow the user to > edit the form's underlying record and yet need to click a button or > select an item from a list. > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Fri Sep 10 06:32:46 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 07:32:46 -0400 Subject: [AccessD] Automating web page entry (was: Scroll button) In-Reply-To: <4C8A0FD5.24698.B42B094@stuart.lexacorp.com.pg> References: <4C8A0FD5.24698.B42B094@stuart.lexacorp.com.pg> Message-ID: <4C8A175E.4020308@colbyconsulting.com> Yes, but I need the program to do stuff in access. While I can appreciate using scripting languages, there is something to be said for using the language built in to Access. The user enters sets of data records, basically all services supplied to a specific child by a specific therapist during a week. After entering the last record for that child, the user clicks a button on the web page and the web page returns a "status" for all of the records entered, which I then have the user capture and insert back into a control on the form and more code runs in the form to parse that information and writes back into all of the records entered for that child. It is a sucky system (yes, stupidity irritates me, particularly when I have to program around it). For the purposes of the discussion here though, we have a perfectly good language called VBA to use to write our applications. To do this little piece in VBA, then call out to AutoIt to do this little piece, then run more VBA then call autoit, then run VBA... C'mon. VBA can automate IE, I know that because I have done that. How about we discuss VBA automation of IE and how a single solution in the language behind Access might solve the problem? John W. Colby www.ColbyConsulting.com On 9/10/2010 7:00 AM, Stuart McLachlan wrote: > I did exactly the same with an application by a paint manufacturer for mixing paints a few > years ago using AutoIt. Same result. > From jwcolby at colbyconsulting.com Fri Sep 10 06:42:09 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 07:42:09 -0400 Subject: [AccessD] can't select data in control when AllowEdit false In-Reply-To: <4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> References: <4C8A0A58.5080609@colbyconsulting.com> <4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> Message-ID: <4C8A1991.2030901@colbyconsulting.com> Yes, that is a workaround, and I have used that workaround. Now you have a form with 200 controls on it... In the specific case I just ran into, the form itself is bound, but I have a list box that I populate programmatically that is not bound to any data field. I want to not allow the user to edit the data in the form, but select one or more items in the list in order to push a button to cause something to happen. Setting the form.AllowEdit false locks my list, even though the list is not even bound to data. Silly in my humble opinion. I am writing a Presentation Level Security System. It is not uncommon to want to prevent the user from editing the data in the form and yet perform activities on the form. But with the Access system, if I just set the AllowEdits false it pretty much locks down the form. NOT my intention! So now I have to decide whether the user will be wanting to perform some activity on the form and NOT set the AllowEdits property but instead lock down just the controls that can modify the data. Pretty darned silly in my humble opinion. John W. Colby www.ColbyConsulting.com On 9/10/2010 7:06 AM, Stuart McLachlan wrote: > Set the form to allow edits but set individual controls to Enabled = Yes and Locked = Yes? > > On 10 Sep 2010 at 6:37, jwcolby wrote: > >> I had forgotten this. >> >> Is there a way around it? It is not uncommon to not allow the user to >> edit the form's underlying record and yet need to click a button or >> select an item from a list. >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > From Gustav at cactus.dk Fri Sep 10 07:15:01 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Sep 2010 14:15:01 +0200 Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scroll button)) Message-ID: Hi John (et al) It's about time you spend some hours with the beta of LightSwitch, the new rapid development "shell" to Visual Studio 2010: http://www.microsoft.com/visualstudio/en-us/lightswitch and watch the tutorial videos. It is an amazing piece of software - kind of what Access could have been, had the Access team primarily had the developer in mind. The way controls of screens (= forms) are organized is so clever that you wonder why no one has figured this out before. Note too how you can change "skin" from a normal desktop app to a highly optimized touch-screen app, and how - by flipping a switch - you change the resulting app from a desktop app to a web app. And everything behind the scene you can customize and expand in C# or VB.NET. /gustav >>> jwcolby at colbyconsulting.com 10-09-2010 13:32 >>> Yes, but I need the program to do stuff in access. While I can appreciate using scripting languages, there is something to be said for using the language built in to Access. The user enters sets of data records, basically all services supplied to a specific child by a specific therapist during a week. After entering the last record for that child, the user clicks a button on the web page and the web page returns a "status" for all of the records entered, which I then have the user capture and insert back into a control on the form and more code runs in the form to parse that information and writes back into all of the records entered for that child. It is a sucky system (yes, stupidity irritates me, particularly when I have to program around it). For the purposes of the discussion here though, we have a perfectly good language called VBA to use to write our applications. To do this little piece in VBA, then call out to AutoIt to do this little piece, then run more VBA then call autoit, then run VBA... C'mon. VBA can automate IE, I know that because I have done that. How about we discuss VBA automation of IE and how a single solution in the language behind Access might solve the problem? John W. Colby www.ColbyConsulting.com On 9/10/2010 7:00 AM, Stuart McLachlan wrote: > I did exactly the same with an application by a paint manufacturer for mixing paints a few > years ago using AutoIt. Same result. From ab-mi at post3.tele.dk Fri Sep 10 07:27:07 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Fri, 10 Sep 2010 14:27:07 +0200 Subject: [AccessD] can't select data in control when AllowEdit false In-Reply-To: <4C8A1991.2030901@colbyconsulting.com> References: <4C8A0A58.5080609@colbyconsulting.com><4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> <4C8A1991.2030901@colbyconsulting.com> Message-ID: John, If this is not a multiuser db you could set the forms Recordset Type to Snapshot, which will effectively prevent edits but leave all controls selectable. Asge -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af jwcolby Sendt: 10. september 2010 13:42 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] can't select data in control when AllowEdit false Yes, that is a workaround, and I have used that workaround. Now you have a form with 200 controls on it... In the specific case I just ran into, the form itself is bound, but I have a list box that I populate programmatically that is not bound to any data field. I want to not allow the user to edit the data in the form, but select one or more items in the list in order to push a button to cause something to happen. Setting the form.AllowEdit false locks my list, even though the list is not even bound to data. Silly in my humble opinion. I am writing a Presentation Level Security System. It is not uncommon to want to prevent the user from editing the data in the form and yet perform activities on the form. But with the Access system, if I just set the AllowEdits false it pretty much locks down the form. NOT my intention! So now I have to decide whether the user will be wanting to perform some activity on the form and NOT set the AllowEdits property but instead lock down just the controls that can modify the data. Pretty darned silly in my humble opinion. John W. Colby www.ColbyConsulting.com On 9/10/2010 7:06 AM, Stuart McLachlan wrote: > Set the form to allow edits but set individual controls to Enabled = Yes and Locked = Yes? > > On 10 Sep 2010 at 6:37, jwcolby wrote: > >> I had forgotten this. >> >> Is there a way around it? It is not uncommon to not allow the user to >> edit the form's underlying record and yet need to click a button or >> select an item from a list. >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 10 07:34:20 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 08:34:20 -0400 Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scroll button)) In-Reply-To: References: Message-ID: <4C8A25CC.7030501@colbyconsulting.com> Gustav, That does sound amazing, and I will check it out. I am all about C# / Visual Studio. However understand that this is an existing (very old) fairly large application, written ages ago in Access (by a developer long gone), that I simply maintain for my client. This specific piece is taking data from this system, pulling the billing information into a form and trying to allow them to get the data out of Access and into the Web page in an expeditious fashion. Not a trivial task (at least in Access) given the web form I have to work with. I might be able to convince them to move just this one piece out to an external application. This is a huge time suck for them and the rest of the state of PA. To be honest I am praying that they will wise up and start accepting data files. Anyway, thanks for continuing to mention LightSwitch. I will definitely check it out. Are you using it for anything specific yet? John W. Colby www.ColbyConsulting.com On 9/10/2010 8:15 AM, Gustav Brock wrote: > Hi John (et al) > > It's about time you spend some hours with the beta of LightSwitch, the new rapid development "shell" to Visual Studio 2010: > > http://www.microsoft.com/visualstudio/en-us/lightswitch > > and watch the tutorial videos. It is an amazing piece of software - kind of what Access could have been, had the Access team primarily had the developer in mind. > > The way controls of screens (= forms) are organized is so clever that you wonder why no one has figured this out before. Note too how you can change "skin" from a normal desktop app to a highly optimized touch-screen app, and how - by flipping a switch - you change the resulting app from a desktop app to a web app. And everything behind the scene you can customize and expand in C# or VB.NET. > > /gustav > > >>>> jwcolby at colbyconsulting.com 10-09-2010 13:32>>> > Yes, but I need the program to do stuff in access. While I can appreciate using scripting > languages, there is something to be said for using the language built in to Access. > > The user enters sets of data records, basically all services supplied to a specific child by a > specific therapist during a week. After entering the last record for that child, the user clicks a > button on the web page and the web page returns a "status" for all of the records entered, which I > then have the user capture and insert back into a control on the form and more code runs in the form > to parse that information and writes back into all of the records entered for that child. > > It is a sucky system (yes, stupidity irritates me, particularly when I have to program around it). > > For the purposes of the discussion here though, we have a perfectly good language called VBA to use > to write our applications. To do this little piece in VBA, then call out to AutoIt to do this > little piece, then run more VBA then call autoit, then run VBA... > > C'mon. > > VBA can automate IE, I know that because I have done that. How about we discuss VBA automation of > IE and how a single solution in the language behind Access might solve the problem? > > John W. Colby > www.ColbyConsulting.com > > On 9/10/2010 7:00 AM, Stuart McLachlan wrote: >> I did exactly the same with an application by a paint manufacturer for mixing paints a few >> years ago using AutoIt. Same result. > > From jimdettman at verizon.net Fri Sep 10 07:43:39 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 10 Sep 2010 08:43:39 -0400 Subject: [AccessD] can't select data in control when AllowEdit false In-Reply-To: <4C8A1991.2030901@colbyconsulting.com> References: <4C8A0A58.5080609@colbyconsulting.com> <4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> <4C8A1991.2030901@colbyconsulting.com> Message-ID: John, Yeah, pretty silly. The way I've always handled this to put any "control" type controls that I always want active in the header of the form. Everything else goes in the detail section. I have a routine (see below) that loops through all the controls and if they are in the detail section and enabled, I set their lock property. You could also use the controls tag property as a flag as to whether or not you wanted to lock/unlock the control. Jim. Function StdLockForm(frm As Form, intState As Integer) 'Lock/unlock all the fields in the detail section of the form that are enabled. Const RoutineName = "StdLockForm" Const Version = "1.2.0" Dim ctrl As Control 10 On Error Resume Next 20 For Each ctrl In frm.Controls ' Don't do any control execpt those in the detail section 30 If ctrl.Section = acDetail Then 40 With ctrl 50 Select Case .ControlType Case acCommandButton 60 ctrl.Enabled = Not intState 70 Case Else 80 If ctrl.Enabled = True Then ctrl.Locked = intState 90 End Select 100 End With 110 End If 120 Next ctrl End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 10, 2010 7:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] can't select data in control when AllowEdit false Yes, that is a workaround, and I have used that workaround. Now you have a form with 200 controls on it... In the specific case I just ran into, the form itself is bound, but I have a list box that I populate programmatically that is not bound to any data field. I want to not allow the user to edit the data in the form, but select one or more items in the list in order to push a button to cause something to happen. Setting the form.AllowEdit false locks my list, even though the list is not even bound to data. Silly in my humble opinion. I am writing a Presentation Level Security System. It is not uncommon to want to prevent the user from editing the data in the form and yet perform activities on the form. But with the Access system, if I just set the AllowEdits false it pretty much locks down the form. NOT my intention! So now I have to decide whether the user will be wanting to perform some activity on the form and NOT set the AllowEdits property but instead lock down just the controls that can modify the data. Pretty darned silly in my humble opinion. John W. Colby www.ColbyConsulting.com On 9/10/2010 7:06 AM, Stuart McLachlan wrote: > Set the form to allow edits but set individual controls to Enabled = Yes and Locked = Yes? > > On 10 Sep 2010 at 6:37, jwcolby wrote: > >> I had forgotten this. >> >> Is there a way around it? It is not uncommon to not allow the user to >> edit the form's underlying record and yet need to click a button or >> select an item from a list. >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 10 07:59:05 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 08:59:05 -0400 Subject: [AccessD] can't select data in control when AllowEdit false In-Reply-To: References: <4C8A0A58.5080609@colbyconsulting.com><4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> <4C8A1991.2030901@colbyconsulting.com> Message-ID: <4C8A2B99.4040504@colbyconsulting.com> Asger, Now that is a solution to think about! I will have to take a look at whether my code can do that to the form as the form opens. My PLSS reads information about what groups are allowed to perform the various activities in a form. While it seems unlikely to occur in real life, the objective is to easily and intuitively allow specific groups to have the authority to add, delete and edit records. In theory a group could be allowed to delete or add, but not allowed to edit. A snapshot would prevent the edit but would also prevent the add or delete (I think). John W. Colby www.ColbyConsulting.com On 9/10/2010 8:27 AM, Asger Blond wrote: > John, > If this is not a multiuser db you could set the forms Recordset Type to Snapshot, which will effectively prevent edits but leave all controls selectable. > Asge > > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af jwcolby > Sendt: 10. september 2010 13:42 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] can't select data in control when AllowEdit false > > Yes, that is a workaround, and I have used that workaround. > > Now you have a form with 200 controls on it... > > In the specific case I just ran into, the form itself is bound, but I have a list box that I > populate programmatically that is not bound to any data field. I want to not allow the user to edit > the data in the form, but select one or more items in the list in order to push a button to cause > something to happen. Setting the form.AllowEdit false locks my list, even though the list is not > even bound to data. > > Silly in my humble opinion. > > I am writing a Presentation Level Security System. It is not uncommon to want to prevent the user > from editing the data in the form and yet perform activities on the form. But with the Access > system, if I just set the AllowEdits false it pretty much locks down the form. NOT my intention! > > So now I have to decide whether the user will be wanting to perform some activity on the form and > NOT set the AllowEdits property but instead lock down just the controls that can modify the data. > > Pretty darned silly in my humble opinion. > > John W. Colby > www.ColbyConsulting.com > > On 9/10/2010 7:06 AM, Stuart McLachlan wrote: >> Set the form to allow edits but set individual controls to Enabled = Yes and Locked = Yes? >> >> On 10 Sep 2010 at 6:37, jwcolby wrote: >> >>> I had forgotten this. >>> >>> Is there a way around it? It is not uncommon to not allow the user to >>> edit the form's underlying record and yet need to click a button or >>> select an item from a list. >>> >>> -- >>> John W. Colby >>> www.ColbyConsulting.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> From Lambert.Heenan at chartisinsurance.com Fri Sep 10 08:02:25 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 10 Sep 2010 09:02:25 -0400 Subject: [AccessD] Deleting Outlook Contacts Message-ID: Close Charlotte, but no prize :-) The collection has a Count property, so just use it in a for loop that runs backwards.. Dim n as Long ? ?' delete all the current contacts ? ?Set olContacts = olFolder.Items ? ? ? ?Me.Repaint ? ?For N = olContacts.Count- 1 to 0 Step -1 ' <- Seems many people forget the optional Step clause of a FOR statement Me.txtProcessing = "Deleting..." & olContacts.Count ? ? ? ?olContacts(n).Delete ? ? ? ?DoEvents ? ?Next Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, September 09, 2010 10:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Deleting Outlook Contacts _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ In short, when you delete the contact, the next record becomes the current one. That one is skipped as you do a "move next" to get to the next record, effectively skipping the 'new' current record. This is why only half are removed. Or at least that is my understanding of it. You certainly see that sort of behaviour in Excel when using that sort of method to delete records. regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 10 September 2010 11:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Deleting Outlook Contacts Rocky, To get deletes to work properly, you have to move backwards through the recordset. Instead of using For Each, try moving to the last record first and do until EOF and BOF. Charlotte Foust On Thu, Sep 9, 2010 at 8:25 AM, Rocky Smolin wrote: > Dear List: > > Still struggling with deleting the Outlook contacts. ?I found that > looping through the items and deleting them deleted half so if I > started with 1000 contacts at the end of the loop I had 500 left. ?If > I sent the program back through the loop I ended up with 250. ?etc. > > So iterating that loop until the Count = 0 works but it's kludgey. ? > Why does it leave half of the contacts behind each time? > > Here's the code: > > ? ?' delete all the current contacts > ? ?Set olContacts = olFolder.Items > DeleteAgain: > ? ?Me.txtProcessing = "Deleting..." & olContacts.Count > ? ?Me.Repaint > ? ?For Each olContactItem In olContacts > ? ? ? ?'MsgBox olContactItem.LastName & ", " & olContactItem.FirstName & " > - " & olContacts.Count > ? ? ? ?olContactItem.Delete > ? ? ? ?DoEvents > ? ?Next > ? ?Set olContacts = olFolder.Items > ? ?If olContacts.Count <> 0 Then GoTo DeleteAgain: > > > Me.txtProcessing displays the number of contacts each time through the > big loop. ?So that's how I know it's only deleting 1/2 each time. When > I uncomment the MsgBox line inside the loop, it shows the count going > to zero each time the loop executes. ?But after the loop finishes, > there's still 1/2 the contacts left. ?refreshing the count by Set > olContacts = olFolder.Items gives the right count again. > > Any idea what the heck is going on here? > > > > MTIA > > > > Rocky > > > > > - -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 10 08:07:22 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 09:07:22 -0400 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: References: Message-ID: <4C8A2D8A.8050307@colbyconsulting.com> > The collection has a Count property, so just use it in a for loop that runs backwards.. If that is the case, the much simpler while olcontacts.count olcontacts(0).Delete should work. wend John W. Colby www.ColbyConsulting.com On 9/10/2010 9:02 AM, Heenan, Lambert wrote: > Close Charlotte, but no prize :-) > > The collection has a Count property, so just use it in a for loop that runs backwards.. > > Dim n as Long > > ' delete all the current contacts > Set olContacts = olFolder.Items > > Me.Repaint > For N = olContacts.Count- 1 to 0 Step -1 '<- Seems many people forget the optional Step clause of a FOR statement > Me.txtProcessing = "Deleting..."& olContacts.Count > olContacts(n).Delete > DoEvents > Next > > Lambert From ab-mi at post3.tele.dk Fri Sep 10 08:17:22 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Fri, 10 Sep 2010 15:17:22 +0200 Subject: [AccessD] can't select data in control when AllowEdit false In-Reply-To: <4C8A2B99.4040504@colbyconsulting.com> References: <4C8A0A58.5080609@colbyconsulting.com><4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> <4C8A1991.2030901@colbyconsulting.com> <4C8A2B99.4040504@colbyconsulting.com> Message-ID: <18328B1C90A644D9A8C0DC7EB38DA0AC@abpc> Yes, a snapshot also prevent add and delete. To set the Snapshot type when the form opens (leaving the type as Dynaset in design) you can use this statement for the Form_Load event: RecordsetType = 2 Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af jwcolby Sendt: 10. september 2010 14:59 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] can't select data in control when AllowEdit false Asger, Now that is a solution to think about! I will have to take a look at whether my code can do that to the form as the form opens. My PLSS reads information about what groups are allowed to perform the various activities in a form. While it seems unlikely to occur in real life, the objective is to easily and intuitively allow specific groups to have the authority to add, delete and edit records. In theory a group could be allowed to delete or add, but not allowed to edit. A snapshot would prevent the edit but would also prevent the add or delete (I think). John W. Colby www.ColbyConsulting.com On 9/10/2010 8:27 AM, Asger Blond wrote: > John, > If this is not a multiuser db you could set the forms Recordset Type to Snapshot, which will effectively prevent edits but leave all controls selectable. > Asge > > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af jwcolby > Sendt: 10. september 2010 13:42 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] can't select data in control when AllowEdit false > > Yes, that is a workaround, and I have used that workaround. > > Now you have a form with 200 controls on it... > > In the specific case I just ran into, the form itself is bound, but I have a list box that I > populate programmatically that is not bound to any data field. I want to not allow the user to edit > the data in the form, but select one or more items in the list in order to push a button to cause > something to happen. Setting the form.AllowEdit false locks my list, even though the list is not > even bound to data. > > Silly in my humble opinion. > > I am writing a Presentation Level Security System. It is not uncommon to want to prevent the user > from editing the data in the form and yet perform activities on the form. But with the Access > system, if I just set the AllowEdits false it pretty much locks down the form. NOT my intention! > > So now I have to decide whether the user will be wanting to perform some activity on the form and > NOT set the AllowEdits property but instead lock down just the controls that can modify the data. > > Pretty darned silly in my humble opinion. > > John W. Colby > www.ColbyConsulting.com > > On 9/10/2010 7:06 AM, Stuart McLachlan wrote: >> Set the form to allow edits but set individual controls to Enabled = Yes and Locked = Yes? >> >> On 10 Sep 2010 at 6:37, jwcolby wrote: >> >>> I had forgotten this. >>> >>> Is there a way around it? It is not uncommon to not allow the user to >>> edit the form's underlying record and yet need to click a button or >>> select an item from a list. >>> >>> -- >>> John W. Colby >>> www.ColbyConsulting.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Sep 10 08:23:36 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 10 Sep 2010 06:23:36 -0700 Subject: [AccessD] can't select data in control when AllowEdit false In-Reply-To: <4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> References: <4C8A0A58.5080609@colbyconsulting.com> <4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> Message-ID: I had this problem on forms which the user may or may not be allowed to edit based on their access level when they log in at the opening form. If they're not allowed edits they still need to select a record from a combo box. So in the On_Click event of the combo box I set Me.AllowEdits = True, and then in the Lost Focus of the combo, set AllowEdits = False. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, September 10, 2010 4:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] can't select data in control when AllowEdit false Set the form to allow edits but set individual controls to Enabled = Yes and Locked = Yes? On 10 Sep 2010 at 6:37, jwcolby wrote: > I had forgotten this. > > Is there a way around it? It is not uncommon to not allow the user to > edit the form's underlying record and yet need to click a button or > select an item from a list. > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 10 08:46:21 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 09:46:21 -0400 Subject: [AccessD] Table driven security was [allow edit false] In-Reply-To: References: <4C8A0A58.5080609@colbyconsulting.com> <4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> <4C8A1991.2030901@colbyconsulting.com> Message-ID: <4C8A36AD.3060208@colbyconsulting.com> Jim, I understand the workarounds, I am just bitching for no apparent reason. ;) The objective of my PLSS is to allow a security administrator to set up security for an Access Application in a table driven fashion. The whole point is to minimize the "code around" solutions. My previous system used the "code around" system and it was almost impossible to report and understand the security. When the client asks "what items in the application have security applied", how do you answer that? This happens to me, and it ain't cool!! "Uh... I'll get back to you on that" and then you go in and start searching for all of your code and writing down the forms and controls that you are doing this kind of stuff to. I had to do that and it sucked. When the client said "we need form Groups X, Y and Z to be able to do this in form A, I had to go into form A and start writing code. ICK! Now they come back and say.. "oh yea, and group W needs to be able to do this in form A" so I go back in to form a and look at what I have already done, then start writing code to do that. ICK! I did that! ICK! When the client asks about security, I want to say "open rptSecurity" and have the client see each and every object that has security applied. I want to allow the Security Administrator be able to open a security wizard and see the current security for every form, and be able to modify that security using the wizard. To be able to see the controls on the form and what security is applied to those controls, and be able to modify that security from the wizard. And when they are done, to be able to report on that security. That is the goal of C2DbPLSS, and it is starting to work! Form security is working, the wizard allows you to see and modify all form level security. Reporting is trivial because the security information is in tables. I am working on the control security now. The bottom line is that "reality is" and we have to deal with that. I do not control what happens when AllowEdits is set to false, and it is not my responsibility to make an application behave in the way we would expect it to behave when that property is set. The way it does work make application of security, and in particular AllowEdit security, tough to apply. AllowEdit security is probably the kind most needed, and to have it crippled like this is irritating. But Reality Is and all we can do is acknowledge and understand the implications and get on with programming around the limitations. >You could also use the controls tag property as a flag as to whether or not you wanted to lock/unlock the control. And I virtually never use the tag property, even in my own applications and I NEVER use the tag property in applications written by others. The reason is simple - collisions with other developers usage of that property. It is possible to write form properties - vba variables in the header and property get / let / set and then read the data out of tables. More work but infinitely extendable, and no collisions. Or classes to do the same thing. John W. Colby www.ColbyConsulting.com On 9/10/2010 8:43 AM, Jim Dettman wrote: > John, > > Yeah, pretty silly. The way I've always handled this to put any "control" > type controls that I always want active in the header of the form. > Everything else goes in the detail section. I have a routine (see below) > that loops through all the controls and if they are in the detail section > and enabled, I set their lock property. > > You could also use the controls tag property as a flag as to whether or > not you wanted to lock/unlock the control. > > Jim. From jimdettman at verizon.net Fri Sep 10 08:46:32 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 10 Sep 2010 09:46:32 -0400 Subject: [AccessD] can't select data in control when AllowEdit false In-Reply-To: <4C8A2B99.4040504@colbyconsulting.com> References: <4C8A0A58.5080609@colbyconsulting.com><4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> <4C8A1991.2030901@colbyconsulting.com> <4C8A2B99.4040504@colbyconsulting.com> Message-ID: <> Probably not; snapshots are a major performance hit. With a snapshot, your asking JET to make a complete copy locally of everything that is in the recordset. If your pulling that over the wire, that will take some time. Only place this would work well is if the recordsets were very small (dozen or so records at best). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 10, 2010 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] can't select data in control when AllowEdit false Asger, Now that is a solution to think about! I will have to take a look at whether my code can do that to the form as the form opens. My PLSS reads information about what groups are allowed to perform the various activities in a form. While it seems unlikely to occur in real life, the objective is to easily and intuitively allow specific groups to have the authority to add, delete and edit records. In theory a group could be allowed to delete or add, but not allowed to edit. A snapshot would prevent the edit but would also prevent the add or delete (I think). John W. Colby www.ColbyConsulting.com On 9/10/2010 8:27 AM, Asger Blond wrote: > John, > If this is not a multiuser db you could set the forms Recordset Type to Snapshot, which will effectively prevent edits but leave all controls selectable. > Asge > > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af jwcolby > Sendt: 10. september 2010 13:42 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] can't select data in control when AllowEdit false > > Yes, that is a workaround, and I have used that workaround. > > Now you have a form with 200 controls on it... > > In the specific case I just ran into, the form itself is bound, but I have a list box that I > populate programmatically that is not bound to any data field. I want to not allow the user to edit > the data in the form, but select one or more items in the list in order to push a button to cause > something to happen. Setting the form.AllowEdit false locks my list, even though the list is not > even bound to data. > > Silly in my humble opinion. > > I am writing a Presentation Level Security System. It is not uncommon to want to prevent the user > from editing the data in the form and yet perform activities on the form. But with the Access > system, if I just set the AllowEdits false it pretty much locks down the form. NOT my intention! > > So now I have to decide whether the user will be wanting to perform some activity on the form and > NOT set the AllowEdits property but instead lock down just the controls that can modify the data. > > Pretty darned silly in my humble opinion. > > John W. Colby > www.ColbyConsulting.com > > On 9/10/2010 7:06 AM, Stuart McLachlan wrote: >> Set the form to allow edits but set individual controls to Enabled = Yes and Locked = Yes? >> >> On 10 Sep 2010 at 6:37, jwcolby wrote: >> >>> I had forgotten this. >>> >>> Is there a way around it? It is not uncommon to not allow the user to >>> edit the form's underlying record and yet need to click a button or >>> select an item from a list. >>> >>> -- >>> John W. Colby >>> www.ColbyConsulting.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 10 09:02:22 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 10:02:22 -0400 Subject: [AccessD] can't select data in control when AllowEdit false In-Reply-To: References: <4C8A0A58.5080609@colbyconsulting.com> <4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> Message-ID: <4C8A3A6E.3030002@colbyconsulting.com> Yep, another code workaround. I've done this exact thing myself. It does kinda break the "table driven security" model though. Worse, the combo might actually be bound to data in which case selecting that data would modify the form's data since you just toggled the form's AllowEdits to true. Kinda scary! Somewhere way down the road I might look at whether my clsFrmPLSS which loads and implements security for the form could dynamically set this up. It is theoretically possible but I would need a class wrapper to wrap any controls that would need this kind of treatment, and then sink the event in that wrapper and toggle the form's AllowEdits. Each such control type would need it's own wrapper since a class can only sink events if it knows the control type. For a behavior this specific, I could actually write a single generic class which gets passed a control of type control (generic) and then ran a big switch statement to determine what type of control it is and store it to a variable of that control type. Have a ton of dim WithEvent statements in the class header: private mfrm as form private WithEvents cbo as combobox private WithEvents txt as Textbox etc. etc. then: Function mInit(frm as form, Ctl as control) set mfrm = frm select case ctl.type case acTextbox set txt = ctl case acCombobox set cbo = ctl etc etc end select end function Now have event sinks: sub cbo_Gotfocus() mfrm.AllowEdits = True end sub sub cbo_Lostfocus() mfrm.AllowEdits = False end sub This would likely work. Damned ugly though! ;) John W. Colby www.ColbyConsulting.com On 9/10/2010 9:23 AM, Rocky Smolin wrote: > I had this problem on forms which the user may or may not be allowed to edit > based on their access level when they log in at the opening form. > > If they're not allowed edits they still need to select a record from a combo > box. So in the On_Click event of the combo box I set Me.AllowEdits = True, > and then in the Lost Focus of the combo, set AllowEdits = False. > > Rocky From jwcolby at colbyconsulting.com Fri Sep 10 09:04:52 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 10:04:52 -0400 Subject: [AccessD] can't select data in control when AllowEdit false In-Reply-To: References: <4C8A0A58.5080609@colbyconsulting.com><4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> <4C8A1991.2030901@colbyconsulting.com> <4C8A2B99.4040504@colbyconsulting.com> Message-ID: <4C8A3B04.5050104@colbyconsulting.com> And all because AllowEdits implementation sucks! But hey, let's not worry about such things, and build pretty toolbars for future editions of Access. ;) John W. Colby www.ColbyConsulting.com On 9/10/2010 9:46 AM, Jim Dettman wrote: > > <> > > Probably not; snapshots are a major performance hit. With a snapshot, your > asking JET to make a complete copy locally of everything that is in the > recordset. If your pulling that over the wire, that will take some time. > > Only place this would work well is if the recordsets were very small > (dozen or so records at best). > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 10, 2010 8:59 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] can't select data in control when AllowEdit false > > Asger, > > Now that is a solution to think about! > > I will have to take a look at whether my code can do that to the form as the > form opens. My PLSS > reads information about what groups are allowed to perform the various > activities in a form. While > it seems unlikely to occur in real life, the objective is to easily and > intuitively allow specific > groups to have the authority to add, delete and edit records. > > In theory a group could be allowed to delete or add, but not allowed to > edit. A snapshot would > prevent the edit but would also prevent the add or delete (I think). > > John W. Colby > www.ColbyConsulting.com From ab-mi at post3.tele.dk Fri Sep 10 09:09:59 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Fri, 10 Sep 2010 16:09:59 +0200 Subject: [AccessD] can't select data in control when AllowEdit false In-Reply-To: References: <4C8A0A58.5080609@colbyconsulting.com><4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg><4C8A1991.2030901@colbyconsulting.com> <4C8A2B99.4040504@colbyconsulting.com> Message-ID: Right, that's why I recommended this for a single user db, supposing that the db in this case is stored on the local box. Just made a quick test with a 2 mio recordset stored locally and I didn't notice any difference as to opening time for a Snapshot versus a Dynaset. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Jim Dettman Sendt: 10. september 2010 15:47 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] can't select data in control when AllowEdit false <> Probably not; snapshots are a major performance hit. With a snapshot, your asking JET to make a complete copy locally of everything that is in the recordset. If your pulling that over the wire, that will take some time. Only place this would work well is if the recordsets were very small (dozen or so records at best). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 10, 2010 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] can't select data in control when AllowEdit false Asger, Now that is a solution to think about! I will have to take a look at whether my code can do that to the form as the form opens. My PLSS reads information about what groups are allowed to perform the various activities in a form. While it seems unlikely to occur in real life, the objective is to easily and intuitively allow specific groups to have the authority to add, delete and edit records. In theory a group could be allowed to delete or add, but not allowed to edit. A snapshot would prevent the edit but would also prevent the add or delete (I think). John W. Colby www.ColbyConsulting.com On 9/10/2010 8:27 AM, Asger Blond wrote: > John, > If this is not a multiuser db you could set the forms Recordset Type to Snapshot, which will effectively prevent edits but leave all controls selectable. > Asge > > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af jwcolby > Sendt: 10. september 2010 13:42 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] can't select data in control when AllowEdit false > > Yes, that is a workaround, and I have used that workaround. > > Now you have a form with 200 controls on it... > > In the specific case I just ran into, the form itself is bound, but I have a list box that I > populate programmatically that is not bound to any data field. I want to not allow the user to edit > the data in the form, but select one or more items in the list in order to push a button to cause > something to happen. Setting the form.AllowEdit false locks my list, even though the list is not > even bound to data. > > Silly in my humble opinion. > > I am writing a Presentation Level Security System. It is not uncommon to want to prevent the user > from editing the data in the form and yet perform activities on the form. But with the Access > system, if I just set the AllowEdits false it pretty much locks down the form. NOT my intention! > > So now I have to decide whether the user will be wanting to perform some activity on the form and > NOT set the AllowEdits property but instead lock down just the controls that can modify the data. > > Pretty darned silly in my humble opinion. > > John W. Colby > www.ColbyConsulting.com > > On 9/10/2010 7:06 AM, Stuart McLachlan wrote: >> Set the form to allow edits but set individual controls to Enabled = Yes and Locked = Yes? >> >> On 10 Sep 2010 at 6:37, jwcolby wrote: >> >>> I had forgotten this. >>> >>> Is there a way around it? It is not uncommon to not allow the user to >>> edit the form's underlying record and yet need to click a button or >>> select an item from a list. >>> >>> -- >>> John W. Colby >>> www.ColbyConsulting.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From steve at goodhall.info Fri Sep 10 09:11:15 2010 From: steve at goodhall.info (Steve Goodhall) Date: Fri, 10 Sep 2010 09:11:15 -0500 Subject: [AccessD] Deleting Outlook Contacts Message-ID: <65029.1284127875@goodhall.info> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I agree. This is running code to empty the Drafts folder. This one runs inside Outlook, but it should be pretty easy to change it to delete Contacts and use an object reference to run it from Access. I think all it will take is to replace "Application" with a reference to an Outlook instance. Sub killDrafts() Dim oFold As outlook.MAPIFolder Dim oNS As outlook.NameSpace Set oNS = Application.GetNamespace("MAPI") Set oFold = oNS.GetDefaultFolder(olFolderDrafts) Dim oItem As outlook.MailItem Dim lItems As Long Dim lItem As Long lItems = oFold.Items.Count For lItem = lItems To 1 Step -1 Set oItem = oFold.Items(lItem) oItem.Delete DoEvents Next End Sub Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Fri 10/09/10 9:02 AM , "Heenan, Lambert" Lambert.Heenan at chartisinsurance.com sent: Close Charlotte, but no prize :-) The collection has a Count property, so just use it in a for loop that runs backwards.. Dim n as Long ' delete all the current contacts Set olContacts = olFolder.Items Me.Repaint For N = olContacts.Count- 1 to 0 Step -1 ' Dear List: > > Still struggling with deleting the Outlook contacts. I found that > looping through the items and deleting them deleted half so if I > started with 1000 contacts at the end of the loop I had 500 left. If > I sent the program back through the loop I ended up with 250. etc. > > So iterating that loop until the Count = 0 works but it's kludgey. > Why does it leave half of the contacts behind each time? > > Here's the code: > > ' delete all the current contacts > Set olContacts = olFolder.Items > DeleteAgain: > Me.txtProcessing = "Deleting..." & olContacts.Count > Me.Repaint > For Each olContactItem In olContacts > 'MsgBox olContactItem.LastName & ", " & olContactItem.FirstName & " > - " & olContacts.Count > olContactItem.Delete > DoEvents > Next > Set olContacts = olFolder.Items > If olContacts.Count 0 Then GoTo DeleteAgain: > > > Me.txtProcessing displays the number of contacts each time through the > big loop. So that's how I know it's only deleting 1/2 each time. When > I uncomment the MsgBox line inside the loop, it shows the count going > to zero each time the loop executes. But after the loop finishes, > there's still 1/2 the contacts left. refreshing the count by Set > olContacts = olFolder.Items gives the right count again. > > Any idea what the heck is going on here? > > > > MTIA > > > > Rocky > > > > > - -- AccessD mailing list AccessD at databaseadvisors.com [4] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com [5] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com [6] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] mailto:accessd-bounces at databaseadvisors.com [2] mailto:accessd-bounces at databaseadvisors.com [3] mailto:rockysmolin at bchacc.com [4] mailto:AccessD at databaseadvisors.com [5] mailto:AccessD at databaseadvisors.com [6] mailto:AccessD at databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Fri Sep 10 09:37:28 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 10 Sep 2010 10:37:28 -0400 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: <65029.1284127875@goodhall.info> References: <65029.1284127875@goodhall.info> Message-ID: That'll do it (I neglected to include my "air code" warning originally). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Goodhall Sent: Friday, September 10, 2010 10:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Deleting Outlook Contacts BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }I agree. This is running code to empty the Drafts folder. This one runs inside Outlook, but it should be pretty easy to change it to delete Contacts and use an object reference to run it from Access. I think all it will take is to replace "Application" with a reference to an Outlook instance. Sub killDrafts() Dim oFold As outlook.MAPIFolder Dim oNS As outlook.NameSpace Set oNS = Application.GetNamespace("MAPI") Set oFold = oNS.GetDefaultFolder(olFolderDrafts) Dim oItem As outlook.MailItem Dim lItems As Long Dim lItem As Long lItems = oFold.Items.Count For lItem = lItems To 1 Step -1 Set oItem = oFold.Items(lItem) oItem.Delete DoEvents Next End Sub Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Fri 10/09/10 9:02 AM , "Heenan, Lambert" Lambert.Heenan at chartisinsurance.com sent: Close Charlotte, but no prize :-) The collection has a Count property, so just use it in a for loop that runs backwards.. Dim n as Long ' delete all the current contacts Set olContacts = olFolder.Items Me.Repaint For N = olContacts.Count- 1 to 0 Step -1 ' Dear List: > > Still struggling with deleting the Outlook contacts. I found that > looping through the items and deleting them deleted half so if I > started with 1000 contacts at the end of the loop I had 500 left. If > I sent the program back through the loop I ended up with 250. etc. > > So iterating that loop until the Count = 0 works but it's kludgey. > Why does it leave half of the contacts behind each time? > > Here's the code: > > ' delete all the current contacts > Set olContacts = olFolder.Items > DeleteAgain: > Me.txtProcessing = "Deleting..." & olContacts.Count > Me.Repaint > For Each olContactItem In olContacts > 'MsgBox olContactItem.LastName & ", " & olContactItem.FirstName & " > - " & olContacts.Count > olContactItem.Delete > DoEvents > Next > Set olContacts = olFolder.Items > If olContacts.Count 0 Then GoTo DeleteAgain: > > > Me.txtProcessing displays the number of contacts each time through the > big loop. So that's how I know it's only deleting 1/2 each time. When > I uncomment the MsgBox line inside the loop, it shows the count going > to zero each time the loop executes. But after the loop finishes, > there's still 1/2 the contacts left. refreshing the count by Set > olContacts = olFolder.Items gives the right count again. > > Any idea what the heck is going on here? > > > > MTIA > > > > Rocky > > > > > - -- AccessD mailing list AccessD at databaseadvisors.com [4] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com [5] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com [6] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] mailto:accessd-bounces at databaseadvisors.com [2] mailto:accessd-bounces at databaseadvisors.com [3] mailto:rockysmolin at bchacc.com [4] mailto:AccessD at databaseadvisors.com [5] mailto:AccessD at databaseadvisors.com [6] mailto:AccessD at databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From delam at zyterra.com Fri Sep 10 10:24:57 2010 From: delam at zyterra.com (Debbie) Date: Fri, 10 Sep 2010 10:24:57 -0500 Subject: [AccessD] Detail in calendar Message-ID: I have a report in access 2007 that has a calendar that works nicely. My issue is when the tasks that fill my calendar fill more than a page. I am left with info at the top of the page and no date since the dates themseves are detail records. I am trying to put a date on the top of this page with one of two methods, but I am running into issues. 1. Put dates in the page header and only reveal them when the detail exceeds the page length. A: I have gotten pretty far with this one, but cannot seem to get the visible property to fire in the right spot. My code seems to be firing on the right pages, but not producing the correct results. Page 1 always has the extra dates when it should never have them and subsequent pages never have the dates even when I tell it if me.page = one page after a long detail is detected. I can see that the code fires, but no extra date is visible. 2. Make the top row of dates invisible and leave the page header dates visible all the time. A: I have not figured out how to find out if the date is printing on that first line. Any ides on the stopping points for either of these ideas, or totally new solutions are appreciated. Debbie Sent from my iPhone From jimdettman at verizon.net Fri Sep 10 10:30:27 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 10 Sep 2010 11:30:27 -0400 Subject: [AccessD] Table driven security was [allow edit false] In-Reply-To: <4C8A36AD.3060208@colbyconsulting.com> References: <4C8A0A58.5080609@colbyconsulting.com> <4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> <4C8A1991.2030901@colbyconsulting.com> <4C8A36AD.3060208@colbyconsulting.com> Message-ID: <3EB655B4DFB24AFE858AE932EE700A63@XPS> <> Oh I would not say there is no reason; Access is certainly not the most developer friendly tool around. But I guess I don't consider the locking/un-locking of controls a code a round solution. I think you'll find that once you go down that table driven security road, your going to need that level of control no matter what, especially if you want to carry it down to the field level. Right now, I have table driven security down to the object level and could extend it down further if need be. But I've never bothered because I've never found the need to. From a functional standpoint, once someone's in a form they usually need all the basic CRUD operations. But with having the unlock/locking of controls already in place and all the CRUD functions controlled with my own buttons, I could extend the security down quickly enough if I had to. I could even go down to the field level if I needed to as I do that with setting user preferences already. But if you want to do table driven security, I think you'll find there's no easy way out. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 10, 2010 9:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Table driven security was [allow edit false] Jim, I understand the workarounds, I am just bitching for no apparent reason. ;) The objective of my PLSS is to allow a security administrator to set up security for an Access Application in a table driven fashion. The whole point is to minimize the "code around" solutions. My previous system used the "code around" system and it was almost impossible to report and understand the security. When the client asks "what items in the application have security applied", how do you answer that? This happens to me, and it ain't cool!! "Uh... I'll get back to you on that" and then you go in and start searching for all of your code and writing down the forms and controls that you are doing this kind of stuff to. I had to do that and it sucked. When the client said "we need form Groups X, Y and Z to be able to do this in form A, I had to go into form A and start writing code. ICK! Now they come back and say.. "oh yea, and group W needs to be able to do this in form A" so I go back in to form a and look at what I have already done, then start writing code to do that. ICK! I did that! ICK! When the client asks about security, I want to say "open rptSecurity" and have the client see each and every object that has security applied. I want to allow the Security Administrator be able to open a security wizard and see the current security for every form, and be able to modify that security using the wizard. To be able to see the controls on the form and what security is applied to those controls, and be able to modify that security from the wizard. And when they are done, to be able to report on that security. That is the goal of C2DbPLSS, and it is starting to work! Form security is working, the wizard allows you to see and modify all form level security. Reporting is trivial because the security information is in tables. I am working on the control security now. The bottom line is that "reality is" and we have to deal with that. I do not control what happens when AllowEdits is set to false, and it is not my responsibility to make an application behave in the way we would expect it to behave when that property is set. The way it does work make application of security, and in particular AllowEdit security, tough to apply. AllowEdit security is probably the kind most needed, and to have it crippled like this is irritating. But Reality Is and all we can do is acknowledge and understand the implications and get on with programming around the limitations. >You could also use the controls tag property as a flag as to whether or not you wanted to lock/unlock the control. And I virtually never use the tag property, even in my own applications and I NEVER use the tag property in applications written by others. The reason is simple - collisions with other developers usage of that property. It is possible to write form properties - vba variables in the header and property get / let / set and then read the data out of tables. More work but infinitely extendable, and no collisions. Or classes to do the same thing. John W. Colby www.ColbyConsulting.com On 9/10/2010 8:43 AM, Jim Dettman wrote: > John, > > Yeah, pretty silly. The way I've always handled this to put any "control" > type controls that I always want active in the header of the form. > Everything else goes in the detail section. I have a routine (see below) > that loops through all the controls and if they are in the detail section > and enabled, I set their lock property. > > You could also use the controls tag property as a flag as to whether or > not you wanted to lock/unlock the control. > > Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Sep 10 10:51:12 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 10 Sep 2010 08:51:12 -0700 Subject: [AccessD] Automating web page entry (was: Scroll button) In-Reply-To: <4C8A175E.4020308@colbyconsulting.com> References: <4C8A0FD5.24698.B42B094@stuart.lexacorp.com.pg> <4C8A175E.4020308@colbyconsulting.com> Message-ID: <67F862F304D242388A0AC4B2E184EA4C@creativesystemdesigns.com> Hi John: There are always better techniques on how to solve a particular problem. It just depends on how much you are being paid and how fast your client wants results... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 10, 2010 4:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating web page entry (was: Scroll button) Yes, but I need the program to do stuff in access. While I can appreciate using scripting languages, there is something to be said for using the language built in to Access. The user enters sets of data records, basically all services supplied to a specific child by a specific therapist during a week. After entering the last record for that child, the user clicks a button on the web page and the web page returns a "status" for all of the records entered, which I then have the user capture and insert back into a control on the form and more code runs in the form to parse that information and writes back into all of the records entered for that child. It is a sucky system (yes, stupidity irritates me, particularly when I have to program around it). For the purposes of the discussion here though, we have a perfectly good language called VBA to use to write our applications. To do this little piece in VBA, then call out to AutoIt to do this little piece, then run more VBA then call autoit, then run VBA... C'mon. VBA can automate IE, I know that because I have done that. How about we discuss VBA automation of IE and how a single solution in the language behind Access might solve the problem? John W. Colby www.ColbyConsulting.com On 9/10/2010 7:00 AM, Stuart McLachlan wrote: > I did exactly the same with an application by a paint manufacturer for mixing paints a few > years ago using AutoIt. Same result. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From charlotte.foust at gmail.com Fri Sep 10 10:56:29 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Fri, 10 Sep 2010 08:56:29 -0700 Subject: [AccessD] Deleting Outlook Contacts In-Reply-To: References: Message-ID: That works too. I didn't intend to suggest a specific routine (although I see that it looks that way) but to the fact that you have to move backwards to avoid the move next jump. Charlotte Foust On Fri, Sep 10, 2010 at 6:02 AM, Heenan, Lambert wrote: > Close Charlotte, but no prize :-) > > The collection has a Count property, so ?just use it in a for loop that runs backwards.. > > Dim n as Long > > ?? ?' delete all the current contacts > ?? ?Set olContacts = olFolder.Items > > ?? ?Me.Repaint > ?? ?For N = olContacts.Count- 1 to 0 Step -1 ' <- Seems many people forget the optional Step clause of a FOR statement > ? ? ? ? ? Me.txtProcessing = "Deleting..." & olContacts.Count > ?? ? ? ?olContacts(n).Delete > ?? ? ? ?DoEvents > ?? ?Next > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins > Sent: Thursday, September 09, 2010 10:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Deleting Outlook Contacts > > > _______________________________________________________________________________________ > > Note: This e-mail is subject to the disclaimer contained at the bottom of this message. > _______________________________________________________________________________________ > > > > > In short, when you delete the contact, the next record becomes the current one. ?That one is skipped as you do a "move next" to get to the next record, effectively skipping the 'new' current record. ?This is why only half are removed. ?Or at least that is my understanding of it. ?You certainly see that sort of behaviour in Excel when using that sort of method to delete records. > > regards > Darryl. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Friday, 10 September 2010 11:39 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Deleting Outlook Contacts > > Rocky, > > To get deletes to work properly, you have to move backwards through > the recordset. ? Instead of using For Each, try moving to the last > record first and do until EOF and BOF. > > Charlotte Foust > > On Thu, Sep 9, 2010 at 8:25 AM, Rocky Smolin wrote: >> Dear List: >> >> Still struggling with deleting the Outlook contacts. ?I found that >> looping through the items and deleting them deleted half so if I >> started with 1000 contacts at the end of the loop I had 500 left. ?If >> I sent the program back through the loop I ended up with 250. ?etc. >> >> So iterating that loop until the Count = 0 works but it's kludgey. >> Why does it leave half of the contacts behind each time? >> >> Here's the code: >> >> ? ?' delete all the current contacts >> ? ?Set olContacts = olFolder.Items >> DeleteAgain: >> ? ?Me.txtProcessing = "Deleting..." & olContacts.Count >> ? ?Me.Repaint >> ? ?For Each olContactItem In olContacts >> ? ? ? ?'MsgBox olContactItem.LastName & ", " & olContactItem.FirstName & " >> - " & olContacts.Count >> ? ? ? ?olContactItem.Delete >> ? ? ? ?DoEvents >> ? ?Next >> ? ?Set olContacts = olFolder.Items >> ? ?If olContacts.Count <> 0 Then GoTo DeleteAgain: >> >> >> Me.txtProcessing displays the number of contacts each time through the >> big loop. ?So that's how I know it's only deleting 1/2 each time. When >> I uncomment the MsgBox line inside the loop, it shows the count going >> to zero each time the loop executes. ?But after the loop finishes, >> there's still 1/2 the contacts left. ?refreshing the count by Set >> olContacts = olFolder.Items gives the right count again. >> >> Any idea what the heck is going on here? >> >> >> >> MTIA >> >> >> >> Rocky >> >> >> >> >> - > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________________________________________________ > > The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. > > This message has been scanned for viruses. > _______________________________________________________________________________________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Fri Sep 10 11:51:44 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 12:51:44 -0400 Subject: [AccessD] Table driven security was [allow edit false] In-Reply-To: <3EB655B4DFB24AFE858AE932EE700A63@XPS> References: <4C8A0A58.5080609@colbyconsulting.com> <4C8A1130.7178.B47FEB3@stuart.lexacorp.com.pg> <4C8A1991.2030901@colbyconsulting.com> <4C8A36AD.3060208@colbyconsulting.com> <3EB655B4DFB24AFE858AE932EE700A63@XPS> Message-ID: <4C8A6220.7040602@colbyconsulting.com> I am handling field level data entry using table driven control security. It is not uncommon to have specific controls that are not visible at all, or visible but locked to specific groups. I handle that already (or will when it is finished). Each control on a form may have Visible, Locked and enabled properties manipulated at form load. John W. Colby www.ColbyConsulting.com On 9/10/2010 11:30 AM, Jim Dettman wrote: > > < ;)>> > > Oh I would not say there is no reason; Access is certainly not the most > developer friendly tool around. > > But I guess I don't consider the locking/un-locking of controls a code a > round solution. I think you'll find that once you go down that table driven > security road, your going to need that level of control no matter what, > especially if you want to carry it down to the field level. > > Right now, I have table driven security down to the object level and could > extend it down further if need be. But I've never bothered because I've > never found the need to. From a functional standpoint, once someone's in a > form they usually need all the basic CRUD operations. > > But with having the unlock/locking of controls already in place and all > the CRUD functions controlled with my own buttons, I could extend the > security down quickly enough if I had to. I could even go down to the > field level if I needed to as I do that with setting user preferences > already. > > But if you want to do table driven security, I think you'll find there's > no easy way out. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 10, 2010 9:46 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Table driven security was [allow edit false] > > Jim, > > I understand the workarounds, I am just bitching for no apparent reason. ;) > > The objective of my PLSS is to allow a security administrator to set up > security for an Access > Application in a table driven fashion. The whole point is to minimize the > "code around" solutions. > My previous system used the "code around" system and it was almost > impossible to report and > understand the security. When the client asks "what items in the > application have security > applied", how do you answer that? This happens to me, and it ain't cool!! > > "Uh... I'll get back to you on that" and then you go in and start searching > for all of your code and > writing down the forms and controls that you are doing this kind of stuff > to. I had to do that and > it sucked. When the client said "we need form Groups X, Y and Z to be able > to do this in form A, I > had to go into form A and start writing code. > > ICK! > > Now they come back and say.. "oh yea, and group W needs to be able to do > this in form A" so I go > back in to form a and look at what I have already done, then start writing > code to do that. > > ICK! > > I did that! ICK! > > When the client asks about security, I want to say "open rptSecurity" and > have the client see each > and every object that has security applied. I want to allow the Security > Administrator be able to > open a security wizard and see the current security for every form, and be > able to modify that > security using the wizard. To be able to see the controls on the form and > what security is applied > to those controls, and be able to modify that security from the wizard. And > when they are done, to > be able to report on that security. > > That is the goal of C2DbPLSS, and it is starting to work! Form security is > working, the wizard > allows you to see and modify all form level security. Reporting is trivial > because the security > information is in tables. I am working on the control security now. > > The bottom line is that "reality is" and we have to deal with that. I do > not control what happens > when AllowEdits is set to false, and it is not my responsibility to make an > application behave in > the way we would expect it to behave when that property is set. > > The way it does work make application of security, and in particular > AllowEdit security, tough to > apply. AllowEdit security is probably the kind most needed, and to have it > crippled like this is > irritating. > > But Reality Is and all we can do is acknowledge and understand the > implications and get on with > programming around the limitations. > > >You could also use the controls tag property as a flag as to whether or > not you wanted to > lock/unlock the control. > > And I virtually never use the tag property, even in my own applications and > I NEVER use the tag > property in applications written by others. The reason is simple - > collisions with other developers > usage of that property. > > It is possible to write form properties - vba variables in the header and > property get / let / set > and then read the data out of tables. More work but infinitely extendable, > and no collisions. Or > classes to do the same thing. > > John W. Colby > www.ColbyConsulting.com > > On 9/10/2010 8:43 AM, Jim Dettman wrote: >> John, >> >> Yeah, pretty silly. The way I've always handled this to put any > "control" >> type controls that I always want active in the header of the form. >> Everything else goes in the detail section. I have a routine (see below) >> that loops through all the controls and if they are in the detail section >> and enabled, I set their lock property. >> >> You could also use the controls tag property as a flag as to whether or >> not you wanted to lock/unlock the control. >> >> Jim. From kismert at gmail.com Fri Sep 10 12:20:43 2010 From: kismert at gmail.com (Kenneth Ismert) Date: Fri, 10 Sep 2010 12:20:43 -0500 Subject: [AccessD] Automating web page entry (was: Scroll button) Message-ID: Gustav: >In Visual Studio you have a native browser object >which allows you to read the page, input data, and >call JavaScript functions of the page. Except for the learning curve, that sounds like by far the best approach. jwcolby: >VBA can automate IE, I know that because I have >done that... This sounds like your best approach. >This is a huge time suck for them and the rest of >the state of PA. To be honest I am praying that >they will wise up and start accepting data files. >Nope, every person in the state who wants to >enter data into their system gets to spend hours >every week poking data into a web form. >THOUSANDS of man hours monthly across >the state, I am sure. I'm smelling an opportunity: write an automated interface to the PA website, then use that to sell custom interfaces to the customer's existing data. Even if PA adds a web service, you are still in business -- you'd be selling web service automation instead of browser automation. -Ken From davidmcafee at gmail.com Fri Sep 10 12:29:38 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 10 Sep 2010 10:29:38 -0700 Subject: [AccessD] Option Explicit Message-ID: In Access 2007, when I create a new form and go to the VBA window, I only see Option Compare Database. Option Explicit is missing, so I have to manually add it. Is there a setting that I can change somewhere to have that listed in all modules? From garykjos at gmail.com Fri Sep 10 12:55:01 2010 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 10 Sep 2010 12:55:01 -0500 Subject: [AccessD] Option Explicit In-Reply-To: References: Message-ID: Go into the VB Editor and select Options from the Tools menu. Ensure that the second check box ("Require Variable Declaration") on the first tab ("Editor") is checked. This will only change NEW modules created from that point onward. GK On Fri, Sep 10, 2010 at 12:29 PM, David McAfee wrote: > In Access 2007, when I create a new form and go to the VBA window, I > only see Option Compare Database. > Option Explicit is missing, so I have to manually add it. > > Is there a setting that I can change somewhere to have that listed in > all modules? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From davidmcafee at gmail.com Fri Sep 10 13:00:00 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 10 Sep 2010 11:00:00 -0700 Subject: [AccessD] Option Explicit In-Reply-To: References: Message-ID: Awesome, thanks! I was looking all through the Access options (Doh!) On Fri, Sep 10, 2010 at 10:55 AM, Gary Kjos wrote: > Go into the VB Editor and select Options from the Tools menu. > > Ensure that the second check box ("Require Variable Declaration") on the > first tab ("Editor") is checked. > > This will only change NEW modules created from that point onward. > > GK > > On Fri, Sep 10, 2010 at 12:29 PM, David McAfee wrote: >> In Access 2007, when I create a new form and go to the VBA window, I >> only see Option Compare Database. >> Option Explicit is missing, so I have to manually add it. >> >> Is there a setting that I can change somewhere to have that listed in >> all modules? >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Fri Sep 10 13:09:03 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 14:09:03 -0400 Subject: [AccessD] SQL Server Express - true skinny Message-ID: <4C8A743F.2080808@colbyconsulting.com> Does anyone know the true skinny on the limitations placed on SQL Server express in order to "throttle" it.? I found a blog that claims that outside of CPU / Memory / DB size limitations, there is not other "governor". So it appears that the limitations are: 10 gig db file size. This does not discuss additional database files. 1 CPU. However it appears that it can use 4 cores if available 1 gig of memory. This appears to be the killer. But there appears to be no "user" limitations etc. So the question is, would SQL Server express be capable of replacing Jet for a complex bound application for 30 users? -- John W. Colby www.ColbyConsulting.com From BradM at blackforestltd.com Fri Sep 10 13:08:14 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 10 Sep 2010 13:08:14 -0500 Subject: [AccessD] Can a Linked Table (Excel file) be opened Non-Exclusively by Access? Message-ID: We have just started to experiment with treating an Excel File as a Linked Table. Everything works nicely with just one user. When a second user tries to use the Access application, the application sits for a long time and eventually returns this message "The Microsoft Office Access database engine cannot open or write to the file ....... It is already opened exclusively by another user...... When going through the Access 2007 screens to set up the Linked Table, we are not seeing any option regarding Exclusive use. We must be missing something here. Thanks, Brad From df.waters at comcast.net Fri Sep 10 13:43:41 2010 From: df.waters at comcast.net (Dan Waters) Date: Fri, 10 Sep 2010 13:43:41 -0500 Subject: [AccessD] SQL Server Express - true skinny In-Reply-To: <4C8A743F.2080808@colbyconsulting.com> References: <4C8A743F.2080808@colbyconsulting.com> Message-ID: <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Hi John, The trick is binding a form to a table. What's the plan to do that? For Access user limits, it's my understanding that the throttle (governor) is the .ldb file on the BE .mdb. This .ldb file is being continuously 'managed' by all the users currently logged on - as you increase the number of users, the .ldb file management slows down from the perspective of a single user. As the server's CPU speed increases and as its memory increases, the slowdown will begin to happen with a higher number of users. Of course, SQL Server doesn't have an .ldb file, and it will manage concurrency internally and more quickly. I have an Access Que 2003 book which states that developers expect to see a slowdown at about the 10 to 30 user point. But that was written eight years ago when CPU's were slower and memory was less available. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 10, 2010 1:09 PM To: Access Developers discussion and problem solving; Sqlserver-Dba; VBA Subject: [AccessD] SQL Server Express - true skinny Does anyone know the true skinny on the limitations placed on SQL Server express in order to "throttle" it.? I found a blog that claims that outside of CPU / Memory / DB size limitations, there is not other "governor". So it appears that the limitations are: 10 gig db file size. This does not discuss additional database files. 1 CPU. However it appears that it can use 4 cores if available 1 gig of memory. This appears to be the killer. But there appears to be no "user" limitations etc. So the question is, would SQL Server express be capable of replacing Jet for a complex bound application for 30 users? -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Fri Sep 10 14:22:34 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 10 Sep 2010 12:22:34 -0700 Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scroll button)) In-Reply-To: <4C8A25CC.7030501@colbyconsulting.com> References: <4C8A25CC.7030501@colbyconsulting.com> Message-ID: John, Could you create a VS project that connects to the Access tables to use the web interaction capabilities of Visual Studio to step through your records? I have used wininet to interact from vba to asp web pages, but that used the query string to pass data and then I took the page returned and parsed out the return data. Do you know how the current page passes it's data to the server? It may be possible to just interact from a Visual Studio winforms app. Or Access vba if you know how to send the data and recieve the replies. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 10, 2010 5:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] LightSwitch (was: Automating web page entry (was: Scroll button)) Gustav, That does sound amazing, and I will check it out. I am all about C# / Visual Studio. However understand that this is an existing (very old) fairly large application, written ages ago in Access (by a developer long gone), that I simply maintain for my client. This specific piece is taking data from this system, pulling the billing information into a form and trying to allow them to get the data out of Access and into the Web page in an expeditious fashion. Not a trivial task (at least in Access) given the web form I have to work with. I might be able to convince them to move just this one piece out to an external application. This is a huge time suck for them and the rest of the state of PA. To be honest I am praying that they will wise up and start accepting data files. Anyway, thanks for continuing to mention LightSwitch. I will definitely check it out. Are you using it for anything specific yet? John W. Colby www.ColbyConsulting.com On 9/10/2010 8:15 AM, Gustav Brock wrote: > Hi John (et al) > > It's about time you spend some hours with the beta of LightSwitch, the new rapid development "shell" to Visual Studio 2010: > > http://www.microsoft.com/visualstudio/en-us/lightswitch > > and watch the tutorial videos. It is an amazing piece of software - kind of what Access could have been, had the Access team primarily had the developer in mind. > > The way controls of screens (= forms) are organized is so clever that you wonder why no one has figured this out before. Note too how you can change "skin" from a normal desktop app to a highly optimized touch-screen app, and how - by flipping a switch - you change the resulting app from a desktop app to a web app. And everything behind the scene you can customize and expand in C# or VB.NET. > > /gustav > > >>>> jwcolby at colbyconsulting.com 10-09-2010 13:32>>> > Yes, but I need the program to do stuff in access. While I can > appreciate using scripting languages, there is something to be said for using the language built in to Access. > > The user enters sets of data records, basically all services supplied > to a specific child by a specific therapist during a week. After > entering the last record for that child, the user clicks a button on > the web page and the web page returns a "status" for all of the > records entered, which I then have the user capture and insert back into a control on the form and more code runs in the form to parse that information and writes back into all of the records entered for that child. > > It is a sucky system (yes, stupidity irritates me, particularly when I have to program around it). > > For the purposes of the discussion here though, we have a perfectly > good language called VBA to use to write our applications. To do this > little piece in VBA, then call out to AutoIt to do this little piece, then run more VBA then call autoit, then run VBA... > > C'mon. > > VBA can automate IE, I know that because I have done that. How about > we discuss VBA automation of IE and how a single solution in the language behind Access might solve the problem? > > John W. Colby > www.ColbyConsulting.com > > On 9/10/2010 7:00 AM, Stuart McLachlan wrote: >> I did exactly the same with an application by a paint manufacturer >> for mixing paints a few years ago using AutoIt. Same result. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Sep 10 14:33:30 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 10 Sep 2010 23:33:30 +0400 Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scrollbutton)) In-Reply-To: References: Message-ID: Hi Gustav -- Thank you for your note. Starting from your link I have got to this August VSLive's KeyNote "A Glimpse of the Future..." dedicated to LightSwitch. And I have watched that almost one hour long video recording. But I'm still not convinced about going to play with this tool. IMO it's now: - a good prototyping tool; - a good MS marketing tool; I will wait for release. Maybe even for version #2 release. Do you know how metadata of this tool are organized? Is there technical documentation describing that metadata? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 10, 2010 4:15 PM To: accessd at databaseadvisors.com Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scrollbutton)) Hi John (et al) It's about time you spend some hours with the beta of LightSwitch, the new rapid development "shell" to Visual Studio 2010: http://www.microsoft.com/visualstudio/en-us/lightswitch and watch the tutorial videos. It is an amazing piece of software - kind of what Access could have been, had the Access team primarily had the developer in mind. The way controls of screens (= forms) are organized is so clever that you wonder why no one has figured this out before. Note too how you can change "skin" from a normal desktop app to a highly optimized touch-screen app, and how - by flipping a switch - you change the resulting app from a desktop app to a web app. And everything behind the scene you can customize and expand in C# or VB.NET. /gustav From jimdettman at verizon.net Fri Sep 10 14:35:07 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 10 Sep 2010 15:35:07 -0400 Subject: [AccessD] SQL Server Express - true skinny In-Reply-To: <4C8A743F.2080808@colbyconsulting.com> References: <4C8A743F.2080808@colbyconsulting.com> Message-ID: <71B384CAF72A4483825BEB1B9CBB970F@XPS> <> I've never had occasion to try it myself, but from what I understand, for 2005 and up that is correct. The old 5 connection limit was removed. However the DB limit is 4GB, not 10. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 10, 2010 2:09 PM To: Access Developers discussion and problem solving; Sqlserver-Dba; VBA Subject: [AccessD] SQL Server Express - true skinny Does anyone know the true skinny on the limitations placed on SQL Server express in order to "throttle" it.? I found a blog that claims that outside of CPU / Memory / DB size limitations, there is not other "governor". So it appears that the limitations are: 10 gig db file size. This does not discuss additional database files. 1 CPU. However it appears that it can use 4 cores if available 1 gig of memory. This appears to be the killer. But there appears to be no "user" limitations etc. So the question is, would SQL Server express be capable of replacing Jet for a complex bound application for 30 users? -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Fri Sep 10 14:46:17 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 10 Sep 2010 15:46:17 -0400 Subject: [AccessD] SQL Server Express - true skinny In-Reply-To: <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> References: <4C8A743F.2080808@colbyconsulting.com> <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: Dan, That is more or less true, but the real bottle neck with a JET based DB has never been .LDB file operations. With JET, all processing is on the client side. The server acts as nothing more then a file share. The trick with keeping a connection open to the BE avoids the repeated closing/opening of the LDB and DB files and all the associated overhead with removing/adding an active user under JET. Some apps benefit from that, other not because they already maintain a connection one way or another. The problem can be further compounded if the server has OPLOCKS on (which allows client side caching of files). JET doesn't need this as the cache is already on the client side. So it's simply a wasted effort on the servers part. And by default, OPLOCKs is enabled on Windows servers. The real restriction of JET is just one of stability. With no server side process to perform a rollback if a disconnect occurs, anytime that happens in the middle of write operations your fair game for corruption. So by the time you get past 30 or 40 stations, it's just hard to keep the environment stable. To prove that point, you can easily run a read-only/reporting JET based app with 200+ users without issues. It's not an issue of performance, but one of stability. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, September 10, 2010 2:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SQL Server Express - true skinny Hi John, The trick is binding a form to a table. What's the plan to do that? For Access user limits, it's my understanding that the throttle (governor) is the .ldb file on the BE .mdb. This .ldb file is being continuously 'managed' by all the users currently logged on - as you increase the number of users, the .ldb file management slows down from the perspective of a single user. As the server's CPU speed increases and as its memory increases, the slowdown will begin to happen with a higher number of users. Of course, SQL Server doesn't have an .ldb file, and it will manage concurrency internally and more quickly. I have an Access Que 2003 book which states that developers expect to see a slowdown at about the 10 to 30 user point. But that was written eight years ago when CPU's were slower and memory was less available. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 10, 2010 1:09 PM To: Access Developers discussion and problem solving; Sqlserver-Dba; VBA Subject: [AccessD] SQL Server Express - true skinny Does anyone know the true skinny on the limitations placed on SQL Server express in order to "throttle" it.? I found a blog that claims that outside of CPU / Memory / DB size limitations, there is not other "governor". So it appears that the limitations are: 10 gig db file size. This does not discuss additional database files. 1 CPU. However it appears that it can use 4 cores if available 1 gig of memory. This appears to be the killer. But there appears to be no "user" limitations etc. So the question is, would SQL Server express be capable of replacing Jet for a complex bound application for 30 users? -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 10 15:07:18 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 16:07:18 -0400 Subject: [AccessD] SQL Server Express - true skinny In-Reply-To: <71B384CAF72A4483825BEB1B9CBB970F@XPS> References: <4C8A743F.2080808@colbyconsulting.com> <71B384CAF72A4483825BEB1B9CBB970F@XPS> Message-ID: <4C8A8FF6.5040309@colbyconsulting.com> I took the 10g right from their web page "comparing versions". John W. Colby www.ColbyConsulting.com On 9/10/2010 3:35 PM, Jim Dettman wrote: > > < for a complex bound > application for 30 users?>> > > I've never had occasion to try it myself, but from what I understand, for > 2005 and up that is correct. The old 5 connection limit was removed. > > However the DB limit is 4GB, not 10. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 10, 2010 2:09 PM > To: Access Developers discussion and problem solving; Sqlserver-Dba; VBA > Subject: [AccessD] SQL Server Express - true skinny > > Does anyone know the true skinny on the limitations placed on SQL Server > express in order to > "throttle" it.? > > I found a blog that claims that outside of CPU / Memory / DB size > limitations, there is not other > "governor". > > So it appears that the limitations are: > > 10 gig db file size. This does not discuss additional database files. > 1 CPU. However it appears that it can use 4 cores if available > 1 gig of memory. This appears to be the killer. > > But there appears to be no "user" limitations etc. > > So the question is, would SQL Server express be capable of replacing Jet for > a complex bound > application for 30 users? > > From BradM at blackforestltd.com Fri Sep 10 15:12:09 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 10 Sep 2010 15:12:09 -0500 Subject: [AccessD] Can a Linked Table (Excel file) be opened Non-Exclusively by Access? References: <4C8A743F.2080808@colbyconsulting.com><5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: (Please ignore if this is a duplicate Email - not sure if first one was sent) We have just started to experiment with treating an Excel File as a Linked Table. Everything works nicely with just one user. When a second user tries to use the Access application, the application sits for a long time and eventually returns this message "The Microsoft Office Access database engine cannot open or write to the file ....... It is already opened exclusively by another user...... When going through the Access 2007 screens to set up the Linked Table, we are not seeing any option regarding Exclusive use. We must be missing something here. Thanks, Brad From rusty.hammond at cpiqpc.com Fri Sep 10 15:24:01 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Fri, 10 Sep 2010 15:24:01 -0500 Subject: [AccessD] SQL Server Express - true skinny In-Reply-To: <4C8A8FF6.5040309@colbyconsulting.com> References: <4C8A743F.2080808@colbyconsulting.com><71B384CAF72A4483825BEB1B9CBB970F@XPS> <4C8A8FF6.5040309@colbyconsulting.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFD8E3@CPIEMAIL-EVS1.CPIQPC.NET> John, I have an access 2003 front end with linked tables to SQL 2005 Express backend with up to 25 users hitting it. No problems at all. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 10, 2010 3:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Express - true skinny I took the 10g right from their web page "comparing versions". John W. Colby www.ColbyConsulting.com On 9/10/2010 3:35 PM, Jim Dettman wrote: > > < Jet for a complex bound application for 30 users?>> > > I've never had occasion to try it myself, but from what I > understand, for > 2005 and up that is correct. The old 5 connection limit was removed. > > However the DB limit is 4GB, not 10. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 10, 2010 2:09 PM > To: Access Developers discussion and problem solving; Sqlserver-Dba; > VBA > Subject: [AccessD] SQL Server Express - true skinny > > Does anyone know the true skinny on the limitations placed on SQL > Server express in order to "throttle" it.? > > I found a blog that claims that outside of CPU / Memory / DB size > limitations, there is not other "governor". > > So it appears that the limitations are: > > 10 gig db file size. This does not discuss additional database files. > 1 CPU. However it appears that it can use 4 cores if available > 1 gig of memory. This appears to be the killer. > > But there appears to be no "user" limitations etc. > > So the question is, would SQL Server express be capable of replacing > Jet for a complex bound application for 30 users? > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From gustav at cactus.dk Fri Sep 10 15:59:52 2010 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Sep 2010 22:59:52 +0200 Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scrollbutton)) Message-ID: Hi Shamil Well, I'm working my way through the tutorial that's for download as well and I'm impressed. Please note the target applications: small business apps with no other purpose than "getting work done". Such apps often have no special requirements for design or features, yet they must be reliable and consistent to use - yet fast to develop or you simply don't have the budget. Most data is collected in a local lsml (LightSwitchML) file but it connects via the EF to nearly everything just like that. It is so flexible, and validation, error messages and so on is ready at hand with zero or extremely little code. Importantly, the EF let's you "remodel" any data source making it very easy to adapt and connect/relate different data sources - again with zero code; this feature alone is worth studying. The default design of screens (forms) is very neat (using Silverlight) and so far from what you can handcraft otherwise (even using hours) with VS. Of course, like Access, this is a dangerous tool for those not knowing relational databases - but for you and I and our fellow list members who know about databases, this could be a very strong tool - mastering this could make you very competitive for small projects. Just today we were assigned a new straight-forward project (controlling projects/employees/contracts/salaries for a small TV production company) where we will put it to use to check it out. /gustav >>> shamil at smsconsulting.spb.ru 10-09-2010 21:33 >>> Hi Gustav -- Thank you for your note. Starting from your link I have got to this August VSLive's KeyNote "A Glimpse of the Future..." dedicated to LightSwitch. And I have watched that almost one hour long video recording. But I'm still not convinced about going to play with this tool. IMO it's now: - a good prototyping tool; - a good MS marketing tool; I will wait for release. Maybe even for version #2 release. Do you know how metadata of this tool are organized? Is there technical documentation describing that metadata? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 10, 2010 4:15 PM To: accessd at databaseadvisors.com Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scrollbutton)) Hi John (et al) It's about time you spend some hours with the beta of LightSwitch, the new rapid development "shell" to Visual Studio 2010: http://www.microsoft.com/visualstudio/en-us/lightswitch and watch the tutorial videos. It is an amazing piece of software - kind of what Access could have been, had the Access team primarily had the developer in mind. The way controls of screens (= forms) are organized is so clever that you wonder why no one has figured this out before. Note too how you can change "skin" from a normal desktop app to a highly optimized touch-screen app, and how - by flipping a switch - you change the resulting app from a desktop app to a web app. And everything behind the scene you can customize and expand in C# or VB.NET. /gustav From jimdettman at verizon.net Fri Sep 10 16:03:34 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 10 Sep 2010 17:03:34 -0400 Subject: [AccessD] SQL Server Express - true skinny In-Reply-To: <4C8A8FF6.5040309@colbyconsulting.com> References: <4C8A743F.2080808@colbyconsulting.com> <71B384CAF72A4483825BEB1B9CBB970F@XPS> <4C8A8FF6.5040309@colbyconsulting.com> Message-ID: This one says 4: http://msdn.microsoft.com/en-us/library/ms345154(SQL.90).aspx and I've always known it to be 4. Could have changed it though for 2008.... Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 10, 2010 4:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Express - true skinny I took the 10g right from their web page "comparing versions". John W. Colby www.ColbyConsulting.com On 9/10/2010 3:35 PM, Jim Dettman wrote: > > < for a complex bound > application for 30 users?>> > > I've never had occasion to try it myself, but from what I understand, for > 2005 and up that is correct. The old 5 connection limit was removed. > > However the DB limit is 4GB, not 10. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 10, 2010 2:09 PM > To: Access Developers discussion and problem solving; Sqlserver-Dba; VBA > Subject: [AccessD] SQL Server Express - true skinny > > Does anyone know the true skinny on the limitations placed on SQL Server > express in order to > "throttle" it.? > > I found a blog that claims that outside of CPU / Memory / DB size > limitations, there is not other > "governor". > > So it appears that the limitations are: > > 10 gig db file size. This does not discuss additional database files. > 1 CPU. However it appears that it can use 4 cores if available > 1 gig of memory. This appears to be the killer. > > But there appears to be no "user" limitations etc. > > So the question is, would SQL Server express be capable of replacing Jet for > a complex bound > application for 30 users? > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 10 16:19:01 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 17:19:01 -0400 Subject: [AccessD] SQL Server Express - true skinny In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com> <71B384CAF72A4483825BEB1B9CBB970F@XPS> <4C8A8FF6.5040309@colbyconsulting.com> Message-ID: <4C8AA0C5.7090006@colbyconsulting.com> http://www.microsoft.com/sqlserver/2008/en/us/editions.aspx John W. Colby www.ColbyConsulting.com On 9/10/2010 5:03 PM, Jim Dettman wrote: > > This one says 4: > > http://msdn.microsoft.com/en-us/library/ms345154(SQL.90).aspx > > and I've always known it to be 4. Could have changed it though for > 2008.... > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 10, 2010 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SQL Server Express - true skinny > > I took the 10g right from their web page "comparing versions". > > John W. Colby > www.ColbyConsulting.com > > On 9/10/2010 3:35 PM, Jim Dettman wrote: >> >> <> for a complex bound >> application for 30 users?>> >> >> I've never had occasion to try it myself, but from what I understand, > for >> 2005 and up that is correct. The old 5 connection limit was removed. >> >> However the DB limit is 4GB, not 10. >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Friday, September 10, 2010 2:09 PM >> To: Access Developers discussion and problem solving; Sqlserver-Dba; VBA >> Subject: [AccessD] SQL Server Express - true skinny >> >> Does anyone know the true skinny on the limitations placed on SQL Server >> express in order to >> "throttle" it.? >> >> I found a blog that claims that outside of CPU / Memory / DB size >> limitations, there is not other >> "governor". >> >> So it appears that the limitations are: >> >> 10 gig db file size. This does not discuss additional database files. >> 1 CPU. However it appears that it can use 4 cores if available >> 1 gig of memory. This appears to be the killer. >> >> But there appears to be no "user" limitations etc. >> >> So the question is, would SQL Server express be capable of replacing Jet > for >> a complex bound >> application for 30 users? >> >> From jwcolby at colbyconsulting.com Fri Sep 10 16:22:10 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 17:22:10 -0400 Subject: [AccessD] SQL Server Express - true skinny In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com> <71B384CAF72A4483825BEB1B9CBB970F@XPS> <4C8A8FF6.5040309@colbyconsulting.com> Message-ID: <4C8AA182.90800@colbyconsulting.com> Jim, SQL Server Express can install and run on multiprocessor machines, but only a single CPU is used at any time. Internally, the engine limits the number of user scheduler threads to 1 so that only 1 CPU is used at a time. Features such as parallel query execution are not supported because of the single CPU limit. This is a serious "throttle". That means that multiple cores will not be supported. Sigh! John W. Colby www.ColbyConsulting.com On 9/10/2010 5:03 PM, Jim Dettman wrote: > > This one says 4: > > http://msdn.microsoft.com/en-us/library/ms345154(SQL.90).aspx > > and I've always known it to be 4. Could have changed it though for > 2008.... > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 10, 2010 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SQL Server Express - true skinny > > I took the 10g right from their web page "comparing versions". > > John W. Colby > www.ColbyConsulting.com > > On 9/10/2010 3:35 PM, Jim Dettman wrote: >> >> <> for a complex bound >> application for 30 users?>> >> >> I've never had occasion to try it myself, but from what I understand, > for >> 2005 and up that is correct. The old 5 connection limit was removed. >> >> However the DB limit is 4GB, not 10. >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Friday, September 10, 2010 2:09 PM >> To: Access Developers discussion and problem solving; Sqlserver-Dba; VBA >> Subject: [AccessD] SQL Server Express - true skinny >> >> Does anyone know the true skinny on the limitations placed on SQL Server >> express in order to >> "throttle" it.? >> >> I found a blog that claims that outside of CPU / Memory / DB size >> limitations, there is not other >> "governor". >> >> So it appears that the limitations are: >> >> 10 gig db file size. This does not discuss additional database files. >> 1 CPU. However it appears that it can use 4 cores if available >> 1 gig of memory. This appears to be the killer. >> >> But there appears to be no "user" limitations etc. >> >> So the question is, would SQL Server express be capable of replacing Jet > for >> a complex bound >> application for 30 users? >> >> From dw-murphy at cox.net Fri Sep 10 16:24:14 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 10 Sep 2010 14:24:14 -0700 Subject: [AccessD] SQL Server Express - true skinny In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com><71B384CAF72A4483825BEB1B9CBB970F@XPS><4C8A8FF6.5040309@colbyconsulting.com> Message-ID: SQL Server 2008 Express home page would seem to imply 4G, but http://www.microsoft.com/sqlserver/2008/en/us/editions-compare.aspx says 10G/1 CPU. Nothing about connections as with 2003 version. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 10, 2010 2:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SQL Server Express - true skinny This one says 4: http://msdn.microsoft.com/en-us/library/ms345154(SQL.90).aspx and I've always known it to be 4. Could have changed it though for 2008.... Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 10, 2010 4:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Express - true skinny I took the 10g right from their web page "comparing versions". John W. Colby www.ColbyConsulting.com On 9/10/2010 3:35 PM, Jim Dettman wrote: > > < Jet for a complex bound application for 30 users?>> > > I've never had occasion to try it myself, but from what I > understand, for > 2005 and up that is correct. The old 5 connection limit was removed. > > However the DB limit is 4GB, not 10. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 10, 2010 2:09 PM > To: Access Developers discussion and problem solving; Sqlserver-Dba; > VBA > Subject: [AccessD] SQL Server Express - true skinny > > Does anyone know the true skinny on the limitations placed on SQL > Server express in order to "throttle" it.? > > I found a blog that claims that outside of CPU / Memory / DB size > limitations, there is not other "governor". > > So it appears that the limitations are: > > 10 gig db file size. This does not discuss additional database files. > 1 CPU. However it appears that it can use 4 cores if available > 1 gig of memory. This appears to be the killer. > > But there appears to be no "user" limitations etc. > > So the question is, would SQL Server express be capable of replacing > Jet for > a complex bound > application for 30 users? > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 10 16:29:06 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 10 Sep 2010 17:29:06 -0400 Subject: [AccessD] SQL Server Express - true skinny In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com> <71B384CAF72A4483825BEB1B9CBB970F@XPS> <4C8A8FF6.5040309@colbyconsulting.com> Message-ID: <4C8AA322.1020001@colbyconsulting.com> That whole thing is an interesting read. John W. Colby www.ColbyConsulting.com On 9/10/2010 5:03 PM, Jim Dettman wrote: > > This one says 4: > > http://msdn.microsoft.com/en-us/library/ms345154(SQL.90).aspx > > and I've always known it to be 4. Could have changed it though for > 2008.... > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 10, 2010 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SQL Server Express - true skinny > > I took the 10g right from their web page "comparing versions". > > John W. Colby > www.ColbyConsulting.com > > On 9/10/2010 3:35 PM, Jim Dettman wrote: >> >> <> for a complex bound >> application for 30 users?>> >> >> I've never had occasion to try it myself, but from what I understand, > for >> 2005 and up that is correct. The old 5 connection limit was removed. >> >> However the DB limit is 4GB, not 10. >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Friday, September 10, 2010 2:09 PM >> To: Access Developers discussion and problem solving; Sqlserver-Dba; VBA >> Subject: [AccessD] SQL Server Express - true skinny >> >> Does anyone know the true skinny on the limitations placed on SQL Server >> express in order to >> "throttle" it.? >> >> I found a blog that claims that outside of CPU / Memory / DB size >> limitations, there is not other >> "governor". >> >> So it appears that the limitations are: >> >> 10 gig db file size. This does not discuss additional database files. >> 1 CPU. However it appears that it can use 4 cores if available >> 1 gig of memory. This appears to be the killer. >> >> But there appears to be no "user" limitations etc. >> >> So the question is, would SQL Server express be capable of replacing Jet > for >> a complex bound >> application for 30 users? >> >> From accessd at shaw.ca Fri Sep 10 18:48:33 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 10 Sep 2010 16:48:33 -0700 Subject: [AccessD] SQL Server Express - true skinny In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com> <71B384CAF72A4483825BEB1B9CBB970F@XPS> <4C8A8FF6.5040309@colbyconsulting.com> Message-ID: Hi Jim: OTOH quoted directly from MS documentation: "...maximum database size of 4 GB per database (increased to 10 GB for SQL Server Express 2008 R2) (compared to 2 GB in the former MSDE). The limit applies per database (log files excluded); but in some scenarios users can access more data through the use of multiple interconnected databases." So who is still using MS SQL 2005 when MS SQL 2008 is freely available and is easy to do an over-write. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 10, 2010 2:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SQL Server Express - true skinny This one says 4: http://msdn.microsoft.com/en-us/library/ms345154(SQL.90).aspx and I've always known it to be 4. Could have changed it though for 2008.... Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 10, 2010 4:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Express - true skinny I took the 10g right from their web page "comparing versions". John W. Colby www.ColbyConsulting.com On 9/10/2010 3:35 PM, Jim Dettman wrote: > > < for a complex bound > application for 30 users?>> > > I've never had occasion to try it myself, but from what I understand, for > 2005 and up that is correct. The old 5 connection limit was removed. > > However the DB limit is 4GB, not 10. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 10, 2010 2:09 PM > To: Access Developers discussion and problem solving; Sqlserver-Dba; VBA > Subject: [AccessD] SQL Server Express - true skinny > > Does anyone know the true skinny on the limitations placed on SQL Server > express in order to > "throttle" it.? > > I found a blog that claims that outside of CPU / Memory / DB size > limitations, there is not other > "governor". > > So it appears that the limitations are: > > 10 gig db file size. This does not discuss additional database files. > 1 CPU. However it appears that it can use 4 cores if available > 1 gig of memory. This appears to be the killer. > > But there appears to be no "user" limitations etc. > > So the question is, would SQL Server express be capable of replacing Jet for > a complex bound > application for 30 users? > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Fri Sep 10 19:46:18 2010 From: marksimms at verizon.net (Mark Simms) Date: Fri, 10 Sep 2010 20:46:18 -0400 Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scrollbutton)) In-Reply-To: References: Message-ID: <002d01cb514a$bf8b5380$0801a8c0@MSIMMSWS> > It is an amazing piece of > software - kind of what Access could have been, had the > Access team primarily had the developer in mind. Of course. And that explain's Clint Covington's master plan to "cover-up" the demise of Access. Good job Clint. From shamil at smsconsulting.spb.ru Sat Sep 11 01:16:34 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 11 Sep 2010 10:16:34 +0400 Subject: [AccessD] LightSwitch (was: Automating web page entry (was:Scrollbutton)) In-Reply-To: References: Message-ID: <8E8484C60F724DBC923236DE5BC8813B@nant> Hi Gustav -- Thank you for your extended note and your "first hand" experience with LightSwitch. So, LightSwitch desktop UI is also Silverlight based? (from keynote video I didn't get that) IOW this tool should be better called "Silver-Light-Switch" ? (Does it "smell" a bit as "Silver-Bullet" just based on its title?) <<< Of course, like Access, this is a dangerous tool for those not knowing relational databases - but for you and I and our fellow list members who know about databases, this could be a very strong tool - mastering this could make you very competitive for small projects. >>> Yes, and I'd suppose this tool is also "dangerous" for you and me :) Yes, I see you noted - for "small projects" - but how often "small projects" quickly grow into "big ones" - almost always in my experience, and what about yours? I guess it should be very similar... IMO when working with such a tool one is becoming a "lazy developer". I can be wrong but the "hidden danger" of such a tool IMO is that while one is working using it on a small app it works well but then, suddenly(?!), they hit the wall - and there is often no resources and no will to "break that wall" - and an application degrades steadily, its support costs grow (astronomically), and then it gets abandoned. Everybody here "been there seen that" many times I suppose... Yes, as a prototyping tool is looks good - and prototyping both business datamodel + FE rough interface/navigation/data validation but when prototyping is done - "throw it away", and make "real handwritten software". I can be wrong of course, we will see... But Test Driven Development (TDD) and Domain Driven Design (DDD) is a synonym for professional agile software development for me, and LightSwitch looks so different from TDD/DDD mainstream tendence... LightSwitch still looks more like "VB6 v.2010 on .NET Framework+WCF/SilverLight+EF steroids" with all the dangers of VB6 in creation of "world best spaghetti code"... Yes, the fact is that business software isn't that a rocket science experience with a lot of routine repetitive tasks and code and UI templates "crying for" automation for ages now - still no good results - would we finally get good results now with LightSwitch? Let's hope so, just hope... But the more business software development automation fails to deliver a universal tool the more it's becoming clear that there couldn't be such a tool in principle? LightSwitch is a high level framework on top of several frameworks - such a "vertical structure" of stacked frameworks usually results in a rather rigid construction. Hunting for RAD and flexibility and in fact getting into the opposite direction in long run (for big projects) + becoming a "lazy developer": it was like that before - why it should be different this time? Doesn't "The Mythical Man-Month" by Frederick Phillips Brooks, Jr. (http://en.wikipedia.org/wiki/Fred_Brooks) and the "The Design of Design" of the same author tells us that the real breakthrough in (business) software development automation is yet very far from nowadays if ever happens? The main losses/overheads in (business) software development as it's known are in the area of communicating customers'/stakeholders' requirements to the business analysts/software designers/developers - LightSwitch (as VSLive Keynote speech states) is going to solve/significantly diminish the losses/overheads of this core issue - I doubt it will work well here... Microsoft is investing so much into high level software development frameworks these days as they never did before - is that more "a marketing move" or a long term well thought through strategy - who knows? No doubts Microsoft can afford world best computer science analysts and software developers - did they find how to make a "Silver-Bullet" this time? I can be wrong, feel free to accept all the above as a rumbling... Just found this note "LightSwitch Extensibility: It Ain't Just Hype" http://geekswithblogs.net/andrewbrust/archive/2010/08/21/lightswitch-extensi bility-it-ainrsquot-just-hype.aspx... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, September 11, 2010 1:00 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] LightSwitch (was: Automating web page entry (was:Scrollbutton)) Hi Shamil Well, I'm working my way through the tutorial that's for download as well and I'm impressed. Please note the target applications: small business apps with no other purpose than "getting work done". Such apps often have no special requirements for design or features, yet they must be reliable and consistent to use - yet fast to develop or you simply don't have the budget. Most data is collected in a local lsml (LightSwitchML) file but it connects via the EF to nearly everything just like that. It is so flexible, and validation, error messages and so on is ready at hand with zero or extremely little code. Importantly, the EF let's you "remodel" any data source making it very easy to adapt and connect/relate different data sources - again with zero code; this feature alone is worth studying. The default design of screens (forms) is very neat (using Silverlight) and so far from what you can handcraft otherwise (even using hours) with VS. Of course, like Access, this is a dangerous tool for those not knowing relational databases - but for you and I and our fellow list members who know about databases, this could be a very strong tool - mastering this could make you very competitive for small projects. Just today we were assigned a new straight-forward project (controlling projects/employees/contracts/salaries for a small TV production company) where we will put it to use to check it out. /gustav >>> shamil at smsconsulting.spb.ru 10-09-2010 21:33 >>> Hi Gustav -- Thank you for your note. Starting from your link I have got to this August VSLive's KeyNote "A Glimpse of the Future..." dedicated to LightSwitch. And I have watched that almost one hour long video recording. But I'm still not convinced about going to play with this tool. IMO it's now: - a good prototyping tool; - a good MS marketing tool; I will wait for release. Maybe even for version #2 release. Do you know how metadata of this tool are organized? Is there technical documentation describing that metadata? Thank you. -- Shamil <<< snip >>> From rbgajewski at roadrunner.com Sat Sep 11 07:11:16 2010 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Sat, 11 Sep 2010 08:11:16 -0400 Subject: [AccessD] Access to Web In-Reply-To: References: Message-ID: <10BED9D67CB24FB1A98194DBAAE5C5D8@DCYN3T81> Hi Folks I have an A2K3 database for a local non-profit group (volunteer fire company) that would like to see monthly statistics on their intranet (number of calls, types, etc). What is everyone's recommendation or preferred format for presenting a static table in a web page, but with the ability to let users sort by different columns (ascending, click again for descending, etc.)? Active server page? An Excel-like look with an "auto-filter" type functionality would be ideal. If anyone has a suggestion or demo, I would really appreciate it. Thanks, Bob Gajewski From shamil at smsconsulting.spb.ru Sat Sep 11 07:36:15 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 11 Sep 2010 16:36:15 +0400 Subject: [AccessD] Access to Web In-Reply-To: <10BED9D67CB24FB1A98194DBAAE5C5D8@DCYN3T81> References: <10BED9D67CB24FB1A98194DBAAE5C5D8@DCYN3T81> Message-ID: Hi Bob -- Have a look: http://sms-web.biz/nw/ReportPages/SalesAnalysisReport.aspx http://sms-web.biz/nw/Default.aspx sources are here: http://northwind.codeplex.com/ The above sample is a simple ASP.NET web application with reports developed using MS ReportViewer control - all the tools are free. Usual worldwide hosting costs are starting USD10(?) per month. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Saturday, September 11, 2010 4:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to Web Hi Folks I have an A2K3 database for a local non-profit group (volunteer fire company) that would like to see monthly statistics on their intranet (number of calls, types, etc). What is everyone's recommendation or preferred format for presenting a static table in a web page, but with the ability to let users sort by different columns (ascending, click again for descending, etc.)? Active server page? An Excel-like look with an "auto-filter" type functionality would be ideal. If anyone has a suggestion or demo, I would really appreciate it. Thanks, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Sat Sep 11 09:16:06 2010 From: marksimms at verizon.net (Mark Simms) Date: Sat, 11 Sep 2010 10:16:06 -0400 Subject: [AccessD] Access to Web In-Reply-To: <10BED9D67CB24FB1A98194DBAAE5C5D8@DCYN3T81> References: <10BED9D67CB24FB1A98194DBAAE5C5D8@DCYN3T81> Message-ID: <004201cb51bb$e0141da0$0801a8c0@MSIMMSWS> >> An Excel-like look with an "auto-filter" type functionality would be ideal. Have you considered Excel Services under Sharepoint ? You get exactly what you mentioned above. From jwcolby at colbyconsulting.com Sat Sep 11 09:45:14 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 11 Sep 2010 10:45:14 -0400 Subject: [AccessD] LightSwitch as a serious tool In-Reply-To: References: Message-ID: <4C8B95FA.4000903@colbyconsulting.com> In reading through the blogs and responses there is a whole lot of "this is a toy" and "just like access" and "creates useless things that can't be expanded". I found it highly amusing myself. Tons of "serious developers" complaining that Access was used to develop apps that got 5 years down the road and couldn't be expanded. Never mentioning that those very Access apps were developed because the IT department never got around to handling the needs of their clients! I was called in to Disability Insurance Specialists in March 2002 to help them start their business. At that time they had about 20 people (they have since expanded to about 60). Their budget was a couple of K a month. They needed a call center application but they had nothing but a single huge denormalized table which had to be normalized, and then needed forms written to allow them to do anything. What "serious developer" working for a "serious development company" is going to bootstrap such a company? They got quotes, and the quotes always started with "10K to come in and talk to you and write a spec". Non Starters. So I went in and wrote them a call center, month by month, piece by piece, as they could afford each piece. And yet the same "serious developers" who work for "serious development companies" complain bitterly about how Access is used to do the very things that they price themselves right out of the market for. I just about choked on my Cocoa when I read one "serious developer" comment about taking over LightSwitch projects - "I'll tell them the same thing I tell the access developers - write a spec for your program and give it to IT (and wait for 5 years while we get around to it)". Can you say ARROGANT? I think LightSwitch is just such a tool. I am looking at it now as a replacement for Access, exactly for this exact same kind of development. At least at the end of the day it is built on .Net and SQL Server instead of Access. If it gives me the ability to knock out small projects in hours or days instead of weeks and months, then I am there! Thanks for bringing it to my attention. And may every IT department treat their clients as arrogantly, so that I can earn a fine living giving them what they need, in a time frame that matches their requirements, on a budget they can afford. John W. Colby www.ColbyConsulting.com On 9/10/2010 4:59 PM, Gustav Brock wrote: > Hi Shamil > > Well, I'm working my way through the tutorial that's for download as well and I'm impressed. > > Please note the target applications: small business apps with no other purpose than "getting work done". Such apps often have no special requirements for design or features, yet they must be reliable and consistent to use - yet fast to develop or you simply don't have the budget. > > Most data is collected in a local lsml (LightSwitchML) file but it connects via the EF to nearly everything just like that. It is so flexible, and validation, error messages and so on is ready at hand with zero or extremely little code. Importantly, the EF let's you "remodel" any data source making it very easy to adapt and connect/relate different data sources - again with zero code; this feature alone is worth studying. > > The default design of screens (forms) is very neat (using Silverlight) and so far from what you can handcraft otherwise (even using hours) with VS. > > Of course, like Access, this is a dangerous tool for those not knowing relational databases - but for you and I and our fellow list members who know about databases, this could be a very strong tool - mastering this could make you very competitive for small projects. > > Just today we were assigned a new straight-forward project (controlling projects/employees/contracts/salaries for a small TV production company) where we will put it to use to check it out. > > /gustav From stuart at lexacorp.com.pg Sat Sep 11 10:39:56 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 12 Sep 2010 01:39:56 +1000 Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scrollbutton)) In-Reply-To: References: Message-ID: <4C8BA2CC.3965.1168C59A@stuart.lexacorp.com.pg> What??? You are going to develop a project for a client using it? http://www.microsoft.com/visualstudio/en-us/lightswitch "This Beta release of LightSwitch is an early look at an upcoming Microsoft release. As with other software previews, we recommend that you do NOT use this product on production data or production PCs. Some of the features are subject to change based on ongoing development activities and customer feedback. " -- Stuart On 10 Sep 2010 at 22:59, Gustav Brock wrote: > > Just today we were assigned a new straight-forward project > (controlling projects/employees/contracts/salaries for a small TV > production company) where we will put it to use to check it out. > > /gustav > From jwcolby at colbyconsulting.com Sat Sep 11 11:31:38 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 11 Sep 2010 12:31:38 -0400 Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scrollbutton)) In-Reply-To: <4C8BA2CC.3965.1168C59A@stuart.lexacorp.com.pg> References: <4C8BA2CC.3965.1168C59A@stuart.lexacorp.com.pg> Message-ID: <4C8BAEEA.8040904@colbyconsulting.com> LOL, some of the features in 2005 might be phased out in 2008 as well. Apparently you were on vacation when Access 2007 hit the scene? ;) I too am developing an application in LS. It takes a great deal of learning to figure it out. By the time I know how to do all this it will be out of Beta and I will have a final system to deliver. John W. Colby www.ColbyConsulting.com On 9/11/2010 11:39 AM, Stuart McLachlan wrote: > What??? You are going to develop a project for a client using it? > > http://www.microsoft.com/visualstudio/en-us/lightswitch > "This Beta release of LightSwitch is an early look at an upcoming Microsoft release. As with > other software previews, we recommend that you do NOT use this product on production > data or production PCs. Some of the features are subject to change based on ongoing > development activities and customer feedback. " > > From gustav at cactus.dk Sat Sep 11 11:58:58 2010 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 11 Sep 2010 18:58:58 +0200 Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scrollbutton)) Message-ID: Hi Stuart I know. Beta is beta and I have read that. I think, what else could MS say? Would you expect any other kind of comment? If you work a little with LightSwitch you'll soon see that this is not a left-hand product whipped together in a fortnight, and underneath - and at all time at your right hand - is Visual Studio which I feel confident with. Those items/features that may get changed I'm sure I will be able to adopt. /gustav >>> stuart at lexacorp.com.pg 11-09-2010 17:39 >>> What??? You are going to develop a project for a client using it? http://www.microsoft.com/visualstudio/en-us/lightswitch "This Beta release of LightSwitch is an early look at an upcoming Microsoft release. As with other software previews, we recommend that you do NOT use this product on production data or production PCs. Some of the features are subject to change based on ongoing development activities and customer feedback. " -- Stuart On 10 Sep 2010 at 22:59, Gustav Brock wrote: > > Just today we were assigned a new straight-forward project > (controlling projects/employees/contracts/salaries for a small TV > production company) where we will put it to use to check it out. > > /gustav From gustav at cactus.dk Sat Sep 11 12:05:20 2010 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 11 Sep 2010 19:05:20 +0200 Subject: [AccessD] Access to Web Message-ID: Hi Bob Ha ha (see other current threads) - LightSwitch! Though the resulting pages would be much nicer than a clean "Excel-like look". They will need an IIS server to run the app. /gustav >>> rbgajewski at roadrunner.com 11-09-2010 14:11 >>> Hi Folks I have an A2K3 database for a local non-profit group (volunteer fire company) that would like to see monthly statistics on their intranet (number of calls, types, etc). What is everyone's recommendation or preferred format for presenting a static table in a web page, but with the ability to let users sort by different columns (ascending, click again for descending, etc.)? Active server page? An Excel-like look with an "auto-filter" type functionality would be ideal. If anyone has a suggestion or demo, I would really appreciate it. Thanks, Bob Gajewski From dw-murphy at cox.net Sat Sep 11 12:09:40 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 11 Sep 2010 10:09:40 -0700 Subject: [AccessD] Access to Web In-Reply-To: <10BED9D67CB24FB1A98194DBAAE5C5D8@DCYN3T81> References: <10BED9D67CB24FB1A98194DBAAE5C5D8@DCYN3T81> Message-ID: <02ACB05284614CDA8D61074E4F9BC65C@murphy3234aaf1> Hi Bob, This is low tech, very low development time, and free, but have you looked at the spread sheet in Google Docs? You can set the account up so given users can see the document, edit, etc. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Saturday, September 11, 2010 5:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to Web Hi Folks I have an A2K3 database for a local non-profit group (volunteer fire company) that would like to see monthly statistics on their intranet (number of calls, types, etc). What is everyone's recommendation or preferred format for presenting a static table in a web page, but with the ability to let users sort by different columns (ascending, click again for descending, etc.)? Active server page? An Excel-like look with an "auto-filter" type functionality would be ideal. If anyone has a suggestion or demo, I would really appreciate it. Thanks, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Sep 11 12:29:54 2010 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 11 Sep 2010 19:29:54 +0200 Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scrollbutton)) Message-ID: Hi Shamil I understand your concern, and you are right - it is not very clever to chose a development tool where you may get trapped. However, as I see it, LS doesn't lock you out from any feature of Visual Studio. C# and VB.NET are at any point no more than a click or two away and you can create all the custom code and forms and reports you may need. Again, I'm convinced that the lack of true knowledge of databases is the main trap for amateur (including most super user style) developers. For us this trap is very distant. Because I feel that one of the fun parts of designing an application is thinking out the perfect data model, I spend much time on this, and I've seen several times that exactly doing so makes it possible to twist and expand the application in any direction the client later may think of. Or - putting it the other way - you have all experienced the deep breath you take when you study an inherited application where the client asks you to make what seems a minor modification while you can see that issues are piling up because of initial bad design. Thanks for link. Interesting comment indeed. /gustav >>> shamil at smsconsulting.spb.ru 11-09-2010 08:16 >>> Hi Gustav -- Thank you for your extended note and your "first hand" experience with LightSwitch. So, LightSwitch desktop UI is also Silverlight based? (from keynote video I didn't get that) IOW this tool should be better called "Silver-Light-Switch" ? (Does it "smell" a bit as "Silver-Bullet" just based on its title?) <<< Of course, like Access, this is a dangerous tool for those not knowing relational databases - but for you and I and our fellow list members who know about databases, this could be a very strong tool - mastering this could make you very competitive for small projects. >>> Yes, and I'd suppose this tool is also "dangerous" for you and me :) Yes, I see you noted - for "small projects" - but how often "small projects" quickly grow into "big ones" - almost always in my experience, and what about yours? I guess it should be very similar... IMO when working with such a tool one is becoming a "lazy developer". I can be wrong but the "hidden danger" of such a tool IMO is that while one is working using it on a small app it works well but then, suddenly(?!), they hit the wall - and there is often no resources and no will to "break that wall" - and an application degrades steadily, its support costs grow (astronomically), and then it gets abandoned. Everybody here "been there seen that" many times I suppose... Yes, as a prototyping tool is looks good - and prototyping both business datamodel + FE rough interface/navigation/data validation but when prototyping is done - "throw it away", and make "real handwritten software". I can be wrong of course, we will see... But Test Driven Development (TDD) and Domain Driven Design (DDD) is a synonym for professional agile software development for me, and LightSwitch looks so different from TDD/DDD mainstream tendence... LightSwitch still looks more like "VB6 v.2010 on .NET Framework+WCF/SilverLight+EF steroids" with all the dangers of VB6 in creation of "world best spaghetti code"... Yes, the fact is that business software isn't that a rocket science experience with a lot of routine repetitive tasks and code and UI templates "crying for" automation for ages now - still no good results - would we finally get good results now with LightSwitch? Let's hope so, just hope... But the more business software development automation fails to deliver a universal tool the more it's becoming clear that there couldn't be such a tool in principle? LightSwitch is a high level framework on top of several frameworks - such a "vertical structure" of stacked frameworks usually results in a rather rigid construction. Hunting for RAD and flexibility and in fact getting into the opposite direction in long run (for big projects) + becoming a "lazy developer": it was like that before - why it should be different this time? Doesn't "The Mythical Man-Month" by Frederick Phillips Brooks, Jr. (http://en.wikipedia.org/wiki/Fred_Brooks) and the "The Design of Design" of the same author tells us that the real breakthrough in (business) software development automation is yet very far from nowadays if ever happens? The main losses/overheads in (business) software development as it's known are in the area of communicating customers'/stakeholders' requirements to the business analysts/software designers/developers - LightSwitch (as VSLive Keynote speech states) is going to solve/significantly diminish the losses/overheads of this core issue - I doubt it will work well here... Microsoft is investing so much into high level software development frameworks these days as they never did before - is that more "a marketing move" or a long term well thought through strategy - who knows? No doubts Microsoft can afford world best computer science analysts and software developers - did they find how to make a "Silver-Bullet" this time? I can be wrong, feel free to accept all the above as a rumbling... Just found this note "LightSwitch Extensibility: It Ain't Just Hype" http://geekswithblogs.net/andrewbrust/archive/2010/08/21/lightswitch-extensibility-it-ainrsquot-just-hype.aspx Thank you. -- Shamil From jwcolby at colbyconsulting.com Sat Sep 11 16:57:03 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 11 Sep 2010 17:57:03 -0400 Subject: [AccessD] VM dev machines Message-ID: <4C8BFB2F.1030206@colbyconsulting.com> Is anyone doing development primarily in a virtual machine? Anyone using VMs to test against specific environments - Windows XP, Office 2000 etc? I have a dual core Dell laptop that is beginning to feel long in the tooth, though it is less than 3 years old. I think it is just the old "too much crap" syndrome, but I am wondering if I could move into a VM, perhaps using XP as the OS and even though it would only use one of the cores, it might just be more responsive. Or maybe not. I do know that a new laptop is not in the cards any time soon. -- John W. Colby www.ColbyConsulting.com From charlotte.foust at gmail.com Sat Sep 11 17:20:22 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Sat, 11 Sep 2010 15:20:22 -0700 Subject: [AccessD] VM dev machines In-Reply-To: <4C8BFB2F.1030206@colbyconsulting.com> References: <4C8BFB2F.1030206@colbyconsulting.com> Message-ID: We were doing some of that at my former employer primarily to test our .Net apps in multiple OS environments. That gave us the ability to test against XP, Vista, and Win 7 on a single machine, Developers used VMs to track down issues clients were having with a particular environment. It worked quite well on both laptops and desktop machines. The behavior with adequate memory was completely satisfactory. Charlotte Foust On Sat, Sep 11, 2010 at 2:57 PM, jwcolby wrote: > Is anyone doing development primarily in a virtual machine? Anyone using VMs to test against > specific environments - Windows XP, Office 2000 etc? > > I have a dual core Dell laptop that is beginning to feel long in the tooth, though it is less than 3 > years old. ?I think it is just the old "too much crap" syndrome, but I am wondering if I could move > into a VM, perhaps using XP as the OS and even though it would only use one of the cores, it might > just be more responsive. ?Or maybe not. > > I do know that a new laptop is not in the cards any time soon. > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From charlotte.foust at gmail.com Sat Sep 11 17:27:35 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Sat, 11 Sep 2010 15:27:35 -0700 Subject: [AccessD] Detail in calendar In-Reply-To: References: Message-ID: You might be ahead to put a page header on your report and put date and info in that header. Just print the page header on each page and don't try to suppress it at all. How are you trying to populate the date info in the page header now? Charlotte Foust On Fri, Sep 10, 2010 at 8:24 AM, Debbie wrote: > I have a report in access 2007 that has a calendar that works nicely. > My issue is when the tasks that fill my calendar fill more than a > page. I am left with info at the top of the page and no date since the > dates themseves are detail records. > > I am trying to put a date on the top of this page with one of two > methods, but I am running into issues. > > 1. ?Put dates in the page header and only reveal them when the detail > exceeds the page length. > A: I have gotten pretty far with this one, but cannot seem to get the > visible property to fire in the right spot. My code seems to be firing > on the right pages, but not producing the correct results. Page 1 > always has the extra dates when it should never have them and > subsequent pages never have the dates even when I tell it if me.page = > one page after a long detail is detected. I can see that the code > fires, but no extra date is visible. > > 2. ?Make the top row of dates invisible and leave the page header > dates visible all the time. > A: ?I have not figured out how to find out if the date is printing on > that first line. > > Any ides on the stopping points for either of these ideas, or totally > new solutions are appreciated. > > Debbie > > Sent from my iPhone > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From shamil at smsconsulting.spb.ru Sat Sep 11 17:37:21 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 12 Sep 2010 02:37:21 +0400 Subject: [AccessD] LightSwitch (was: Automating web page entry (was:Scrollbutton)) In-Reply-To: References: Message-ID: <4E19DD8B867840A2BF60868566A36581@nant> Hi Gustav -- Thank you for your additional notes. What about "Model First" approach? Does VSLS allows to use it in this Beta version? I mean to define my business conceptual model as a set of POCOs? A set of POCOs with some sample/test data hardcoded/stored in/loaded from plain text/delimited/xml/... files to not be "bound to" any real DBMS while working on prototype UI and business models? And to generate later database model from some of the classes of my POCOs set? Is it possible in this VSLS Beta version to keep/move all your object layer POCOs in a (set of) class library(-ies)? As far as I have got from VSLive presentation VSLS interacts with (EF and WCF RIA in this Beta version?) object layer via (and obviously(?) uses .NET Reflection to get information on object layer types etc.) I'm not sure how then CUD operations are supported/implemented? What .NET Framework interface is used for that? Or VSLS has got defined its own .NET interface/API/.NET Attributes? They should be intensively using .NET Attribites to keep meta-information, do they? Or they use special xml you mentioned to keep/interpret all meta-information even on run-time? <<< Most data is collected in a local lsml (LightSwitchML) file but it connects via the EF to nearly everything just like that. It is so flexible, and validation, error messages and so on is ready at hand with zero or extremely little code. Importantly, the EF let's you "remodel" any data source making it very easy to adapt and connect/relate different data sources - again with zero code; this feature alone is worth studying. >>> As one can guess (based on how MS usually designs development frameworks in VS on top of .NET Framework) lsml meta-description is used on design time, and it's used also to generate real C#/VB.NET code keeping/interpreting all the (non generated into code) meta-information on runtime in attributes. Yes, that should be it... What base level VS project type lies under VSLS project - an MS SilverLight front-end project? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, September 11, 2010 9:30 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] LightSwitch (was: Automating web page entry (was:Scrollbutton)) Hi Shamil I understand your concern, and you are right - it is not very clever to chose a development tool where you may get trapped. However, as I see it, LS doesn't lock you out from any feature of Visual Studio. C# and VB.NET are at any point no more than a click or two away and you can create all the custom code and forms and reports you may need. Again, I'm convinced that the lack of true knowledge of databases is the main trap for amateur (including most super user style) developers. For us this trap is very distant. Because I feel that one of the fun parts of designing an application is thinking out the perfect data model, I spend much time on this, and I've seen several times that exactly doing so makes it possible to twist and expand the application in any direction the client later may think of. Or - putting it the other way - you have all experienced the deep breath you take when you study an inherited application where the client asks you to make what seems a minor modification while you can see that issues are piling up because of initial bad design. Thanks for link. Interesting comment indeed. /gustav <<< snip >>> From dw-murphy at cox.net Sat Sep 11 18:11:49 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 11 Sep 2010 16:11:49 -0700 Subject: [AccessD] VM dev machines In-Reply-To: <4C8BFB2F.1030206@colbyconsulting.com> References: <4C8BFB2F.1030206@colbyconsulting.com> Message-ID: <482D1D78E6544F0EB1BADB2016C22BA6@murphy3234aaf1> Hi John, I use VMs for hosting the different versions of Office and to set up Client/Server pairs if I have a client app that runs agains a server backend. I use Vmware Workstation which allows you to set up Teams. In my case a Team consists of the client app development environment and the Server side on another machine. When you open a team they both fire up with network connections in place. For one situation I have SQL server 2000 running on Windows Server 2003 (which is the Clients set up) and the Front end running on Windows XP with Office 2007. I really like this capability. I probably have 10 different VMs, any of which can be cloned to create a test environment or some unique setup. This has been really powerfull for our situation. We sell 2 runtime products built in Access. I have virtual machines set up with different combinations of clean OS's and OS's with different versions of Office on them to test our installations on. VMs have been very productive for me. With all the discussion of Lightswitch I am thinking of building a Windows 7 VM to put Lightswitch and Razon on. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 11, 2010 2:57 PM To: Access Developers discussion and problem solving; VBA Subject: [AccessD] VM dev machines Is anyone doing development primarily in a virtual machine? Anyone using VMs to test against specific environments - Windows XP, Office 2000 etc? I have a dual core Dell laptop that is beginning to feel long in the tooth, though it is less than 3 years old. I think it is just the old "too much crap" syndrome, but I am wondering if I could move into a VM, perhaps using XP as the OS and even though it would only use one of the cores, it might just be more responsive. Or maybe not. I do know that a new laptop is not in the cards any time soon. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Sep 11 21:16:16 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 11 Sep 2010 22:16:16 -0400 Subject: [AccessD] LightSwitch - first impressions Message-ID: <4C8C37F0.3070909@colbyconsulting.com> 1) Slow! I am doing development in VS2008 / C#. Compiles on my dual core laptop are net speedy, but much faster than this. Compiles on my quad core server are MUCH faster, but I don't have LightSwitch installed there yet.. I have not installed and used VS 2010 on my laptop yet so I don't really have an apples to apples comparison, but it (LightSwitch) is slow compiling, and slow loading the initial screen. Very slow! "Hope this ain't the reality" slow. 2) Ugly The default is definitely not going to win any design awards. But it does work. 3) Easy so far I defined about 8 tables so far, and two forms for data entry of "type" lists. To build a data entry form I just clicked the button and selected the table. Form done, and in the menu. Now these are just single field list type forms. Nothing too difficult. I have to build out the forms to populate these list tables so that I can move on to the next level, a form that uses combos to select items from these lists for FK fields in that table. That is where the rubber meets the road. We'll see. Questions: 1) Where is the data? AFAICT it uses SQL Server Express, but there is no new instance of SQl Server Express in my SSMS and the one that is there does not show a new database for this project. So where is it putting the data. Please tell me it isn't doing something stupid like storing to XML. 2) How do I publish this thing. 3) How do you add classes, forms etc. There is nothing in the right click menu like there is in VS. This is obviously a shell over VS. Hmmm... Fun so far! -- John W. Colby www.ColbyConsulting.com From gustav at cactus.dk Sun Sep 12 03:39:05 2010 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 12 Sep 2010 10:39:05 +0200 Subject: [AccessD] LightSwitch - first impressions Message-ID: Hi John Well, as one remarks here: http://ayende.com/Blog/archive/2010/08/25/analyzing-lightswitch-data-access-behavior.aspx what is "slow" and what is "acceptable"? Besides, this is a beta and as you can read from the comment from Eric Erhardt of the LightSwitch Team they are working on it. Did you enjoy the "LightSwitch Guided Tour" here: http://msdn.microsoft.com/en-us/library/ff852838.aspx It covers publishing too. Here is what I've located about the default data storage: http://www.dougseven.com/blog/2010/08/data-storage-in-visual-studio-lightswitch.html Seems to be a local mdf run by your local SQL Server Express: ..\Projects\YourApplication\YourApplication\Bin\Data\ApplicationDatabase.mdf Though I haven't played with this, as for any "custom" code outside the LS scope, I guess you create that the normal way in VS and right-click your LS solution and select Add Item ... /gustav >>> jwcolby at colbyconsulting.com 12-09-2010 04:16 >>> 1) Slow! I am doing development in VS2008 / C#. Compiles on my dual core laptop are net speedy, but much faster than this. Compiles on my quad core server are MUCH faster, but I don't have LightSwitch installed there yet.. I have not installed and used VS 2010 on my laptop yet so I don't really have an apples to apples comparison, but it (LightSwitch) is slow compiling, and slow loading the initial screen. Very slow! "Hope this ain't the reality" slow. 2) Ugly The default is definitely not going to win any design awards. But it does work. 3) Easy so far I defined about 8 tables so far, and two forms for data entry of "type" lists. To build a data entry form I just clicked the button and selected the table. Form done, and in the menu. Now these are just single field list type forms. Nothing too difficult. I have to build out the forms to populate these list tables so that I can move on to the next level, a form that uses combos to select items from these lists for FK fields in that table. That is where the rubber meets the road. We'll see. Questions: 1) Where is the data? AFAICT it uses SQL Server Express, but there is no new instance of SQl Server Express in my SSMS and the one that is there does not show a new database for this project. So where is it putting the data. Please tell me it isn't doing something stupid like storing to XML. 2) How do I publish this thing. 3) How do you add classes, forms etc. There is nothing in the right click menu like there is in VS. This is obviously a shell over VS. Hmmm... Fun so far! -- John W. Colby www.ColbyConsulting.com From gustav at cactus.dk Sun Sep 12 03:52:40 2010 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 12 Sep 2010 10:52:40 +0200 Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scrollbutton)) Message-ID: Hi Shamil I feel that what you are asking for here is beyond the scope of LightSwitch. POCO and unit testing seem not to be incorporated or considered. By the way, I located a good explanation on POCO (Plain Old CLR Object) here: http://blogs.msdn.com/b/jkowalski/archive/2008/09/09/persistence-ignorance-poco-adapter-for-entity-framework-v1.aspx Please read my post to JC about the data storage. I can't answer your other questions - I'm still working my way through the tutorials in my little spare-time ... so later maybe! /gustav >>> shamil at smsconsulting.spb.ru 12-09-2010 00:37 >>> Hi Gustav -- Thank you for your additional notes. What about "Model First" approach? Does VSLS allows to use it in this Beta version? I mean to define my business conceptual model as a set of POCOs? A set of POCOs with some sample/test data hardcoded/stored in/loaded from plain text/delimited/xml/... files to not be "bound to" any real DBMS while working on prototype UI and business models? And to generate later database model from some of the classes of my POCOs set? Is it possible in this VSLS Beta version to keep/move all your object layer POCOs in a (set of) class library(-ies)? As far as I have got from VSLive presentation VSLS interacts with (EF and WCF RIA in this Beta version?) object layer via (and obviously(?) uses .NET Reflection to get information on object layer types etc.) I'm not sure how then CUD operations are supported/implemented? What .NET Framework interface is used for that? Or VSLS has got defined its own .NET interface/API/.NET Attributes? They should be intensively using .NET Attribites to keep meta-information, do they? Or they use special xml you mentioned to keep/interpret all meta-information even on run-time? <<< Most data is collected in a local lsml (LightSwitchML) file but it connects via the EF to nearly everything just like that. It is so flexible, and validation, error messages and so on is ready at hand with zero or extremely little code. Importantly, the EF let's you "remodel" any data source making it very easy to adapt and connect/relate different data sources - again with zero code; this feature alone is worth studying. >>> As one can guess (based on how MS usually designs development frameworks in VS on top of .NET Framework) lsml meta-description is used on design time, and it's used also to generate real C#/VB.NET code keeping/interpreting all the (non generated into code) meta-information on runtime in attributes. Yes, that should be it... What base level VS project type lies under VSLS project - an MS SilverLight front-end project? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, September 11, 2010 9:30 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] LightSwitch (was: Automating web page entry (was:Scrollbutton)) Hi Shamil I understand your concern, and you are right - it is not very clever to chose a development tool where you may get trapped. However, as I see it, LS doesn't lock you out from any feature of Visual Studio. C# and VB.NET are at any point no more than a click or two away and you can create all the custom code and forms and reports you may need. Again, I'm convinced that the lack of true knowledge of databases is the main trap for amateur (including most super user style) developers. For us this trap is very distant. Because I feel that one of the fun parts of designing an application is thinking out the perfect data model, I spend much time on this, and I've seen several times that exactly doing so makes it possible to twist and expand the application in any direction the client later may think of. Or - putting it the other way - you have all experienced the deep breath you take when you study an inherited application where the client asks you to make what seems a minor modification while you can see that issues are piling up because of initial bad design. Thanks for link. Interesting comment indeed. /gustav From shamil at smsconsulting.spb.ru Sun Sep 12 04:44:57 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 12 Sep 2010 13:44:57 +0400 Subject: [AccessD] LightSwitch (was: Automating web page entry (was:Scrollbutton)) In-Reply-To: References: Message-ID: <7637A509AB074AEC90DC5458F2B41994@nant> Hi Gustav -- Thank you for your reply. No, I didn't expect quick feedback on my questions. I have just put them here to mark what I'd like to see available in LightSwitch to consider it as a "serious" development tool. I have read somewhere that the next Beta of LightSwitch should have MS Access databases available as datasources? Via EF? That would be really useful if they implement something like EF provider for MS Access databases... POCO article - yes, looks interesting but too complicated IMO. I didn't yet check how POCO ORM is done in VS2010 EF but as far as I have got known it's done there smoothly with most of infrastructure/plumbing ORM code "buried" in EF and related classlibs - is it right? ... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, September 12, 2010 12:53 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] LightSwitch (was: Automating web page entry (was:Scrollbutton)) Hi Shamil I feel that what you are asking for here is beyond the scope of LightSwitch. POCO and unit testing seem not to be incorporated or considered. By the way, I located a good explanation on POCO (Plain Old CLR Object) here: http://blogs.msdn.com/b/jkowalski/archive/2008/09/09/persistence-ignorance-p oco-adapter-for-entity-framework-v1.aspx Please read my post to JC about the data storage. I can't answer your other questions - I'm still working my way through the tutorials in my little spare-time ... so later maybe! /gustav >>> shamil at smsconsulting.spb.ru 12-09-2010 00:37 >>> Hi Gustav -- Thank you for your additional notes. What about "Model First" approach? Does VSLS allows to use it in this Beta version? I mean to define my business conceptual model as a set of POCOs? A set of POCOs with some sample/test data hardcoded/stored in/loaded from plain text/delimited/xml/... files to not be "bound to" any real DBMS while working on prototype UI and business models? And to generate later database model from some of the classes of my POCOs set? Is it possible in this VSLS Beta version to keep/move all your object layer POCOs in a (set of) class library(-ies)? As far as I have got from VSLive presentation VSLS interacts with (EF and WCF RIA in this Beta version?) object layer via (and obviously(?) uses .NET Reflection to get information on object layer types etc.) I'm not sure how then CUD operations are supported/implemented? What .NET Framework interface is used for that? Or VSLS has got defined its own .NET interface/API/.NET Attributes? They should be intensively using .NET Attribites to keep meta-information, do they? Or they use special xml you mentioned to keep/interpret all meta-information even on run-time? <<< Most data is collected in a local lsml (LightSwitchML) file but it connects via the EF to nearly everything just like that. It is so flexible, and validation, error messages and so on is ready at hand with zero or extremely little code. Importantly, the EF let's you "remodel" any data source making it very easy to adapt and connect/relate different data sources - again with zero code; this feature alone is worth studying. >>> As one can guess (based on how MS usually designs development frameworks in VS on top of .NET Framework) lsml meta-description is used on design time, and it's used also to generate real C#/VB.NET code keeping/interpreting all the (non generated into code) meta-information on runtime in attributes. Yes, that should be it... What base level VS project type lies under VSLS project - an MS SilverLight front-end project? Thank you. -- Shamil <<< snip >>> From marklbreen at gmail.com Sun Sep 12 06:21:56 2010 From: marklbreen at gmail.com (Mark Breen) Date: Sun, 12 Sep 2010 12:21:56 +0100 Subject: [AccessD] VM dev machines In-Reply-To: <482D1D78E6544F0EB1BADB2016C22BA6@murphy3234aaf1> References: <4C8BFB2F.1030206@colbyconsulting.com> <482D1D78E6544F0EB1BADB2016C22BA6@murphy3234aaf1> Message-ID: Hello John, I have been playing with VM's since Virtual PC 2004. I love the concept and I have nearly 1 GB of various versions and flavours of VMs. On my main machine I customarily keep a library of preconfigured machines Win2k3, 2k8, xp, vista, Win7. But I keep also versions of the following 2k8 with SQL Server 2008 2k8 with SQL Server 2008 R2 Win2k3 with SQL Server 2005 win 2k3 with SQL 2005 and IIS etc etc What I want to let you know - and this is just my experience - is that the performance of these VM's is fine for testing a concept, or even working for 30 minutes, but using Remote DeskTop, I find the UI experience to be somewhere between bad and dreadful. There is a lag, quarter or half second, nothing to worry about then you are remoting in to check something, but I could not use it for regular work. I have a win7 machine that I use for PhotoShop work, and while I am glad I do not have to install PhotoShop, it is pretty slow. I recently installed balsamiq on the Win7 machine also and found the lag to be annoying. I had really hoped I could have a dev machine with just the basics installed but I found that my main machine, with 20 - 50 applications is still a more pleasant UI experience than a spotlessly clean vm machine. Note, I am only complaining bout the UI experience here, I would be happy to use any VM as a backend db server or iis server. BTW the machine that I am running these on has 12 GB ram, and is a 2.66 i7 processor, and I am allocating 4 GB ram to the VM, so there should be enough HP in there. My suggestion for your laptop is 1) ghost it 2) backup up everything 3) re-installed Win7 or XP which ever you prefer 4) install the bare minimun of applications 5) you will have a lightening fast machine 6) optional: I would love to know how it will perform if you refuse to let MS apply any updates. I feel that after I apply the updates my machines slow down. 7) optional2: would you be brave enough to use it with no av, no spyware at all? I would not but I do want to try that some day also. Mark On 12 September 2010 00:11, Doug Murphy wrote: > Hi John, > > I use VMs for hosting the different versions of Office and to set up > Client/Server pairs if I have a client app that runs agains a server > backend. I use Vmware Workstation which allows you to set up Teams. In my > case a Team consists of the client app development environment and the > Server side on another machine. When you open a team they both fire up with > network connections in place. For one situation I have SQL server 2000 > running on Windows Server 2003 (which is the Clients set up) and the Front > end running on Windows XP with Office 2007. I really like this capability. > I > probably have 10 different VMs, any of which can be cloned to create a test > environment or some unique setup. This has been really powerfull for our > situation. > > We sell 2 runtime products built in Access. I have virtual machines set up > with different combinations of clean OS's and OS's with different versions > of Office on them to test our installations on. VMs have been very > productive for me. > > With all the discussion of Lightswitch I am thinking of building a Windows > 7 > VM to put Lightswitch and Razon on. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Saturday, September 11, 2010 2:57 PM > To: Access Developers discussion and problem solving; VBA > Subject: [AccessD] VM dev machines > > Is anyone doing development primarily in a virtual machine? Anyone using > VMs > to test against specific environments - Windows XP, Office 2000 etc? > > I have a dual core Dell laptop that is beginning to feel long in the tooth, > though it is less than 3 years old. I think it is just the old "too much > crap" syndrome, but I am wondering if I could move into a VM, perhaps using > XP as the OS and even though it would only use one of the cores, it might > just be more responsive. Or maybe not. > > I do know that a new laptop is not in the cards any time soon. > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From gustav at cactus.dk Sun Sep 12 07:05:57 2010 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 12 Sep 2010 14:05:57 +0200 Subject: [AccessD] LightSwitch (was: Automating web page entry (was: Scrollbutton)) Message-ID: Hi Shamil I'll keep an eye on this. Last week we changed to MAPS for Developers and Friday I received DVDs and keys for VS 2010 but haven't had the time to install it yet. /gustav >>> shamil at smsconsulting.spb.ru 12-09-2010 11:44 >>> Hi Gustav -- Thank you for your reply. No, I didn't expect quick feedback on my questions. I have just put them here to mark what I'd like to see available in LightSwitch to consider it as a "serious" development tool. I have read somewhere that the next Beta of LightSwitch should have MS Access databases available as datasources? Via EF? That would be really useful if they implement something like EF provider for MS Access databases... POCO article - yes, looks interesting but too complicated IMO. I didn't yet check how POCO ORM is done in VS2010 EF but as far as I have got known it's done there smoothly with most of infrastructure/plumbing ORM code "buried" in EF and related classlibs - is it right? ... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, September 12, 2010 12:53 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] LightSwitch (was: Automating web page entry (was:Scrollbutton)) Hi Shamil I feel that what you are asking for here is beyond the scope of LightSwitch. POCO and unit testing seem not to be incorporated or considered. By the way, I located a good explanation on POCO (Plain Old CLR Object) here: http://blogs.msdn.com/b/jkowalski/archive/2008/09/09/persistence-ignorance-poco-adapter-for-entity-framework-v1.aspx Please read my post to JC about the data storage. I can't answer your other questions - I'm still working my way through the tutorials in my little spare-time ... so later maybe! /gustav From jwcolby at colbyconsulting.com Sun Sep 12 12:12:58 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 12 Sep 2010 13:12:58 -0400 Subject: [AccessD] LightSwitch - first impressions In-Reply-To: References: Message-ID: <4C8D0A1A.9030204@colbyconsulting.com> Gustav, There is no criticism in what I wrote only my first impression. I understand that this is a beta and (if it survives) things will get better. I hope it does survive; I look forward to using it. John W. Colby www.ColbyConsulting.com On 9/12/2010 4:39 AM, Gustav Brock wrote: > Hi John > > Well, as one remarks here: > http://ayende.com/Blog/archive/2010/08/25/analyzing-lightswitch-data-access-behavior.aspx > > what is "slow" and what is "acceptable"? Besides, this is a beta and as you can read from the comment from Eric Erhardt of the LightSwitch Team they are working on it. > > Did you enjoy the "LightSwitch Guided Tour" here: > http://msdn.microsoft.com/en-us/library/ff852838.aspx > > It covers publishing too. > > Here is what I've located about the default data storage: > http://www.dougseven.com/blog/2010/08/data-storage-in-visual-studio-lightswitch.html > > Seems to be a local mdf run by your local SQL Server Express: > ..\Projects\YourApplication\YourApplication\Bin\Data\ApplicationDatabase.mdf > > Though I haven't played with this, as for any "custom" code outside the LS scope, I guess you create that the normal way in VS and right-click your LS solution and select Add Item ... > > /gustav > > >>>> jwcolby at colbyconsulting.com 12-09-2010 04:16>>> > 1) Slow! > > I am doing development in VS2008 / C#. Compiles on my dual core laptop are net speedy, but much > faster than this. Compiles on my quad core server are MUCH faster, but I don't have LightSwitch > installed there yet.. > > I have not installed and used VS 2010 on my laptop yet so I don't really have an apples to apples > comparison, but it (LightSwitch) is slow compiling, and slow loading the initial screen. Very slow! > "Hope this ain't the reality" slow. > > 2) Ugly > > The default is definitely not going to win any design awards. But it does work. > > 3) Easy so far > > I defined about 8 tables so far, and two forms for data entry of "type" lists. To build a data > entry form I just clicked the button and selected the table. Form done, and in the menu. > > Now these are just single field list type forms. Nothing too difficult. I have to build out the > forms to populate these list tables so that I can move on to the next level, a form that uses combos > to select items from these lists for FK fields in that table. That is where the rubber meets the road. > > We'll see. > > Questions: > > 1) Where is the data? AFAICT it uses SQL Server Express, but there is no new instance of SQl Server > Express in my SSMS and the one that is there does not show a new database for this project. So > where is it putting the data. Please tell me it isn't doing something stupid like storing to XML. > > 2) How do I publish this thing. > > 3) How do you add classes, forms etc. There is nothing in the right click menu like there is in VS. > This is obviously a shell over VS. Hmmm... > > Fun so far! > From jwcolby at colbyconsulting.com Sun Sep 12 12:34:03 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 12 Sep 2010 13:34:03 -0400 Subject: [AccessD] LightSwitch - first impressions In-Reply-To: References: Message-ID: <4C8D0F0B.8070005@colbyconsulting.com> What confuses me is that I cannot see the database with SSMS. If it is on my machine, where do I go to see it in SMSS? The server should exist in the list of servers I can attach to, and once attached, my database should be in the db list. John W. Colby www.ColbyConsulting.com On 9/12/2010 4:39 AM, Gustav Brock wrote: > Hi John > > Well, as one remarks here: > http://ayende.com/Blog/archive/2010/08/25/analyzing-lightswitch-data-access-behavior.aspx > > what is "slow" and what is "acceptable"? Besides, this is a beta and as you can read from the comment from Eric Erhardt of the LightSwitch Team they are working on it. > > Did you enjoy the "LightSwitch Guided Tour" here: > http://msdn.microsoft.com/en-us/library/ff852838.aspx > > It covers publishing too. > > Here is what I've located about the default data storage: > http://www.dougseven.com/blog/2010/08/data-storage-in-visual-studio-lightswitch.html > > Seems to be a local mdf run by your local SQL Server Express: > ..\Projects\YourApplication\YourApplication\Bin\Data\ApplicationDatabase.mdf > > Though I haven't played with this, as for any "custom" code outside the LS scope, I guess you create that the normal way in VS and right-click your LS solution and select Add Item ... > > /gustav > > >>>> jwcolby at colbyconsulting.com 12-09-2010 04:16>>> > 1) Slow! > > I am doing development in VS2008 / C#. Compiles on my dual core laptop are net speedy, but much > faster than this. Compiles on my quad core server are MUCH faster, but I don't have LightSwitch > installed there yet.. > > I have not installed and used VS 2010 on my laptop yet so I don't really have an apples to apples > comparison, but it (LightSwitch) is slow compiling, and slow loading the initial screen. Very slow! > "Hope this ain't the reality" slow. > > 2) Ugly > > The default is definitely not going to win any design awards. But it does work. > > 3) Easy so far > > I defined about 8 tables so far, and two forms for data entry of "type" lists. To build a data > entry form I just clicked the button and selected the table. Form done, and in the menu. > > Now these are just single field list type forms. Nothing too difficult. I have to build out the > forms to populate these list tables so that I can move on to the next level, a form that uses combos > to select items from these lists for FK fields in that table. That is where the rubber meets the road. > > We'll see. > > Questions: > > 1) Where is the data? AFAICT it uses SQL Server Express, but there is no new instance of SQl Server > Express in my SSMS and the one that is there does not show a new database for this project. So > where is it putting the data. Please tell me it isn't doing something stupid like storing to XML. > > 2) How do I publish this thing. > > 3) How do you add classes, forms etc. There is nothing in the right click menu like there is in VS. > This is obviously a shell over VS. Hmmm... > > Fun so far! > From gustav at cactus.dk Sun Sep 12 13:14:23 2010 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 12 Sep 2010 20:14:23 +0200 Subject: [AccessD] LightSwitch - first impressions Message-ID: Hi John I think the mdf gets attached on-the-fly and detached when the client app closes. Just guessing ... But you can easily attach to an "external" database. The tutorial uses good old Northwind installed on your local SQL Express instance. /gustav >>> jwcolby at colbyconsulting.com 12-09-2010 19:34 >>> What confuses me is that I cannot see the database with SSMS. If it is on my machine, where do I go to see it in SMSS? The server should exist in the list of servers I can attach to, and once attached, my database should be in the db list. John W. Colby www.ColbyConsulting.com On 9/12/2010 4:39 AM, Gustav Brock wrote: > Hi John > > Well, as one remarks here: > http://ayende.com/Blog/archive/2010/08/25/analyzing-lightswitch-data-access-behavior.aspx > > what is "slow" and what is "acceptable"? Besides, this is a beta and as you can read from the comment from Eric Erhardt of the LightSwitch Team they are working on it. > > Did you enjoy the "LightSwitch Guided Tour" here: > http://msdn.microsoft.com/en-us/library/ff852838.aspx > > It covers publishing too. > > Here is what I've located about the default data storage: > http://www.dougseven.com/blog/2010/08/data-storage-in-visual-studio-lightswitch.html > > Seems to be a local mdf run by your local SQL Server Express: > ..\Projects\YourApplication\YourApplication\Bin\Data\ApplicationDatabase.mdf > > Though I haven't played with this, as for any "custom" code outside the LS scope, I guess you create that the normal way in VS and right-click your LS solution and select Add Item ... > > /gustav From rockysmolin at bchacc.com Sun Sep 12 14:29:45 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 12 Sep 2010 12:29:45 -0700 Subject: [AccessD] OT: Sunday Message-ID: http://www.leo.org/information/freizeit/fun/programmevol.html Rocky From vbacreations at gmail.com Sun Sep 12 18:57:31 2010 From: vbacreations at gmail.com (William Benson (VBACreations.com)) Date: Sun, 12 Sep 2010 19:57:31 -0400 Subject: [AccessD] Being sure I have the correct help files Message-ID: I highlighted TransferSpreadsheet in a VBA expression pressed F1 to get Help. When I clicked on link to AcSpreadsheetType, the list showed arguments for versions of Excel through acSpreadsheetTypeExcel9. Yet I have seen code which used acSpreadsheetTypeExcel12 and acSpreadsheetTypeExcel12Xml Left me wondering what is going on. The list is copyrighted 2010, and says it is coming from Access 2010 Developer's Reference> Access Object Model Reference > Enumerations. Is there a better source for Object Model enumerations than Microsoft's own documentation? If it is a problem with my installation I would love to correct it. Thank you. From rockysmolin at bchacc.com Sun Sep 12 19:08:42 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 12 Sep 2010 17:08:42 -0700 Subject: [AccessD] Microsoft Access has stopped working Message-ID: <7923FC842870411FA38F6CE01E49AEA7@HAL9005> Dear List: I have an app developed in 2003. Works fine. When I run it with Access 2007, one of the reports craps out with the cryptic message Microsoft Access has stopped working (windows is looking for a solution tot he problem - good luck). It does it's repair thing but no cigar. I have no idea where to even being looking. I don't really want to convert this app to 2007 because it's a commercial product and I don't know where it will end up - could be 2003, 2007, or I suppose, 2010. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Sun Sep 12 19:14:31 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 12 Sep 2010 17:14:31 -0700 Subject: [AccessD] Microsoft Access has stopped working In-Reply-To: <7923FC842870411FA38F6CE01E49AEA7@HAL9005> References: <7923FC842870411FA38F6CE01E49AEA7@HAL9005> Message-ID: <3F16CA8A18FD4EDE800492D03106B33A@HAL9005> P.S. Just converted to a 2007 accdb - same problem. I'm running SP2. Will check for updates now. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, September 12, 2010 5:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Microsoft Access has stopped working Dear List: I have an app developed in 2003. Works fine. When I run it with Access 2007, one of the reports craps out with the cryptic message Microsoft Access has stopped working (windows is looking for a solution tot he problem - good luck). It does it's repair thing but no cigar. I have no idea where to even being looking. I don't really want to convert this app to 2007 because it's a commercial product and I don't know where it will end up - could be 2003, 2007, or I suppose, 2010. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From vbacreations at gmail.com Sun Sep 12 21:54:59 2010 From: vbacreations at gmail.com (William Benson (VBACreations.com)) Date: Sun, 12 Sep 2010 22:54:59 -0400 Subject: [AccessD] Microsoft Access has stopped working In-Reply-To: <3F16CA8A18FD4EDE800492D03106B33A@HAL9005> References: <7923FC842870411FA38F6CE01E49AEA7@HAL9005> <3F16CA8A18FD4EDE800492D03106B33A@HAL9005> Message-ID: This happens to me when I am running a union query and something about the names of fields or potentially the number of fields or one of the field names in a subquery is not kosher. I have seen Ac2010 be more sensitive than even earlier versions of Access, which tended to be more liberal for whatever reason. In other words, Access thinks a query is too complex, mainly because it is not structured correctly. Perhaps the query plan fails, I don't know. I used to get messages that the query was too complex at which point I usually knew the problem was design, not data. I hate to suggest this because it could be a waste of time if you are already sure of your queries... BUT ... try unraveling any complex series of queries and testing each one by one in the design view then data sheet view. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, September 12, 2010 8:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Microsoft Access has stopped working P.S. Just converted to a 2007 accdb - same problem. I'm running SP2. Will check for updates now. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, September 12, 2010 5:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Microsoft Access has stopped working Dear List: I have an app developed in 2003. Works fine. When I run it with Access 2007, one of the reports craps out with the cryptic message Microsoft Access has stopped working (windows is looking for a solution tot he problem - good luck). It does it's repair thing but no cigar. I have no idea where to even being looking. I don't really want to convert this app to 2007 because it's a commercial product and I don't know where it will end up - could be 2003, 2007, or I suppose, 2010. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sun Sep 12 22:23:17 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 12 Sep 2010 20:23:17 -0700 Subject: [AccessD] Microsoft Access has stopped working In-Reply-To: References: <7923FC842870411FA38F6CE01E49AEA7@HAL9005><3F16CA8A18FD4EDE800492D03106B33A@HAL9005> Message-ID: <7893619826CA495D9CEFBF3D17E18F12@HAL9005> Well the report was based on a table - pretty simple. But it had some CBF which was turning a page break on and off and adjusting the Keep Together property in a Group Footer Format event. It was also setting the group level control source in the Open event. I figured out a way to live without all of these things so the report now runs in 2007. Problem not solved, but avoided. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Benson (VBACreations.com) Sent: Sunday, September 12, 2010 7:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Microsoft Access has stopped working This happens to me when I am running a union query and something about the names of fields or potentially the number of fields or one of the field names in a subquery is not kosher. I have seen Ac2010 be more sensitive than even earlier versions of Access, which tended to be more liberal for whatever reason. In other words, Access thinks a query is too complex, mainly because it is not structured correctly. Perhaps the query plan fails, I don't know. I used to get messages that the query was too complex at which point I usually knew the problem was design, not data. I hate to suggest this because it could be a waste of time if you are already sure of your queries... BUT ... try unraveling any complex series of queries and testing each one by one in the design view then data sheet view. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, September 12, 2010 8:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Microsoft Access has stopped working P.S. Just converted to a 2007 accdb - same problem. I'm running SP2. Will check for updates now. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, September 12, 2010 5:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Microsoft Access has stopped working Dear List: I have an app developed in 2003. Works fine. When I run it with Access 2007, one of the reports craps out with the cryptic message Microsoft Access has stopped working (windows is looking for a solution tot he problem - good luck). It does it's repair thing but no cigar. I have no idea where to even being looking. I don't really want to convert this app to 2007 because it's a commercial product and I don't know where it will end up - could be 2003, 2007, or I suppose, 2010. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sun Sep 12 22:40:31 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 12 Sep 2010 20:40:31 -0700 Subject: [AccessD] Archive Search Function Not Working? Message-ID: <9A71D281EBF445BE996C147D6BC0E45F@HAL9005> I tried to retrieve something from the archives but the search function doesn't seem to be working for me. Any search I enter comes up with no matches. I'm using Firefox - don't know if that has any bearing. Anyone else experiencing this? Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From hkotsch at arcor.de Mon Sep 13 02:36:43 2010 From: hkotsch at arcor.de (Helmut Kotsch) Date: Mon, 13 Sep 2010 09:36:43 +0200 Subject: [AccessD] Microsoft Access has stopped working In-Reply-To: <7923FC842870411FA38F6CE01E49AEA7@HAL9005> Message-ID: Have you checked carefully the validity of the data in the affected tables? I had similar problems in access 2000. In a field that was later on grouped and analyzed there had invalid entries because there was no validity checking during data entry. The later processing depended on either numerical data or the letters "T", "U", "K", "W" or "V". The result was something like too complex query and stopped. It turned out that there have been inputs like "o" or "blank and o" instead of 0. So access didn't know what to do with these items after grouping and gave up without further description. I know that validity checking of data during entry would have prevented this problem but it wasn't there. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Rocky Smolin Gesendet: Montag, 13. September 2010 02:09 An: 'Access Developers discussion and problem solving' Betreff: [AccessD] Microsoft Access has stopped working Dear List: I have an app developed in 2003. Works fine. When I run it with Access 2007, one of the reports craps out with the cryptic message Microsoft Access has stopped working (windows is looking for a solution tot he problem - good luck). It does it's repair thing but no cigar. I have no idea where to even being looking. I don't really want to convert this app to 2007 because it's a commercial product and I don't know where it will end up - could be 2003, 2007, or I suppose, 2010. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From jwcolby at colbyconsulting.com Mon Sep 13 05:08:59 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 13 Sep 2010 06:08:59 -0400 Subject: [AccessD] Archive Search Function Not Working? In-Reply-To: <9A71D281EBF445BE996C147D6BC0E45F@HAL9005> References: <9A71D281EBF445BE996C147D6BC0E45F@HAL9005> Message-ID: <4C8DF83B.8010000@colbyconsulting.com> Yep, I tried the other day with same results. I posted here but no one responded. John W. Colby www.ColbyConsulting.com On 9/12/2010 11:40 PM, Rocky Smolin wrote: > I tried to retrieve something from the archives but the search function > doesn't seem to be working for me. Any search I enter comes up with no > matches. I'm using Firefox - don't know if that has any bearing. > > > > Anyone else experiencing this? > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > From jwcolby at colbyconsulting.com Mon Sep 13 08:31:11 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 13 Sep 2010 09:31:11 -0400 Subject: [AccessD] OT: Sunday In-Reply-To: References: Message-ID: <4C8E279F.3000208@colbyconsulting.com> ROTFL. But I don't see the seasoned professional sinking events. ;) John W. Colby www.ColbyConsulting.com On 9/12/2010 3:29 PM, Rocky Smolin wrote: > > http://www.leo.org/information/freizeit/fun/programmevol.html > > Rocky > From fuller.artful at gmail.com Mon Sep 13 09:41:40 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 13 Sep 2010 10:41:40 -0400 Subject: [AccessD] References Question Message-ID: Access 2007... I have some code that wants to create a new FileSystemObject, but I don't know which library it's in. What lib should I reference to pick this up? I have inherited code that works fine in A2k3, that calls a subs/func that is not part of the app code, so it must reside in some DLL or other, or alternatively it could be an example of code declared obsolete by the friendly folks at MS. In A2k3 the code runs fine, but not in A2k7. The line of concern is: a) Clipboard_SetData This same app also referenced WorkDb before opening a DAO recordset, which I managed to figure out how to translate. This app also contains some code borrowed from ADH called PickPathFile, which is supposed to open the common dialog to browse around and select either a folder or a file within a folder. Can someone advise how to achieve this same functionality in A2k7? TIA, Arthur From fuller.artful at gmail.com Mon Sep 13 09:43:14 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 13 Sep 2010 10:43:14 -0400 Subject: [AccessD] Immediate Window question Message-ID: A2k7.... Somehow I moved the Immediate window away from its default position, and I cannot figure out how to put it back. Simply dragging it there doesn't work. Any suggestions? TIA, Arthur From Chester_Kaup at kindermorgan.com Mon Sep 13 09:46:44 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 13 Sep 2010 09:46:44 -0500 Subject: [AccessD] Count in a query Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C192553B8FE@houex1.kindermorgan.com> How can I get this query to return a count of 0 if there are no records returned? SELECT dbo_DSS_StatusChanges.Status, Count(dbo_DSS_StatusChanges.Status) AS [Active CO2 Injector Count] FROM [qry Active Injectors Max Status Date] INNER JOIN dbo_DSS_StatusChanges ON ([qry Active Injectors Max Status Date].MaxOfStatusDate = dbo_DSS_StatusChanges.StatusDate) AND ([qry Active Injectors Max Status Date].Well_Number = dbo_DSS_StatusChanges.Completion_Name) GROUP BY dbo_DSS_StatusChanges.Status HAVING (((dbo_DSS_StatusChanges.Status)="CI")); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From fuller.artful at gmail.com Mon Sep 13 09:47:48 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 13 Sep 2010 10:47:48 -0400 Subject: [AccessD] Parent - subform control references Message-ID: Suppose I have a form containing two subforms, call them main_frm and fsub1 and fsub2. A couple of situations are of concern: 1. A control on fsub1 needs to obtain the value of a control on fsub2. 2. A control on main_frm obtains its value by multiplying the value of an fsub1 control by a value on fsub2. I've forgotten how these references work. Can someone remind me? I also remember seeing a document that spelled all this out explicitly but I can't locate it now that I need it. Has anyone got a link to said document? TIA, Arthur From Lambert.Heenan at chartisinsurance.com Mon Sep 13 10:04:17 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 13 Sep 2010 11:04:17 -0400 Subject: [AccessD] Count in a query In-Reply-To: <0B2BF8524B73A248A2F1B81BA751ED3C192553B8FE@houex1.kindermorgan.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C192553B8FE@houex1.kindermorgan.com> Message-ID: Perhaps... SELECT dbo_DSS_StatusChanges.Status, Nz(Count(dbo_DSS_StatusChanges.Status),0) AS [Active CO2 Injector Count] FROM [qry Active... Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 13, 2010 10:47 AM To: Access Developers discussion and problem solving Subject: [AccessD] Count in a query How can I get this query to return a count of 0 if there are no records returned? SELECT dbo_DSS_StatusChanges.Status, Count(dbo_DSS_StatusChanges.Status) AS [Active CO2 Injector Count] FROM [qry Active Injectors Max Status Date] INNER JOIN dbo_DSS_StatusChanges ON ([qry Active Injectors Max Status Date].MaxOfStatusDate = dbo_DSS_StatusChanges.StatusDate) AND ([qry Active Injectors Max Status Date].Well_Number = dbo_DSS_StatusChanges.Completion_Name) GROUP BY dbo_DSS_StatusChanges.Status HAVING (((dbo_DSS_StatusChanges.Status)="CI")); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Mon Sep 13 10:15:19 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 13 Sep 2010 11:15:19 -0400 Subject: [AccessD] Immediate Window question References: Message-ID: <60B61D8B73FD4CC5AC77FD6AAE794FA9@salvationomc4p> Arthur, try double-clicking the title bar. Susan h. > A2k7.... > > Somehow I moved the Immediate window away from its default position, and I > cannot figure out how to put it back. Simply dragging it there doesn't > work. > Any suggestions? From Lambert.Heenan at chartisinsurance.com Mon Sep 13 10:21:16 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 13 Sep 2010 11:21:16 -0400 Subject: [AccessD] Immediate Window question In-Reply-To: References: Message-ID: Try this... http://www.jkp-ads.com/articles/VBEDocking.asp Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, September 13, 2010 10:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Immediate Window question A2k7.... Somehow I moved the Immediate window away from its default position, and I cannot figure out how to put it back. Simply dragging it there doesn't work. Any suggestions? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ab-mi at post3.tele.dk Mon Sep 13 10:26:23 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 13 Sep 2010 17:26:23 +0200 Subject: [AccessD] References Question In-Reply-To: References: Message-ID: Hi Arthur, The library I use for FileSystemObject is: Microsoft Scripting Runtime Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Arthur Fuller Sendt: 13. september 2010 16:42 Til: Access Developers discussion and problem solving Emne: [AccessD] References Question Access 2007... I have some code that wants to create a new FileSystemObject, but I don't know which library it's in. What lib should I reference to pick this up? I have inherited code that works fine in A2k3, that calls a subs/func that is not part of the app code, so it must reside in some DLL or other, or alternatively it could be an example of code declared obsolete by the friendly folks at MS. In A2k3 the code runs fine, but not in A2k7. The line of concern is: a) Clipboard_SetData This same app also referenced WorkDb before opening a DAO recordset, which I managed to figure out how to translate. This app also contains some code borrowed from ADH called PickPathFile, which is supposed to open the common dialog to browse around and select either a folder or a file within a folder. Can someone advise how to achieve this same functionality in A2k7? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Mon Sep 13 10:27:27 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 13 Sep 2010 10:27:27 -0500 Subject: [AccessD] Count in a query In-Reply-To: References: <0B2BF8524B73A248A2F1B81BA751ED3C192553B8FE@houex1.kindermorgan.com> Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C192553B92E@houex1.kindermorgan.com> Tried that with no success. What I just tried that worked was to do a second query using count(*). Maybe not the best solution but it works. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, September 13, 2010 10:04 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Count in a query Perhaps... SELECT dbo_DSS_StatusChanges.Status, Nz(Count(dbo_DSS_StatusChanges.Status),0) AS [Active CO2 Injector Count] FROM [qry Active... Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 13, 2010 10:47 AM To: Access Developers discussion and problem solving Subject: [AccessD] Count in a query How can I get this query to return a count of 0 if there are no records returned? SELECT dbo_DSS_StatusChanges.Status, Count(dbo_DSS_StatusChanges.Status) AS [Active CO2 Injector Count] FROM [qry Active Injectors Max Status Date] INNER JOIN dbo_DSS_StatusChanges ON ([qry Active Injectors Max Status Date].MaxOfStatusDate = dbo_DSS_StatusChanges.StatusDate) AND ([qry Active Injectors Max Status Date].Well_Number = dbo_DSS_StatusChanges.Completion_Name) GROUP BY dbo_DSS_StatusChanges.Status HAVING (((dbo_DSS_StatusChanges.Status)="CI")); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Sep 13 10:30:29 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 13 Sep 2010 11:30:29 -0400 Subject: [AccessD] Immediate Window question In-Reply-To: <60B61D8B73FD4CC5AC77FD6AAE794FA9@salvationomc4p> References: <60B61D8B73FD4CC5AC77FD6AAE794FA9@salvationomc4p> Message-ID: Thanks! On Mon, Sep 13, 2010 at 11:15 AM, Susan Harkins wrote: > Arthur, try double-clicking the title bar. > > Susan h. > > > From fuller.artful at gmail.com Mon Sep 13 10:31:04 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 13 Sep 2010 11:31:04 -0400 Subject: [AccessD] Immediate Window question In-Reply-To: References: Message-ID: Thanks, Lambert! On Mon, Sep 13, 2010 at 11:21 AM, Heenan, Lambert < Lambert.Heenan at chartisinsurance.com> wrote: > Try this... > > http://www.jkp-ads.com/articles/VBEDocking.asp > > Lambert > > From fuller.artful at gmail.com Mon Sep 13 10:34:03 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 13 Sep 2010 11:34:03 -0400 Subject: [AccessD] References Question In-Reply-To: References: Message-ID: Thanks, Asger. Not that it's relevant in my immediate case, but IIRC there could be problems invoking that lib in a corporate-security environment. Is that right? Again, not that it's relevant in my case, just wondering. Arthur On Mon, Sep 13, 2010 at 11:26 AM, Asger Blond wrote: > > Hi Arthur, > The library I use for FileSystemObject is: > Microsoft Scripting Runtime > Asger > > From ab-mi at post3.tele.dk Mon Sep 13 10:54:17 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 13 Sep 2010 17:54:17 +0200 Subject: [AccessD] References Question In-Reply-To: References: Message-ID: Yes, I remember having read that too. Don't know exactly what the security issue is. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Arthur Fuller Sendt: 13. september 2010 17:34 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] References Question Thanks, Asger. Not that it's relevant in my immediate case, but IIRC there could be problems invoking that lib in a corporate-security environment. Is that right? Again, not that it's relevant in my case, just wondering. Arthur On Mon, Sep 13, 2010 at 11:26 AM, Asger Blond wrote: > > Hi Arthur, > The library I use for FileSystemObject is: > Microsoft Scripting Runtime > Asger > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Mon Sep 13 11:48:32 2010 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 13 Sep 2010 09:48:32 -0700 Subject: [AccessD] Parent - subform control references In-Reply-To: References: Message-ID: would this work for the control on subform1? me.txtMyControl = Me.Parent.sbfrmMySubForm2.txtFieldNeeded For the 2nd situation: Me.txtMyTextfieldOnParent = nz(me.sbfrmSubForm1.txtField1,0) * nz(me.sbfrmSubForm2.txtField,0) On Mon, Sep 13, 2010 at 7:47 AM, Arthur Fuller wrote: > Suppose I have a form containing two subforms, call them main_frm and fsub1 > and fsub2. > > A couple of situations are of concern: > > 1. A control on fsub1 needs to obtain the value of a control on fsub2. > 2. A control on main_frm obtains its value by multiplying the value of an > fsub1 control by a value on fsub2. > > I've forgotten how these references work. Can someone remind me? I also > remember seeing a document that spelled all this out explicitly but I can't > locate it now that I need it. Has anyone got a link to said document? > > TIA, > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From adtp at airtelmail.in Mon Sep 13 12:22:11 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Mon, 13 Sep 2010 22:52:11 +0530 Subject: [AccessD] Parent - subform control references References: Message-ID: <01D178AF457244D3B2DB3B4491A6660C@personal4a8ede> Arthur, Sample code in VBA module of first subform (having control named TxtSub1) so as to fetch the value held by control named TxtSub2 on second subform belonging to subform control named fsub2 (located on the parent form) would be as follows: '================================= Me.TxtSub1 = Me.Parent("fsub2")("TxtSub2") '================================= Sample code in VBA module of parent form (having control named TxtMain) so as to fetch product of the values held by controls named TxtSub1 and TxtSub2 located on subforms belonging to subform controls named fsub1 and fsub2 respectively would be as follows: '========================================== Me.TxtMain = Me.fsub1("TxtSub1") * Me.fsub2("TxtSub2") '========================================== In this context, my sample db named FormsSubformsReference might be of interest to you. It is in access 2000 file format and is available at Rogers Access Library. Link - http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=45 Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Arthur Fuller To: Access Developers discussion and problem solving Sent: Monday, September 13, 2010 20:17 Subject: [AccessD] Parent - subform control references Suppose I have a form containing two subforms, call them main_frm and fsub1 and fsub2. A couple of situations are of concern: 1. A control on fsub1 needs to obtain the value of a control on fsub2. 2. A control on main_frm obtains its value by multiplying the value of an fsub1 control by a value on fsub2. I've forgotten how these references work. Can someone remind me? I also remember seeing a document that spelled all this out explicitly but I can't locate it now that I need it. Has anyone got a link to said document? TIA, Arthur From accessd at shaw.ca Mon Sep 13 13:26:31 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 13 Sep 2010 11:26:31 -0700 Subject: [AccessD] Archive Search Function Not Working? In-Reply-To: <4C8DF83B.8010000@colbyconsulting.com> References: <9A71D281EBF445BE996C147D6BC0E45F@HAL9005> <4C8DF83B.8010000@colbyconsulting.com> Message-ID: <96BDE89A26634D07B171342F210132E8@creativesystemdesigns.com> Hi John: This is the first time I have heard about this and have forwarded a request to Bryan to check it out or if I do not hear anything shortly I will investigate it myself. I did test the search features using an asterisk "*" and returned over 75K hits, so the data is still there but the search engine seems to not be functioning. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 13, 2010 3:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Archive Search Function Not Working? Yep, I tried the other day with same results. I posted here but no one responded. John W. Colby www.ColbyConsulting.com On 9/12/2010 11:40 PM, Rocky Smolin wrote: > I tried to retrieve something from the archives but the search function > doesn't seem to be working for me. Any search I enter comes up with no > matches. I'm using Firefox - don't know if that has any bearing. > > > > Anyone else experiencing this? > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Sep 13 13:52:39 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 13 Sep 2010 13:52:39 -0500 Subject: [AccessD] SQL Server Express - true skinny In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com><5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: Exactly. Which is part of the premise of the bound/unbound debate. With unbound forms, where data is written in a split second chunk, the stability of much higher user volume goes up tremendously! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 10, 2010 2:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SQL Server Express - true skinny Dan, That is more or less true, but the real bottle neck with a JET based DB has never been .LDB file operations. With JET, all processing is on the client side. The server acts as nothing more then a file share. The trick with keeping a connection open to the BE avoids the repeated closing/opening of the LDB and DB files and all the associated overhead with removing/adding an active user under JET. Some apps benefit from that, other not because they already maintain a connection one way or another. The problem can be further compounded if the server has OPLOCKS on (which allows client side caching of files). JET doesn't need this as the cache is already on the client side. So it's simply a wasted effort on the servers part. And by default, OPLOCKs is enabled on Windows servers. The real restriction of JET is just one of stability. With no server side process to perform a rollback if a disconnect occurs, anytime that happens in the middle of write operations your fair game for corruption. So by the time you get past 30 or 40 stations, it's just hard to keep the environment stable. To prove that point, you can easily run a read-only/reporting JET based app with 200+ users without issues. It's not an issue of performance, but one of stability. Jim. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Mon Sep 13 14:04:41 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 13 Sep 2010 14:04:41 -0500 Subject: [AccessD] OT: Sunday In-Reply-To: References: Message-ID: That was great! Thanks for sharing that Rocky! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, September 12, 2010 2:30 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Sunday http://www.leo.org/information/freizeit/fun/programmevol.html Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From BradM at blackforestltd.com Mon Sep 13 14:02:36 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 13 Sep 2010 14:02:36 -0500 Subject: [AccessD] The Famous Bound/Unbound Debate References: <4C8A743F.2080808@colbyconsulting.com><5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: All, Compared to most of you, I am a relative newcomer to the world of Access. Over the past few months, I have noticed a number of references to the Bound/Unbound debate. It sounds like this was a really hotly contested issue at one time and that now people almost joke about it. For us newcomers, it would be nice if someone could explain this issue at a high level and perhaps spell out the major pros and cons of each side of the debate. It is not my intent to start a Web-war, I would just like to better understand what is going on here. Thanks, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, September 13, 2010 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Express - true skinny Exactly. Which is part of the premise of the bound/unbound debate. With unbound forms, where data is written in a split second chunk, the stability of much higher user volume goes up tremendously! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 10, 2010 2:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SQL Server Express - true skinny Dan, That is more or less true, but the real bottle neck with a JET based DB has never been .LDB file operations. With JET, all processing is on the client side. The server acts as nothing more then a file share. The trick with keeping a connection open to the BE avoids the repeated closing/opening of the LDB and DB files and all the associated overhead with removing/adding an active user under JET. Some apps benefit from that, other not because they already maintain a connection one way or another. The problem can be further compounded if the server has OPLOCKS on (which allows client side caching of files). JET doesn't need this as the cache is already on the client side. So it's simply a wasted effort on the servers part. And by default, OPLOCKs is enabled on Windows servers. The real restriction of JET is just one of stability. With no server side process to perform a rollback if a disconnect occurs, anytime that happens in the middle of write operations your fair game for corruption. So by the time you get past 30 or 40 stations, it's just hard to keep the environment stable. To prove that point, you can easily run a read-only/reporting JET based app with 200+ users without issues. It's not an issue of performance, but one of stability. Jim. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From rockysmolin at bchacc.com Mon Sep 13 14:15:22 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 13 Sep 2010 12:15:22 -0700 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com><5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: At the same time there should be an explanation of Colbyizing as a consequence of using certain programming techniques. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, September 13, 2010 12:03 PM To: Access Developers discussion and problem solving Subject: [AccessD] The Famous Bound/Unbound Debate All, Compared to most of you, I am a relative newcomer to the world of Access. Over the past few months, I have noticed a number of references to the Bound/Unbound debate. It sounds like this was a really hotly contested issue at one time and that now people almost joke about it. For us newcomers, it would be nice if someone could explain this issue at a high level and perhaps spell out the major pros and cons of each side of the debate. It is not my intent to start a Web-war, I would just like to better understand what is going on here. Thanks, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, September 13, 2010 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Express - true skinny Exactly. Which is part of the premise of the bound/unbound debate. With unbound forms, where data is written in a split second chunk, the stability of much higher user volume goes up tremendously! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 10, 2010 2:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SQL Server Express - true skinny Dan, That is more or less true, but the real bottle neck with a JET based DB has never been .LDB file operations. With JET, all processing is on the client side. The server acts as nothing more then a file share. The trick with keeping a connection open to the BE avoids the repeated closing/opening of the LDB and DB files and all the associated overhead with removing/adding an active user under JET. Some apps benefit from that, other not because they already maintain a connection one way or another. The problem can be further compounded if the server has OPLOCKS on (which allows client side caching of files). JET doesn't need this as the cache is already on the client side. So it's simply a wasted effort on the servers part. And by default, OPLOCKs is enabled on Windows servers. The real restriction of JET is just one of stability. With no server side process to perform a rollback if a disconnect occurs, anytime that happens in the middle of write operations your fair game for corruption. So by the time you get past 30 or 40 stations, it's just hard to keep the environment stable. To prove that point, you can easily run a read-only/reporting JET based app with 200+ users without issues. It's not an issue of performance, but one of stability. Jim. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Mon Sep 13 14:32:22 2010 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 13 Sep 2010 14:32:22 -0500 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com> <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: Hi Brad, Bound refers to using a record set, possibly a table or maybe a query as the record source for an Access Form. This has the advantage of letting Access take care of a lot of functionality. Unbound refers to not having a record source for the form and then using code behind the form to populate the various controls on the form. Doing this requires some amount of work to populate those fields, detect changes to them the user might make and then making the corresponding update to the records in the data tables. If you are using Access built in Jet Database as the data storage for the application and you don't have that many rows in your tables, most would agree that bound is the way to go. But maybe not ;-) If you use another database engine to store the data, perhaps SQL Server, it could be argued that it's much better to only retrieve the individual records you are wanting to display and or change and so doing that with code and then populating the controls on the form might be a better way to go. For many of us, it is a matter of preference in doing it one way or the other. Sometimes it might be better to do it one way and sometimes it might be better to do it the other way. I think that is the gist of it. I'm sure I will be corrected if I have miss-stated something or missed any key points. Another heated past debate was over the use of Natural Keys verses Surrogate Keys. A Surrogate key would be something like an Autonumber field, randomly or sequentially assigned by the database engine. A Natural Key would be something like a Social Security Number. In my opinion Natural Keys are similar to the use of GO TO in COBOL programs. There may be a place for them occasionally but generally they should be avoided. In my opinion. A system assigned unique key that identifies the record allows the field that would have been used as the key to be changed in the event that something happens to make that necessary. Perhaps a data entry error? Whatever. If you have other tables joined to that record on that natural key you are STUCK without doing some cascading update or something. GK On Mon, Sep 13, 2010 at 2:02 PM, Brad Marks wrote: > All, > > Compared to most of you, I am a relative newcomer to the world of > Access. > > Over the past few months, I have noticed a number of references to the > Bound/Unbound debate. ?It sounds like this was a really hotly contested > issue at one time and that now people almost joke about it. > > For us newcomers, it would be nice if someone could explain this issue > at a high level and perhaps spell out the major pros and cons of each > side of the debate. > > It is not my intent to start a Web-war, I would just like to better > understand what is going on here. > > Thanks, > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Monday, September 13, 2010 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SQL Server Express - true skinny > > Exactly. ?Which is part of the premise of the bound/unbound debate. > With unbound forms, where data is written in a split second chunk, the > stability of much higher user volume goes up tremendously! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Friday, September 10, 2010 2:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SQL Server Express - true skinny > > Dan, > > ?That is more or less true, but the real bottle neck with a JET based DB > has > never been .LDB file operations. > > ?With JET, all processing is on the client side. ?The server acts as > nothing > more then a file share. > > ?The trick with keeping a connection open to the BE avoids the repeated > closing/opening of the LDB and DB files and all the associated overhead > with > removing/adding an active user under JET. ?Some apps benefit from that, > other not because they already maintain a connection one way or another. > The problem can be further compounded if the server has OPLOCKS on > (which > allows client side caching of files). ?JET doesn't need this as the > cache is > already on the client side. ?So it's simply a wasted effort on the > servers > part. ?And by default, OPLOCKs is enabled on Windows servers. > > ?The real restriction of JET is just one of stability. ?With no server > side > process to perform a rollback if a disconnect occurs, anytime that > happens > in the middle of write operations your fair game for corruption. ? So by > the > time you get past 30 or 40 stations, it's just hard to keep the > environment > stable. > > ?To prove that point, you can easily run a read-only/reporting JET based > app > with 200+ users without issues. > > ?It's not an issue of performance, but one of stability. > > Jim. > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please > contact the sender > immediately and destroy the material in its entirety, whether electronic > or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this > information by persons > or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From DWUTKA at Marlow.com Mon Sep 13 14:42:24 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 13 Sep 2010 14:42:24 -0500 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com><5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: A lot of it was JC and I sparring. LOL I guess the essence is that bound/unbound is a 180 degree difference in the approach of developing an application. Bound forms in Access handle a metric ton of things automatically. So you are starting with a ton of features, and functionality, and end up limiting, tweaking, or removing functionality. Unbound forms are the polar opposite. There is not functionality at all, you have to build everything you want to do from the ground up. Bound design: Pros: Quicker to develop with instant functionality. Can be less code intensive (depending on how much customization is done). Access does a lot of work for you. Cons: More cumbersome from a mutli-user networked app. If you need a light weight form, you spend more time limiting functionality. Unbound design: Pros: Inherently more light weight. Special functionality can be built into, instead of on top of. Cons: Longer development time. More code intensive. You replicate work Access would do automatically in a bound form. One big trigger to the debate was database/application design preferences. JC just brought up his 'call center' application, and a while back, we had a discussion about one element of that application. It was in a 'memo' field. Let's say we had to track calls coming in to a support center. We'd have fields for caller, tech, date, time, issue, categories, etc. And a memo field for details not put into more specific fields. In a bound method, that memo field would be just that, one field, in a table. So as notes are 'added' to a ticket, you are modifying one field, in one record. In an unbound method, that memo field would be a separate table, with an ID field linking back to the original table. Each entry would be timestamped (and stamped with the creator of the record). You wouldn't edit a 'comment', simply add a new entry. There are pros and cons to both methods. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, September 13, 2010 2:03 PM To: Access Developers discussion and problem solving Subject: [AccessD] The Famous Bound/Unbound Debate All, Compared to most of you, I am a relative newcomer to the world of Access. Over the past few months, I have noticed a number of references to the Bound/Unbound debate. It sounds like this was a really hotly contested issue at one time and that now people almost joke about it. For us newcomers, it would be nice if someone could explain this issue at a high level and perhaps spell out the major pros and cons of each side of the debate. It is not my intent to start a Web-war, I would just like to better understand what is going on here. Thanks, Brad The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Mon Sep 13 14:52:34 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 13 Sep 2010 12:52:34 -0700 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com><5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: " I'm sure I will be corrected if I have miss-stated something " Even if you haven't...:) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 13, 2010 12:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate Hi Brad, Bound refers to using a record set, possibly a table or maybe a query as the record source for an Access Form. This has the advantage of letting Access take care of a lot of functionality. Unbound refers to not having a record source for the form and then using code behind the form to populate the various controls on the form. Doing this requires some amount of work to populate those fields, detect changes to them the user might make and then making the corresponding update to the records in the data tables. If you are using Access built in Jet Database as the data storage for the application and you don't have that many rows in your tables, most would agree that bound is the way to go. But maybe not ;-) If you use another database engine to store the data, perhaps SQL Server, it could be argued that it's much better to only retrieve the individual records you are wanting to display and or change and so doing that with code and then populating the controls on the form might be a better way to go. For many of us, it is a matter of preference in doing it one way or the other. Sometimes it might be better to do it one way and sometimes it might be better to do it the other way. I think that is the gist of it. I'm sure I will be corrected if I have miss-stated something or missed any key points. Another heated past debate was over the use of Natural Keys verses Surrogate Keys. A Surrogate key would be something like an Autonumber field, randomly or sequentially assigned by the database engine. A Natural Key would be something like a Social Security Number. In my opinion Natural Keys are similar to the use of GO TO in COBOL programs. There may be a place for them occasionally but generally they should be avoided. In my opinion. A system assigned unique key that identifies the record allows the field that would have been used as the key to be changed in the event that something happens to make that necessary. Perhaps a data entry error? Whatever. If you have other tables joined to that record on that natural key you are STUCK without doing some cascading update or something. GK On Mon, Sep 13, 2010 at 2:02 PM, Brad Marks wrote: > All, > > Compared to most of you, I am a relative newcomer to the world of > Access. > > Over the past few months, I have noticed a number of references to the > Bound/Unbound debate. ?It sounds like this was a really hotly > contested issue at one time and that now people almost joke about it. > > For us newcomers, it would be nice if someone could explain this issue > at a high level and perhaps spell out the major pros and cons of each > side of the debate. > > It is not my intent to start a Web-war, I would just like to better > understand what is going on here. > > Thanks, > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Monday, September 13, 2010 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SQL Server Express - true skinny > > Exactly. ?Which is part of the premise of the bound/unbound debate. > With unbound forms, where data is written in a split second chunk, the > stability of much higher user volume goes up tremendously! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Friday, September 10, 2010 2:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SQL Server Express - true skinny > > Dan, > > ?That is more or less true, but the real bottle neck with a JET based > DB has never been .LDB file operations. > > ?With JET, all processing is on the client side. ?The server acts as > nothing more then a file share. > > ?The trick with keeping a connection open to the BE avoids the > repeated closing/opening of the LDB and DB files and all the > associated overhead with removing/adding an active user under JET. ? > Some apps benefit from that, other not because they already maintain a > connection one way or another. > The problem can be further compounded if the server has OPLOCKS on > (which allows client side caching of files). ?JET doesn't need this as > the cache is already on the client side. ?So it's simply a wasted > effort on the servers part. ?And by default, OPLOCKs is enabled on > Windows servers. > > ?The real restriction of JET is just one of stability. ?With no server > side process to perform a rollback if a disconnect occurs, anytime > that happens in the middle of write operations your fair game for > corruption. ? So by the time you get past 30 or 40 stations, it's just > hard to keep the environment stable. > > ?To prove that point, you can easily run a read-only/reporting JET > based app with 200+ users without issues. > > ?It's not an issue of performance, but one of stability. > > Jim. > The information contained in this transmission is intended only for > the person or entity to which it is addressed and may contain II-VI > Proprietary and/or II-VI Business Sensitive material. If you are not > the intended recipient, please contact the sender immediately and > destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, or other use of, or taking of any action in reliance > upon this information by persons or entities other than the intended > recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and dangerous content by > MailScanner, and is believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Sep 13 15:00:33 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 13 Sep 2010 16:00:33 -0400 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com> <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: Great explanation Gary. I would only add that part of the debate to is that if you go the unbound route (and do all the work), then you have to ask why bother using Access at all with all of its quirks (I'm talking about install problems and references). After all, you can't do a 3 tier design with it and if your going the unbound route, your typically looking to do some type of n-tier design or client/server setup. Might as well use something else and get a whole heck of a lot more control, access to 3rd party controls, standalone EXE, etc. As far as the PK's, well...I don't quite agree. And I'm not going to get into it here as we've been over that ground many times. In fact I wrote an article for EE with my views on that subject. So if anyone cares to read it, it's here (I'm not 100% sure this will work though for non-members - they've been making a lot of changes lately): http://www.experts-exchange.com/viewArticle.jsp?aid=2041 Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 13, 2010 3:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate Hi Brad, Bound refers to using a record set, possibly a table or maybe a query as the record source for an Access Form. This has the advantage of letting Access take care of a lot of functionality. Unbound refers to not having a record source for the form and then using code behind the form to populate the various controls on the form. Doing this requires some amount of work to populate those fields, detect changes to them the user might make and then making the corresponding update to the records in the data tables. If you are using Access built in Jet Database as the data storage for the application and you don't have that many rows in your tables, most would agree that bound is the way to go. But maybe not ;-) If you use another database engine to store the data, perhaps SQL Server, it could be argued that it's much better to only retrieve the individual records you are wanting to display and or change and so doing that with code and then populating the controls on the form might be a better way to go. For many of us, it is a matter of preference in doing it one way or the other. Sometimes it might be better to do it one way and sometimes it might be better to do it the other way. I think that is the gist of it. I'm sure I will be corrected if I have miss-stated something or missed any key points. Another heated past debate was over the use of Natural Keys verses Surrogate Keys. A Surrogate key would be something like an Autonumber field, randomly or sequentially assigned by the database engine. A Natural Key would be something like a Social Security Number. In my opinion Natural Keys are similar to the use of GO TO in COBOL programs. There may be a place for them occasionally but generally they should be avoided. In my opinion. A system assigned unique key that identifies the record allows the field that would have been used as the key to be changed in the event that something happens to make that necessary. Perhaps a data entry error? Whatever. If you have other tables joined to that record on that natural key you are STUCK without doing some cascading update or something. GK On Mon, Sep 13, 2010 at 2:02 PM, Brad Marks wrote: > All, > > Compared to most of you, I am a relative newcomer to the world of > Access. > > Over the past few months, I have noticed a number of references to the > Bound/Unbound debate. ?It sounds like this was a really hotly contested > issue at one time and that now people almost joke about it. > > For us newcomers, it would be nice if someone could explain this issue > at a high level and perhaps spell out the major pros and cons of each > side of the debate. > > It is not my intent to start a Web-war, I would just like to better > understand what is going on here. > > Thanks, > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Monday, September 13, 2010 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SQL Server Express - true skinny > > Exactly. ?Which is part of the premise of the bound/unbound debate. > With unbound forms, where data is written in a split second chunk, the > stability of much higher user volume goes up tremendously! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Friday, September 10, 2010 2:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SQL Server Express - true skinny > > Dan, > > ?That is more or less true, but the real bottle neck with a JET based DB > has > never been .LDB file operations. > > ?With JET, all processing is on the client side. ?The server acts as > nothing > more then a file share. > > ?The trick with keeping a connection open to the BE avoids the repeated > closing/opening of the LDB and DB files and all the associated overhead > with > removing/adding an active user under JET. ?Some apps benefit from that, > other not because they already maintain a connection one way or another. > The problem can be further compounded if the server has OPLOCKS on > (which > allows client side caching of files). ?JET doesn't need this as the > cache is > already on the client side. ?So it's simply a wasted effort on the > servers > part. ?And by default, OPLOCKs is enabled on Windows servers. > > ?The real restriction of JET is just one of stability. ?With no server > side > process to perform a rollback if a disconnect occurs, anytime that > happens > in the middle of write operations your fair game for corruption. ? So by > the > time you get past 30 or 40 stations, it's just hard to keep the > environment > stable. > > ?To prove that point, you can easily run a read-only/reporting JET based > app > with 200+ users without issues. > > ?It's not an issue of performance, but one of stability. > > Jim. > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please > contact the sender > immediately and destroy the material in its entirety, whether electronic > or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this > information by persons > or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Mon Sep 13 15:39:39 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 13 Sep 2010 16:39:39 -0400 Subject: [AccessD] Curious behavior with Hide Duplicates and groups Message-ID: <2F534C633A484DDD8C545B7AA6865E68@salvationomc4p> Using the Hide Duplicates property with the one value is Okay -- if you use it with a many value, you're liable to hide a duplicate value when you don't want to. For instance, in the case of items in an order. You can easily hide the duplicate order id values without worry. If you hide product names for the items in each order, you can run into trouble if the first item in a new order is the same as the last order in the preceding order. The Hide Duplicates property doesn't respect grouping. What I saw today is that it does -- if you force it. Adding a group isn't enough -- if you group on the order id, the Hide Duplicates property still evaluates the entire report as one group. If you display a group header, bingo... Hide Duplicates respects the groups. Okay, so this is cool, but why do you have to display a group header to get it? Susan H. From stuart at lexacorp.com.pg Mon Sep 13 15:56:46 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 14 Sep 2010 06:56:46 +1000 Subject: [AccessD] References Question In-Reply-To: References: , , Message-ID: <4C8E900E.11022.1CD79BE8@stuart.lexacorp.com.pg> Turning off Winnodws Scripting Host used to be / still is (?) fairly common on workstations to prevent malicious VBS scripts sent as email attachments from being executed. Back around 2004 this was probably the major vector for viruses. -- Stuart On 13 Sep 2010 at 17:54, Asger Blond wrote: > > Yes, I remember having read that too. Don't know exactly what the > security issue is. Asger -----Oprindelig meddelelse----- Fra: > accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Arthur > Fuller Sendt: 13. september 2010 17:34 Til: Access Developers > discussion and problem solving Emne: Re: [AccessD] References Question > > Thanks, Asger. Not that it's relevant in my immediate case, but IIRC > there could be problems invoking that lib in a corporate-security > environment. Is that right? Again, not that it's relevant in my case, > just wondering. > > Arthur > > On Mon, Sep 13, 2010 at 11:26 AM, Asger Blond > wrote: > > > > > Hi Arthur, > > The library I use for FileSystemObject is: > > Microsoft Scripting Runtime > > Asger > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 13 16:00:47 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 13 Sep 2010 17:00:47 -0400 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com><5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: <4C8E90FF.7050508@colbyconsulting.com> 20,000 feet over open ocean, out the door without a parachute. Simple enough concept. Taken from a certain South American dictator that used the technique to get rid of anyone he didn't like. ;) John W. Colby www.ColbyConsulting.com On 9/13/2010 3:15 PM, Rocky Smolin wrote: > At the same time there should be an explanation of Colbyizing as a > consequence of using certain programming techniques. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Monday, September 13, 2010 12:03 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] The Famous Bound/Unbound Debate > > All, > > Compared to most of you, I am a relative newcomer to the world of Access. > > Over the past few months, I have noticed a number of references to the > Bound/Unbound debate. It sounds like this was a really hotly contested > issue at one time and that now people almost joke about it. > > For us newcomers, it would be nice if someone could explain this issue at a > high level and perhaps spell out the major pros and cons of each side of the > debate. > > It is not my intent to start a Web-war, I would just like to better > understand what is going on here. > > Thanks, > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Monday, September 13, 2010 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SQL Server Express - true skinny > > Exactly. Which is part of the premise of the bound/unbound debate. > With unbound forms, where data is written in a split second chunk, the > stability of much higher user volume goes up tremendously! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Friday, September 10, 2010 2:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SQL Server Express - true skinny > > Dan, > > That is more or less true, but the real bottle neck with a JET based DB has > never been .LDB file operations. > > With JET, all processing is on the client side. The server acts as nothing > more then a file share. > > The trick with keeping a connection open to the BE avoids the repeated > closing/opening of the LDB and DB files and all the associated overhead with > removing/adding an active user under JET. Some apps benefit from that, > other not because they already maintain a connection one way or another. > The problem can be further compounded if the server has OPLOCKS on (which > allows client side caching of files). JET doesn't need this as the cache is > already on the client side. So it's simply a wasted effort on the servers > part. And by default, OPLOCKs is enabled on Windows servers. > > The real restriction of JET is just one of stability. With no server side > process to perform a rollback if a disconnect occurs, anytime that happens > in the middle of write operations your fair game for corruption. So by > the > time you get past 30 or 40 stations, it's just hard to keep the environment > stable. > > To prove that point, you can easily run a read-only/reporting JET based app > with 200+ users without issues. > > It's not an issue of performance, but one of stability. > > Jim. > The information contained in this transmission is intended only for the > person or entity to which it is addressed and may contain II-VI Proprietary > and/or II-VI Business Sensitive material. If you are not the intended > recipient, please contact the sender immediately and destroy the material in > its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, or other use of, or taking of any action in reliance upon > this information by persons or entities other than the intended recipient is > prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and dangerous content by > MailScanner, and is believed to be clean. > > From stuart at lexacorp.com.pg Mon Sep 13 16:03:20 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 14 Sep 2010 07:03:20 +1000 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com>, , Message-ID: <4C8E9198.20846.1CDD9D3F@stuart.lexacorp.com.pg> But, but, but..... I commonly use the second method in a bound sub-form. Does than make mean I'm not a bounder after all? D*mn, all this time, I thought I was a died-in-the-wool bounder. -- Stuart On 13 Sep 2010 at 14:42, Drew Wutka wrote: > JC just brought up his 'call center' application, and a while back, we > had a discussion about one element of that application. > > It was in a 'memo' field. Let's say we had to track calls coming in > to a support center. We'd have fields for caller, tech, date, time, > issue, categories, etc. And a memo field for details not put into > more specific fields. > > In a bound method, that memo field would be just that, one field, in a > table. So as notes are 'added' to a ticket, you are modifying one > field, in one record. > > In an unbound method, that memo field would be a separate table, with > an ID field linking back to the original table. Each entry would be > timestamped (and stamped with the creator of the record). You > wouldn't edit a 'comment', simply add a new entry. > > There are pros and cons to both methods. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Monday, September 13, 2010 2:03 PM To: Access Developers > discussion and problem solving Subject: [AccessD] The Famous > Bound/Unbound Debate > > All, > > Compared to most of you, I am a relative newcomer to the world of > Access. > > Over the past few months, I have noticed a number of references to the > Bound/Unbound debate. It sounds like this was a really hotly > contested issue at one time and that now people almost joke about it. > > For us newcomers, it would be nice if someone could explain this issue > at a high level and perhaps spell out the major pros and cons of each > side of the debate. > > It is not my intent to start a Web-war, I would just like to better > understand what is going on here. > > Thanks, > Brad > The information contained in this transmission is intended only for > the person or entity to which it is addressed and may contain II-VI > Proprietary and/or II-VI Business Sensitive material. If you are not > the intended recipient, please contact the sender immediately and > destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, or other use of, or taking of any action in reliance > upon this information by persons or entities other than the intended > recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Sep 13 16:04:20 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 13 Sep 2010 17:04:20 -0400 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com><5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: <4C8E91D4.4040906@colbyconsulting.com> Uhh... no! John W. Colby www.ColbyConsulting.com On 9/13/2010 3:42 PM, Drew Wutka wrote: > A lot of it was JC and I sparring. LOL > > I guess the essence is that bound/unbound is a 180 degree difference in > the approach of developing an application. > > Bound forms in Access handle a metric ton of things automatically. So > you are starting with a ton of features, and functionality, and end up > limiting, tweaking, or removing functionality. > > Unbound forms are the polar opposite. There is not functionality at > all, you have to build everything you want to do from the ground up. > > Bound design: > Pros: Quicker to develop with instant functionality. Can be less code > intensive (depending on how much customization is done). Access does a > lot of work for you. > Cons: More cumbersome from a mutli-user networked app. If you need a > light weight form, you spend more time limiting functionality. > > Unbound design: > Pros: Inherently more light weight. Special functionality can be built > into, instead of on top of. > Cons: Longer development time. More code intensive. You replicate work > Access would do automatically in a bound form. > > One big trigger to the debate was database/application design > preferences. > > JC just brought up his 'call center' application, and a while back, we > had a discussion about one element of that application. > > It was in a 'memo' field. Let's say we had to track calls coming in to > a support center. We'd have fields for caller, tech, date, time, issue, > categories, etc. And a memo field for details not put into more > specific fields. > > In a bound method, that memo field would be just that, one field, in a > table. So as notes are 'added' to a ticket, you are modifying one > field, in one record. > > In an unbound method, that memo field would be a separate table, with an > ID field linking back to the original table. Each entry would be > timestamped (and stamped with the creator of the record). You wouldn't > edit a 'comment', simply add a new entry. > > There are pros and cons to both methods. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Monday, September 13, 2010 2:03 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] The Famous Bound/Unbound Debate > > All, > > Compared to most of you, I am a relative newcomer to the world of > Access. > > Over the past few months, I have noticed a number of references to the > Bound/Unbound debate. It sounds like this was a really hotly contested > issue at one time and that now people almost joke about it. > > For us newcomers, it would be nice if someone could explain this issue > at a high level and perhaps spell out the major pros and cons of each > side of the debate. > > It is not my intent to start a Web-war, I would just like to better > understand what is going on here. > > Thanks, > Brad > The information contained in this transmission is intended only for the person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI Business > Sensitive material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, dissemination, > or other use of, or taking of any action in reliance upon this information by persons > or entities other than the intended recipient is prohibited. > > From andy at minstersystems.co.uk Mon Sep 13 16:11:13 2010 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 13 Sep 2010 22:11:13 +0100 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: <4C8E91D4.4040906@colbyconsulting.com> Message-ID: <09CE576FA694467DB9CE0AAA51523132@MINSTER> Tally ho and chocks away! Here we go. I'm overcome with nostalgia. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 13 September 2010 22:04 To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate Uhh... no! John W. Colby www.ColbyConsulting.com On 9/13/2010 3:42 PM, Drew Wutka wrote: > A lot of it was JC and I sparring. LOL > > I guess the essence is that bound/unbound is a 180 degree difference in > the approach of developing an application. > > Bound forms in Access handle a metric ton of things automatically. So > you are starting with a ton of features, and functionality, and end up > limiting, tweaking, or removing functionality. > > Unbound forms are the polar opposite. There is not functionality at > all, you have to build everything you want to do from the ground up. > > Bound design: > Pros: Quicker to develop with instant functionality. Can be less code > intensive (depending on how much customization is done). Access does a > lot of work for you. > Cons: More cumbersome from a mutli-user networked app. If you need a > light weight form, you spend more time limiting functionality. > > Unbound design: > Pros: Inherently more light weight. Special functionality can be built > into, instead of on top of. > Cons: Longer development time. More code intensive. You replicate work > Access would do automatically in a bound form. > > One big trigger to the debate was database/application design > preferences. > > JC just brought up his 'call center' application, and a while back, we > had a discussion about one element of that application. > > It was in a 'memo' field. Let's say we had to track calls coming in to > a support center. We'd have fields for caller, tech, date, time, issue, > categories, etc. And a memo field for details not put into more > specific fields. > > In a bound method, that memo field would be just that, one field, in a > table. So as notes are 'added' to a ticket, you are modifying one > field, in one record. > > In an unbound method, that memo field would be a separate table, with an > ID field linking back to the original table. Each entry would be > timestamped (and stamped with the creator of the record). You wouldn't > edit a 'comment', simply add a new entry. > > There are pros and cons to both methods. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Monday, September 13, 2010 2:03 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] The Famous Bound/Unbound Debate > > All, > > Compared to most of you, I am a relative newcomer to the world of > Access. > > Over the past few months, I have noticed a number of references to the > Bound/Unbound debate. It sounds like this was a really hotly contested > issue at one time and that now people almost joke about it. > > For us newcomers, it would be nice if someone could explain this issue > at a high level and perhaps spell out the major pros and cons of each > side of the debate. > > It is not my intent to start a Web-war, I would just like to better > understand what is going on here. > > Thanks, > Brad > The information contained in this transmission is intended only for the person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI Business > Sensitive material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, dissemination, > or other use of, or taking of any action in reliance upon this information by persons > or entities other than the intended recipient is prohibited. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Mon Sep 13 16:26:49 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Mon, 13 Sep 2010 15:26:49 -0600 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com>, <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters>, , , , Message-ID: I don't believe the number of records in a table has any bearing on advantages of bound or unbound as the recordset of a bound form may be set to a single record regardless of number of records in a table. For example, if you use a search or lookup combo at the top of a form or in its header to navigate to a record, you can use the classic Northwinds findfirst in a recordset clone and on not nomatch set the bookmark of the form recordset to the recordset clone bookmark. It is equally valid to set the recordset in the lookup combo after update event to: "Select * FROM tblX WHERE PK = " & me.cboLookup where cboLookup is bound to a hidden first column containing primary keys and visible subsequent columns containing sorted readable key data. It is also possible to create a bound form to display one or more records of data not stored in any table; IE, you can push array data directly into a bound form in order to take advantage of built in navigation controls and record selectors you would need to code if you wanted them in unbound scenarios. In my opinion, the most onerous task a developer takes on when choosing to attempt the unbound route is to manage concurrent unsaved edits in a multi user environment. It is possible to create a concurrent edit resolution system in an unbound system, but using bound forms avoids the need for high level expertise to adequately manage concurrency issues (last person to save a record overwrites any changes made by other users in the time between last person loading the record and closing it with any change to the data without notice). I have devised a scheme or two myself as I work in a 60+ concurrent user envirionment where many of those 60+ people will be having to work with the same 200 active (40 highly active) projects under construction and 100 or so bids pursued in a particular week. Nearly all of my data entry and edit forms are currently bound and my users are trained to select the 'Drop Changes' when they get the automatic built in edit conflict notification, but training only takes you so far. It's nice for a user not to have to drop changes when he edited an address in a record just after the dollar value of a project was changed by another user because your system detected that the changes to the data are in different fields and don't conflict with the changes you made. If you let that site address revision wipe out the contract value because you simply over wrote the table record with your form data and haven't managed or failed to correctly manage that revision in an unbound 'last edit' wins scenario, you may have just cost somebody a lot of money. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Mon, 13 Sep 2010 14:32:22 -0500 > From: garykjos at gmail.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] The Famous Bound/Unbound Debate > > Hi Brad, > > Bound refers to using a record set, possibly a table or maybe a query > as the record source for an Access Form. This has the advantage of > letting Access take care of a lot of functionality. > > Unbound refers to not having a record source for the form and then > using code behind the form to populate the various controls on the > form. Doing this requires some amount of work to populate those > fields, detect changes to them the user might make and then making the > corresponding update to the records in the data tables. > > If you are using Access built in Jet Database as the data storage for > the application and you don't have that many rows in your tables, most > would agree that bound is the way to go. But maybe not ;-) If you use > another database engine to store the data, perhaps SQL Server, it > could be argued that it's much better to only retrieve the individual > records you are wanting to display and or change and so doing that > with code and then populating the controls on the form might be a > better way to go. > > > GK From garykjos at gmail.com Mon Sep 13 16:28:44 2010 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 13 Sep 2010 16:28:44 -0500 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com> <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: There is a huge amount of personal preference in these things. My philosophy on these things is to "Never Say Never and Never Say ALWAYS either". There are sometimes reasons for going one way or the other but sometimes it does just come down to a preference. And GOTO's in COBOL are perfectly fine in my book - if you use them RIGHT. Yes they can be used to write spaghetti code and that is why many shops banned them. But I think that was a bad idea too. They are fine when used appropriately. As I recall. Been 10 years since I did any COBOL at all and almost 20 since I did a lot of it. Ahhh I miss the good old days. ;-) GK On Mon, Sep 13, 2010 at 3:00 PM, Jim Dettman wrote: > > ?Great explanation Gary. ?I would only add that part of the debate to is > that if you go the unbound route (and do all the work), then you have to ask > why bother using Access at all with all of its quirks (I'm talking about > install problems and references). ?After all, you can't do a 3 tier design > with it and if your going the unbound route, your typically looking to do > some type of n-tier design or client/server setup. Might as well use > something else and get a whole heck of a lot more control, access to 3rd > party controls, standalone EXE, etc. > > ?As far as the PK's, well...I don't quite agree. And I'm not going to get > into it here as we've been over that ground many times. ?In fact I wrote an > article for EE with my views on that subject. ?So if anyone cares to read > it, it's here (I'm not 100% sure this will work though for non-members - > they've been making a lot of changes lately): > > http://www.experts-exchange.com/viewArticle.jsp?aid=2041 > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Monday, September 13, 2010 3:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] The Famous Bound/Unbound Debate > > Hi Brad, > > Bound refers to using a record set, possibly a table or maybe a query > as the record source for an Access Form. This has the advantage of > letting Access take care of a lot of functionality. > > Unbound refers to not having a record source for the form and then > using code behind the form to populate the various controls on the > form. Doing this requires some amount of work to populate those > fields, detect changes to them the user might make and then making the > corresponding update to the records in the data tables. > > If you are using Access built in Jet Database as the data storage for > the application and you don't have that many rows in your tables, most > would agree that bound is the way to go. But maybe not ;-) ?If you use > another database engine to store the data, perhaps SQL Server, it > could be argued that it's much better to only retrieve the individual > records you are wanting to display and or change and so doing that > with code and then populating the controls on the form might be a > better way to go. > > For many of us, it is a matter of preference in doing it one way or > the other. Sometimes it might be better to do it one way and sometimes > it might be better to do it the other way. > > I think that is the gist of it. I'm sure I will be corrected if I have > miss-stated something or missed any key points. > > Another heated past debate was over the use of Natural Keys verses > Surrogate Keys. A Surrogate key would be something like an Autonumber > field, randomly or sequentially assigned by the database engine. A > Natural Key would be something like a Social Security Number. ?In my > opinion Natural Keys are similar to the use of GO TO in COBOL > programs. There may be a place for them occasionally but generally > they should be avoided. In my opinion. A system assigned unique key > that identifies the record allows the field that would have been used > as the key to be changed in the event that something happens to make > that necessary. Perhaps a data entry error? Whatever. If you have > other tables joined to that record on that natural key you are STUCK > without doing some cascading update or something. > > GK > > On Mon, Sep 13, 2010 at 2:02 PM, Brad Marks > wrote: >> All, >> >> Compared to most of you, I am a relative newcomer to the world of >> Access. >> >> Over the past few months, I have noticed a number of references to the >> Bound/Unbound debate. ?It sounds like this was a really hotly contested >> issue at one time and that now people almost joke about it. >> >> For us newcomers, it would be nice if someone could explain this issue >> at a high level and perhaps spell out the major pros and cons of each >> side of the debate. >> >> It is not my intent to start a Web-war, I would just like to better >> understand what is going on here. >> >> Thanks, >> Brad >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >> Sent: Monday, September 13, 2010 1:53 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SQL Server Express - true skinny >> >> Exactly. ?Which is part of the premise of the bound/unbound debate. >> With unbound forms, where data is written in a split second chunk, the >> stability of much higher user volume goes up tremendously! >> >> Drew >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >> Sent: Friday, September 10, 2010 2:46 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] SQL Server Express - true skinny >> >> Dan, >> >> ?That is more or less true, but the real bottle neck with a JET based DB >> has >> never been .LDB file operations. >> >> ?With JET, all processing is on the client side. ?The server acts as >> nothing >> more then a file share. >> >> ?The trick with keeping a connection open to the BE avoids the repeated >> closing/opening of the LDB and DB files and all the associated overhead >> with >> removing/adding an active user under JET. ?Some apps benefit from that, >> other not because they already maintain a connection one way or another. >> The problem can be further compounded if the server has OPLOCKS on >> (which >> allows client side caching of files). ?JET doesn't need this as the >> cache is >> already on the client side. ?So it's simply a wasted effort on the >> servers >> part. ?And by default, OPLOCKs is enabled on Windows servers. >> >> ?The real restriction of JET is just one of stability. ?With no server >> side >> process to perform a rollback if a disconnect occurs, anytime that >> happens >> in the middle of write operations your fair game for corruption. ? So by >> the >> time you get past 30 or 40 stations, it's just hard to keep the >> environment >> stable. >> >> ?To prove that point, you can easily run a read-only/reporting JET based >> app >> with 200+ users without issues. >> >> ?It's not an issue of performance, but one of stability. >> >> Jim. >> The information contained in this transmission is intended only for the >> person or entity >> to which it is addressed and may contain II-VI Proprietary and/or II-VI >> Business >> Sensitive material. If you are not the intended recipient, please >> contact the sender >> immediately and destroy the material in its entirety, whether electronic >> or hard copy. >> You are notified that any review, retransmission, copying, disclosure, >> dissemination, >> or other use of, or taking of any action in reliance upon this >> information by persons >> or entities other than the intended recipient is prohibited. >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Gary Kjos > garykjos at gmail.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From charlotte.foust at gmail.com Mon Sep 13 16:46:24 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Mon, 13 Sep 2010 14:46:24 -0700 Subject: [AccessD] Curious behavior with Hide Duplicates and groups In-Reply-To: <2F534C633A484DDD8C545B7AA6865E68@salvationomc4p> References: <2F534C633A484DDD8C545B7AA6865E68@salvationomc4p> Message-ID: It's a matter of scope, Susan. Hide Duplicates in a header applies only to that level, if the level is the entire report, that's the scope too. Charlotte Foust On Mon, Sep 13, 2010 at 1:39 PM, Susan Harkins wrote: > Using the Hide Duplicates property with the one value is Okay -- if you use it with a many value, you're liable to hide a duplicate value when you don't want to. For instance, in the case of items in an order. You can easily hide the duplicate order id values without worry. If you hide product names for the items in each order, you can run into trouble if the first item in a new order is the same as the last order in the preceding order. The Hide Duplicates property doesn't respect grouping. > > What I saw today is that it does -- if you force it. > > Adding a group isn't enough -- if you group on the order id, the Hide Duplicates property still evaluates the entire report as one group. If you display a group header, bingo... Hide Duplicates respects the groups. > > Okay, so this is cool, but why do you have to display a group header to get it? > > Susan H. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Sep 13 16:54:06 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 13 Sep 2010 17:54:06 -0400 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: <09CE576FA694467DB9CE0AAA51523132@MINSTER> References: <09CE576FA694467DB9CE0AAA51523132@MINSTER> Message-ID: <4C8E9D7E.1040501@colbyconsulting.com> ROTFL. We need fresh blood, fresh passion. John W. Colby www.ColbyConsulting.com On 9/13/2010 5:11 PM, Andy Lacey wrote: > Tally ho and chocks away! Here we go. I'm overcome with nostalgia. > > Andy > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 13 September 2010 22:04 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] The Famous Bound/Unbound Debate > > > Uhh... no! > > John W. Colby > www.ColbyConsulting.com > > On 9/13/2010 3:42 PM, Drew Wutka wrote: >> A lot of it was JC and I sparring. LOL >> >> I guess the essence is that bound/unbound is a 180 degree difference in >> the approach of developing an application. >> >> Bound forms in Access handle a metric ton of things automatically. So >> you are starting with a ton of features, and functionality, and end up >> limiting, tweaking, or removing functionality. >> >> Unbound forms are the polar opposite. There is not functionality at >> all, you have to build everything you want to do from the ground up. >> >> Bound design: >> Pros: Quicker to develop with instant functionality. Can be less code >> intensive (depending on how much customization is done). Access does a >> lot of work for you. >> Cons: More cumbersome from a mutli-user networked app. If you need a >> light weight form, you spend more time limiting functionality. >> >> Unbound design: >> Pros: Inherently more light weight. Special functionality can be built >> into, instead of on top of. >> Cons: Longer development time. More code intensive. You replicate work >> Access would do automatically in a bound form. >> >> One big trigger to the debate was database/application design >> preferences. >> >> JC just brought up his 'call center' application, and a while back, we >> had a discussion about one element of that application. >> >> It was in a 'memo' field. Let's say we had to track calls coming in to >> a support center. We'd have fields for caller, tech, date, time, issue, >> categories, etc. And a memo field for details not put into more >> specific fields. >> >> In a bound method, that memo field would be just that, one field, in a >> table. So as notes are 'added' to a ticket, you are modifying one >> field, in one record. >> >> In an unbound method, that memo field would be a separate table, with an >> ID field linking back to the original table. Each entry would be >> timestamped (and stamped with the creator of the record). You wouldn't >> edit a 'comment', simply add a new entry. >> >> There are pros and cons to both methods. >> >> Drew >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks >> Sent: Monday, September 13, 2010 2:03 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] The Famous Bound/Unbound Debate >> >> All, >> >> Compared to most of you, I am a relative newcomer to the world of >> Access. >> >> Over the past few months, I have noticed a number of references to the >> Bound/Unbound debate. It sounds like this was a really hotly contested >> issue at one time and that now people almost joke about it. >> >> For us newcomers, it would be nice if someone could explain this issue >> at a high level and perhaps spell out the major pros and cons of each >> side of the debate. >> >> It is not my intent to start a Web-war, I would just like to better >> understand what is going on here. >> >> Thanks, >> Brad >> The information contained in this transmission is intended only for the > person or entity >> to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business >> Sensitive material. If you are not the intended recipient, please contact > the sender >> immediately and destroy the material in its entirety, whether electronic > or hard copy. >> You are notified that any review, retransmission, copying, disclosure, > dissemination, >> or other use of, or taking of any action in reliance upon this information > by persons >> or entities other than the intended recipient is prohibited. >> >> From jwcolby at colbyconsulting.com Mon Sep 13 16:55:03 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 13 Sep 2010 17:55:03 -0400 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com>, <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters>, , , , Message-ID: <4C8E9DB7.6000306@colbyconsulting.com> Thanks Jurgen! John W. Colby www.ColbyConsulting.com On 9/13/2010 5:26 PM, Jurgen Welz wrote: > > I don't believe the number of records in a table has any bearing on advantages of bound or unbound as the recordset of a bound form may be set to a single record regardless of number of records in a table. For example, if you use a search or lookup combo at the top of a form or in its header to navigate to a record, you can use the classic Northwinds findfirst in a recordset clone and on not nomatch set the bookmark of the form recordset to the recordset clone bookmark. It is equally valid to set the recordset in the lookup combo after update event to: > > > > "Select * FROM tblX WHERE PK = "& me.cboLookup > > > > where cboLookup is bound to a hidden first column containing primary keys and visible subsequent columns containing sorted readable key data. > > > It is also possible to create a bound form to display one or more records of data not stored in any table; IE, you can push array data directly into a bound form in order to take advantage of built in navigation controls and record selectors you would need to code if you wanted them in unbound scenarios. > > > > In my opinion, the most onerous task a developer takes on when choosing to attempt the unbound route is to manage concurrent unsaved edits in a multi user environment. > > > > It is possible to create a concurrent edit resolution system in an unbound system, but using bound forms avoids the need for high level expertise to adequately manage concurrency issues (last person to save a record overwrites any changes made by other users in the time between last person loading the record and closing it with any change to the data without notice). I have devised a scheme or two myself as I work in a 60+ concurrent user envirionment where many of those 60+ people will be having to work with the same 200 active (40 highly active) projects under construction and 100 or so bids pursued in a particular week. Nearly all of my data entry and edit forms are currently bound and my users are trained to select the 'Drop Changes' when they get the automatic built in edit conflict notification, but training only takes you so far. It's nice for a user not to have to drop changes when he edited an address in a record just after the dollar value of a project was cha nged by another user because your system detected that the changes to the data are in different fields and don't conflict with the changes you made. If you let that site address revision wipe out the contract value because you simply over wrote the table record with your form data and haven't managed or failed to correctly manage that revision in an unbound 'last edit' wins scenario, you may have just cost somebody a lot of money. > > > Ciao > > J?rgen Welz > > Edmonton, Alberta > > jwelz at hotmail.com > > > >> Date: Mon, 13 Sep 2010 14:32:22 -0500 >> From: garykjos at gmail.com >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] The Famous Bound/Unbound Debate >> >> Hi Brad, >> >> Bound refers to using a record set, possibly a table or maybe a query >> as the record source for an Access Form. This has the advantage of >> letting Access take care of a lot of functionality. >> >> Unbound refers to not having a record source for the form and then >> using code behind the form to populate the various controls on the >> form. Doing this requires some amount of work to populate those >> fields, detect changes to them the user might make and then making the >> corresponding update to the records in the data tables. >> >> If you are using Access built in Jet Database as the data storage for >> the application and you don't have that many rows in your tables, most >> would agree that bound is the way to go. But maybe not ;-) If you use >> another database engine to store the data, perhaps SQL Server, it >> could be argued that it's much better to only retrieve the individual >> records you are wanting to display and or change and so doing that >> with code and then populating the controls on the form might be a >> better way to go. >> >> >> GK > From DWUTKA at Marlow.com Mon Sep 13 17:29:07 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 13 Sep 2010 17:29:07 -0500 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: <4C8E9198.20846.1CDD9D3F@stuart.lexacorp.com.pg> References: <4C8A743F.2080808@colbyconsulting.com>, , <4C8E9198.20846.1CDD9D3F@stuart.lexacorp.com.pg> Message-ID: You weren't really using the second method. When I build a database, one of my underlying ideologies is that there is rarely a good reason to CHANGE data. This is not something I enforce in a Nazi like manner, rather it is a concept that I build into the system so the user doesn't even have to notice. Some examples: -When the price of an item goes from $1.55 to $2.17, that isn't a change in data, it's additional data. Yesterday it cost $1.55, TODAY it costs $2.17. So that should be reflected in the data design. -When you add 10 items to your inventory, that's not just a change in the inventory level, it's a transaction. Yes, you can do one too many with subforms. Bound/unbound is more preference, then science. Personally, I prefer to build my business logic into a class structure. Treating data as relevant objects, not just records. That way, it doesn't really matter what interface I use. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, September 13, 2010 4:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate But, but, but..... I commonly use the second method in a bound sub-form. Does than make mean I'm not a bounder after all? D*mn, all this time, I thought I was a died-in-the-wool bounder. -- Stuart On 13 Sep 2010 at 14:42, Drew Wutka wrote: > JC just brought up his 'call center' application, and a while back, we > had a discussion about one element of that application. > > It was in a 'memo' field. Let's say we had to track calls coming in > to a support center. We'd have fields for caller, tech, date, time, > issue, categories, etc. And a memo field for details not put into > more specific fields. > > In a bound method, that memo field would be just that, one field, in a > table. So as notes are 'added' to a ticket, you are modifying one > field, in one record. > > In an unbound method, that memo field would be a separate table, with > an ID field linking back to the original table. Each entry would be > timestamped (and stamped with the creator of the record). You > wouldn't edit a 'comment', simply add a new entry. > > There are pros and cons to both methods. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Monday, September 13, 2010 2:03 PM To: Access Developers > discussion and problem solving Subject: [AccessD] The Famous > Bound/Unbound Debate > > All, > > Compared to most of you, I am a relative newcomer to the world of > Access. > > Over the past few months, I have noticed a number of references to the > Bound/Unbound debate. It sounds like this was a really hotly > contested issue at one time and that now people almost joke about it. > > For us newcomers, it would be nice if someone could explain this issue > at a high level and perhaps spell out the major pros and cons of each > side of the debate. > > It is not my intent to start a Web-war, I would just like to better > understand what is going on here. > > Thanks, > Brad > The information contained in this transmission is intended only for > the person or entity to which it is addressed and may contain II-VI > Proprietary and/or II-VI Business Sensitive material. If you are not > the intended recipient, please contact the sender immediately and > destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, or other use of, or taking of any action in reliance > upon this information by persons or entities other than the intended > recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Mon Sep 13 17:31:19 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 13 Sep 2010 17:31:19 -0500 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: <4C8E91D4.4040906@colbyconsulting.com> References: <4C8A743F.2080808@colbyconsulting.com><5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> <4C8E91D4.4040906@colbyconsulting.com> Message-ID: Face it JC, once you started digging into classes, you began moving to the dark side... just clinging to those irrational 'do-gooder' feelings... ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 13, 2010 4:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate Uhh... no! John W. Colby www.ColbyConsulting.com On 9/13/2010 3:42 PM, Drew Wutka wrote: > A lot of it was JC and I sparring. LOL > > I guess the essence is that bound/unbound is a 180 degree difference in > the approach of developing an application. > > Bound forms in Access handle a metric ton of things automatically. So > you are starting with a ton of features, and functionality, and end up > limiting, tweaking, or removing functionality. > > Unbound forms are the polar opposite. There is not functionality at > all, you have to build everything you want to do from the ground up. > > Bound design: > Pros: Quicker to develop with instant functionality. Can be less code > intensive (depending on how much customization is done). Access does a > lot of work for you. > Cons: More cumbersome from a mutli-user networked app. If you need a > light weight form, you spend more time limiting functionality. > > Unbound design: > Pros: Inherently more light weight. Special functionality can be built > into, instead of on top of. > Cons: Longer development time. More code intensive. You replicate work > Access would do automatically in a bound form. > > One big trigger to the debate was database/application design > preferences. > > JC just brought up his 'call center' application, and a while back, we > had a discussion about one element of that application. > > It was in a 'memo' field. Let's say we had to track calls coming in to > a support center. We'd have fields for caller, tech, date, time, issue, > categories, etc. And a memo field for details not put into more > specific fields. > > In a bound method, that memo field would be just that, one field, in a > table. So as notes are 'added' to a ticket, you are modifying one > field, in one record. > > In an unbound method, that memo field would be a separate table, with an > ID field linking back to the original table. Each entry would be > timestamped (and stamped with the creator of the record). You wouldn't > edit a 'comment', simply add a new entry. > > There are pros and cons to both methods. > > Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Mon Sep 13 17:35:22 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 13 Sep 2010 17:35:22 -0500 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com>, <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters>, , , , Message-ID: Well, as I just posted, one of the 'standards' I used in unbound methods is to develop the system so that 'concurrent edits' is not an issue. Of all the systems I have developed, the situations where more than 1 person would be editing the same record is VERY minimal. But then again, what kind of systems you design also can be dependent upon what kind of specialties you have. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Monday, September 13, 2010 4:27 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] The Famous Bound/Unbound Debate I don't believe the number of records in a table has any bearing on advantages of bound or unbound as the recordset of a bound form may be set to a single record regardless of number of records in a table. For example, if you use a search or lookup combo at the top of a form or in its header to navigate to a record, you can use the classic Northwinds findfirst in a recordset clone and on not nomatch set the bookmark of the form recordset to the recordset clone bookmark. It is equally valid to set the recordset in the lookup combo after update event to: "Select * FROM tblX WHERE PK = " & me.cboLookup where cboLookup is bound to a hidden first column containing primary keys and visible subsequent columns containing sorted readable key data. It is also possible to create a bound form to display one or more records of data not stored in any table; IE, you can push array data directly into a bound form in order to take advantage of built in navigation controls and record selectors you would need to code if you wanted them in unbound scenarios. In my opinion, the most onerous task a developer takes on when choosing to attempt the unbound route is to manage concurrent unsaved edits in a multi user environment. It is possible to create a concurrent edit resolution system in an unbound system, but using bound forms avoids the need for high level expertise to adequately manage concurrency issues (last person to save a record overwrites any changes made by other users in the time between last person loading the record and closing it with any change to the data without notice). I have devised a scheme or two myself as I work in a 60+ concurrent user envirionment where many of those 60+ people will be having to work with the same 200 active (40 highly active) projects under construction and 100 or so bids pursued in a particular week. Nearly all of my data entry and edit forms are currently bound and my users are trained to select the 'Drop Changes' when they get the automatic built in edit conflict notification, but training only takes you so far. It's nice for a user not to have to drop changes when he edited an address in a record just after the dollar value of a project was changed by another user because your system detected that the changes to the data are in different fields and don't conflict with the changes you made. If you let that site address revision wipe out the contract value because you simply over wrote the table record with your form data and haven't managed or failed to correctly manage that revision in an unbound 'last edit' wins scenario, you may have just cost somebody a lot of money. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Mon, 13 Sep 2010 14:32:22 -0500 > From: garykjos at gmail.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] The Famous Bound/Unbound Debate > > Hi Brad, > > Bound refers to using a record set, possibly a table or maybe a query > as the record source for an Access Form. This has the advantage of > letting Access take care of a lot of functionality. > > Unbound refers to not having a record source for the form and then > using code behind the form to populate the various controls on the > form. Doing this requires some amount of work to populate those > fields, detect changes to them the user might make and then making the > corresponding update to the records in the data tables. > > If you are using Access built in Jet Database as the data storage for > the application and you don't have that many rows in your tables, most > would agree that bound is the way to go. But maybe not ;-) If you use > another database engine to store the data, perhaps SQL Server, it > could be argued that it's much better to only retrieve the individual > records you are wanting to display and or change and so doing that > with code and then populating the controls on the form might be a > better way to go. > > > GK -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From stuart at lexacorp.com.pg Mon Sep 13 17:52:37 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 14 Sep 2010 08:52:37 +1000 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com>, <4C8E9198.20846.1CDD9D3F@stuart.lexacorp.com.pg>, Message-ID: <4C8EAB35.13223.1D41AC8D@stuart.lexacorp.com.pg> According to you I was. Your description of the second method was ONLY about the table structure, not the way the user interface was implemented :-) -- Stuart On 13 Sep 2010 at 17:29, Drew Wutka wrote: > You weren't really using the second method. > ... snip ... > > > > In a bound method, that memo field would be just that, one field, in > > a table. So as notes are 'added' to a ticket, you are modifying one > > field, in one record. > > > > In an unbound method, that memo field would be a separate table, > > with an ID field linking back to the original table. Each entry > > would be timestamped (and stamped with the creator of the record). > > You wouldn't edit a 'comment', simply add a new entry. > > > > There are pros and cons to both methods. From Darryl.Collins at iag.com.au Mon Sep 13 18:49:18 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 14 Sep 2010 09:49:18 +1000 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: Message-ID: <201009132349.o8DNnF2R021309@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ I like using unbound forms as I usually have forms where the user has an option to exit the form *without* saving changes. Using an unbound form this is dead easy, you just drop the data and non of the changes are written back to the underlying table - this is especially true if there are subforms involved that are pointing to different tables. You can undo all the user changes and restore the original record using a bound form, but it is a lot more stuffing around. I find there are also huge speed and stability advantages using unbound as well. Of course your mileage may vary. As other has pointed out, it is horses for courses. There is no right and wrong as such, just some senarios work better with bound and others better with unbound. I am an old nanna, I go for control and stability first. I don't mind writing more code as I like things to be explict and easy to read in the code. Others I work with are exactly opposite. Their code is much tighter than mine, their forms are bound, but I find debug stuff they do a lot harder. me, I am in the unbound camp, but I am not fanatical about it. cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, 14 September 2010 5:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate Hi Brad, Bound refers to using a record set, possibly a table or maybe a query as the record source for an Access Form. This has the advantage of letting Access take care of a lot of functionality. Unbound refers to not having a record source for the form and then using code behind the form to populate the various controls on the form. Doing this requires some amount of work to populate those fields, detect changes to them the user might make and then making the corresponding update to the records in the data tables. If you are using Access built in Jet Database as the data storage for the application and you don't have that many rows in your tables, most would agree that bound is the way to go. But maybe not ;-) If you use another database engine to store the data, perhaps SQL Server, it could be argued that it's much better to only retrieve the individual records you are wanting to display and or change and so doing that with code and then populating the controls on the form might be a better way to go. For many of us, it is a matter of preference in doing it one way or the other. Sometimes it might be better to do it one way and sometimes it might be better to do it the other way. I think that is the gist of it. I'm sure I will be corrected if I have miss-stated something or missed any key points. Another heated past debate was over the use of Natural Keys verses Surrogate Keys. A Surrogate key would be something like an Autonumber field, randomly or sequentially assigned by the database engine. A Natural Key would be something like a Social Security Number. In my opinion Natural Keys are similar to the use of GO TO in COBOL programs. There may be a place for them occasionally but generally they should be avoided. In my opinion. A system assigned unique key that identifies the record allows the field that would have been used as the key to be changed in the event that something happens to make that necessary. Perhaps a data entry error? Whatever. If you have other tables joined to that record on that natural key you are STUCK without doing some cascading update or something. GK On Mon, Sep 13, 2010 at 2:02 PM, Brad Marks wrote: > All, > > Compared to most of you, I am a relative newcomer to the world of > Access. > > Over the past few months, I have noticed a number of references to the > Bound/Unbound debate. ?It sounds like this was a really hotly contested > issue at one time and that now people almost joke about it. > > For us newcomers, it would be nice if someone could explain this issue > at a high level and perhaps spell out the major pros and cons of each > side of the debate. > > It is not my intent to start a Web-war, I would just like to better > understand what is going on here. > > Thanks, > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Monday, September 13, 2010 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SQL Server Express - true skinny > > Exactly. ?Which is part of the premise of the bound/unbound debate. > With unbound forms, where data is written in a split second chunk, the > stability of much higher user volume goes up tremendously! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Friday, September 10, 2010 2:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SQL Server Express - true skinny > > Dan, > > ?That is more or less true, but the real bottle neck with a JET based DB > has > never been .LDB file operations. > > ?With JET, all processing is on the client side. ?The server acts as > nothing > more then a file share. > > ?The trick with keeping a connection open to the BE avoids the repeated > closing/opening of the LDB and DB files and all the associated overhead > with > removing/adding an active user under JET. ?Some apps benefit from that, > other not because they already maintain a connection one way or another. > The problem can be further compounded if the server has OPLOCKS on > (which > allows client side caching of files). ?JET doesn't need this as the > cache is > already on the client side. ?So it's simply a wasted effort on the > servers > part. ?And by default, OPLOCKs is enabled on Windows servers. > > ?The real restriction of JET is just one of stability. ?With no server > side > process to perform a rollback if a disconnect occurs, anytime that > happens > in the middle of write operations your fair game for corruption. ? So by > the > time you get past 30 or 40 stations, it's just hard to keep the > environment > stable. > > ?To prove that point, you can easily run a read-only/reporting JET based > app > with 200+ users without issues. > > ?It's not an issue of performance, but one of stability. > > Jim. > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please > contact the sender > immediately and destroy the material in its entirety, whether electronic > or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this > information by persons > or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From jwcolby at colbyconsulting.com Mon Sep 13 20:33:55 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 13 Sep 2010 21:33:55 -0400 Subject: [AccessD] Verizon Droid 2 for the wife Message-ID: <4C8ED103.6030403@colbyconsulting.com> So I am going for it, the Verizon Droid 2. And of course, the first thing I hear is how to "root" it (whatever that means). It apparently gives superuser permissions so that crapware can be uninstalled and missing good stuff can be installed. Has anyone done this? Comments for the timid? -- John W. Colby www.ColbyConsulting.com From john.k.serrano at gmail.com Mon Sep 13 21:48:36 2010 From: john.k.serrano at gmail.com (js) Date: Mon, 13 Sep 2010 22:48:36 -0400 Subject: [AccessD] Verizon Droid 2 for the wife In-Reply-To: <4C8ED103.6030403@colbyconsulting.com> References: <4C8ED103.6030403@colbyconsulting.com> Message-ID: John Go with the droid x it is a much faster phone On Sep 13, 2010 9:35 PM, "jwcolby" wrote: So I am going for it, the Verizon Droid 2. And of course, the first thing I hear is how to "root" it (whatever that means). It apparently gives superuser permissions so that crapware can be uninstalled and missing good stuff can be installed. Has anyone done this? Comments for the timid? -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Mon Sep 13 21:58:59 2010 From: robert at servicexp.com (Robert) Date: Mon, 13 Sep 2010 22:58:59 -0400 Subject: [AccessD] Verizon Droid 2 for the wife In-Reply-To: <4C8ED103.6030403@colbyconsulting.com> References: <4C8ED103.6030403@colbyconsulting.com> Message-ID: <000601cb53b8$c939fe20$5badfa60$@com> Yes, Although for the Droid Incredible.. Wait for the Unrevoked3 (google it) crew to create a "one click" method.. Super Duper Easy... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 13, 2010 9:34 PM To: Access Developers discussion and problem solving; Vickie Dieter Subject: [AccessD] Verizon Droid 2 for the wife So I am going for it, the Verizon Droid 2. And of course, the first thing I hear is how to "root" it (whatever that means). It apparently gives superuser permissions so that crapware can be uninstalled and missing good stuff can be installed. Has anyone done this? Comments for the timid? -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Sep 13 22:30:02 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 13 Sep 2010 20:30:02 -0700 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com> <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: There are a lot of reasons for choosing between bound and unbound Access databases. If you network is small self-contained, with a single data sources, small data requirements, a stable environment and with simple independent queries, it makes little sense to use any other configuration other than bound. OTOH if you have hundreds of users (speed and accuracy is a requirement), have multiple sources of data (like MySQL, MS SQL Oracle etc), you have the BE MDB on server which boots occasionally or uses web-based (unstable) connections or if you have groups of dependant queries (like a bank transaction where a number of inter-related queries must complete without error before a transaction is complete), in other words an industry level DB then an unbound database is for you. So why use the MS Access presentation manager; well simply because it is the best simple and fastest front end builder. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, September 13, 2010 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate A lot of it was JC and I sparring. LOL I guess the essence is that bound/unbound is a 180 degree difference in the approach of developing an application. Bound forms in Access handle a metric ton of things automatically. So you are starting with a ton of features, and functionality, and end up limiting, tweaking, or removing functionality. Unbound forms are the polar opposite. There is not functionality at all, you have to build everything you want to do from the ground up. Bound design: Pros: Quicker to develop with instant functionality. Can be less code intensive (depending on how much customization is done). Access does a lot of work for you. Cons: More cumbersome from a mutli-user networked app. If you need a light weight form, you spend more time limiting functionality. Unbound design: Pros: Inherently more light weight. Special functionality can be built into, instead of on top of. Cons: Longer development time. More code intensive. You replicate work Access would do automatically in a bound form. One big trigger to the debate was database/application design preferences. JC just brought up his 'call center' application, and a while back, we had a discussion about one element of that application. It was in a 'memo' field. Let's say we had to track calls coming in to a support center. We'd have fields for caller, tech, date, time, issue, categories, etc. And a memo field for details not put into more specific fields. In a bound method, that memo field would be just that, one field, in a table. So as notes are 'added' to a ticket, you are modifying one field, in one record. In an unbound method, that memo field would be a separate table, with an ID field linking back to the original table. Each entry would be timestamped (and stamped with the creator of the record). You wouldn't edit a 'comment', simply add a new entry. There are pros and cons to both methods. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, September 13, 2010 2:03 PM To: Access Developers discussion and problem solving Subject: [AccessD] The Famous Bound/Unbound Debate All, Compared to most of you, I am a relative newcomer to the world of Access. Over the past few months, I have noticed a number of references to the Bound/Unbound debate. It sounds like this was a really hotly contested issue at one time and that now people almost joke about it. For us newcomers, it would be nice if someone could explain this issue at a high level and perhaps spell out the major pros and cons of each side of the debate. It is not my intent to start a Web-war, I would just like to better understand what is going on here. Thanks, Brad The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Mon Sep 13 23:17:00 2010 From: john at winhaven.net (John Bartow) Date: Mon, 13 Sep 2010 23:17:00 -0500 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com> <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: <041601cb53c3$aee459c0$0cad0d40$@winhaven.net> Jim, You can copy and paste it into a post here and because we have a heads up that it's coming, the moderators will let it through for you. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 13, 2010 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] The Famous Bound/Unbound Debate Great explanation Gary. I would only add that part of the debate to is that if you go the unbound route (and do all the work), then you have to ask why bother using Access at all with all of its quirks (I'm talking about install problems and references). After all, you can't do a 3 tier design with it and if your going the unbound route, your typically looking to do some type of n-tier design or client/server setup. Might as well use something else and get a whole heck of a lot more control, access to 3rd party controls, standalone EXE, etc. As far as the PK's, well...I don't quite agree. And I'm not going to get into it here as we've been over that ground many times. In fact I wrote an article for EE with my views on that subject. So if anyone cares to read it, it's here (I'm not 100% sure this will work though for non-members - they've been making a lot of changes lately): http://www.experts-exchange.com/viewArticle.jsp?aid=2041 Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 13, 2010 3:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate Hi Brad, Bound refers to using a record set, possibly a table or maybe a query as the record source for an Access Form. This has the advantage of letting Access take care of a lot of functionality. Unbound refers to not having a record source for the form and then using code behind the form to populate the various controls on the form. Doing this requires some amount of work to populate those fields, detect changes to them the user might make and then making the corresponding update to the records in the data tables. If you are using Access built in Jet Database as the data storage for the application and you don't have that many rows in your tables, most would agree that bound is the way to go. But maybe not ;-) If you use another database engine to store the data, perhaps SQL Server, it could be argued that it's much better to only retrieve the individual records you are wanting to display and or change and so doing that with code and then populating the controls on the form might be a better way to go. For many of us, it is a matter of preference in doing it one way or the other. Sometimes it might be better to do it one way and sometimes it might be better to do it the other way. I think that is the gist of it. I'm sure I will be corrected if I have miss-stated something or missed any key points. Another heated past debate was over the use of Natural Keys verses Surrogate Keys. A Surrogate key would be something like an Autonumber field, randomly or sequentially assigned by the database engine. A Natural Key would be something like a Social Security Number. In my opinion Natural Keys are similar to the use of GO TO in COBOL programs. There may be a place for them occasionally but generally they should be avoided. In my opinion. A system assigned unique key that identifies the record allows the field that would have been used as the key to be changed in the event that something happens to make that necessary. Perhaps a data entry error? Whatever. If you have other tables joined to that record on that natural key you are STUCK without doing some cascading update or something. GK On Mon, Sep 13, 2010 at 2:02 PM, Brad Marks wrote: > All, > > Compared to most of you, I am a relative newcomer to the world of > Access. > > Over the past few months, I have noticed a number of references to the > Bound/Unbound debate. ?It sounds like this was a really hotly > contested issue at one time and that now people almost joke about it. > > For us newcomers, it would be nice if someone could explain this issue > at a high level and perhaps spell out the major pros and cons of each > side of the debate. > > It is not my intent to start a Web-war, I would just like to better > understand what is going on here. > > Thanks, > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Monday, September 13, 2010 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SQL Server Express - true skinny > > Exactly. ?Which is part of the premise of the bound/unbound debate. > With unbound forms, where data is written in a split second chunk, the > stability of much higher user volume goes up tremendously! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Friday, September 10, 2010 2:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SQL Server Express - true skinny > > Dan, > > ?That is more or less true, but the real bottle neck with a JET based > DB has never been .LDB file operations. > > ?With JET, all processing is on the client side. ?The server acts as > nothing more then a file share. > > ?The trick with keeping a connection open to the BE avoids the > repeated closing/opening of the LDB and DB files and all the > associated overhead with removing/adding an active user under JET. ? > Some apps benefit from that, other not because they already maintain a > connection one way or another. > The problem can be further compounded if the server has OPLOCKS on > (which allows client side caching of files). ?JET doesn't need this as > the cache is already on the client side. ?So it's simply a wasted > effort on the servers part. ?And by default, OPLOCKs is enabled on > Windows servers. > > ?The real restriction of JET is just one of stability. ?With no server > side process to perform a rollback if a disconnect occurs, anytime > that happens in the middle of write operations your fair game for > corruption. ? So by the time you get past 30 or 40 stations, it's just > hard to keep the environment stable. > > ?To prove that point, you can easily run a read-only/reporting JET > based app with 200+ users without issues. > > ?It's not an issue of performance, but one of stability. > > Jim. > The information contained in this transmission is intended only for > the person or entity to which it is addressed and may contain II-VI > Proprietary and/or II-VI Business Sensitive material. If you are not > the intended recipient, please contact the sender immediately and > destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, or other use of, or taking of any action in reliance > upon this information by persons or entities other than the intended > recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and dangerous content by > MailScanner, and is believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Sep 14 00:13:32 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 14 Sep 2010 00:13:32 -0500 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: <4C8EAB35.13223.1D41AC8D@stuart.lexacorp.com.pg> References: <4C8A743F.2080808@colbyconsulting.com>, <4C8E9198.20846.1CDD9D3F@stuart.lexacorp.com.pg>, <4C8EAB35.13223.1D41AC8D@stuart.lexacorp.com.pg> Message-ID: Ok.... and? Sorry, not in the mood to actually debate things like this... LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, September 13, 2010 5:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate According to you I was. Your description of the second method was ONLY about the table structure, not the way the user interface was implemented :-) -- Stuart On 13 Sep 2010 at 17:29, Drew Wutka wrote: > You weren't really using the second method. > ... snip ... > > > > In a bound method, that memo field would be just that, one field, in > > a table. So as notes are 'added' to a ticket, you are modifying one > > field, in one record. > > > > In an unbound method, that memo field would be a separate table, > > with an ID field linking back to the original table. Each entry > > would be timestamped (and stamped with the creator of the record). > > You wouldn't edit a 'comment', simply add a new entry. > > > > There are pros and cons to both methods. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From andy at minstersystems.co.uk Tue Sep 14 01:38:52 2010 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 14 Sep 2010 07:38:52 +0100 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: Message-ID: Hey Brad, getting a feeling for it yet? Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 14 September 2010 06:14 To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate Ok.... and? Sorry, not in the mood to actually debate things like this... LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, September 13, 2010 5:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate According to you I was. Your description of the second method was ONLY about the table structure, not the way the user interface was implemented :-) -- Stuart On 13 Sep 2010 at 17:29, Drew Wutka wrote: > You weren't really using the second method. > ... snip ... > > > > In a bound method, that memo field would be just that, one field, in > > a table. So as notes are 'added' to a ticket, you are modifying one > > field, in one record. > > > > In an unbound method, that memo field would be a separate table, > > with an ID field linking back to the original table. Each entry > > would be timestamped (and stamped with the creator of the record). > > You wouldn't edit a 'comment', simply add a new entry. > > > > There are pros and cons to both methods. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Sep 14 05:19:15 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 14 Sep 2010 06:19:15 -0400 Subject: [AccessD] Droid 2 - best add-on apps Message-ID: <4C8F4C23.7030105@colbyconsulting.com> Any thoughts on the most useful apps to add to the device? -- John W. Colby www.ColbyConsulting.com From jimdettman at verizon.net Tue Sep 14 06:42:37 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 14 Sep 2010 07:42:37 -0400 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: <041601cb53c3$aee459c0$0cad0d40$@winhaven.net> References: <4C8A743F.2080808@colbyconsulting.com> <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> <041601cb53c3$aee459c0$0cad0d40$@winhaven.net> Message-ID: <1D1DBFB9CB8241C19518ECBF2AF668EC@XPS> John, I could post it here, but only as raw text and then it would loose all the formatting. If the link works great, if not oh well, they just shot themselves in the foot with all the changes their making. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, September 14, 2010 12:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] The Famous Bound/Unbound Debate Jim, You can copy and paste it into a post here and because we have a heads up that it's coming, the moderators will let it through for you. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 13, 2010 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] The Famous Bound/Unbound Debate Great explanation Gary. I would only add that part of the debate to is that if you go the unbound route (and do all the work), then you have to ask why bother using Access at all with all of its quirks (I'm talking about install problems and references). After all, you can't do a 3 tier design with it and if your going the unbound route, your typically looking to do some type of n-tier design or client/server setup. Might as well use something else and get a whole heck of a lot more control, access to 3rd party controls, standalone EXE, etc. As far as the PK's, well...I don't quite agree. And I'm not going to get into it here as we've been over that ground many times. In fact I wrote an article for EE with my views on that subject. So if anyone cares to read it, it's here (I'm not 100% sure this will work though for non-members - they've been making a lot of changes lately): http://www.experts-exchange.com/viewArticle.jsp?aid=2041 Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 13, 2010 3:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate Hi Brad, Bound refers to using a record set, possibly a table or maybe a query as the record source for an Access Form. This has the advantage of letting Access take care of a lot of functionality. Unbound refers to not having a record source for the form and then using code behind the form to populate the various controls on the form. Doing this requires some amount of work to populate those fields, detect changes to them the user might make and then making the corresponding update to the records in the data tables. If you are using Access built in Jet Database as the data storage for the application and you don't have that many rows in your tables, most would agree that bound is the way to go. But maybe not ;-) If you use another database engine to store the data, perhaps SQL Server, it could be argued that it's much better to only retrieve the individual records you are wanting to display and or change and so doing that with code and then populating the controls on the form might be a better way to go. For many of us, it is a matter of preference in doing it one way or the other. Sometimes it might be better to do it one way and sometimes it might be better to do it the other way. I think that is the gist of it. I'm sure I will be corrected if I have miss-stated something or missed any key points. Another heated past debate was over the use of Natural Keys verses Surrogate Keys. A Surrogate key would be something like an Autonumber field, randomly or sequentially assigned by the database engine. A Natural Key would be something like a Social Security Number. In my opinion Natural Keys are similar to the use of GO TO in COBOL programs. There may be a place for them occasionally but generally they should be avoided. In my opinion. A system assigned unique key that identifies the record allows the field that would have been used as the key to be changed in the event that something happens to make that necessary. Perhaps a data entry error? Whatever. If you have other tables joined to that record on that natural key you are STUCK without doing some cascading update or something. GK On Mon, Sep 13, 2010 at 2:02 PM, Brad Marks wrote: > All, > > Compared to most of you, I am a relative newcomer to the world of > Access. > > Over the past few months, I have noticed a number of references to the > Bound/Unbound debate. ?It sounds like this was a really hotly > contested issue at one time and that now people almost joke about it. > > For us newcomers, it would be nice if someone could explain this issue > at a high level and perhaps spell out the major pros and cons of each > side of the debate. > > It is not my intent to start a Web-war, I would just like to better > understand what is going on here. > > Thanks, > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Monday, September 13, 2010 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SQL Server Express - true skinny > > Exactly. ?Which is part of the premise of the bound/unbound debate. > With unbound forms, where data is written in a split second chunk, the > stability of much higher user volume goes up tremendously! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Friday, September 10, 2010 2:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SQL Server Express - true skinny > > Dan, > > ?That is more or less true, but the real bottle neck with a JET based > DB has never been .LDB file operations. > > ?With JET, all processing is on the client side. ?The server acts as > nothing more then a file share. > > ?The trick with keeping a connection open to the BE avoids the > repeated closing/opening of the LDB and DB files and all the > associated overhead with removing/adding an active user under JET. ? > Some apps benefit from that, other not because they already maintain a > connection one way or another. > The problem can be further compounded if the server has OPLOCKS on > (which allows client side caching of files). ?JET doesn't need this as > the cache is already on the client side. ?So it's simply a wasted > effort on the servers part. ?And by default, OPLOCKs is enabled on > Windows servers. > > ?The real restriction of JET is just one of stability. ?With no server > side process to perform a rollback if a disconnect occurs, anytime > that happens in the middle of write operations your fair game for > corruption. ? So by the time you get past 30 or 40 stations, it's just > hard to keep the environment stable. > > ?To prove that point, you can easily run a read-only/reporting JET > based app with 200+ users without issues. > > ?It's not an issue of performance, but one of stability. > > Jim. > The information contained in this transmission is intended only for > the person or entity to which it is addressed and may contain II-VI > Proprietary and/or II-VI Business Sensitive material. If you are not > the intended recipient, please contact the sender immediately and > destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, or other use of, or taking of any action in reliance > upon this information by persons or entities other than the intended > recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and dangerous content by > MailScanner, and is believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Tue Sep 14 06:56:15 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Tue, 14 Sep 2010 06:56:15 -0500 Subject: [AccessD] The Famous Bound/Unbound Debate References: Message-ID: All, Thanks for sharing your ideas and insights into this issue. I now have a much better understanding of the Bound/Unbound options. It was not my intent to "stir the pot", but it was pretty interesting to read the posts. Thanks again to everyone who chipped in. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Andy Lacey Sent: Tue 9/14/2010 1:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] The Famous Bound/Unbound Debate Hey Brad, getting a feeling for it yet? Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 14 September 2010 06:14 To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate Ok.... and? Sorry, not in the mood to actually debate things like this... LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, September 13, 2010 5:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Famous Bound/Unbound Debate According to you I was. Your description of the second method was ONLY about the table structure, not the way the user interface was implemented :-) -- Stuart On 13 Sep 2010 at 17:29, Drew Wutka wrote: > You weren't really using the second method. > ... snip ... > > > > In a bound method, that memo field would be just that, one field, in > > a table. So as notes are 'added' to a ticket, you are modifying one > > field, in one record. > > > > In an unbound method, that memo field would be a separate table, > > with an ID field linking back to the original table. Each entry > > would be timestamped (and stamped with the creator of the record). > > You wouldn't edit a 'comment', simply add a new entry. > > > > There are pros and cons to both methods. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From rusty.hammond at cpiqpc.com Tue Sep 14 09:08:44 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Tue, 14 Sep 2010 09:08:44 -0500 Subject: [AccessD] Droid 2 - best add-on apps In-Reply-To: <4C8F4C23.7030105@colbyconsulting.com> References: <4C8F4C23.7030105@colbyconsulting.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFD8EA@CPIEMAIL-EVS1.CPIQPC.NET> I have the Motorola Droid - some apps I use regularly - Advanced Task Killer Fee - lets you easily stop programs that are running in the background and draining your battery Evernote - www.evernote.com - keeps notes saved online that you can get to with your phone or pc. Google Maps and Google Places come as part of the O.S. and it also has a built-in gps navigation application. Google Goggles - it may come as part of the O.S. - you can scan a barcode or take a picture of an item and it searches it out on the web. Handy for comparing prices for an item at another store. The Weather Channel Google Sky Map - the kids really like this one - point the back of the phone to the sky and it shows you the stars, planets and constellations in that area of the sky Yahoo Music OI Shopping list - there are many other shopping lists on the droid market, this is the first one I came across Tv.com - I just watched a full episode of the original star trek series while waiting for my daughter at gymnastics practice. Bubble - it's a bubble level - handy for straightening out pictures on the wall :-) All of these are free. I haven't paid for any apps yet but may pay for pdanet. It allows you to use the phone as a modem for your pc. Handy for getting to the office pc if I'm on the road (with my wife driving of course). It uses the phone's data connection. The same feature is built into the latest version of the O.S. but you have to pay a monthly fee to Verizon for that. This bypasses that feature so it's just the one time cost of the software. The free version of pdanet won't allow you to use any secure websites. Logmein also has an app for the Android O.S. so you could actually control any logmein enabled computer directly from your phone. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 14, 2010 5:19 AM To: Access Developers discussion and problem solving; VBA Subject: [AccessD] Droid 2 - best add-on apps Any thoughts on the most useful apps to add to the device? -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From garykjos at gmail.com Tue Sep 14 09:25:47 2010 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 14 Sep 2010 09:25:47 -0500 Subject: [AccessD] Droid 2 - best add-on apps In-Reply-To: <4C8F4C23.7030105@colbyconsulting.com> References: <4C8F4C23.7030105@colbyconsulting.com> Message-ID: I think there is one that lets you make telephone calls ;-) GK On Tue, Sep 14, 2010 at 5:19 AM, jwcolby wrote: > Any thoughts on the most useful apps to add to the device? > > -- > John W. Colby > www.ColbyConsulting.com > -- -- Gary Kjos garykjos at gmail.com From jwcolby at colbyconsulting.com Tue Sep 14 09:46:16 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 14 Sep 2010 10:46:16 -0400 Subject: [AccessD] Web application Message-ID: <4C8F8AB8.30603@colbyconsulting.com> I am doing an application for a non-profit, a "simple" contact database with a bunch of list boxes etc. I am looking at doing this in Light Switch however... I do not use Access 2007, though I do own it. I have heard rumors that it can "publish to the web". Is this true? If so where would I go to learn what is involved. I am planning on doing this against a SQl Server back end. It looks pretty simple so far, about 10 list tables, a single Client table and about 10 tables child to client. And yea, I know it will grow wildly. ;) -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Sep 14 10:13:23 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 14 Sep 2010 11:13:23 -0400 Subject: [AccessD] Droid 2 - best add-on apps In-Reply-To: References: <4C8F4C23.7030105@colbyconsulting.com> Message-ID: <4C8F9113.3020108@colbyconsulting.com> What, this Droid 2 thingie is a telephone? What will they think of next? John W. Colby www.ColbyConsulting.com On 9/14/2010 10:25 AM, Gary Kjos wrote: > I think there is one that lets you make telephone calls ;-) > > GK > > On Tue, Sep 14, 2010 at 5:19 AM, jwcolby wrote: >> Any thoughts on the most useful apps to add to the device? >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- > > From rusty.hammond at cpiqpc.com Tue Sep 14 10:18:31 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Tue, 14 Sep 2010 10:18:31 -0500 Subject: [AccessD] Droid 2 - best add-on apps In-Reply-To: <4C8F9113.3020108@colbyconsulting.com> References: <4C8F4C23.7030105@colbyconsulting.com> <4C8F9113.3020108@colbyconsulting.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFD8EB@CPIEMAIL-EVS1.CPIQPC.NET> Yeah, I think that added that feature in just as a bonus. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 14, 2010 10:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Droid 2 - best add-on apps What, this Droid 2 thingie is a telephone? What will they think of next? John W. Colby www.ColbyConsulting.com On 9/14/2010 10:25 AM, Gary Kjos wrote: > I think there is one that lets you make telephone calls ;-) > > GK > > On Tue, Sep 14, 2010 at 5:19 AM, jwcolby wrote: >> Any thoughts on the most useful apps to add to the device? >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From jimdettman at verizon.net Tue Sep 14 10:50:26 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 14 Sep 2010 11:50:26 -0400 Subject: [AccessD] Web application In-Reply-To: <4C8F8AB8.30603@colbyconsulting.com> References: <4C8F8AB8.30603@colbyconsulting.com> Message-ID: A. Forget about it. B. Use 2010 and SharePoint, which I hear works very well (have not used it myself). C. Use this service: www.eqldata.com Although with a not for profit, budgets are always tight. D. If they have a terminal services server, you can run Citrix Access Essentials and they can then access the app and/or a desktop through a browser. Neat part about that is no separate VPN setup. Just sit down at any computer with a internet connection and a browser and your in. Of course running under TS has a few quirks, but it's workable. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 14, 2010 10:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Web application I am doing an application for a non-profit, a "simple" contact database with a bunch of list boxes etc. I am looking at doing this in Light Switch however... I do not use Access 2007, though I do own it. I have heard rumors that it can "publish to the web". Is this true? If so where would I go to learn what is involved. I am planning on doing this against a SQl Server back end. It looks pretty simple so far, about 10 list tables, a single Client table and about 10 tables child to client. And yea, I know it will grow wildly. ;) -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Tue Sep 14 11:07:20 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 14 Sep 2010 12:07:20 -0400 Subject: [AccessD] Is Hide Duplicates gone in 2007? Message-ID: I can't find the Hide Duplicates property in the property sheet in Access 2007? Surely they didn't eliminate it? Susan H. From jwcolby at colbyconsulting.com Tue Sep 14 11:34:42 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 14 Sep 2010 12:34:42 -0400 Subject: [AccessD] Web application In-Reply-To: References: <4C8F8AB8.30603@colbyconsulting.com> Message-ID: <4C8FA422.7070603@colbyconsulting.com> I was thinking about trying to use something like LogMeIn but of course then there is an issue with users / rights at the workstation level etc. I doubt that they have a TS server. This is a smallish NP local to a hand full of counties in North Carolina. I would really like to write something that could be accessed via a browser so that they could enter their data from their homes etc. John W. Colby www.ColbyConsulting.com On 9/14/2010 11:50 AM, Jim Dettman wrote: > > A. Forget about it. > B. Use 2010 and SharePoint, which I hear works very well (have not used it > myself). > C. Use this service: www.eqldata.com Although with a not for profit, > budgets are always tight. > > D. If they have a terminal services server, you can run Citrix Access > Essentials and they can then access the app and/or a desktop through a > browser. Neat part about that is no separate VPN setup. Just sit down at > any computer with a internet connection and a browser and your in. Of > course running under TS has a few quirks, but it's workable. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, September 14, 2010 10:46 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Web application > > I am doing an application for a non-profit, a "simple" contact database with > a bunch of list boxes etc. > > I am looking at doing this in Light Switch however... > > I do not use Access 2007, though I do own it. I have heard rumors that it > can "publish to the web". > Is this true? If so where would I go to learn what is involved. > > I am planning on doing this against a SQl Server back end. It looks pretty > simple so far, about 10 > list tables, a single Client table and about 10 tables child to client. > > And yea, I know it will grow wildly. ;) > From charlotte.foust at gmail.com Tue Sep 14 11:41:40 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Tue, 14 Sep 2010 09:41:40 -0700 Subject: [AccessD] Is Hide Duplicates gone in 2007? In-Reply-To: References: Message-ID: Right click the group header and you'll see sorting and grouping on the context menu. Charlotte Foust On Tue, Sep 14, 2010 at 9:07 AM, Susan Harkins wrote: > I can't find the Hide Duplicates property in the property sheet in Access 2007? Surely they didn't eliminate it? > > Susan H. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at gmail.com Tue Sep 14 11:51:46 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 14 Sep 2010 12:51:46 -0400 Subject: [AccessD] Is Hide Duplicates gone in 2007? References: Message-ID: <93DF71929534489FBD8F8D5A31195CEF@salvationomc4p> Still can't find the Hide Duplicates property. Susan H. > Right click the group header and you'll see sorting and grouping on > the context menu. > > Charlotte Foust > > On Tue, Sep 14, 2010 at 9:07 AM, Susan Harkins > wrote: >> I can't find the Hide Duplicates property in the property sheet in Access >> 2007? Surely they didn't eliminate it? >> >> Susan H. From charlotte.foust at gmail.com Tue Sep 14 12:09:48 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Tue, 14 Sep 2010 10:09:48 -0700 Subject: [AccessD] Is Hide Duplicates gone in 2007? In-Reply-To: <93DF71929534489FBD8F8D5A31195CEF@salvationomc4p> References: <93DF71929534489FBD8F8D5A31195CEF@salvationomc4p> Message-ID: You won't find it like that. You have to create a group for the field you want to suppress duplicates on. That's the way it works in .Net and now in Access 2007. Check the help file for "Create a Grouped or Summary Report." Charlotte On Tue, Sep 14, 2010 at 9:51 AM, Susan Harkins wrote: > Still can't find the Hide Duplicates property. > > Susan H. > > >> Right click the group header and you'll see sorting and grouping on >> the context menu. >> >> Charlotte Foust >> >> On Tue, Sep 14, 2010 at 9:07 AM, Susan Harkins >> wrote: >>> I can't find the Hide Duplicates property in the property sheet in Access >>> 2007? Surely they didn't eliminate it? >>> >>> Susan H. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From charlotte.foust at gmail.com Tue Sep 14 12:11:58 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Tue, 14 Sep 2010 10:11:58 -0700 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: Message-ID: Oh, Brad, put down that can opener and let the worms stay undisturbed! The Bound/Unbound debate is primarily a religious issue. LOL Charlotte Foust On Tue, Sep 14, 2010 at 4:56 AM, Brad Marks wrote: > All, > > Thanks for sharing your ideas and insights into this issue. > > I now have a much better understanding of the Bound/Unbound options. > > It was not my intent to "stir the pot", but it was pretty interesting to read the posts. > > Thanks again to everyone who chipped in. > > Brad > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com on behalf of Andy Lacey > Sent: Tue 9/14/2010 1:38 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] The Famous Bound/Unbound Debate > > Hey Brad, getting a feeling for it yet? > > Andy > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: 14 September 2010 06:14 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] The Famous Bound/Unbound Debate > > > Ok.... and? > > Sorry, not in the mood to actually debate things like this... LOL > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Monday, September 13, 2010 5:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] The Famous Bound/Unbound Debate > > According to you I was. ? Your description of the second method ?was > ONLY about the table > structure, not the way the user interface was implemented :-) > > -- > Stuart > > On 13 Sep 2010 at 17:29, Drew Wutka wrote: > >> You weren't really using the second method. >> > ... > snip > ... >> > >> > In a bound method, that memo field would be just that, one field, in >> > a table. ?So as notes are 'added' to a ticket, you are modifying one >> > field, in one record. >> > >> > In an unbound method, that memo field would be a separate table, >> > with an ID field linking back to the original table. ?Each entry >> > would be timestamped (and stamped with the creator of the record). >> > You wouldn't edit a 'comment', simply add a new entry. >> > >> > There are pros and cons to both methods. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please contact > the sender > immediately and destroy the material in its entirety, whether electronic or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this information > by persons > or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From davidmcafee at gmail.com Tue Sep 14 12:21:24 2010 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 14 Sep 2010 10:21:24 -0700 Subject: [AccessD] Droid 2 - best add-on apps In-Reply-To: References: <4C8F4C23.7030105@colbyconsulting.com> Message-ID: They do that? :P My favorites (I'm running a Motorola Droid (1) with Android 2.2: Games: Gem Miner Labyrinth Raging Thunder Robo Defense Slimball Lite Bubble Burst Free Bonsai Blast Solitaire (forget the company, but I found it when searching for Fourty Theives. Fishy (Reminds me of Shark Shark on the old Intellivision consoles) Pyramid (Solitaire) Solitaires Arena Air Control Light Wordfeud (scrabble) - invite me to a game (davidmcafee at gmail.com) Sudoku (by Mighty Mighty Good games), I purchased this game. I loved this version so much on Samantha's iPhone, I had to have it on my phone. Simply the best one out. Music: Shazam Pandora iTag MP3 Cover Fetcher Misc: Bar Code Scanner (needed for the next two) Google Goggles KeyRing (Put all of those supermarket club key rings into this neat little app) Weather Channel Astro File Manager Droid Light (flash light) Calculator Bubble (neat level tool) Ultrachron (stop watch) AK Notepad aCar (car fuel maintenance log) Dictionary.com app Adobe Flash Player Where's my droid (makes your phone ring via SMS message in case its on silent and under a seat cushion) Pintail (Locates your phone via SMS message in case you leave it somewhere) On Tue, Sep 14, 2010 at 7:25 AM, Gary Kjos wrote: > I think there is one that lets you make telephone calls ?;-) > > GK > > On Tue, Sep 14, 2010 at 5:19 AM, jwcolby wrote: >> Any thoughts on the most useful apps to add to the device? >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davidmcafee at gmail.com Tue Sep 14 12:25:11 2010 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 14 Sep 2010 10:25:11 -0700 Subject: [AccessD] Did they remove Ctrl R from 2007? Message-ID: IIRC, when I was in design view of a form, I could press CTRL+R to make the properties change to the Form. If you click on the white area of a form (not on a control) in the detail area, the detail properties are chosen by default. It used to be you could click it again to switch to the form's properties or press CTRL + R. Neither seem to work for me in A2007, I have to scroll the form out into the blue abyss and click that to get the properties to switch (or drop the selection drop box from the top of the properties sheet. D From ssharkins at gmail.com Tue Sep 14 12:28:46 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 14 Sep 2010 13:28:46 -0400 Subject: [AccessD] Is Hide Duplicates gone in 2007? References: <93DF71929534489FBD8F8D5A31195CEF@salvationomc4p> Message-ID: Should mention that I'm in 2010 not 2007, so that might make a difference. I created a group, so now what? I can find Hide Details, but nothing on hiding duplicates. Checked the Help resource. I guess I'm going blind in my old age! ;) Moving on... I can't find it and can't find anything that even refers to it, at least, not in a way I recognize! Susan H. > You won't find it like that. You have to create a group for the field > you want to suppress duplicates on. That's the way it works in .Net > and now in Access 2007. Check the help file for "Create a Grouped or > Summary Report." > From davidmcafee at gmail.com Tue Sep 14 12:30:12 2010 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 14 Sep 2010 10:30:12 -0700 Subject: [AccessD] Verizon Droid 2 for the wife In-Reply-To: <000601cb53b8$c939fe20$5badfa60$@com> References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> Message-ID: don't root it. I know a few people that have and it leads to instability. It basically allows to to tweak/overclock your phone, run programs not normally designed to run on your phone. It can also leave you with a "bricked" phone, an expensive paper weight. I believe rooting it also voids warranty. On Mon, Sep 13, 2010 at 7:58 PM, Robert wrote: > Yes, Although for the Droid Incredible.. > > Wait for the Unrevoked3 (google it) crew to create a "one click" method.. > Super Duper Easy... > > WBR > Robert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, September 13, 2010 9:34 PM > To: Access Developers discussion and problem solving; Vickie Dieter > Subject: [AccessD] Verizon Droid 2 for the wife > > So I am going for it, the Verizon Droid 2. > > And of course, the first thing I hear is how to "root" it (whatever that > means). ?It apparently > gives superuser permissions so that crapware can be uninstalled and missing > good stuff can be installed. > > Has anyone done this? ?Comments for the timid? > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From garykjos at gmail.com Tue Sep 14 13:38:02 2010 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 14 Sep 2010 13:38:02 -0500 Subject: [AccessD] Web application In-Reply-To: <4C8F8AB8.30603@colbyconsulting.com> References: <4C8F8AB8.30603@colbyconsulting.com> Message-ID: Have you looked at Dot Net Nuke? That's what my web developer buddy swears by for Web projects with SQL Server back ends. I believe they have a free version. http://www.dotnetnuke.com/ GK On Tue, Sep 14, 2010 at 9:46 AM, jwcolby wrote: > I am doing an application for a non-profit, a "simple" contact database with a bunch of list boxes etc. > > I am looking at doing this in Light Switch however... > > I do not use Access 2007, though I do own it. ?I have heard rumors that it can "publish to the web". > ?Is this true? If so where would I go to learn what is involved. > > I am planning on doing this against a SQl Server back end. ?It looks pretty simple so far, about 10 > list tables, a single Client table and about 10 tables child to client. > > And yea, I know it will grow wildly. ?;) > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From jwcolby at colbyconsulting.com Tue Sep 14 13:47:04 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 14 Sep 2010 14:47:04 -0400 Subject: [AccessD] Verizon Droid 2 for the wife In-Reply-To: References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> Message-ID: <4C8FC328.2060002@colbyconsulting.com> David, It also allows you to 1) Delete the crapware installed by the phone company For example there are apparently games and other crapware which work for a few times or a few days, then cease to work. But they do not go away, they are there taking up screen / disk / memory etc. 2) Run programs that work perfectly well but the phone company does not approve of For example, there is apparently a Google map app which is replaced by a phone company specific map app; Google map apparently being prevented from installing. Phone company version apparently performing something the phone company wants (advertising revenue?). Sorry, but the phone is mine, just as my pc is mine. I am buying it or have paid for it and it is inappropriate for the phone company to install crapware that I cannot uninstall, or force me to use their version of an app so that they can flash ads at me. JMHO of course. John W. Colby www.ColbyConsulting.com On 9/14/2010 1:30 PM, David McAfee wrote: > don't root it. > > I know a few people that have and it leads to instability. > > It basically allows to to tweak/overclock your phone, run programs not > normally designed to run on your phone. > > It can also leave you with a "bricked" phone, an expensive paper weight. > > I believe rooting it also voids warranty. > > > > On Mon, Sep 13, 2010 at 7:58 PM, Robert wrote: >> Yes, Although for the Droid Incredible.. >> >> Wait for the Unrevoked3 (google it) crew to create a "one click" method.. >> Super Duper Easy... >> >> WBR >> Robert >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Monday, September 13, 2010 9:34 PM >> To: Access Developers discussion and problem solving; Vickie Dieter >> Subject: [AccessD] Verizon Droid 2 for the wife >> >> So I am going for it, the Verizon Droid 2. >> >> And of course, the first thing I hear is how to "root" it (whatever that >> means). It apparently >> gives superuser permissions so that crapware can be uninstalled and missing >> good stuff can be installed. >> >> Has anyone done this? Comments for the timid? >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From davidmcafee at gmail.com Tue Sep 14 13:58:15 2010 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 14 Sep 2010 11:58:15 -0700 Subject: [AccessD] Verizon Droid 2 for the wife In-Reply-To: <4C8FC328.2060002@colbyconsulting.com> References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> <4C8FC328.2060002@colbyconsulting.com> Message-ID: 1. To uninstall software: Settings->Manage Applications->Choose All (Default is Downloaded). You can uninstall FaceBook, Maps, My Verizon. This is a Droid, not an iPhone. ;) 2. That's how you get virii ;) But I suppose you can (using directions above) uninstall maps, then install the non OEM Map app. If it isn't downloadable from the marketplace (red flag IMO) go to Settings ->Manage Applications -> and check "Unknown sources" then install it. more and more apps are going to using ads as a deterrent to purchase the full version. It does piss me off that they started placing ads on the Map app update last week. D On Tue, Sep 14, 2010 at 11:47 AM, jwcolby wrote: > David, > > It also allows you to > > 1) Delete the crapware installed by the phone company > > For example there are apparently games and other crapware which work for a few times or a few days, > then cease to work. ?But they do not go away, they are there taking up screen / disk / memory etc. > > 2) Run programs that work perfectly well but the phone company does not approve of > > For example, there is apparently a Google map app which is replaced by a phone company specific map > app; Google map apparently being prevented from installing. ?Phone company version apparently > performing something the phone company wants (advertising revenue?). > > Sorry, but the phone is mine, just as my pc is mine. ?I am buying it or have paid for it and it is > inappropriate for the phone company to install crapware that I cannot uninstall, or force me to use > their version of an app so that they can flash ads at me. > > JMHO of course. > > John W. Colby > www.ColbyConsulting.com > > On 9/14/2010 1:30 PM, David McAfee wrote: >> don't root it. >> >> I know a few people that have and it leads to instability. >> >> It basically allows to to tweak/overclock your phone, run programs not >> normally designed to run on your phone. >> >> It can also leave you with a "bricked" phone, an expensive paper weight. >> >> I believe rooting it also voids warranty. >> >> >> >> On Mon, Sep 13, 2010 at 7:58 PM, Robert ?wrote: >>> Yes, Although for the Droid Incredible.. >>> >>> Wait for the Unrevoked3 (google it) crew to create a "one click" method.. >>> Super Duper Easy... >>> >>> WBR >>> Robert >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Monday, September 13, 2010 9:34 PM >>> To: Access Developers discussion and problem solving; Vickie Dieter >>> Subject: [AccessD] Verizon Droid 2 for the wife >>> >>> So I am going for it, the Verizon Droid 2. >>> >>> And of course, the first thing I hear is how to "root" it (whatever that >>> means). ?It apparently >>> gives superuser permissions so that crapware can be uninstalled and missing >>> good stuff can be installed. >>> >>> Has anyone done this? ?Comments for the timid? >>> >>> -- >>> John W. Colby >>> www.ColbyConsulting.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Sep 14 14:04:36 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 14 Sep 2010 15:04:36 -0400 Subject: [AccessD] Web application In-Reply-To: References: <4C8F8AB8.30603@colbyconsulting.com> Message-ID: <4C8FC744.2080103@colbyconsulting.com> I run DNN on my web site. DNN is not an application however, it is a web site framework. While you can write modules to run under DNN the learning curve is steep and you need to do so using something like asp.net. Now, I might end up writing it in asp.net anyway, but that would run under anything that could serve my app, not be DNN specific. John W. Colby www.ColbyConsulting.com On 9/14/2010 2:38 PM, Gary Kjos wrote: > Have you looked at Dot Net Nuke? That's what my web developer buddy > swears by for Web projects with SQL Server back ends. > > I believe they have a free version. > > http://www.dotnetnuke.com/ > > GK > > On Tue, Sep 14, 2010 at 9:46 AM, jwcolby wrote: >> I am doing an application for a non-profit, a "simple" contact database with a bunch of list boxes etc. >> >> I am looking at doing this in Light Switch however... >> >> I do not use Access 2007, though I do own it. I have heard rumors that it can "publish to the web". >> Is this true? If so where would I go to learn what is involved. >> >> I am planning on doing this against a SQl Server back end. It looks pretty simple so far, about 10 >> list tables, a single Client table and about 10 tables child to client. >> >> And yea, I know it will grow wildly. ;) >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > From jwcolby at colbyconsulting.com Tue Sep 14 14:12:23 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 14 Sep 2010 15:12:23 -0400 Subject: [AccessD] Verizon Droid 2 for the wife In-Reply-To: References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> <4C8FC328.2060002@colbyconsulting.com> Message-ID: <4C8FC917.2030701@colbyconsulting.com> 1) I shall certainly try that first 2) Well... if I get the app from the marketplace, how do I guarantee that it won't have a virus? 3) Native Google maps and the like are updated and made better (we hope). I would prefer to use that than the phone specific version which may or may not ever be updated. This is all new to me, but kinda exciting. 4) Tethering. Built in to the Droid OS by Google, removed from the phone by Verizon so that they can sell it back to me for a not insignificant sum every month. I think not! I will not use it often, but when I do I will not pay for it every month or call to turn it on / off etc. John W. Colby www.ColbyConsulting.com On 9/14/2010 2:58 PM, David McAfee wrote: > 1. To uninstall software: Settings->Manage Applications->Choose All > (Default is Downloaded). > > You can uninstall FaceBook, Maps, My Verizon. > > This is a Droid, not an iPhone. ;) > > 2. That's how you get virii ;) > > But I suppose you can (using directions above) uninstall maps, then > install the non OEM Map app. > > If it isn't downloadable from the marketplace (red flag IMO) > > go to Settings ->Manage Applications -> and check "Unknown sources" > > then install it. > > more and more apps are going to using ads as a deterrent to purchase > the full version. > > It does piss me off that they started placing ads on the Map app > update last week. > > D > > > On Tue, Sep 14, 2010 at 11:47 AM, jwcolby wrote: >> David, >> >> It also allows you to >> >> 1) Delete the crapware installed by the phone company >> >> For example there are apparently games and other crapware which work for a few times or a few days, >> then cease to work. But they do not go away, they are there taking up screen / disk / memory etc. >> >> 2) Run programs that work perfectly well but the phone company does not approve of >> >> For example, there is apparently a Google map app which is replaced by a phone company specific map >> app; Google map apparently being prevented from installing. Phone company version apparently >> performing something the phone company wants (advertising revenue?). >> >> Sorry, but the phone is mine, just as my pc is mine. I am buying it or have paid for it and it is >> inappropriate for the phone company to install crapware that I cannot uninstall, or force me to use >> their version of an app so that they can flash ads at me. >> >> JMHO of course. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 9/14/2010 1:30 PM, David McAfee wrote: >>> don't root it. >>> >>> I know a few people that have and it leads to instability. >>> >>> It basically allows to to tweak/overclock your phone, run programs not >>> normally designed to run on your phone. >>> >>> It can also leave you with a "bricked" phone, an expensive paper weight. >>> >>> I believe rooting it also voids warranty. >>> >>> >>> >>> On Mon, Sep 13, 2010 at 7:58 PM, Robert wrote: >>>> Yes, Although for the Droid Incredible.. >>>> >>>> Wait for the Unrevoked3 (google it) crew to create a "one click" method.. >>>> Super Duper Easy... >>>> >>>> WBR >>>> Robert >>>> >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: Monday, September 13, 2010 9:34 PM >>>> To: Access Developers discussion and problem solving; Vickie Dieter >>>> Subject: [AccessD] Verizon Droid 2 for the wife >>>> >>>> So I am going for it, the Verizon Droid 2. >>>> >>>> And of course, the first thing I hear is how to "root" it (whatever that >>>> means). It apparently >>>> gives superuser permissions so that crapware can be uninstalled and missing >>>> good stuff can be installed. >>>> >>>> Has anyone done this? Comments for the timid? >>>> >>>> -- >>>> John W. Colby >>>> www.ColbyConsulting.com >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From davidmcafee at gmail.com Tue Sep 14 14:19:41 2010 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 14 Sep 2010 12:19:41 -0700 Subject: [AccessD] Verizon Droid 2 for the wife In-Reply-To: <4C8FC917.2030701@colbyconsulting.com> References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> <4C8FC328.2060002@colbyconsulting.com> <4C8FC917.2030701@colbyconsulting.com> Message-ID: They are great phones. I bought hte Droid (1) when it first came out. I bought my son the HTC Droid Eris for Xmas. We can play games against each other (such as the Raging Thunder) over the our home network or via the web. He can transfer files to me via bluetooth . I, like you, wanted to unlock my phone and do all the stuff that the Verizon doesnt want me to, but I've decided for now to leave it as is while it is under warranty. I've started playing around with writing my own apps. That, to me is the ticket! ;) Android has a great dev site, with great tutorials: http://developer.android.com/index.html On Tue, Sep 14, 2010 at 12:12 PM, jwcolby wrote: > 1) I shall certainly try that first > 2) Well... if I get the app from the marketplace, how do I guarantee that it won't have a virus? > 3) Native Google maps and the like are updated and made better (we hope). ?I would prefer to use > that than the phone specific version which may or may not ever be updated. > > This is all new to me, but kinda exciting. > > 4) Tethering. ?Built in to the Droid OS by Google, removed from the phone by Verizon so that they > can sell it back to me for a not insignificant sum every month. ?I think not! ?I will not use it > often, but when I do I will not pay for it every month or call to turn it on / off etc. > > John W. Colby > www.ColbyConsulting.com > > On 9/14/2010 2:58 PM, David McAfee wrote: >> 1. To uninstall software: Settings->Manage Applications->Choose All >> (Default is Downloaded). >> >> You can uninstall FaceBook, Maps, My Verizon. >> >> This is a Droid, not an iPhone. ;) >> >> 2. That's how you get virii ;) >> >> But I suppose you can (using directions above) uninstall maps, then >> install the non OEM Map app. >> >> If it isn't downloadable from the marketplace (red flag IMO) >> >> go to Settings ->Manage Applications -> ?and check "Unknown sources" >> >> then install it. >> >> more and more apps are going to using ads as a deterrent to purchase >> the full version. >> >> It does piss me off that they started placing ads on the Map app >> update last week. >> >> D >> >> >> On Tue, Sep 14, 2010 at 11:47 AM, jwcolby ?wrote: >>> David, >>> >>> It also allows you to >>> >>> 1) Delete the crapware installed by the phone company >>> >>> For example there are apparently games and other crapware which work for a few times or a few days, >>> then cease to work. ?But they do not go away, they are there taking up screen / disk / memory etc. >>> >>> 2) Run programs that work perfectly well but the phone company does not approve of >>> >>> For example, there is apparently a Google map app which is replaced by a phone company specific map >>> app; Google map apparently being prevented from installing. ?Phone company version apparently >>> performing something the phone company wants (advertising revenue?). >>> >>> Sorry, but the phone is mine, just as my pc is mine. ?I am buying it or have paid for it and it is >>> inappropriate for the phone company to install crapware that I cannot uninstall, or force me to use >>> their version of an app so that they can flash ads at me. >>> >>> JMHO of course. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> On 9/14/2010 1:30 PM, David McAfee wrote: >>>> don't root it. >>>> >>>> I know a few people that have and it leads to instability. >>>> >>>> It basically allows to to tweak/overclock your phone, run programs not >>>> normally designed to run on your phone. >>>> >>>> It can also leave you with a "bricked" phone, an expensive paper weight. >>>> >>>> I believe rooting it also voids warranty. >>>> >>>> >>>> >>>> On Mon, Sep 13, 2010 at 7:58 PM, Robert ? ?wrote: >>>>> Yes, Although for the Droid Incredible.. >>>>> >>>>> Wait for the Unrevoked3 (google it) crew to create a "one click" method.. >>>>> Super Duper Easy... >>>>> >>>>> WBR >>>>> Robert >>>>> >>>>> >>>>> -----Original Message----- >>>>> From: accessd-bounces at databaseadvisors.com >>>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>>> Sent: Monday, September 13, 2010 9:34 PM >>>>> To: Access Developers discussion and problem solving; Vickie Dieter >>>>> Subject: [AccessD] Verizon Droid 2 for the wife >>>>> >>>>> So I am going for it, the Verizon Droid 2. >>>>> >>>>> And of course, the first thing I hear is how to "root" it (whatever that >>>>> means). ?It apparently >>>>> gives superuser permissions so that crapware can be uninstalled and missing >>>>> good stuff can be installed. >>>>> >>>>> Has anyone done this? ?Comments for the timid? >>>>> >>>>> -- >>>>> John W. Colby >>>>> www.ColbyConsulting.com >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From steve at datamanagementsolutions.biz Tue Sep 14 14:25:55 2010 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Wed, 15 Sep 2010 07:25:55 +1200 Subject: [AccessD] Is Hide Duplicates gone in 2007? In-Reply-To: References: <93DF71929534489FBD8F8D5A31195CEF@salvationomc4p> Message-ID: <135E987FE763489ABF2AE35C9082EB81@stevelaptop> Susan, Hide Duplicates hasn't gone. I can see it here in both Access 2007 and Access 2010. It's in the property sheet for textboxes, under the Format tab. So I'm not sure why you can't find it. Regards Steve -----Original Message----- From: Susan Harkins Sent: Wednesday, September 15, 2010 5:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Is Hide Duplicates gone in 2007? Should mention that I'm in 2010 not 2007, so that might make a difference. I created a group, so now what? I can find Hide Details, but nothing on hiding duplicates. Checked the Help resource. I guess I'm going blind in my old age! ;) Moving on... I can't find it and can't find anything that even refers to it, at least, not in a way I recognize! From jwcolby at colbyconsulting.com Tue Sep 14 14:26:24 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 14 Sep 2010 15:26:24 -0400 Subject: [AccessD] Verizon Droid 2 for the wife In-Reply-To: References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> <4C8FC328.2060002@colbyconsulting.com> <4C8FC917.2030701@colbyconsulting.com> Message-ID: <4C8FCC60.8040602@colbyconsulting.com> > I've started playing around with writing my own apps. That, to me is the ticket! ;) Android has a great dev site, with great tutorials: I do need more to keep me occupied! ;) John W. Colby www.ColbyConsulting.com On 9/14/2010 3:19 PM, David McAfee wrote: > They are great phones. I bought hte Droid (1) when it first came out. > > I bought my son the HTC Droid Eris for Xmas. > > We can play games against each other (such as the Raging Thunder) over > the our home network or via the web. > > He can transfer files to me via bluetooth . > > I, like you, wanted to unlock my phone and do all the stuff that the > Verizon doesnt want me to, but I've decided for now to leave it as is > while it is under warranty. > > I've started playing around with writing my own apps. That, to me is > the ticket! ;) > Android has a great dev site, with great tutorials: > > http://developer.android.com/index.html > > > > > > On Tue, Sep 14, 2010 at 12:12 PM, jwcolby wrote: >> 1) I shall certainly try that first >> 2) Well... if I get the app from the marketplace, how do I guarantee that it won't have a virus? >> 3) Native Google maps and the like are updated and made better (we hope). I would prefer to use >> that than the phone specific version which may or may not ever be updated. >> >> This is all new to me, but kinda exciting. >> >> 4) Tethering. Built in to the Droid OS by Google, removed from the phone by Verizon so that they >> can sell it back to me for a not insignificant sum every month. I think not! I will not use it >> often, but when I do I will not pay for it every month or call to turn it on / off etc. >> >> John W. Colby >> www.ColbyConsulting.com From rusty.hammond at cpiqpc.com Tue Sep 14 14:30:44 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Tue, 14 Sep 2010 14:30:44 -0500 Subject: [AccessD] Verizon Droid 2 for the wife In-Reply-To: <4C8FC917.2030701@colbyconsulting.com> References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> <4C8FC328.2060002@colbyconsulting.com> <4C8FC917.2030701@colbyconsulting.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFD8ED@CPIEMAIL-EVS1.CPIQPC.NET> 4. You can purchase a 3rd party app to do the tethering called pdanet. One time fee for the app. No monthly fees from Verizon - unless they've somehow locked that down since the last time I checked. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 14, 2010 2:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Verizon Droid 2 for the wife 1) I shall certainly try that first 2) Well... if I get the app from the marketplace, how do I guarantee that it won't have a virus? 3) Native Google maps and the like are updated and made better (we hope). I would prefer to use that than the phone specific version which may or may not ever be updated. This is all new to me, but kinda exciting. 4) Tethering. Built in to the Droid OS by Google, removed from the phone by Verizon so that they can sell it back to me for a not insignificant sum every month. I think not! I will not use it often, but when I do I will not pay for it every month or call to turn it on / off etc. John W. Colby www.ColbyConsulting.com On 9/14/2010 2:58 PM, David McAfee wrote: > 1. To uninstall software: Settings->Manage Applications->Choose All > (Default is Downloaded). > > You can uninstall FaceBook, Maps, My Verizon. > > This is a Droid, not an iPhone. ;) > > 2. That's how you get virii ;) > > But I suppose you can (using directions above) uninstall maps, then > install the non OEM Map app. > > If it isn't downloadable from the marketplace (red flag IMO) > > go to Settings ->Manage Applications -> and check "Unknown sources" > > then install it. > > more and more apps are going to using ads as a deterrent to purchase > the full version. > > It does piss me off that they started placing ads on the Map app > update last week. > > D > > > On Tue, Sep 14, 2010 at 11:47 AM, jwcolby wrote: >> David, >> >> It also allows you to >> >> 1) Delete the crapware installed by the phone company >> >> For example there are apparently games and other crapware which work >> for a few times or a few days, then cease to work. But they do not go away, they are there taking up screen / disk / memory etc. >> >> 2) Run programs that work perfectly well but the phone company does >> not approve of >> >> For example, there is apparently a Google map app which is replaced >> by a phone company specific map app; Google map apparently being >> prevented from installing. Phone company version apparently performing something the phone company wants (advertising revenue?). >> >> Sorry, but the phone is mine, just as my pc is mine. I am buying it >> or have paid for it and it is inappropriate for the phone company to >> install crapware that I cannot uninstall, or force me to use their version of an app so that they can flash ads at me. >> >> JMHO of course. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 9/14/2010 1:30 PM, David McAfee wrote: >>> don't root it. >>> >>> I know a few people that have and it leads to instability. >>> >>> It basically allows to to tweak/overclock your phone, run programs >>> not normally designed to run on your phone. >>> >>> It can also leave you with a "bricked" phone, an expensive paper weight. >>> >>> I believe rooting it also voids warranty. >>> >>> >>> >>> On Mon, Sep 13, 2010 at 7:58 PM, Robert wrote: >>>> Yes, Although for the Droid Incredible.. >>>> >>>> Wait for the Unrevoked3 (google it) crew to create a "one click" method.. >>>> Super Duper Easy... >>>> >>>> WBR >>>> Robert >>>> >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: Monday, September 13, 2010 9:34 PM >>>> To: Access Developers discussion and problem solving; Vickie Dieter >>>> Subject: [AccessD] Verizon Droid 2 for the wife >>>> >>>> So I am going for it, the Verizon Droid 2. >>>> >>>> And of course, the first thing I hear is how to "root" it (whatever >>>> that means). It apparently gives superuser permissions so that >>>> crapware can be uninstalled and missing good stuff can be >>>> installed. >>>> >>>> Has anyone done this? Comments for the timid? >>>> >>>> -- >>>> John W. Colby >>>> www.ColbyConsulting.com >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From jwcolby at colbyconsulting.com Tue Sep 14 14:39:34 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 14 Sep 2010 15:39:34 -0400 Subject: [AccessD] Verizon Droid 2 for the wife In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFD8ED@CPIEMAIL-EVS1.CPIQPC.NET> References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> <4C8FC328.2060002@colbyconsulting.com> <4C8FC917.2030701@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFD8ED@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4C8FCF76.1020803@colbyconsulting.com> Yep, and that is my intention. John W. Colby www.ColbyConsulting.com On 9/14/2010 3:30 PM, Rusty Hammond wrote: > 4. You can purchase a 3rd party app to do the tethering called pdanet. > One time fee for the app. No monthly fees from Verizon - unless they've > somehow locked that down since the last time I checked. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, September 14, 2010 2:12 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Verizon Droid 2 for the wife > > 1) I shall certainly try that first > 2) Well... if I get the app from the marketplace, how do I guarantee > that it won't have a virus? > 3) Native Google maps and the like are updated and made better (we > hope). I would prefer to use that than the phone specific version which > may or may not ever be updated. > > This is all new to me, but kinda exciting. > > 4) Tethering. Built in to the Droid OS by Google, removed from the > phone by Verizon so that they can sell it back to me for a not > insignificant sum every month. I think not! I will not use it often, > but when I do I will not pay for it every month or call to turn it on / > off etc. > > John W. Colby > www.ColbyConsulting.com > > On 9/14/2010 2:58 PM, David McAfee wrote: >> 1. To uninstall software: Settings->Manage Applications->Choose All >> (Default is Downloaded). >> >> You can uninstall FaceBook, Maps, My Verizon. >> >> This is a Droid, not an iPhone. ;) >> >> 2. That's how you get virii ;) >> >> But I suppose you can (using directions above) uninstall maps, then >> install the non OEM Map app. >> >> If it isn't downloadable from the marketplace (red flag IMO) >> >> go to Settings ->Manage Applications -> and check "Unknown sources" >> >> then install it. >> >> more and more apps are going to using ads as a deterrent to purchase >> the full version. >> >> It does piss me off that they started placing ads on the Map app >> update last week. >> >> D >> >> >> On Tue, Sep 14, 2010 at 11:47 AM, jwcolby > wrote: >>> David, >>> >>> It also allows you to >>> >>> 1) Delete the crapware installed by the phone company >>> >>> For example there are apparently games and other crapware which work >>> for a few times or a few days, then cease to work. But they do not > go away, they are there taking up screen / disk / memory etc. >>> >>> 2) Run programs that work perfectly well but the phone company does >>> not approve of >>> >>> For example, there is apparently a Google map app which is replaced >>> by a phone company specific map app; Google map apparently being >>> prevented from installing. Phone company version apparently > performing something the phone company wants (advertising revenue?). >>> >>> Sorry, but the phone is mine, just as my pc is mine. I am buying it >>> or have paid for it and it is inappropriate for the phone company to >>> install crapware that I cannot uninstall, or force me to use their > version of an app so that they can flash ads at me. >>> >>> JMHO of course. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> On 9/14/2010 1:30 PM, David McAfee wrote: >>>> don't root it. >>>> >>>> I know a few people that have and it leads to instability. >>>> >>>> It basically allows to to tweak/overclock your phone, run programs >>>> not normally designed to run on your phone. >>>> >>>> It can also leave you with a "bricked" phone, an expensive paper > weight. >>>> >>>> I believe rooting it also voids warranty. >>>> >>>> >>>> >>>> On Mon, Sep 13, 2010 at 7:58 PM, Robert > wrote: >>>>> Yes, Although for the Droid Incredible.. >>>>> >>>>> Wait for the Unrevoked3 (google it) crew to create a "one click" > method.. >>>>> Super Duper Easy... >>>>> >>>>> WBR >>>>> Robert >>>>> >>>>> >>>>> -----Original Message----- >>>>> From: accessd-bounces at databaseadvisors.com >>>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>>> Sent: Monday, September 13, 2010 9:34 PM >>>>> To: Access Developers discussion and problem solving; Vickie Dieter >>>>> Subject: [AccessD] Verizon Droid 2 for the wife >>>>> >>>>> So I am going for it, the Verizon Droid 2. >>>>> >>>>> And of course, the first thing I hear is how to "root" it (whatever > >>>>> that means). It apparently gives superuser permissions so that >>>>> crapware can be uninstalled and missing good stuff can be >>>>> installed. >>>>> >>>>> Has anyone done this? Comments for the timid? >>>>> >>>>> -- >>>>> John W. Colby >>>>> www.ColbyConsulting.com >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. > corporate e-mail system and is subject to archival, monitoring or review > by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > From ssharkins at gmail.com Tue Sep 14 14:47:47 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 14 Sep 2010 15:47:47 -0400 Subject: [AccessD] Is Hide Duplicates gone in 2007? References: <93DF71929534489FBD8F8D5A31195CEF@salvationomc4p> <135E987FE763489ABF2AE35C9082EB81@stevelaptop> Message-ID: <6D8B2C6888B04D448A6FE251BCBF5D22@salvationomc4p> Oh crap.... it is way down there isn't it! Thank you Steve. Susan H. > Susan, > > Hide Duplicates hasn't gone. I can see it here in both Access 2007 and > Access 2010. It's in the property sheet for textboxes, under the Format > tab. So I'm not sure why you can't find it. From robert at servicexp.com Tue Sep 14 14:45:35 2010 From: robert at servicexp.com (Robert) Date: Tue, 14 Sep 2010 15:45:35 -0400 Subject: [AccessD] Verizon Droid 2 for the wife In-Reply-To: References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> Message-ID: <003b01cb5445$69d25620$3d770260$@com> Indeed, the possibility of bricking the phone is always there, but with the new methods of rooting, it's very rare. I have had my Drinc rooted for 5 months now, through 2.1 and now the final 2.2 ROMS. I have had Zero instability problems. The things that I can do with the phone now that it is rooted (I also have s-off) is awesome, but you know what my favorite is.... making a complete, bare metal, backup of everything on the phone. Believe it or not, you can't do that without being rooted.. As always YMMV WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Tuesday, September 14, 2010 1:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Verizon Droid 2 for the wife don't root it. I know a few people that have and it leads to instability. It basically allows to to tweak/overclock your phone, run programs not normally designed to run on your phone. It can also leave you with a "bricked" phone, an expensive paper weight. I believe rooting it also voids warranty. On Mon, Sep 13, 2010 at 7:58 PM, Robert wrote: > Yes, Although for the Droid Incredible.. > > Wait for the Unrevoked3 (google it) crew to create a "one click" method.. > Super Duper Easy... > > WBR > Robert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, September 13, 2010 9:34 PM > To: Access Developers discussion and problem solving; Vickie Dieter > Subject: [AccessD] Verizon Droid 2 for the wife > > So I am going for it, the Verizon Droid 2. > > And of course, the first thing I hear is how to "root" it (whatever that > means). ?It apparently > gives superuser permissions so that crapware can be uninstalled and missing > good stuff can be installed. > > Has anyone done this? ?Comments for the timid? > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Tue Sep 14 15:49:45 2010 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 14 Sep 2010 13:49:45 -0700 Subject: [AccessD] Did they remove Ctrl R from 2007? In-Reply-To: References: Message-ID: OK, maybe a better question would be: Can someone using A2003 or earlier confirm that CTRL+R does work in a forms design mode? On Tue, Sep 14, 2010 at 10:25 AM, David McAfee wrote: > IIRC, when I was in design view of a form, I could press CTRL+R to > make the properties change to the Form. > If you click on the white area of a form (not on a control) in the > detail area, the detail properties are chosen by default. > > It used to be you could click it again to switch to the form's > properties or press CTRL + R. > > Neither seem to work for me in A2007, I have to scroll the form out > into the blue abyss and click that to get the properties to switch (or > drop the selection drop box from the top of the properties sheet. > > D > From ab-mi at post3.tele.dk Tue Sep 14 16:44:27 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Tue, 14 Sep 2010 23:44:27 +0200 Subject: [AccessD] Did they remove Ctrl R from 2007? In-Reply-To: References: Message-ID: David, Didnt know this shortcut. Tried it in A2003 and A2007: In A2003 both Ctrl+r and Ctrl+R focus on the form. In A2003 Ctrl+r does nothing but Ctrl+R works like in A2003, i.e. setting the form on focus. Did you actually press Ctrl and Upper-R? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af David McAfee Sendt: 14. september 2010 22:50 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Did they remove Ctrl R from 2007? OK, maybe a better question would be: Can someone using A2003 or earlier confirm that CTRL+R does work in a forms design mode? On Tue, Sep 14, 2010 at 10:25 AM, David McAfee wrote: > IIRC, when I was in design view of a form, I could press CTRL+R to > make the properties change to the Form. > If you click on the white area of a form (not on a control) in the > detail area, the detail properties are chosen by default. > > It used to be you could click it again to switch to the form's > properties or press CTRL + R. > > Neither seem to work for me in A2007, I have to scroll the form out > into the blue abyss and click that to get the properties to switch (or > drop the selection drop box from the top of the properties sheet. > > D > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ab-mi at post3.tele.dk Tue Sep 14 16:55:42 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Tue, 14 Sep 2010 23:55:42 +0200 Subject: [AccessD] Did they remove Ctrl R from 2007? In-Reply-To: References: Message-ID: Correction: >In A2003 Ctrl+r does nothing but Ctrl+R works like in A2003, i.e. setting >the form on focus. - should of course read: In A2007 Ctrl+r does nothing but Ctrl+R works like in A2003, i.e. setting the form on focus. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Asger Blond Sendt: 14. september 2010 23:44 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Did they remove Ctrl R from 2007? David, Didnt know this shortcut. Tried it in A2003 and A2007: In A2003 both Ctrl+r and Ctrl+R focus on the form. In A2003 Ctrl+r does nothing but Ctrl+R works like in A2003, i.e. setting the form on focus. Did you actually press Ctrl and Upper-R? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af David McAfee Sendt: 14. september 2010 22:50 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Did they remove Ctrl R from 2007? OK, maybe a better question would be: Can someone using A2003 or earlier confirm that CTRL+R does work in a forms design mode? On Tue, Sep 14, 2010 at 10:25 AM, David McAfee wrote: > IIRC, when I was in design view of a form, I could press CTRL+R to > make the properties change to the Form. > If you click on the white area of a form (not on a control) in the > detail area, the detail properties are chosen by default. > > It used to be you could click it again to switch to the form's > properties or press CTRL + R. > > Neither seem to work for me in A2007, I have to scroll the form out > into the blue abyss and click that to get the properties to switch (or > drop the selection drop box from the top of the properties sheet. > > D > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Wed Sep 15 02:44:25 2010 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Sep 2010 09:44:25 +0200 Subject: [AccessD] OT: Verizon Droid 2 for the wife Message-ID: Hi David Ha ha. Poor JC. As if he isn't busy enough, now he should run JDK and Eclipse! New fun! I've decided to wait a month or so for a Windows Phone 7. That I can program with Visual Studio. Real fun! /gustav >>> davidmcafee at gmail.com 14-09-2010 21:19 >>> They are great phones. I bought hte Droid (1) when it first came out. I bought my son the HTC Droid Eris for Xmas. We can play games against each other (such as the Raging Thunder) over the our home network or via the web. He can transfer files to me via bluetooth . I, like you, wanted to unlock my phone and do all the stuff that the Verizon doesnt want me to, but I've decided for now to leave it as is while it is under warranty. I've started playing around with writing my own apps. That, to me is the ticket! ;) Android has a great dev site, with great tutorials: http://developer.android.com/index.html On Tue, Sep 14, 2010 at 12:12 PM, jwcolby wrote: > 1) I shall certainly try that first > 2) Well... if I get the app from the marketplace, how do I guarantee that it won't have a virus? > 3) Native Google maps and the like are updated and made better (we hope). I would prefer to use > that than the phone specific version which may or may not ever be updated. > > This is all new to me, but kinda exciting. > > 4) Tethering. Built in to the Droid OS by Google, removed from the phone by Verizon so that they > can sell it back to me for a not insignificant sum every month. I think not! I will not use it > often, but when I do I will not pay for it every month or call to turn it on / off etc. > > John W. Colby > www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Sep 15 05:31:39 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 15 Sep 2010 06:31:39 -0400 Subject: [AccessD] OT: Verizon Droid 2 for the wife In-Reply-To: References: Message-ID: <4C90A08B.6040803@colbyconsulting.com> LOL, I know. More stuff to learn. I bought it because it seems like a good smart phone. Users rate it highly, and it isn't the iphone. John W. Colby www.ColbyConsulting.com On 9/15/2010 3:44 AM, Gustav Brock wrote: > Hi David > > Ha ha. Poor JC. As if he isn't busy enough, now he should run JDK and Eclipse! New fun! > > I've decided to wait a month or so for a Windows Phone 7. That I can program with Visual Studio. Real fun! > > /gustav > > >>>> davidmcafee at gmail.com 14-09-2010 21:19>>> > They are great phones. I bought hte Droid (1) when it first came out. > > I bought my son the HTC Droid Eris for Xmas. > > We can play games against each other (such as the Raging Thunder) over > the our home network or via the web. > > He can transfer files to me via bluetooth . > > I, like you, wanted to unlock my phone and do all the stuff that the > Verizon doesnt want me to, but I've decided for now to leave it as is > while it is under warranty. > > I've started playing around with writing my own apps. That, to me is > the ticket! ;) > Android has a great dev site, with great tutorials: > > http://developer.android.com/index.html From carbonnb at gmail.com Wed Sep 15 09:13:57 2010 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 15 Sep 2010 10:13:57 -0400 Subject: [AccessD] Archive Search Function Not Working? In-Reply-To: <96BDE89A26634D07B171342F210132E8@creativesystemdesigns.com> References: <9A71D281EBF445BE996C147D6BC0E45F@HAL9005> <4C8DF83B.8010000@colbyconsulting.com> <96BDE89A26634D07B171342F210132E8@creativesystemdesigns.com> Message-ID: Sorry folks. I haven't been monitoring the list in quite a while. But I've been looking into the archive issue since Jim brought it to my attention. I'll post here when it is back up and searching. Bryan On Mon, Sep 13, 2010 at 2:26 PM, Jim Lawrence wrote: > Hi John: > > This is the first time I have heard about this and have forwarded a request > to Bryan to check it out or if I do not hear anything shortly I will > investigate it myself. > > I did test the search features using an asterisk "*" and returned over 75K > hits, so the data is still there but the search engine seems to not be > functioning. > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, September 13, 2010 3:09 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Archive Search Function Not Working? > > Yep, I tried the other day with same results. ?I posted here but no one > responded. > > John W. Colby > www.ColbyConsulting.com > > On 9/12/2010 11:40 PM, Rocky Smolin wrote: >> I tried to retrieve something from the archives but the search function >> doesn't seem to be working for me. ?Any search I enter comes up with no >> matches. ?I'm using Firefox - don't know if that has any bearing. >> >> >> >> Anyone else experiencing this? >> >> >> >> Rocky Smolin >> >> Beach Access Software >> >> 858-259-4334 >> >> Skype: rocky.smolin >> >> www.e-z-mrp.com >> >> www.bchacc.com >> >> >> >> >> >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From john at winhaven.net Wed Sep 15 10:12:01 2010 From: john at winhaven.net (John Bartow) Date: Wed, 15 Sep 2010 10:12:01 -0500 Subject: [AccessD] Verizon Droid 2 for the wife In-Reply-To: <4C8FCC60.8040602@colbyconsulting.com> References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> <4C8FC328.2060002@colbyconsulting.com> <4C8FC917.2030701@colbyconsulting.com> <4C8FCC60.8040602@colbyconsulting.com> Message-ID: <006901cb54e8$595f3a30$0c1dae90$@winhaven.net> Yea, I can see JC writing a phone app: One of his robots would go pick up the phone, answer it and begin reading his papers on: -bound vs. unbound -autonumber vs. natural primary keys -classes (all the while retrieving a cool drink for him and rubbing his feet while he reads the latest literature on how to make a smoking fast SQL Server system using the new quantum physics based solid state drives) ...if you would now like to speak to Mr. Colby directly please press 1... sorry, he is busy, please call again. The robot hits END. ;o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 14, 2010 2:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Verizon Droid 2 for the wife > I've started playing around with writing my own apps. That, to me is the ticket! ;) Android has a great dev site, with great tutorials: I do need more to keep me occupied! ;) John W. Colby www.ColbyConsulting.com On 9/14/2010 3:19 PM, David McAfee wrote: > They are great phones. I bought hte Droid (1) when it first came out. > > I bought my son the HTC Droid Eris for Xmas. > > We can play games against each other (such as the Raging Thunder) over > the our home network or via the web. > > He can transfer files to me via bluetooth . > > I, like you, wanted to unlock my phone and do all the stuff that the > Verizon doesnt want me to, but I've decided for now to leave it as is > while it is under warranty. > > I've started playing around with writing my own apps. That, to me is > the ticket! ;) Android has a great dev site, with great tutorials: > > http://developer.android.com/index.html > > > > > > On Tue, Sep 14, 2010 at 12:12 PM, jwcolby wrote: >> 1) I shall certainly try that first >> 2) Well... if I get the app from the marketplace, how do I guarantee that it won't have a virus? >> 3) Native Google maps and the like are updated and made better (we >> hope). I would prefer to use that than the phone specific version which may or may not ever be updated. >> >> This is all new to me, but kinda exciting. >> >> 4) Tethering. Built in to the Droid OS by Google, removed from the >> phone by Verizon so that they can sell it back to me for a not >> insignificant sum every month. I think not! I will not use it often, but when I do I will not pay for it every month or call to turn it on / off etc. >> >> John W. Colby >> www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Sep 15 10:23:00 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 15 Sep 2010 11:23:00 -0400 Subject: [AccessD] Verizon Droid 2 for the wife In-Reply-To: <006901cb54e8$595f3a30$0c1dae90$@winhaven.net> References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> <4C8FC328.2060002@colbyconsulting.com> <4C8FC917.2030701@colbyconsulting.com> <4C8FCC60.8040602@colbyconsulting.com> <006901cb54e8$595f3a30$0c1dae90$@winhaven.net> Message-ID: <4C90E4D4.1000802@colbyconsulting.com> Have you got a mole in my organization? ;) John W. Colby www.ColbyConsulting.com On 9/15/2010 11:12 AM, John Bartow wrote: > Yea, I can see JC writing a phone app: > > One of his robots would go pick up the phone, answer it and begin reading > his papers on: > -bound vs. unbound > -autonumber vs. natural primary keys > -classes > (all the while retrieving a cool drink for him and rubbing his feet while he > reads the latest literature on how to make a smoking fast SQL Server system > using the new quantum physics based solid state drives) > > ...if you would now like to speak to Mr. Colby directly please press 1... > sorry, he is busy, please call again. The robot hits END. > > ;o) > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, September 14, 2010 2:26 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Verizon Droid 2 for the wife > > > I've started playing around with writing my own apps. That, to me is the > ticket! ;) Android has a great dev site, with great tutorials: > > I do need more to keep me occupied! ;) > > John W. Colby > www.ColbyConsulting.com From lmrazek at lcm-res.com Wed Sep 15 10:39:23 2010 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 15 Sep 2010 10:39:23 -0500 Subject: [AccessD] Link to Document in Sharepoint Libraray In-Reply-To: <006901cb54e8$595f3a30$0c1dae90$@winhaven.net> References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> <4C8FC328.2060002@colbyconsulting.com> <4C8FC917.2030701@colbyconsulting.com> <4C8FCC60.8040602@colbyconsulting.com> <006901cb54e8$595f3a30$0c1dae90$@winhaven.net> Message-ID: <10c601cb54ec$2d4df590$87e9e0b0$@com> Hi Folks: I have an application that currently links to documents on a fileshare ... this has worked well, but now it looks like we're going to convert all of their document management to Sharepoint. While I have some experience with Sharepoint, I'm not sure if it is possible to do the following: 1. Browse a sharepoint document library 2. Select a file, save the file location to access. Does anyone have any experience with this? Is it even possible? Larry Mrazek lmrazek at lcm-res.com ph. 314-496-1645 From jm.hwsn at gmail.com Wed Sep 15 11:24:12 2010 From: jm.hwsn at gmail.com (Jim Hewson) Date: Wed, 15 Sep 2010 11:24:12 -0500 Subject: [AccessD] Link to Document in Sharepoint Libraray In-Reply-To: <10c601cb54ec$2d4df590$87e9e0b0$@com> References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> <4C8FC328.2060002@colbyconsulting.com> <4C8FC917.2030701@colbyconsulting.com> <4C8FCC60.8040602@colbyconsulting.com> <006901cb54e8$595f3a30$0c1dae90$@winhaven.net> <10c601cb54ec$2d4df590$87e9e0b0$@com> Message-ID: <4c90f330.0a45650a.2436.5987@mx.google.com> Here are a couple of things to keep in mind. IF you are using AD with SharePoint it is possible. However, keep in mind if the user does not have access to the SharePoint site then they will not be able to link to the library. Each library has its own URL, so the link is essentially a hyperlink. If your location is the document library and the user has access rights then browsing would be allowed. If not the user will get a message that they are not authorized to that site. A person could select a file, and then save the URL to a field in Access if needed. I'm not sure that's the way I would go. I would be more inclined to give them the URL to the document library only - sometimes the URL changes if the document changes. I would bypass Access entirely. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Wednesday, September 15, 2010 10:39 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Link to Document in Sharepoint Libraray Hi Folks: I have an application that currently links to documents on a fileshare ... this has worked well, but now it looks like we're going to convert all of their document management to Sharepoint. While I have some experience with Sharepoint, I'm not sure if it is possible to do the following: 1. Browse a sharepoint document library 2. Select a file, save the file location to access. Does anyone have any experience with this? Is it even possible? Larry Mrazek lmrazek at lcm-res.com ph. 314-496-1645 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lmrazek at lcm-res.com Wed Sep 15 11:41:20 2010 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 15 Sep 2010 11:41:20 -0500 Subject: [AccessD] Link to Document in Sharepoint Libraray In-Reply-To: <4c90f330.0a45650a.2436.5987@mx.google.com> References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> <4C8FC328.2060002@colbyconsulting.com> <4C8FC917.2030701@colbyconsulting.com> <4C8FCC60.8040602@colbyconsulting.com> <006901cb54e8$595f3a30$0c1dae90$@winhaven.net> <10c601cb54ec$2d4df590$87e9e0b0$@com> <4c90f330.0a45650a.2436.5987@mx.google.com> Message-ID: <10e501cb54f4$d471c3d0$7d554b70$@com> Thanks Jim: They'd all be using AD w/Sharepoint. Suppose the issue is that the database has links to quote documents on the record level and I'd like to keep that linkage if we move the document management from FileShares to Sharepoint. I thought of having them paste the URL link to a document, as you said (I don't like that method either) ... just trying to see how this might be done. We'll probably at some point be converting the entire app over to SharePoint/.NET, but right now looking for an intermediate step that will allow them to keep the functionality. Larry Mrazek lmrazek at lcm-res.com ph. 314-496-1645 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Wednesday, September 15, 2010 11:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Link to Document in Sharepoint Libraray Here are a couple of things to keep in mind. IF you are using AD with SharePoint it is possible. However, keep in mind if the user does not have access to the SharePoint site then they will not be able to link to the library. Each library has its own URL, so the link is essentially a hyperlink. If your location is the document library and the user has access rights then browsing would be allowed. If not the user will get a message that they are not authorized to that site. A person could select a file, and then save the URL to a field in Access if needed. I'm not sure that's the way I would go. I would be more inclined to give them the URL to the document library only - sometimes the URL changes if the document changes. I would bypass Access entirely. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Wednesday, September 15, 2010 10:39 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Link to Document in Sharepoint Libraray Hi Folks: I have an application that currently links to documents on a fileshare ... this has worked well, but now it looks like we're going to convert all of their document management to Sharepoint. While I have some experience with Sharepoint, I'm not sure if it is possible to do the following: 1. Browse a sharepoint document library 2. Select a file, save the file location to access. Does anyone have any experience with this? Is it even possible? Larry Mrazek lmrazek at lcm-res.com ph. 314-496-1645 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Wed Sep 15 11:44:39 2010 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 15 Sep 2010 09:44:39 -0700 Subject: [AccessD] Did they remove Ctrl R from 2007? In-Reply-To: References: Message-ID: ah, no I didn't. Ctrl+Shift+r (CTRL+R) works. I don't know why I got into the habit of using it, but I've been doing it since Access95. :/ Thanks, I never even thought of trying that! On Tue, Sep 14, 2010 at 2:44 PM, Asger Blond wrote: > > David, > Didnt know this shortcut. Tried it in A2003 and A2007: > In A2003 both Ctrl+r and Ctrl+R focus on the form. In A2003 Ctrl+r does nothing but Ctrl+R works like in A2003, i.e. setting the form on focus. > Did you actually press Ctrl and Upper-R? > Asger > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af David McAfee > Sendt: 14. september 2010 22:50 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Did they remove Ctrl R from 2007? > > OK, maybe a better question would be: > > Can someone using A2003 or earlier confirm that CTRL+R does work in a > forms design mode? > > > > On Tue, Sep 14, 2010 at 10:25 AM, David McAfee wrote: >> IIRC, when I was in design view of a form, I could press CTRL+R to >> make the properties change to the Form. >> If you click on the white area of a form (not on a control) in the >> detail area, the detail properties are chosen by default. >> >> It used to be you could click it again to switch to the form's >> properties or press CTRL + R. >> >> Neither seem to work for me in A2007, I have to scroll the form out >> into the blue abyss and click that to get the properties to switch (or >> drop the selection drop box from the top of the properties sheet. >> >> D >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From lmrazek at lcm-res.com Wed Sep 15 11:48:57 2010 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 15 Sep 2010 11:48:57 -0500 Subject: [AccessD] Link to Document in Sharepoint Libraray In-Reply-To: <4c90f330.0a45650a.2436.5987@mx.google.com> References: <4C8ED103.6030403@colbyconsulting.com> <000601cb53b8$c939fe20$5badfa60$@com> <4C8FC328.2060002@colbyconsulting.com> <4C8FC917.2030701@colbyconsulting.com> <4C8FCC60.8040602@colbyconsulting.com> <006901cb54e8$595f3a30$0c1dae90$@winhaven.net> <10c601cb54ec$2d4df590$87e9e0b0$@com> <4c90f330.0a45650a.2436.5987@mx.google.com> Message-ID: <10ef01cb54f5$e4e5b090$aeb111b0$@com> Just tried linking to a Sharepoint list ... this might be the method I can use to maintain the document linkages ... Larry Mrazek lmrazek at lcm-res.com ph. 314-496-1645 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Wednesday, September 15, 2010 11:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Link to Document in Sharepoint Libraray Here are a couple of things to keep in mind. IF you are using AD with SharePoint it is possible. However, keep in mind if the user does not have access to the SharePoint site then they will not be able to link to the library. Each library has its own URL, so the link is essentially a hyperlink. If your location is the document library and the user has access rights then browsing would be allowed. If not the user will get a message that they are not authorized to that site. A person could select a file, and then save the URL to a field in Access if needed. I'm not sure that's the way I would go. I would be more inclined to give them the URL to the document library only - sometimes the URL changes if the document changes. I would bypass Access entirely. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Wednesday, September 15, 2010 10:39 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Link to Document in Sharepoint Libraray Hi Folks: I have an application that currently links to documents on a fileshare ... this has worked well, but now it looks like we're going to convert all of their document management to Sharepoint. While I have some experience with Sharepoint, I'm not sure if it is possible to do the following: 1. Browse a sharepoint document library 2. Select a file, save the file location to access. Does anyone have any experience with this? Is it even possible? Larry Mrazek lmrazek at lcm-res.com ph. 314-496-1645 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Wed Sep 15 11:49:57 2010 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 15 Sep 2010 09:49:57 -0700 Subject: [AccessD] OT: Verizon Droid 2 for the wife In-Reply-To: <4C90A08B.6040803@colbyconsulting.com> References: <4C90A08B.6040803@colbyconsulting.com> Message-ID: We've been programming for iPaqs using WM2003, WM5, WM6 since 2005. We're going to start moving our SQLCE apps from iPaqs over to Mobil phones. I was just given an HTC phone with WM6.5 on it. I may get one with WM7 on it. I can't wait to get more involved with the Android stuff to be able to use our apps on those. I'd also love to learn to program iPhones, but I don't own a Mac. On Wed, Sep 15, 2010 at 3:31 AM, jwcolby wrote: > LOL, I know. ?More stuff to learn. > > I bought it because it seems like a good smart phone. ?Users rate it highly, and it isn't the iphone. > > John W. Colby > www.ColbyConsulting.com > > On 9/15/2010 3:44 AM, Gustav Brock wrote: >> Hi David >> >> Ha ha. Poor JC. As if he isn't busy enough, now he should run JDK and Eclipse! New fun! >> >> I've decided to wait a month or so for a Windows Phone 7. That I can program with Visual Studio. Real fun! >> >> /gustav >> >> >>>>> davidmcafee at gmail.com 14-09-2010 21:19>>> >> They are great phones. I bought hte Droid (1) when it first came out. >> >> I bought my son the HTC Droid Eris for Xmas. >> >> We can play games against each other (such as the Raging Thunder) over >> the our home network or via the web. >> >> He can transfer files to me via bluetooth . >> >> I, like you, wanted to unlock my phone and do all the stuff that the >> Verizon doesnt want me to, but I've decided for now to leave it as is >> while it is under warranty. >> >> I've started playing around with writing my own apps. That, to me is >> the ticket! ;) >> Android has a great dev site, with great tutorials: >> >> http://developer.android.com/index.html > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bill_patten at embarqmail.com Wed Sep 15 15:19:56 2010 From: bill_patten at embarqmail.com (Bill Patten) Date: Wed, 15 Sep 2010 13:19:56 -0700 Subject: [AccessD] OT: Verizon Droid 2 for the wife In-Reply-To: References: <4C90A08B.6040803@colbyconsulting.com> Message-ID: David, Be careful, last I heard Compact SQL was not going into Win Mobile 7, in fact only a certified developer can install programs for testing and they must be registered with MS to be installed in WM 7 by their clients.. Be sure to check this out as I have been wrong before. I have an WM 6.5 app that syncs with my SQL Server and at this time cannot use Win 7. Some people think MS will change their mind. I sure hope so. Bill -------------------------------------------------- From: "David McAfee" Sent: Wednesday, September 15, 2010 9:49 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] OT: Verizon Droid 2 for the wife We've been programming for iPaqs using WM2003, WM5, WM6 since 2005. We're going to start moving our SQLCE apps from iPaqs over to Mobil phones. I was just given an HTC phone with WM6.5 on it. I may get one with WM7 on it. I can't wait to get more involved with the Android stuff to be able to use our apps on those. I'd also love to learn to program iPhones, but I don't own a Mac. On Wed, Sep 15, 2010 at 3:31 AM, jwcolby wrote: > LOL, I know. More stuff to learn. > > I bought it because it seems like a good smart phone. Users rate it > highly, and it isn't the iphone. > > John W. Colby > www.ColbyConsulting.com > > On 9/15/2010 3:44 AM, Gustav Brock wrote: >> Hi David >> >> Ha ha. Poor JC. As if he isn't busy enough, now he should run JDK and >> Eclipse! New fun! >> >> I've decided to wait a month or so for a Windows Phone 7. That I can >> program with Visual Studio. Real fun! >> >> /gustav >> >> >>>>> davidmcafee at gmail.com 14-09-2010 21:19>>> >> They are great phones. I bought hte Droid (1) when it first came out. >> >> I bought my son the HTC Droid Eris for Xmas. >> >> We can play games against each other (such as the Raging Thunder) over >> the our home network or via the web. >> >> He can transfer files to me via bluetooth . >> >> I, like you, wanted to unlock my phone and do all the stuff that the >> Verizon doesnt want me to, but I've decided for now to leave it as is >> while it is under warranty. >> >> I've started playing around with writing my own apps. That, to me is >> the ticket! ;) >> Android has a great dev site, with great tutorials: >> >> http://developer.android.com/index.html > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Wed Sep 15 15:53:37 2010 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 15 Sep 2010 13:53:37 -0700 Subject: [AccessD] OT: Verizon Droid 2 for the wife In-Reply-To: References: <4C90A08B.6040803@colbyconsulting.com> Message-ID: Do you have any links regarding the drop in WM7? It wouldn't be the first time they screwed us over. We were originally developing the FE in eVB and using Cdb for the file type. Then when they switchted to SQLCE and the SDF, we had to convert everything. Then they changed the CF3.5 and everything had to be converted again (not as bad as the last time) but we lost support for WM2003. On Wed, Sep 15, 2010 at 1:19 PM, Bill Patten wrote: > David, > > Be careful, last I heard Compact SQL was not going into Win Mobile 7, in > fact only a certified ?developer can install programs for testing and they > must be registered with MS to be installed in WM 7 by their clients.. > Be sure to check this out as I have been wrong before. > > I have an WM 6.5 app that syncs with my SQL Server and at this time cannot > use Win 7. ?Some people think MS will change their mind. I sure hope so. > > Bill > > -------------------------------------------------- > From: "David McAfee" > Sent: Wednesday, September 15, 2010 9:49 AM > To: "Access Developers discussion and problem solving" > > Subject: Re: [AccessD] OT: Verizon Droid 2 for the wife > > We've been programming for iPaqs using WM2003, WM5, WM6 since 2005. > > We're going to start moving our SQLCE apps from iPaqs over to Mobil phones. > > I was just given an HTC phone with WM6.5 on it. I may get one with WM7 on > it. > > I can't wait to get more involved with the Android stuff to be able to > use our apps on those. > > I'd also love to learn to program iPhones, but I don't own a Mac. > > > > > On Wed, Sep 15, 2010 at 3:31 AM, jwcolby > wrote: >> LOL, I know. ?More stuff to learn. >> >> I bought it because it seems like a good smart phone. ?Users rate it >> highly, and it isn't the iphone. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 9/15/2010 3:44 AM, Gustav Brock wrote: >>> Hi David >>> >>> Ha ha. Poor JC. As if he isn't busy enough, now he should run JDK and >>> Eclipse! New fun! >>> >>> I've decided to wait a month or so for a Windows Phone 7. That I can >>> program with Visual Studio. Real fun! >>> >>> /gustav >>> >>> >>>>>> davidmcafee at gmail.com 14-09-2010 21:19>>> >>> They are great phones. I bought hte Droid (1) when it first came out. >>> >>> I bought my son the HTC Droid Eris for Xmas. >>> >>> We can play games against each other (such as the Raging Thunder) over >>> the our home network or via the web. >>> >>> He can transfer files to me via bluetooth . >>> >>> I, like you, wanted to unlock my phone and do all the stuff that the >>> Verizon doesnt want me to, but I've decided for now to leave it as is >>> while it is under warranty. >>> >>> I've started playing around with writing my own apps. That, to me is >>> the ticket! ;) >>> Android has a great dev site, with great tutorials: >>> >>> http://developer.android.com/index.html >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kathryn at bassett.net Wed Sep 15 16:05:20 2010 From: kathryn at bassett.net (Kathryn Bassett) Date: Wed, 15 Sep 2010 14:05:20 -0700 Subject: [AccessD] OT: Verizon Droid 2 for the wife In-Reply-To: References: <4C90A08B.6040803@colbyconsulting.com> Message-ID: <007d01cb5519$b4cf02c0$1e6d0840$@net> Can't remember if it was here or OT, but one of you mentioned PdaNet. I am always turning on and back off the tethering for my smartphone so I thought I'd see if they had an app for the Windows Mobile. They do so I took advantage of the trial period to see if it worked, or if Verizon blocked it as someone thought might be a possibility. Yeah, it worked so I paid the fee. That will pay for itself by the end of the year as I would have had tethering on/off quite a few times by then. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net?? From rockysmolin at bchacc.com Wed Sep 15 16:09:49 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 15 Sep 2010 14:09:49 -0700 Subject: [AccessD] Creating a Spreadsheet from a Report Message-ID: Dear List: I have a client who wants one of the reports in my app to be exported as a spreadsheet. But nota flat file. She wants the spreadsheet to look like the report - header line, details with their own fields headings, plus two other sub reports. I've done this with other reports on a cell by cell basis where the Transfer method won't work. Big PITA. Is there an easier way to do this? MTIA Rocky From df.waters at comcast.net Wed Sep 15 16:14:15 2010 From: df.waters at comcast.net (Dan Waters) Date: Wed, 15 Sep 2010 16:14:15 -0500 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: References: Message-ID: Rocky - I have to ask: Why does she want a spreadsheet to look like a report? What's she going to do with it? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a Spreadsheet from a Report Dear List: I have a client who wants one of the reports in my app to be exported as a spreadsheet. But nota flat file. She wants the spreadsheet to look like the report - header line, details with their own fields headings, plus two other sub reports. I've done this with other reports on a cell by cell basis where the Transfer method won't work. Big PITA. Is there an easier way to do this? MTIA Rocky From davidmcafee at gmail.com Wed Sep 15 16:15:38 2010 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 15 Sep 2010 14:15:38 -0700 Subject: [AccessD] OT: Verizon Droid 2 for the wife In-Reply-To: References: <4C90A08B.6040803@colbyconsulting.com> Message-ID: hmmm, looks like you are correct: http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/4cbf20d6-fc36-437b-aac2-b505206ab7f5 I guess this will push me to get moving on my Android programming :) On Wed, Sep 15, 2010 at 1:53 PM, David McAfee wrote: > Do you have any links regarding the drop ?in WM7? > > > It wouldn't be the first time they screwed us over. > > We were originally developing the FE in eVB and using Cdb for the file type. > Then when they switchted to SQLCE and the SDF, we had to convert everything. > Then they changed the CF3.5 and everything had to be converted again > (not as bad as the last time) but we lost support for WM2003. > > > > On Wed, Sep 15, 2010 at 1:19 PM, Bill Patten wrote: >> David, >> >> Be careful, last I heard Compact SQL was not going into Win Mobile 7, in >> fact only a certified ?developer can install programs for testing and they >> must be registered with MS to be installed in WM 7 by their clients.. >> Be sure to check this out as I have been wrong before. >> >> I have an WM 6.5 app that syncs with my SQL Server and at this time cannot >> use Win 7. ?Some people think MS will change their mind. I sure hope so. >> >> Bill >> >> -------------------------------------------------- >> From: "David McAfee" >> Sent: Wednesday, September 15, 2010 9:49 AM >> To: "Access Developers discussion and problem solving" >> >> Subject: Re: [AccessD] OT: Verizon Droid 2 for the wife >> >> We've been programming for iPaqs using WM2003, WM5, WM6 since 2005. >> >> We're going to start moving our SQLCE apps from iPaqs over to Mobil phones. >> >> I was just given an HTC phone with WM6.5 on it. I may get one with WM7 on >> it. >> >> I can't wait to get more involved with the Android stuff to be able to >> use our apps on those. >> >> I'd also love to learn to program iPhones, but I don't own a Mac. >> >> >> >> >> On Wed, Sep 15, 2010 at 3:31 AM, jwcolby >> wrote: >>> LOL, I know. ?More stuff to learn. >>> >>> I bought it because it seems like a good smart phone. ?Users rate it >>> highly, and it isn't the iphone. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> On 9/15/2010 3:44 AM, Gustav Brock wrote: >>>> Hi David >>>> >>>> Ha ha. Poor JC. As if he isn't busy enough, now he should run JDK and >>>> Eclipse! New fun! >>>> >>>> I've decided to wait a month or so for a Windows Phone 7. That I can >>>> program with Visual Studio. Real fun! >>>> >>>> /gustav >>>> >>>> >>>>>>> davidmcafee at gmail.com 14-09-2010 21:19>>> >>>> They are great phones. I bought hte Droid (1) when it first came out. >>>> >>>> I bought my son the HTC Droid Eris for Xmas. >>>> >>>> We can play games against each other (such as the Raging Thunder) over >>>> the our home network or via the web. >>>> >>>> He can transfer files to me via bluetooth . >>>> >>>> I, like you, wanted to unlock my phone and do all the stuff that the >>>> Verizon doesnt want me to, but I've decided for now to leave it as is >>>> while it is under warranty. >>>> >>>> I've started playing around with writing my own apps. That, to me is >>>> the ticket! ;) >>>> Android has a great dev site, with great tutorials: >>>> >>>> http://developer.android.com/index.html >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From rockysmolin at bchacc.com Wed Sep 15 16:18:04 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 15 Sep 2010 14:18:04 -0700 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: References: Message-ID: <2E54B22087744922A7286615B6893E3C@HAL9005> I asked as well. :) They want to be able to add some stuff to it and send it to vendors (it's a buy report that comes out of my MRP system) and the vendor will then note on the report actual ship and dues dates - stuff like that. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 15, 2010 2:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report Rocky - I have to ask: Why does she want a spreadsheet to look like a report? What's she going to do with it? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a Spreadsheet from a Report Dear List: I have a client who wants one of the reports in my app to be exported as a spreadsheet. But nota flat file. She wants the spreadsheet to look like the report - header line, details with their own fields headings, plus two other sub reports. I've done this with other reports on a cell by cell basis where the Transfer method won't work. Big PITA. Is there an easier way to do this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Wed Sep 15 16:25:07 2010 From: df.waters at comcast.net (Dan Waters) Date: Wed, 15 Sep 2010 16:25:07 -0500 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <2E54B22087744922A7286615B6893E3C@HAL9005> References: <2E54B22087744922A7286615B6893E3C@HAL9005> Message-ID: <8D014E7A4E7E47D39593E4CAE1B1417C@danwaters> Maybe there is a way that you could capture a screenshot of the report (or an approximation), and simply paste that picture onto the spreadsheet? That would of course avoid all the cell by cell programming. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report I asked as well. :) They want to be able to add some stuff to it and send it to vendors (it's a buy report that comes out of my MRP system) and the vendor will then note on the report actual ship and dues dates - stuff like that. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 15, 2010 2:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report Rocky - I have to ask: Why does she want a spreadsheet to look like a report? What's she going to do with it? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a Spreadsheet from a Report Dear List: I have a client who wants one of the reports in my app to be exported as a spreadsheet. But nota flat file. She wants the spreadsheet to look like the report - header line, details with their own fields headings, plus two other sub reports. I've done this with other reports on a cell by cell basis where the Transfer method won't work. Big PITA. Is there an easier way to do this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Wed Sep 15 16:28:47 2010 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 15 Sep 2010 14:28:47 -0700 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <2E54B22087744922A7286615B6893E3C@HAL9005> References: <2E54B22087744922A7286615B6893E3C@HAL9005> Message-ID: Why not have a form where they can add that stuff then add it to the report? A report can then be printed, faxed, emailed, PDFd... On Wed, Sep 15, 2010 at 2:18 PM, Rocky Smolin wrote: > I asked as well. :) ?They want to be able to add some stuff to it and send > it to vendors (it's a buy report that comes out of my MRP system) and the > vendor will then note on the report actual ship and dues dates - stuff like > that. ?I think. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Wednesday, September 15, 2010 2:14 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Creating a Spreadsheet from a Report > > Rocky - I have to ask: > > Why does she want a spreadsheet to look like a report? ?What's she going to > do with it? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Wednesday, September 15, 2010 4:10 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Creating a Spreadsheet from a Report > > Dear List: > > I have a client who wants one of the reports in my app to be exported as a > spreadsheet. ?But nota flat file. ?She wants the spreadsheet to look like > the report - header line, details with their own fields headings, plus two > other sub reports. > > I've done this with other reports on a cell by cell basis where the Transfer > method won't work. ?Big PITA. ?Is there an easier way to do this? > > > > MTIA > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rusty.hammond at cpiqpc.com Wed Sep 15 16:30:51 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Wed, 15 Sep 2010 16:30:51 -0500 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <2E54B22087744922A7286615B6893E3C@HAL9005> References: <2E54B22087744922A7286615B6893E3C@HAL9005> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFD902@CPIEMAIL-EVS1.CPIQPC.NET> I've not tried it (yet), but what about looking at it from a different direction. Instead of exporting to excel, setup a template spreadsheet in excel with the proper headers, then import the data into excel via linking to the same recordsource the report uses. I don't know if it would be easier or not but might be worth a look. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report I asked as well. :) They want to be able to add some stuff to it and send it to vendors (it's a buy report that comes out of my MRP system) and the vendor will then note on the report actual ship and dues dates - stuff like that. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 15, 2010 2:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report Rocky - I have to ask: Why does she want a spreadsheet to look like a report? What's she going to do with it? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a Spreadsheet from a Report Dear List: I have a client who wants one of the reports in my app to be exported as a spreadsheet. But nota flat file. She wants the spreadsheet to look like the report - header line, details with their own fields headings, plus two other sub reports. I've done this with other reports on a cell by cell basis where the Transfer method won't work. Big PITA. Is there an easier way to do this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From gustav at cactus.dk Wed Sep 15 16:41:21 2010 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Sep 2010 23:41:21 +0200 Subject: [AccessD] Windows Phone 7 and database (was: Verizon Droid 2 for the wife) Message-ID: Hi Bill and David Maybe you just have to think different ...? Developing Occasionally Connected Applications for Windows Phone 7: http://sviluppomobile.blogspot.com/2010/03/sqlite-for-wp-7-series-proof-of-concept.html That said, the first move of Windows Phone 7 _is_ targeted at consumers. /gustav >>> davidmcafee at gmail.com 15-09-2010 23:15 >>> hmmm, looks like you are correct: http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/4cbf20d6-fc36-437b-aac2-b505206ab7f5 I guess this will push me to get moving on my Android programming :) On Wed, Sep 15, 2010 at 1:53 PM, David McAfee wrote: > Do you have any links regarding the drop in WM7? > > > It wouldn't be the first time they screwed us over. > > We were originally developing the FE in eVB and using Cdb for the file type. > Then when they switchted to SQLCE and the SDF, we had to convert everything. > Then they changed the CF3.5 and everything had to be converted again > (not as bad as the last time) but we lost support for WM2003. > > > > On Wed, Sep 15, 2010 at 1:19 PM, Bill Patten wrote: >> David, >> >> Be careful, last I heard Compact SQL was not going into Win Mobile 7, in >> fact only a certified developer can install programs for testing and they >> must be registered with MS to be installed in WM 7 by their clients.. >> Be sure to check this out as I have been wrong before. >> >> I have an WM 6.5 app that syncs with my SQL Server and at this time cannot >> use Win 7. Some people think MS will change their mind. I sure hope so. >> >> Bill >> >> -------------------------------------------------- >> From: "David McAfee" >> Sent: Wednesday, September 15, 2010 9:49 AM >> To: "Access Developers discussion and problem solving" >> >> Subject: Re: [AccessD] OT: Verizon Droid 2 for the wife >> >> We've been programming for iPaqs using WM2003, WM5, WM6 since 2005. >> >> We're going to start moving our SQLCE apps from iPaqs over to Mobil phones. >> >> I was just given an HTC phone with WM6.5 on it. I may get one with WM7 on >> it. >> >> I can't wait to get more involved with the Android stuff to be able to >> use our apps on those. >> >> I'd also love to learn to program iPhones, but I don't own a Mac. From rockysmolin at bchacc.com Wed Sep 15 16:56:22 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 15 Sep 2010 14:56:22 -0700 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <8D014E7A4E7E47D39593E4CAE1B1417C@danwaters> References: <2E54B22087744922A7286615B6893E3C@HAL9005> <8D014E7A4E7E47D39593E4CAE1B1417C@danwaters> Message-ID: <68B8C7BCB9574CDCB09ED15BF61ACF2A@HAL9005> Not sure how that would work - and get all the data into cells as opposed to everything in column A or worse, Cell A!. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 15, 2010 2:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report Maybe there is a way that you could capture a screenshot of the report (or an approximation), and simply paste that picture onto the spreadsheet? That would of course avoid all the cell by cell programming. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report I asked as well. :) They want to be able to add some stuff to it and send it to vendors (it's a buy report that comes out of my MRP system) and the vendor will then note on the report actual ship and dues dates - stuff like that. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 15, 2010 2:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report Rocky - I have to ask: Why does she want a spreadsheet to look like a report? What's she going to do with it? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a Spreadsheet from a Report Dear List: I have a client who wants one of the reports in my app to be exported as a spreadsheet. But nota flat file. She wants the spreadsheet to look like the report - header line, details with their own fields headings, plus two other sub reports. I've done this with other reports on a cell by cell basis where the Transfer method won't work. Big PITA. Is there an easier way to do this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Sep 15 16:58:43 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 15 Sep 2010 14:58:43 -0700 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: References: <2E54B22087744922A7286615B6893E3C@HAL9005> Message-ID: <0D2F01CC15A04B7C9AAA5371F1F497BD@HAL9005> As I understand it, they want the vendor to add data and send it back to them - pricing, delivery dates - stuff like that. Here's what the report looks like http://www.e-z-mrp.com/r_buy.htm Except there are two more sub-reports which don't show on this shot - the manufacturer's cross reference an the current shortages. And they want the spreadsheet to look like the report. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, September 15, 2010 2:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Creating a Spreadsheet from a Report Why not have a form where they can add that stuff then add it to the report? A report can then be printed, faxed, emailed, PDFd... On Wed, Sep 15, 2010 at 2:18 PM, Rocky Smolin wrote: > I asked as well. :) ?They want to be able to add some stuff to it and > send it to vendors (it's a buy report that comes out of my MRP system) > and the vendor will then note on the report actual ship and dues dates > - stuff like that. ?I think. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Wednesday, September 15, 2010 2:14 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Creating a Spreadsheet from a Report > > Rocky - I have to ask: > > Why does she want a spreadsheet to look like a report? ?What's she > going to do with it? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Wednesday, September 15, 2010 4:10 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Creating a Spreadsheet from a Report > > Dear List: > > I have a client who wants one of the reports in my app to be exported > as a spreadsheet. ?But nota flat file. ?She wants the spreadsheet to > look like the report - header line, details with their own fields > headings, plus two other sub reports. > > I've done this with other reports on a cell by cell basis where the > Transfer method won't work. ?Big PITA. ?Is there an easier way to do this? > > > > MTIA > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Wed Sep 15 16:58:57 2010 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 15 Sep 2010 14:58:57 -0700 Subject: [AccessD] Windows Phone 7 and database (was: Verizon Droid 2 for the wife) In-Reply-To: References: Message-ID: Yes, I was looking at that too. SqlLite is what iPhone and Android both use. It looks like that is a work around, but it just sucks not being able to use SQLCE3.5. I really like it, it does a lot of things that SQL server can do. Same calls, same logic, same ADO calls from within VB.Net/C#. I guess I am stuck thinking of our current implentation where our sales force uses our programs created in VB.Net or C# FE, using RAPI to transfer the SDF file over to the PC to call a webservice to transfer data to our servers from their home. WM7 also drops support of WinForm. The reason for our move to smartphones is to eliminate one device (iPaq) and then modify the program to update in smaller batches over the cellular network. I guess it is going to be yet another rewrite of the whole app/process. :) D On Wed, Sep 15, 2010 at 2:41 PM, Gustav Brock wrote: > Hi Bill and David > > Maybe you just have to think different ...? > > Developing Occasionally Connected Applications for Windows Phone 7: > http://sviluppomobile.blogspot.com/2010/03/sqlite-for-wp-7-series-proof-of-concept.html > > That said, the first move of Windows Phone 7 _is_ targeted at consumers. > > /gustav > > >>>> davidmcafee at gmail.com 15-09-2010 23:15 >>> > hmmm, looks like you are correct: > > http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/4cbf20d6-fc36-437b-aac2-b505206ab7f5 > > I guess this will push me to get moving on my Android programming :) > > On Wed, Sep 15, 2010 at 1:53 PM, David McAfee wrote: >> Do you have any links regarding the drop ?in WM7? >> >> >> It wouldn't be the first time they screwed us over. >> >> We were originally developing the FE in eVB and using Cdb for the file type. >> Then when they switchted to SQLCE and the SDF, we had to convert everything. >> Then they changed the CF3.5 and everything had to be converted again >> (not as bad as the last time) but we lost support for WM2003. >> >> >> >> On Wed, Sep 15, 2010 at 1:19 PM, Bill Patten wrote: >>> David, >>> >>> Be careful, last I heard Compact SQL was not going into Win Mobile 7, in >>> fact only a certified ?developer can install programs for testing and they >>> must be registered with MS to be installed in WM 7 by their clients.. >>> Be sure to check this out as I have been wrong before. >>> >>> I have an WM 6.5 app that syncs with my SQL Server and at this time cannot >>> use Win 7. ?Some people think MS will change their mind. I sure hope so. >>> >>> Bill >>> >>> -------------------------------------------------- >>> From: "David McAfee" >>> Sent: Wednesday, September 15, 2010 9:49 AM >>> To: "Access Developers discussion and problem solving" >>> >>> Subject: Re: [AccessD] OT: Verizon Droid 2 for the wife >>> >>> We've been programming for iPaqs using WM2003, WM5, WM6 since 2005. >>> >>> We're going to start moving our SQLCE apps from iPaqs over to Mobil phones. >>> >>> I was just given an HTC phone with WM6.5 on it. I may get one with WM7 on >>> it. >>> >>> I can't wait to get more involved with the Android stuff to be able to >>> use our apps on those. >>> >>> I'd also love to learn to program iPhones, but I don't own a Mac. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Wed Sep 15 17:04:37 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 15 Sep 2010 15:04:37 -0700 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFD902@CPIEMAIL-EVS1.CPIQPC.NET> References: <2E54B22087744922A7286615B6893E3C@HAL9005> <49A286ABF515E94A8505CD14DEB721700DCFD902@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <487DE78EF0FF4C9CA5E0363AD387B497@HAL9005> That's actually what I'd have to do - use the same record sources as the main and sub reports and use automation to load the cells - .Cells(intRow, IntCol) = rs!fldSomeField I've done quite a bit of that so I've got snippets of code already - but it's a big PITA. After you load the cells, then you have to do the formatting, autofit, all that stuff. Runs into a bit of time and money, so I was looking for a more streamlined way to do it. I quoted them four hours and they don't seem to have a problem with that. So, in the absence of a better solution, off we go! Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Wednesday, September 15, 2010 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Creating a Spreadsheet from a Report I've not tried it (yet), but what about looking at it from a different direction. Instead of exporting to excel, setup a template spreadsheet in excel with the proper headers, then import the data into excel via linking to the same recordsource the report uses. I don't know if it would be easier or not but might be worth a look. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report I asked as well. :) They want to be able to add some stuff to it and send it to vendors (it's a buy report that comes out of my MRP system) and the vendor will then note on the report actual ship and dues dates - stuff like that. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 15, 2010 2:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report Rocky - I have to ask: Why does she want a spreadsheet to look like a report? What's she going to do with it? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a Spreadsheet from a Report Dear List: I have a client who wants one of the reports in my app to be exported as a spreadsheet. But nota flat file. She wants the spreadsheet to look like the report - header line, details with their own fields headings, plus two other sub reports. I've done this with other reports on a cell by cell basis where the Transfer method won't work. Big PITA. Is there an easier way to do this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Wed Sep 15 17:13:29 2010 From: df.waters at comcast.net (Dan Waters) Date: Wed, 15 Sep 2010 17:13:29 -0500 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <68B8C7BCB9574CDCB09ED15BF61ACF2A@HAL9005> References: <2E54B22087744922A7286615B6893E3C@HAL9005><8D014E7A4E7E47D39593E4CAE1B1417C@danwaters> <68B8C7BCB9574CDCB09ED15BF61ACF2A@HAL9005> Message-ID: <949D802617FE448E95734210514EB43D@danwaters> If you take a screenshot of anything, then paste that into a spreadsheet, the image will lay over all the cells, not get put into Cell A1. I have code to copy text from a field onto the clipboard, but that wouldn't help here. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report Not sure how that would work - and get all the data into cells as opposed to everything in column A or worse, Cell A!. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 15, 2010 2:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report Maybe there is a way that you could capture a screenshot of the report (or an approximation), and simply paste that picture onto the spreadsheet? That would of course avoid all the cell by cell programming. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report I asked as well. :) They want to be able to add some stuff to it and send it to vendors (it's a buy report that comes out of my MRP system) and the vendor will then note on the report actual ship and dues dates - stuff like that. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 15, 2010 2:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report Rocky - I have to ask: Why does she want a spreadsheet to look like a report? What's she going to do with it? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a Spreadsheet from a Report Dear List: I have a client who wants one of the reports in my app to be exported as a spreadsheet. But nota flat file. She wants the spreadsheet to look like the report - header line, details with their own fields headings, plus two other sub reports. I've done this with other reports on a cell by cell basis where the Transfer method won't work. Big PITA. Is there an easier way to do this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_patten at embarqmail.com Wed Sep 15 17:20:31 2010 From: bill_patten at embarqmail.com (Bill Patten) Date: Wed, 15 Sep 2010 15:20:31 -0700 Subject: [AccessD] Windows Phone 7 and database (was: Verizon Droid 2 forthe wife) In-Reply-To: References: Message-ID: I have seen that but not sure that it would sync with standard SQL Server like CE. does. One of the rumors implied that MS was aware that many WM business apps need CE and that something might come out after WM7 rush which is aimed at the consumer market. I can wait, but I'm sure glad my app was for my use and not clients. I really liked the HD2 (T-Mobile) when I played with it and HD3 is supposed to be WM7, but with out SQL CE not for me. My TouchPro 2 contract does not run out for another year so wait and see. Bill -------------------------------------------------- From: "Gustav Brock" Sent: Wednesday, September 15, 2010 2:41 PM To: Subject: [AccessD] Windows Phone 7 and database (was: Verizon Droid 2 forthe wife) Hi Bill and David Maybe you just have to think different ...? Developing Occasionally Connected Applications for Windows Phone 7: http://sviluppomobile.blogspot.com/2010/03/sqlite-for-wp-7-series-proof-of-concept.html That said, the first move of Windows Phone 7 _is_ targeted at consumers. /gustav >>> davidmcafee at gmail.com 15-09-2010 23:15 >>> hmmm, looks like you are correct: http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/4cbf20d6-fc36-437b-aac2-b505206ab7f5 I guess this will push me to get moving on my Android programming :) On Wed, Sep 15, 2010 at 1:53 PM, David McAfee wrote: > Do you have any links regarding the drop in WM7? > > > It wouldn't be the first time they screwed us over. > > We were originally developing the FE in eVB and using Cdb for the file > type. > Then when they switchted to SQLCE and the SDF, we had to convert > everything. > Then they changed the CF3.5 and everything had to be converted again > (not as bad as the last time) but we lost support for WM2003. > > > > On Wed, Sep 15, 2010 at 1:19 PM, Bill Patten > wrote: >> David, >> >> Be careful, last I heard Compact SQL was not going into Win Mobile 7, in >> fact only a certified developer can install programs for testing and >> they >> must be registered with MS to be installed in WM 7 by their clients.. >> Be sure to check this out as I have been wrong before. >> >> I have an WM 6.5 app that syncs with my SQL Server and at this time >> cannot >> use Win 7. Some people think MS will change their mind. I sure hope so. >> >> Bill >> >> -------------------------------------------------- >> From: "David McAfee" >> Sent: Wednesday, September 15, 2010 9:49 AM >> To: "Access Developers discussion and problem solving" >> >> Subject: Re: [AccessD] OT: Verizon Droid 2 for the wife >> >> We've been programming for iPaqs using WM2003, WM5, WM6 since 2005. >> >> We're going to start moving our SQLCE apps from iPaqs over to Mobil >> phones. >> >> I was just given an HTC phone with WM6.5 on it. I may get one with WM7 on >> it. >> >> I can't wait to get more involved with the Android stuff to be able to >> use our apps on those. >> >> I'd also love to learn to program iPhones, but I don't own a Mac. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Sep 15 17:29:22 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 15 Sep 2010 15:29:22 -0700 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <949D802617FE448E95734210514EB43D@danwaters> References: <2E54B22087744922A7286615B6893E3C@HAL9005><8D014E7A4E7E47D39593E4CAE1B1417C@danwaters><68B8C7BCB9574CDCB09ED15BF61ACF2A@HAL9005> <949D802617FE448E95734210514EB43D@danwaters> Message-ID: Well, then the screenshot thing might work except it has to be done without user intervention and the whole report isn't on the screen at one time so it would be tricky. Sounds like a fun problem to solve - if someone else is paying. :) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 15, 2010 3:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report If you take a screenshot of anything, then paste that into a spreadsheet, the image will lay over all the cells, not get put into Cell A1. I have code to copy text from a field onto the clipboard, but that wouldn't help here. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report Not sure how that would work - and get all the data into cells as opposed to everything in column A or worse, Cell A!. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 15, 2010 2:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report Maybe there is a way that you could capture a screenshot of the report (or an approximation), and simply paste that picture onto the spreadsheet? That would of course avoid all the cell by cell programming. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report I asked as well. :) They want to be able to add some stuff to it and send it to vendors (it's a buy report that comes out of my MRP system) and the vendor will then note on the report actual ship and dues dates - stuff like that. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 15, 2010 2:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report Rocky - I have to ask: Why does she want a spreadsheet to look like a report? What's she going to do with it? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 4:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a Spreadsheet from a Report Dear List: I have a client who wants one of the reports in my app to be exported as a spreadsheet. But nota flat file. She wants the spreadsheet to look like the report - header line, details with their own fields headings, plus two other sub reports. I've done this with other reports on a cell by cell basis where the Transfer method won't work. Big PITA. Is there an easier way to do this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Wed Sep 15 18:54:53 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Thu, 16 Sep 2010 09:54:53 +1000 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: Message-ID: <201009152354.o8FNsoOh004395@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Rocky, Easiest way is to use a template which has the report already laid out on it. Then you need to have some hidden helper sheets One (or more sheets) you dump the access / database data into either via a view / query / table. This will give you the data you need to make the report. Often this can only be a few lines depending on the complexity of the outcomes. Then you write code in the template that pull the data from the hidden helper sheets and populates the report. Another more useful way is this. Create an Excel workbook with hooks into your database. This way the user can update the report 'live' and any database changes are immediately pulled into the XL report. You can even have the user changes in Excel feed back into the database if you want, although I rarely do this. Generally I have Excel as a 'read only' report. You can then write code in Excel to create a 'stand alone' report for emailing etc. You want the users to do this, rather than emailing the live version, which will fail once it cannot talk to the database anymore. It also stops folks for stuffing up the data. If you need examples, email me offist and I will send you a couple of workbooks I have that do exactly this. Regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, 16 September 2010 7:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a Spreadsheet from a Report Dear List: I have a client who wants one of the reports in my app to be exported as a spreadsheet. But nota flat file. She wants the spreadsheet to look like the report - header line, details with their own fields headings, plus two other sub reports. I've done this with other reports on a cell by cell basis where the Transfer method won't work. Big PITA. Is there an easier way to do this? MTIA Rocky _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From rockysmolin at bchacc.com Wed Sep 15 19:03:46 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 15 Sep 2010 17:03:46 -0700 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <201009152354.o8FNsoOh004395@databaseadvisors.com> References: <201009152354.o8FNsoOh004395@databaseadvisors.com> Message-ID: <7C16AB96549247898FAE2C9435AF02F5@HAL9005> Thanks. Gotta think about this approach. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Wednesday, September 15, 2010 4:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Creating a Spreadsheet from a Report ____________________________________________________________________________ ___________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ____________________________________________________________________________ ___________ Rocky, Easiest way is to use a template which has the report already laid out on it. Then you need to have some hidden helper sheets One (or more sheets) you dump the access / database data into either via a view / query / table. This will give you the data you need to make the report. Often this can only be a few lines depending on the complexity of the outcomes. Then you write code in the template that pull the data from the hidden helper sheets and populates the report. Another more useful way is this. Create an Excel workbook with hooks into your database. This way the user can update the report 'live' and any database changes are immediately pulled into the XL report. You can even have the user changes in Excel feed back into the database if you want, although I rarely do this. Generally I have Excel as a 'read only' report. You can then write code in Excel to create a 'stand alone' report for emailing etc. You want the users to do this, rather than emailing the live version, which will fail once it cannot talk to the database anymore. It also stops folks for stuffing up the data. If you need examples, email me offist and I will send you a couple of workbooks I have that do exactly this. Regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, 16 September 2010 7:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a Spreadsheet from a Report Dear List: I have a client who wants one of the reports in my app to be exported as a spreadsheet. But nota flat file. She wants the spreadsheet to look like the report - header line, details with their own fields headings, plus two other sub reports. I've done this with other reports on a cell by cell basis where the Transfer method won't work. Big PITA. Is there an easier way to do this? MTIA Rocky ____________________________________________________________________________ ___________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ____________________________________________________________________________ ___________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Sep 15 20:12:19 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 15 Sep 2010 21:12:19 -0400 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <7C16AB96549247898FAE2C9435AF02F5@HAL9005> References: <201009152354.o8FNsoOh004395@databaseadvisors.com> <7C16AB96549247898FAE2C9435AF02F5@HAL9005> Message-ID: <4C916EF3.7070700@colbyconsulting.com> Excel automation is probably the way to go. You can export named ranges, run code out in the spreadsheet to perform formatting etc. John W. Colby www.ColbyConsulting.com On 9/15/2010 8:03 PM, Rocky Smolin wrote: > Thanks. Gotta think about this approach. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins > Sent: Wednesday, September 15, 2010 4:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Creating a Spreadsheet from a Report > > > ____________________________________________________________________________ > ___________ > > Note: This e-mail is subject to the disclaimer contained at the bottom of > this message. > ____________________________________________________________________________ > ___________ > > > > > Rocky, > > Easiest way is to use a template which has the report already laid out on > it. Then you need to have some hidden helper sheets > > One (or more sheets) you dump the access / database data into either via a > view / query / table. This will give you the data you need to make the > report. Often this can only be a few lines depending on the complexity of > the outcomes. > > Then you write code in the template that pull the data from the hidden > helper sheets and populates the report. > > Another more useful way is this. > > Create an Excel workbook with hooks into your database. This way the user > can update the report 'live' and any database changes are immediately pulled > into the XL report. You can even have the user changes in Excel feed back > into the database if you want, although I rarely do this. Generally I have > Excel as a 'read only' report. > > You can then write code in Excel to create a 'stand alone' report for > emailing etc. You want the users to do this, rather than emailing the live > version, which will fail once it cannot talk to the database anymore. It > also stops folks for stuffing up the data. > > If you need examples, email me offist and I will send you a couple of > workbooks I have that do exactly this. > > Regards > Darryl. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, 16 September 2010 7:10 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Creating a Spreadsheet from a Report > > Dear List: > > I have a client who wants one of the reports in my app to be exported as a > spreadsheet. But nota flat file. She wants the spreadsheet to look like > the report - header line, details with their own fields headings, plus two > other sub reports. > > I've done this with other reports on a cell by cell basis where the Transfer > method won't work. Big PITA. Is there an easier way to do this? > > > > MTIA > > Rocky > > > > ____________________________________________________________________________ > ___________ > > The information transmitted in this message and its attachments (if any) is > intended only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any review, > retransmission, dissemination or other use of, or taking of any action in > reliance upon this information, by persons or entities other than the > intended recipient is prohibited. > > If you have received this in error, please contact the sender and delete > this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, disclose or > distribute the information contained in this e-mail and any attached files, > with the permission of the sender. > > This message has been scanned for viruses. > ____________________________________________________________________________ > ___________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From adtp at airtelmail.in Wed Sep 15 22:55:15 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Thu, 16 Sep 2010 09:25:15 +0530 Subject: [AccessD] Creating a Spreadsheet from a Report References: Message-ID: <721E96D78D264DBCB4B730B56654F78A@personal4a8ede> Rocky, If you are in a position to put in the required effort, my sample db named Reports_AccessToExcelAndWord might be of interest to you. It is in access 2000 file format and is available at Rogers Access Library. Link - http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=45 Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Rocky Smolin To: 'Access Developers discussion and problem solving' Sent: Thursday, September 16, 2010 02:39 Subject: [AccessD] Creating a Spreadsheet from a Report Dear List: I have a client who wants one of the reports in my app to be exported as a spreadsheet. But nota flat file. She wants the spreadsheet to look like the report - header line, details with their own fields headings, plus two other sub reports. I've done this with other reports on a cell by cell basis where the Transfer method won't work. Big PITA. Is there an easier way to do this? MTIA Rocky From rockysmolin at bchacc.com Wed Sep 15 23:37:05 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 15 Sep 2010 21:37:05 -0700 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <4C916EF3.7070700@colbyconsulting.com> References: <201009152354.o8FNsoOh004395@databaseadvisors.com><7C16AB96549247898FAE2C9435AF02F5@HAL9005> <4C916EF3.7070700@colbyconsulting.com> Message-ID: <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> I think you're right. But it's a lot of nit-picky code to make a complex report look right in Excel. Just looking for a way to avoid work. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 15, 2010 6:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Creating a Spreadsheet from a Report Excel automation is probably the way to go. You can export named ranges, run code out in the spreadsheet to perform formatting etc. John W. Colby www.ColbyConsulting.com On 9/15/2010 8:03 PM, Rocky Smolin wrote: > Thanks. Gotta think about this approach. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins > Sent: Wednesday, September 15, 2010 4:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Creating a Spreadsheet from a Report > > > ______________________________________________________________________ > ______ > ___________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > ______ > ___________ > > > > > Rocky, > > Easiest way is to use a template which has the report already laid out > on it. Then you need to have some hidden helper sheets > > One (or more sheets) you dump the access / database data into either > via a view / query / table. This will give you the data you need to > make the report. Often this can only be a few lines depending on the > complexity of the outcomes. > > Then you write code in the template that pull the data from the hidden > helper sheets and populates the report. > > Another more useful way is this. > > Create an Excel workbook with hooks into your database. This way the > user can update the report 'live' and any database changes are > immediately pulled into the XL report. You can even have the user > changes in Excel feed back into the database if you want, although I > rarely do this. Generally I have Excel as a 'read only' report. > > You can then write code in Excel to create a 'stand alone' report for > emailing etc. You want the users to do this, rather than emailing the > live version, which will fail once it cannot talk to the database > anymore. It also stops folks for stuffing up the data. > > If you need examples, email me offist and I will send you a couple of > workbooks I have that do exactly this. > > Regards > Darryl. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Thursday, 16 September 2010 7:10 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Creating a Spreadsheet from a Report > > Dear List: > > I have a client who wants one of the reports in my app to be exported > as a spreadsheet. But nota flat file. She wants the spreadsheet to > look like the report - header line, details with their own fields > headings, plus two other sub reports. > > I've done this with other reports on a cell by cell basis where the > Transfer method won't work. Big PITA. Is there an easier way to do this? > > > > MTIA > > Rocky > > > > ______________________________________________________________________ > ______ > ___________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any > review, retransmission, dissemination or other use of, or taking of > any action in reliance upon this information, by persons or entities > other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > ______ > ___________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Wed Sep 15 23:46:51 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Wed, 15 Sep 2010 23:46:51 -0500 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> References: <201009152354.o8FNsoOh004395@databaseadvisors.com><7C16AB96549247898FAE2C9435AF02F5@HAL9005><4C916EF3.7070700@colbyconsulting.com> <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET> I don't suppose exporting it to an rtf file would work for the client. Most of the formatting would remain intact. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 11:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report I think you're right. But it's a lot of nit-picky code to make a complex report look right in Excel. Just looking for a way to avoid work. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 15, 2010 6:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Creating a Spreadsheet from a Report Excel automation is probably the way to go. You can export named ranges, run code out in the spreadsheet to perform formatting etc. John W. Colby www.ColbyConsulting.com On 9/15/2010 8:03 PM, Rocky Smolin wrote: > Thanks. Gotta think about this approach. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins > Sent: Wednesday, September 15, 2010 4:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Creating a Spreadsheet from a Report > > > ______________________________________________________________________ > ______ > ___________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > ______ > ___________ > > > > > Rocky, > > Easiest way is to use a template which has the report already laid out > on it. Then you need to have some hidden helper sheets > > One (or more sheets) you dump the access / database data into either > via a view / query / table. This will give you the data you need to > make the report. Often this can only be a few lines depending on the > complexity of the outcomes. > > Then you write code in the template that pull the data from the hidden > helper sheets and populates the report. > > Another more useful way is this. > > Create an Excel workbook with hooks into your database. This way the > user can update the report 'live' and any database changes are > immediately pulled into the XL report. You can even have the user > changes in Excel feed back into the database if you want, although I > rarely do this. Generally I have Excel as a 'read only' report. > > You can then write code in Excel to create a 'stand alone' report for > emailing etc. You want the users to do this, rather than emailing the > live version, which will fail once it cannot talk to the database > anymore. It also stops folks for stuffing up the data. > > If you need examples, email me offist and I will send you a couple of > workbooks I have that do exactly this. > > Regards > Darryl. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Thursday, 16 September 2010 7:10 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Creating a Spreadsheet from a Report > > Dear List: > > I have a client who wants one of the reports in my app to be exported > as a spreadsheet. But nota flat file. She wants the spreadsheet to > look like the report - header line, details with their own fields > headings, plus two other sub reports. > > I've done this with other reports on a cell by cell basis where the > Transfer method won't work. Big PITA. Is there an easier way to do this? > > > > MTIA > > Rocky > > > > ______________________________________________________________________ > ______ > ___________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any > review, retransmission, dissemination or other use of, or taking of > any action in reliance upon this information, by persons or entities > other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > ______ > ___________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From stuart at lexacorp.com.pg Wed Sep 15 23:58:43 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 16 Sep 2010 14:58:43 +1000 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> Message-ID: <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> There's really not that much code if you use a suitably formatted template rather than trying to format ranges after you load the data. Create Names for cells at the appropriate places where row formatting changes and GOTO the name begore inserting the data. For your detail rows, just have one formatted row with a named cell in the first column, go to the name on the first record and then insert a new row and populate it for each record as you step through the recordset. -- Stuart On 15 Sep 2010 at 21:37, Rocky Smolin wrote: > I think you're right. But it's a lot of nit-picky code to make a > complex report look right in Excel. Just looking for a way to avoid > work. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 15, 2010 6:12 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Creating a > Spreadsheet from a Report > > Excel automation is probably the way to go. You can export named > ranges, run code out in the spreadsheet to perform formatting etc. > > John W. Colby > www.ColbyConsulting.com > > On 9/15/2010 8:03 PM, Rocky Smolin wrote: > > Thanks. Gotta think about this approach. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > > Collins Sent: Wednesday, September 15, 2010 4:55 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Creating a Spreadsheet from a Report > > > > > > ____________________________________________________________________ > > __ ______ ___________ > > > > Note: This e-mail is subject to the disclaimer contained at the > > bottom of this message. > > ____________________________________________________________________ > > __ ______ ___________ > > > > > > > > > > Rocky, > > > > Easiest way is to use a template which has the report already laid > > out on it. Then you need to have some hidden helper sheets > > > > One (or more sheets) you dump the access / database data into either > > via a view / query / table. This will give you the data you need to > > make the report. Often this can only be a few lines depending on > > the complexity of the outcomes. > > > > Then you write code in the template that pull the data from the > > hidden helper sheets and populates the report. > > > > Another more useful way is this. > > > > Create an Excel workbook with hooks into your database. This way > > the user can update the report 'live' and any database changes are > > immediately pulled into the XL report. You can even have the user > > changes in Excel feed back into the database if you want, although I > > rarely do this. Generally I have Excel as a 'read only' report. > > > > You can then write code in Excel to create a 'stand alone' report > > for emailing etc. You want the users to do this, rather than > > emailing the live version, which will fail once it cannot talk to > > the database anymore. It also stops folks for stuffing up the data. > > > > If you need examples, email me offist and I will send you a couple > > of workbooks I have that do exactly this. > > > > Regards > > Darryl. > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin Sent: Thursday, 16 September 2010 7:10 AM To: 'Access > > Developers discussion and problem solving' Subject: [AccessD] > > Creating a Spreadsheet from a Report > > > > Dear List: > > > > I have a client who wants one of the reports in my app to be > > exported as a spreadsheet. But nota flat file. She wants the > > spreadsheet to look like the report - header line, details with > > their own fields headings, plus two other sub reports. > > > > I've done this with other reports on a cell by cell basis where the > > Transfer method won't work. Big PITA. Is there an easier way to do > > this? > > > > > > > > MTIA > > > > Rocky > > > > > > > > ____________________________________________________________________ > > __ ______ ___________ > > > > The information transmitted in this message and its attachments (if > > any) is intended only for the person or entity to which it is > > addressed. The message may contain confidential and/or privileged > > material. Any review, retransmission, dissemination or other use of, > > or taking of any action in reliance upon this information, by > > persons or entities other than the intended recipient is prohibited. > > > > If you have received this in error, please contact the sender and > > delete this e-mail and associated material from any computer. > > > > The intended recipient of this e-mail may only use, reproduce, > > disclose or distribute the information contained in this e-mail and > > any attached files, with the permission of the sender. > > > > This message has been scanned for viruses. > > ____________________________________________________________________ > > __ ______ ___________ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Thu Sep 16 00:00:43 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 16 Sep 2010 15:00:43 +1000 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET> References: , <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005>, <49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4C91A47B.28210.300AC26@stuart.lexacorp.com.pg> I've generally found that exporting to rtf loses "most" of the formatting for anything that uses boxes, lines etc :-( -- Stuart On 15 Sep 2010 at 23:46, Rusty Hammond wrote: > I don't suppose exporting it to an rtf file would work for the client. > Most of the formatting would remain intact. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin Sent: Wednesday, September 15, 2010 11:37 PM To: 'Access > Developers discussion and problem solving' Subject: Re: [AccessD] > Creating a Spreadsheet from a Report > > I think you're right. But it's a lot of nit-picky code to make a > complex report look right in Excel. Just looking for a way to avoid > work. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 15, 2010 6:12 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Creating a > Spreadsheet from a Report > > Excel automation is probably the way to go. You can export named > ranges, run code out in the spreadsheet to perform formatting etc. > > John W. Colby > www.ColbyConsulting.com > > On 9/15/2010 8:03 PM, Rocky Smolin wrote: > > Thanks. Gotta think about this approach. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > > Collins Sent: Wednesday, September 15, 2010 4:55 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Creating a Spreadsheet from a Report > > > > > > ____________________________________________________________________ > > __ ______ ___________ > > > > Note: This e-mail is subject to the disclaimer contained at the > > bottom > > > of this message. > > ____________________________________________________________________ > > __ ______ ___________ > > > > > > > > > > Rocky, > > > > Easiest way is to use a template which has the report already laid > > out > > > on it. Then you need to have some hidden helper sheets > > > > One (or more sheets) you dump the access / database data into either > > via a view / query / table. This will give you the data you need to > > make the report. Often this can only be a few lines depending on > > the complexity of the outcomes. > > > > Then you write code in the template that pull the data from the > > hidden > > > helper sheets and populates the report. > > > > Another more useful way is this. > > > > Create an Excel workbook with hooks into your database. This way > > the user can update the report 'live' and any database changes are > > immediately pulled into the XL report. You can even have the user > > changes in Excel feed back into the database if you want, although I > > rarely do this. Generally I have Excel as a 'read only' report. > > > > You can then write code in Excel to create a 'stand alone' report > > for emailing etc. You want the users to do this, rather than > > emailing the > > > live version, which will fail once it cannot talk to the database > > anymore. It also stops folks for stuffing up the data. > > > > If you need examples, email me offist and I will send you a couple > > of workbooks I have that do exactly this. > > > > Regards > > Darryl. > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin Sent: Thursday, 16 September 2010 7:10 AM To: 'Access > > Developers discussion and problem solving' Subject: [AccessD] > > Creating a Spreadsheet from a Report > > > > Dear List: > > > > I have a client who wants one of the reports in my app to be > > exported as a spreadsheet. But nota flat file. She wants the > > spreadsheet to look like the report - header line, details with > > their own fields headings, plus two other sub reports. > > > > I've done this with other reports on a cell by cell basis where the > > Transfer method won't work. Big PITA. Is there an easier way to do > this? > > > > > > > > MTIA > > > > Rocky > > > > > > > > ____________________________________________________________________ > > __ ______ ___________ > > > > The information transmitted in this message and its attachments (if > > any) is intended only for the person or entity to which it is > addressed. > > The message may contain confidential and/or privileged material. Any > > review, retransmission, dissemination or other use of, or taking of > > any action in reliance upon this information, by persons or entities > > other than the intended recipient is prohibited. > > > > If you have received this in error, please contact the sender and > > delete this e-mail and associated material from any computer. > > > > The intended recipient of this e-mail may only use, reproduce, > > disclose or distribute the information contained in this e-mail and > > any attached files, with the permission of the sender. > > > > This message has been scanned for viruses. > > ____________________________________________________________________ > > __ ______ ___________ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Sep 16 00:05:53 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 15 Sep 2010 22:05:53 -0700 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET> References: <201009152354.o8FNsoOh004395@databaseadvisors.com><7C16AB96549247898FAE2C9435AF02F5@HAL9005><4C916EF3.7070700@colbyconsulting.com><1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: You know, I'll suggest that. But I think they want the structure of the spreadsheet. I think eventually, they'll have me put more headings in where they want the vendors to put their price and delivery quotes. Anyway, with Excel, they can enforce more consistency. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Wednesday, September 15, 2010 9:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Creating a Spreadsheet from a Report I don't suppose exporting it to an rtf file would work for the client. Most of the formatting would remain intact. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 15, 2010 11:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Spreadsheet from a Report I think you're right. But it's a lot of nit-picky code to make a complex report look right in Excel. Just looking for a way to avoid work. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 15, 2010 6:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Creating a Spreadsheet from a Report Excel automation is probably the way to go. You can export named ranges, run code out in the spreadsheet to perform formatting etc. John W. Colby www.ColbyConsulting.com On 9/15/2010 8:03 PM, Rocky Smolin wrote: > Thanks. Gotta think about this approach. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins > Sent: Wednesday, September 15, 2010 4:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Creating a Spreadsheet from a Report > > > ______________________________________________________________________ > ______ > ___________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > ______ > ___________ > > > > > Rocky, > > Easiest way is to use a template which has the report already laid out > on it. Then you need to have some hidden helper sheets > > One (or more sheets) you dump the access / database data into either > via a view / query / table. This will give you the data you need to > make the report. Often this can only be a few lines depending on the > complexity of the outcomes. > > Then you write code in the template that pull the data from the hidden > helper sheets and populates the report. > > Another more useful way is this. > > Create an Excel workbook with hooks into your database. This way the > user can update the report 'live' and any database changes are > immediately pulled into the XL report. You can even have the user > changes in Excel feed back into the database if you want, although I > rarely do this. Generally I have Excel as a 'read only' report. > > You can then write code in Excel to create a 'stand alone' report for > emailing etc. You want the users to do this, rather than emailing the > live version, which will fail once it cannot talk to the database > anymore. It also stops folks for stuffing up the data. > > If you need examples, email me offist and I will send you a couple of > workbooks I have that do exactly this. > > Regards > Darryl. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Thursday, 16 September 2010 7:10 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Creating a Spreadsheet from a Report > > Dear List: > > I have a client who wants one of the reports in my app to be exported > as a spreadsheet. But nota flat file. She wants the spreadsheet to > look like the report - header line, details with their own fields > headings, plus two other sub reports. > > I've done this with other reports on a cell by cell basis where the > Transfer method won't work. Big PITA. Is there an easier way to do this? > > > > MTIA > > Rocky > > > > ______________________________________________________________________ > ______ > ___________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any > review, retransmission, dissemination or other use of, or taking of > any action in reliance upon this information, by persons or entities > other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > ______ > ___________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Thu Sep 16 00:18:43 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Thu, 16 Sep 2010 00:18:43 -0500 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <4C91A47B.28210.300AC26@stuart.lexacorp.com.pg> References: <49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET> <4C91A47B.28210.300AC26@stuart.lexacorp.com.pg> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFD90B@CPIEMAIL-EVS1.CPIQPC.NET> Ah, true. I guess I was thinking more about the text in the headers and layout of the data. I didn't think about the lines and boxes. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 16, 2010 12:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Creating a Spreadsheet from a Report I've generally found that exporting to rtf loses "most" of the formatting for anything that uses boxes, lines etc :-( -- Stuart On 15 Sep 2010 at 23:46, Rusty Hammond wrote: > I don't suppose exporting it to an rtf file would work for the client. > Most of the formatting would remain intact. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin Sent: Wednesday, September 15, 2010 11:37 PM To: 'Access > Developers discussion and problem solving' Subject: Re: [AccessD] > Creating a Spreadsheet from a Report > > I think you're right. But it's a lot of nit-picky code to make a > complex report look right in Excel. Just looking for a way to avoid > work. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 15, 2010 6:12 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Creating a > Spreadsheet from a Report > > Excel automation is probably the way to go. You can export named > ranges, run code out in the spreadsheet to perform formatting etc. > > John W. Colby > www.ColbyConsulting.com > > On 9/15/2010 8:03 PM, Rocky Smolin wrote: > > Thanks. Gotta think about this approach. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > > Collins Sent: Wednesday, September 15, 2010 4:55 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Creating a Spreadsheet from a Report > > > > > > ____________________________________________________________________ > > __ ______ ___________ > > > > Note: This e-mail is subject to the disclaimer contained at the > > bottom > > > of this message. > > ____________________________________________________________________ > > __ ______ ___________ > > > > > > > > > > Rocky, > > > > Easiest way is to use a template which has the report already laid > > out > > > on it. Then you need to have some hidden helper sheets > > > > One (or more sheets) you dump the access / database data into either > > via a view / query / table. This will give you the data you need to > > make the report. Often this can only be a few lines depending on > > the complexity of the outcomes. > > > > Then you write code in the template that pull the data from the > > hidden > > > helper sheets and populates the report. > > > > Another more useful way is this. > > > > Create an Excel workbook with hooks into your database. This way > > the user can update the report 'live' and any database changes are > > immediately pulled into the XL report. You can even have the user > > changes in Excel feed back into the database if you want, although I > > rarely do this. Generally I have Excel as a 'read only' report. > > > > You can then write code in Excel to create a 'stand alone' report > > for emailing etc. You want the users to do this, rather than > > emailing the > > > live version, which will fail once it cannot talk to the database > > anymore. It also stops folks for stuffing up the data. > > > > If you need examples, email me offist and I will send you a couple > > of workbooks I have that do exactly this. > > > > Regards > > Darryl. > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin Sent: Thursday, 16 September 2010 7:10 AM To: 'Access > > Developers discussion and problem solving' Subject: [AccessD] > > Creating a Spreadsheet from a Report > > > > Dear List: > > > > I have a client who wants one of the reports in my app to be > > exported as a spreadsheet. But nota flat file. She wants the > > spreadsheet to look like the report - header line, details with > > their own fields headings, plus two other sub reports. > > > > I've done this with other reports on a cell by cell basis where the > > Transfer method won't work. Big PITA. Is there an easier way to do > this? > > > > > > > > MTIA > > > > Rocky > > > > > > > > ____________________________________________________________________ > > __ ______ ___________ > > > > The information transmitted in this message and its attachments (if > > any) is intended only for the person or entity to which it is > addressed. > > The message may contain confidential and/or privileged material. Any > > review, retransmission, dissemination or other use of, or taking of > > any action in reliance upon this information, by persons or entities > > other than the intended recipient is prohibited. > > > > If you have received this in error, please contact the sender and > > delete this e-mail and associated material from any computer. > > > > The intended recipient of this e-mail may only use, reproduce, > > disclose or distribute the information contained in this e-mail and > > any attached files, with the permission of the sender. > > > > This message has been scanned for viruses. > > ____________________________________________________________________ > > __ ______ ___________ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From rockysmolin at bchacc.com Thu Sep 16 00:40:54 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 15 Sep 2010 22:40:54 -0700 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> Message-ID: Sounds like a plan. The sub-reports of course, are variable length if they have any data at all. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, September 15, 2010 9:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Creating a Spreadsheet from a Report There's really not that much code if you use a suitably formatted template rather than trying to format ranges after you load the data. Create Names for cells at the appropriate places where row formatting changes and GOTO the name begore inserting the data. For your detail rows, just have one formatted row with a named cell in the first column, go to the name on the first record and then insert a new row and populate it for each record as you step through the recordset. -- Stuart On 15 Sep 2010 at 21:37, Rocky Smolin wrote: > I think you're right. But it's a lot of nit-picky code to make a > complex report look right in Excel. Just looking for a way to avoid > work. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 15, 2010 6:12 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Creating a > Spreadsheet from a Report > > Excel automation is probably the way to go. You can export named > ranges, run code out in the spreadsheet to perform formatting etc. > > John W. Colby > www.ColbyConsulting.com > > On 9/15/2010 8:03 PM, Rocky Smolin wrote: > > Thanks. Gotta think about this approach. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > > Collins Sent: Wednesday, September 15, 2010 4:55 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Creating a Spreadsheet from a Report > > > > > > ____________________________________________________________________ > > __ ______ ___________ > > > > Note: This e-mail is subject to the disclaimer contained at the > > bottom of this message. > > ____________________________________________________________________ > > __ ______ ___________ > > > > > > > > > > Rocky, > > > > Easiest way is to use a template which has the report already laid > > out on it. Then you need to have some hidden helper sheets > > > > One (or more sheets) you dump the access / database data into either > > via a view / query / table. This will give you the data you need to > > make the report. Often this can only be a few lines depending on > > the complexity of the outcomes. > > > > Then you write code in the template that pull the data from the > > hidden helper sheets and populates the report. > > > > Another more useful way is this. > > > > Create an Excel workbook with hooks into your database. This way > > the user can update the report 'live' and any database changes are > > immediately pulled into the XL report. You can even have the user > > changes in Excel feed back into the database if you want, although I > > rarely do this. Generally I have Excel as a 'read only' report. > > > > You can then write code in Excel to create a 'stand alone' report > > for emailing etc. You want the users to do this, rather than > > emailing the live version, which will fail once it cannot talk to > > the database anymore. It also stops folks for stuffing up the data. > > > > If you need examples, email me offist and I will send you a couple > > of workbooks I have that do exactly this. > > > > Regards > > Darryl. > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin Sent: Thursday, 16 September 2010 7:10 AM To: 'Access > > Developers discussion and problem solving' Subject: [AccessD] > > Creating a Spreadsheet from a Report > > > > Dear List: > > > > I have a client who wants one of the reports in my app to be > > exported as a spreadsheet. But nota flat file. She wants the > > spreadsheet to look like the report - header line, details with > > their own fields headings, plus two other sub reports. > > > > I've done this with other reports on a cell by cell basis where the > > Transfer method won't work. Big PITA. Is there an easier way to do > > this? > > > > > > > > MTIA > > > > Rocky > > > > > > > > ____________________________________________________________________ > > __ ______ ___________ > > > > The information transmitted in this message and its attachments (if > > any) is intended only for the person or entity to which it is > > addressed. The message may contain confidential and/or privileged > > material. Any review, retransmission, dissemination or other use of, > > or taking of any action in reliance upon this information, by > > persons or entities other than the intended recipient is prohibited. > > > > If you have received this in error, please contact the sender and > > delete this e-mail and associated material from any computer. > > > > The intended recipient of this e-mail may only use, reproduce, > > disclose or distribute the information contained in this e-mail and > > any attached files, with the permission of the sender. > > > > This message has been scanned for viruses. > > ____________________________________________________________________ > > __ ______ ___________ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 16 06:51:52 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 16 Sep 2010 07:51:52 -0400 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> Message-ID: <4C9204D8.7000705@colbyconsulting.com> Think about putting the sub-reports on their own page. John W. Colby www.ColbyConsulting.com On 9/16/2010 1:40 AM, Rocky Smolin wrote: > Sounds like a plan. The sub-reports of course, are variable length if they > have any data at all. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Wednesday, September 15, 2010 9:59 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Creating a Spreadsheet from a Report > > There's really not that much code if you use a suitably formatted template > rather than trying to format ranges after you load the data. > > Create Names for cells at the appropriate places where row formatting > changes and GOTO the name begore inserting the data. > > For your detail rows, just have one formatted row with a named cell in the > first column, go to the name on the first record and then insert a new row > and populate it for each record as you step through the recordset. > > > -- > Stuart > > On 15 Sep 2010 at 21:37, Rocky Smolin wrote: > >> I think you're right. But it's a lot of nit-picky code to make a >> complex report look right in Excel. Just looking for a way to avoid >> work. >> >> R >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, September 15, 2010 6:12 PM To: Access Developers >> discussion and problem solving Subject: Re: [AccessD] Creating a >> Spreadsheet from a Report >> >> Excel automation is probably the way to go. You can export named >> ranges, run code out in the spreadsheet to perform formatting etc. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 9/15/2010 8:03 PM, Rocky Smolin wrote: >>> Thanks. Gotta think about this approach. >>> >>> Rocky >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl >>> Collins Sent: Wednesday, September 15, 2010 4:55 PM To: Access >>> Developers discussion and problem solving Subject: Re: [AccessD] >>> Creating a Spreadsheet from a Report >>> >>> >>> ____________________________________________________________________ >>> __ ______ ___________ >>> >>> Note: This e-mail is subject to the disclaimer contained at the >>> bottom of this message. >>> ____________________________________________________________________ >>> __ ______ ___________ >>> >>> >>> >>> >>> Rocky, >>> >>> Easiest way is to use a template which has the report already laid >>> out on it. Then you need to have some hidden helper sheets >>> >>> One (or more sheets) you dump the access / database data into either >>> via a view / query / table. This will give you the data you need to >>> make the report. Often this can only be a few lines depending on >>> the complexity of the outcomes. >>> >>> Then you write code in the template that pull the data from the >>> hidden helper sheets and populates the report. >>> >>> Another more useful way is this. >>> >>> Create an Excel workbook with hooks into your database. This way >>> the user can update the report 'live' and any database changes are >>> immediately pulled into the XL report. You can even have the user >>> changes in Excel feed back into the database if you want, although I >>> rarely do this. Generally I have Excel as a 'read only' report. >>> >>> You can then write code in Excel to create a 'stand alone' report >>> for emailing etc. You want the users to do this, rather than >>> emailing the live version, which will fail once it cannot talk to >>> the database anymore. It also stops folks for stuffing up the data. >>> >>> If you need examples, email me offist and I will send you a couple >>> of workbooks I have that do exactly this. >>> >>> Regards >>> Darryl. >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >>> Smolin Sent: Thursday, 16 September 2010 7:10 AM To: 'Access >>> Developers discussion and problem solving' Subject: [AccessD] >>> Creating a Spreadsheet from a Report >>> >>> Dear List: >>> >>> I have a client who wants one of the reports in my app to be >>> exported as a spreadsheet. But nota flat file. She wants the >>> spreadsheet to look like the report - header line, details with >>> their own fields headings, plus two other sub reports. >>> >>> I've done this with other reports on a cell by cell basis where the >>> Transfer method won't work. Big PITA. Is there an easier way to do >>> this? >>> >>> >>> >>> MTIA >>> >>> Rocky >>> >>> >>> >>> ____________________________________________________________________ >>> __ ______ ___________ >>> >>> The information transmitted in this message and its attachments (if >>> any) is intended only for the person or entity to which it is >>> addressed. The message may contain confidential and/or privileged >>> material. Any review, retransmission, dissemination or other use of, >>> or taking of any action in reliance upon this information, by >>> persons or entities other than the intended recipient is prohibited. >>> >>> If you have received this in error, please contact the sender and >>> delete this e-mail and associated material from any computer. >>> >>> The intended recipient of this e-mail may only use, reproduce, >>> disclose or distribute the information contained in this e-mail and >>> any attached files, with the permission of the sender. >>> >>> This message has been scanned for viruses. >>> ____________________________________________________________________ >>> __ ______ ___________ >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > From rockysmolin at bchacc.com Thu Sep 16 08:50:47 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 16 Sep 2010 06:50:47 -0700 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <4C9204D8.7000705@colbyconsulting.com> References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com> Message-ID: <1148A449423644DF89E9F3A6A785EA42@HAL9005> You mean a different work sheet in the workbook? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 16, 2010 4:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Creating a Spreadsheet from a Report Think about putting the sub-reports on their own page. John W. Colby www.ColbyConsulting.com On 9/16/2010 1:40 AM, Rocky Smolin wrote: > Sounds like a plan. The sub-reports of course, are variable length if > they have any data at all. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Wednesday, September 15, 2010 9:59 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Creating a Spreadsheet from a Report > > There's really not that much code if you use a suitably formatted > template rather than trying to format ranges after you load the data. > > Create Names for cells at the appropriate places where row formatting > changes and GOTO the name begore inserting the data. > > For your detail rows, just have one formatted row with a named cell in > the first column, go to the name on the first record and then insert a > new row and populate it for each record as you step through the recordset. > > > -- > Stuart > > On 15 Sep 2010 at 21:37, Rocky Smolin wrote: > >> I think you're right. But it's a lot of nit-picky code to make a >> complex report look right in Excel. Just looking for a way to avoid >> work. >> >> R >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, September 15, 2010 6:12 PM To: Access Developers >> discussion and problem solving Subject: Re: [AccessD] Creating a >> Spreadsheet from a Report >> >> Excel automation is probably the way to go. You can export named >> ranges, run code out in the spreadsheet to perform formatting etc. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 9/15/2010 8:03 PM, Rocky Smolin wrote: >>> Thanks. Gotta think about this approach. >>> >>> Rocky >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl >>> Collins Sent: Wednesday, September 15, 2010 4:55 PM To: Access >>> Developers discussion and problem solving Subject: Re: [AccessD] >>> Creating a Spreadsheet from a Report >>> >>> >>> ____________________________________________________________________ >>> __ ______ ___________ >>> >>> Note: This e-mail is subject to the disclaimer contained at the >>> bottom of this message. >>> ____________________________________________________________________ >>> __ ______ ___________ >>> >>> >>> >>> >>> Rocky, >>> >>> Easiest way is to use a template which has the report already laid >>> out on it. Then you need to have some hidden helper sheets >>> >>> One (or more sheets) you dump the access / database data into either >>> via a view / query / table. This will give you the data you need to >>> make the report. Often this can only be a few lines depending on >>> the complexity of the outcomes. >>> >>> Then you write code in the template that pull the data from the >>> hidden helper sheets and populates the report. >>> >>> Another more useful way is this. >>> >>> Create an Excel workbook with hooks into your database. This way >>> the user can update the report 'live' and any database changes are >>> immediately pulled into the XL report. You can even have the user >>> changes in Excel feed back into the database if you want, although I >>> rarely do this. Generally I have Excel as a 'read only' report. >>> >>> You can then write code in Excel to create a 'stand alone' report >>> for emailing etc. You want the users to do this, rather than >>> emailing the live version, which will fail once it cannot talk to >>> the database anymore. It also stops folks for stuffing up the data. >>> >>> If you need examples, email me offist and I will send you a couple >>> of workbooks I have that do exactly this. >>> >>> Regards >>> Darryl. >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >>> Smolin Sent: Thursday, 16 September 2010 7:10 AM To: 'Access >>> Developers discussion and problem solving' Subject: [AccessD] >>> Creating a Spreadsheet from a Report >>> >>> Dear List: >>> >>> I have a client who wants one of the reports in my app to be >>> exported as a spreadsheet. But nota flat file. She wants the >>> spreadsheet to look like the report - header line, details with >>> their own fields headings, plus two other sub reports. >>> >>> I've done this with other reports on a cell by cell basis where the >>> Transfer method won't work. Big PITA. Is there an easier way to do >>> this? >>> >>> >>> >>> MTIA >>> >>> Rocky >>> >>> >>> >>> ____________________________________________________________________ >>> __ ______ ___________ >>> >>> The information transmitted in this message and its attachments (if >>> any) is intended only for the person or entity to which it is >>> addressed. The message may contain confidential and/or privileged >>> material. Any review, retransmission, dissemination or other use of, >>> or taking of any action in reliance upon this information, by >>> persons or entities other than the intended recipient is prohibited. >>> >>> If you have received this in error, please contact the sender and >>> delete this e-mail and associated material from any computer. >>> >>> The intended recipient of this e-mail may only use, reproduce, >>> disclose or distribute the information contained in this e-mail and >>> any attached files, with the permission of the sender. >>> >>> This message has been scanned for viruses. >>> ____________________________________________________________________ >>> __ ______ ___________ >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Thu Sep 16 09:06:56 2010 From: robert at servicexp.com (Robert) Date: Thu, 16 Sep 2010 10:06:56 -0400 Subject: [AccessD] OT: (kinda) WinZip Question. In-Reply-To: <4C9204D8.7000705@colbyconsulting.com> References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com> Message-ID: <001201cb55a8$6f2232d0$4d669870$@com> Does anyone know if this is possible: (on a windows 7 32 machine) WinZip (Latest Version) Zip a multi-GB file into a 100 Meg Segmented, non compressed zip using a .bat file? The .bat file is the "problem". WBR Robert From Lambert.Heenan at chartisinsurance.com Thu Sep 16 09:11:10 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 16 Sep 2010 10:11:10 -0400 Subject: [AccessD] OT: (kinda) WinZip Question. In-Reply-To: <001201cb55a8$6f2232d0$4d669870$@com> References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com> <001201cb55a8$6f2232d0$4d669870$@com> Message-ID: It's certainly possible, as long as you have the Command Line extension for WinZip (free I think). What problem do you have with the batch file? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Thursday, September 16, 2010 10:07 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: (kinda) WinZip Question. Does anyone know if this is possible: (on a windows 7 32 machine) WinZip (Latest Version) Zip a multi-GB file into a 100 Meg Segmented, non compressed zip using a .bat file? The .bat file is the "problem". WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 16 09:22:55 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 16 Sep 2010 10:22:55 -0400 Subject: [AccessD] Creating a Spreadsheet from a Report In-Reply-To: <1148A449423644DF89E9F3A6A785EA42@HAL9005> References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com> <1148A449423644DF89E9F3A6A785EA42@HAL9005> Message-ID: <4C92283F.1010506@colbyconsulting.com> Yes. This would allow you to organize it, have a consistent physical location in the sheet, make it easy to find for the client etc. If course then it does not look EXACTLY like the report, but it may be easier to use in the end. John W. Colby www.ColbyConsulting.com On 9/16/2010 9:50 AM, Rocky Smolin wrote: > You mean a different work sheet in the workbook? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 16, 2010 4:52 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Creating a Spreadsheet from a Report > > Think about putting the sub-reports on their own page. > > John W. Colby > www.ColbyConsulting.com From iggy at nanaimo.ark.com Thu Sep 16 08:18:59 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 16 Sep 2010 06:18:59 -0700 Subject: [AccessD] Tree View/Images/Command Bar Message-ID: <4C921943.7060102@nanaimo.ark.com> Hey All About a week ago I developed a treeview form for a client who had 1,000s of lab results. About 6 years ago I had developed a fairly complex treeview form (10 levels) for a client, but I guess it is old age because I couldn't remember how I did most of the activities performed on the form. So basically I had relearn everything all over again. This became a study in frustration, "Just show me how to do it.", don't show me a page of cyptic code when I don't understand what I am doing in the first place. Anyway I decided to create a primer or cheat sheet mdb that I could use as a reference, to be updated as time goes by. It incorporates a treeview with 4 levels (from simple data tables) , treeview images (not a big fan of images but sometime I may need them, the images are poor quality because I just cut and pasted them) and a commandbar for the treeview. There is no fancy code (I wanted to keep it bare bones), some of the code is repetative, and because it is not an application there is no error trapping, integrity checks, etc. I am not an expert by any means with treeviews and commandbars, but it is a working model. If anyone is interested in working with treeviews and wants to avoid some of the frustration I went through, I can send you a copy of the primer offline. Maybe you can show me a few tips and tricks. Part 2 (when I get some more time) of my primer will incorporate linked subforms and list boxes. MDB - Access 2000 Hopefully everything will work on your machine, as I did read that sometimes problems can occur with the controls. From robert at servicexp.com Thu Sep 16 10:51:00 2010 From: robert at servicexp.com (Robert) Date: Thu, 16 Sep 2010 11:51:00 -0400 Subject: [AccessD] OT: (kinda) WinZip Question. In-Reply-To: References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com> <001201cb55a8$6f2232d0$4d669870$@com> Message-ID: <001e01cb55b6$f6a5f030$e3f1d090$@com> Lambert, Thank you for responding. I'm just starting out on this project, and don't even know where to find the information on how to built the .bat file to do what I'm looking to do.. :) I searched the WinZip site for this information (how to do this) but they push their SKD. Any advice would be much appreciated. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, September 16, 2010 10:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: (kinda) WinZip Question. It's certainly possible, as long as you have the Command Line extension for WinZip (free I think). What problem do you have with the batch file? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Thursday, September 16, 2010 10:07 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: (kinda) WinZip Question. Does anyone know if this is possible: (on a windows 7 32 machine) WinZip (Latest Version) Zip a multi-GB file into a 100 Meg Segmented, non compressed zip using a .bat file? The .bat file is the "problem". WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 16 10:59:10 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 16 Sep 2010 11:59:10 -0400 Subject: [AccessD] Tree View/Images/Command Bar In-Reply-To: <4C921943.7060102@nanaimo.ark.com> References: <4C921943.7060102@nanaimo.ark.com> Message-ID: <4C923ECE.5070408@colbyconsulting.com> Very cool! I have always wanted to use these things but didn't want to undergo the frustration. Why don't you get it posted to our web site. John W. Colby www.ColbyConsulting.com On 9/16/2010 9:18 AM, Tony Septav wrote: > Hey All > About a week ago I developed a treeview form for a client who had 1,000s > of lab results. About 6 years ago I had developed a fairly complex > treeview form (10 levels) for a client, but I guess it is old age > because I couldn't remember how I did most of the activities performed > on the form. So basically I had relearn everything all over again. This > became a study in frustration, "Just show me how to do it.", don't show > me a page of cyptic code when I don't understand what I am doing in the > first place. > > Anyway I decided to create a primer or cheat sheet mdb that I could use > as a reference, to be updated as time goes by. It incorporates a > treeview with 4 levels (from simple data tables) , treeview images (not > a big fan of images but sometime I may need them, the images are poor > quality because I just cut and pasted them) and a commandbar for the > treeview. There is no fancy code (I wanted to keep it bare bones), some > of the code is repetative, and because it is not an application there is > no error trapping, integrity checks, etc. > > I am not an expert by any means with treeviews and commandbars, but it > is a working model. > If anyone is interested in working with treeviews and wants to avoid > some of the frustration I went through, I can send you a copy of the > primer offline. Maybe you can show me a few tips and tricks. > > Part 2 (when I get some more time) of my primer will incorporate linked > subforms and list boxes. > > MDB - Access 2000 > Hopefully everything will work on your machine, as I did read that > sometimes problems can occur with the controls. > > > > From stuart at lexacorp.com.pg Thu Sep 16 11:00:34 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Sep 2010 02:00:34 +1000 Subject: [AccessD] OT: (kinda) WinZip Question. In-Reply-To: <001201cb55a8$6f2232d0$4d669870$@com> References: , <4C9204D8.7000705@colbyconsulting.com>, <001201cb55a8$6f2232d0$4d669870$@com> Message-ID: <4C923F22.17206.55CC9B0@stuart.lexacorp.com.pg> Not in a single step. You can only split an existing zip into chunks. If you haven't done so already, download the command line interface from http://www.winzip.com/downcl.htm Then in your batch file: wzzzip myzip.zip myfile.ext -e0 wzzip -ys102400 myzip.zip mysplit del myzip.zip This will a: create myzip.zip uncompressed from myfile.ext b. split myzip.zip into files myslit.z01, mysplit.z02 etc each 102400KB (100MB) in size c. get rid of the temporary myzip.zip -- Stuart On 16 Sep 2010 at 10:06, Robert wrote: > Does anyone know if this is possible: (on a windows 7 32 machine) > > WinZip (Latest Version) > > Zip a multi-GB file into a 100 Meg Segmented, non compressed zip using > a .bat file? > > The .bat file is the "problem". > > WBR > Robert > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at chartisinsurance.com Thu Sep 16 11:03:41 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 16 Sep 2010 12:03:41 -0400 Subject: [AccessD] OT: (kinda) WinZip Question. In-Reply-To: <001e01cb55b6$f6a5f030$e3f1d090$@com> References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com> <001201cb55a8$6f2232d0$4d669870$@com> <001e01cb55b6$f6a5f030$e3f1d090$@com> Message-ID: Looks like Stuart has jumped in and answered all your questions! :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Thursday, September 16, 2010 11:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: (kinda) WinZip Question. Lambert, Thank you for responding. I'm just starting out on this project, and don't even know where to find the information on how to built the .bat file to do what I'm looking to do.. :) I searched the WinZip site for this information (how to do this) but they push their SKD. Any advice would be much appreciated. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, September 16, 2010 10:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: (kinda) WinZip Question. It's certainly possible, as long as you have the Command Line extension for WinZip (free I think). What problem do you have with the batch file? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Thursday, September 16, 2010 10:07 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: (kinda) WinZip Question. Does anyone know if this is possible: (on a windows 7 32 machine) WinZip (Latest Version) Zip a multi-GB file into a 100 Meg Segmented, non compressed zip using a .bat file? The .bat file is the "problem". WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Thu Sep 16 11:06:41 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 16 Sep 2010 09:06:41 -0700 Subject: [AccessD] Tree View/Images/Command Bar In-Reply-To: <4C923ECE.5070408@colbyconsulting.com> References: <4C921943.7060102@nanaimo.ark.com> <4C923ECE.5070408@colbyconsulting.com> Message-ID: <4C924091.7070806@nanaimo.ark.com> Hey John Would you like to test drive it first and if deemed worthy, sure it could be posted. I was kind of hoping on getting other's input and added to the primer, so that no one has to go through the frustration, it is gross. jwcolby wrote: >Very cool! I have always wanted to use these things but didn't want to undergo the frustration. > >Why don't you get it posted to our web site. > >John W. Colby >www.ColbyConsulting.com > >On 9/16/2010 9:18 AM, Tony Septav wrote: > > >>Hey All >>About a week ago I developed a treeview form for a client who had 1,000s >>of lab results. About 6 years ago I had developed a fairly complex >>treeview form (10 levels) for a client, but I guess it is old age >>because I couldn't remember how I did most of the activities performed >>on the form. So basically I had relearn everything all over again. This >>became a study in frustration, "Just show me how to do it.", don't show >>me a page of cyptic code when I don't understand what I am doing in the >>first place. >> >>Anyway I decided to create a primer or cheat sheet mdb that I could use >>as a reference, to be updated as time goes by. It incorporates a >>treeview with 4 levels (from simple data tables) , treeview images (not >>a big fan of images but sometime I may need them, the images are poor >>quality because I just cut and pasted them) and a commandbar for the >>treeview. There is no fancy code (I wanted to keep it bare bones), some >>of the code is repetative, and because it is not an application there is >>no error trapping, integrity checks, etc. >> >>I am not an expert by any means with treeviews and commandbars, but it >>is a working model. >>If anyone is interested in working with treeviews and wants to avoid >>some of the frustration I went through, I can send you a copy of the >>primer offline. Maybe you can show me a few tips and tricks. >> >>Part 2 (when I get some more time) of my primer will incorporate linked >>subforms and list boxes. >> >>MDB - Access 2000 >>Hopefully everything will work on your machine, as I did read that >>sometimes problems can occur with the controls. >> >> >> >> >> >> From jwcolby at colbyconsulting.com Thu Sep 16 11:21:28 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 16 Sep 2010 12:21:28 -0400 Subject: [AccessD] Library order matters Message-ID: <4C924408.7060009@colbyconsulting.com> I use libraries. My C2DbFW3G (framework, 3rd generation) has a function called fltr(). C2DbFW3G references C2DbLWS (my old Light Weight Security framework). C2DbLWS has a function fltr(). So... My front end references BOTH C2DbLWS and C2DbFW3G in that order. C2DbFW3G is setting filters for the application, but when the application calls fltr() to get the resulting values, because it references C2DbLWS first, it calls fltr in C2DbLWS and of course it returns a null value. Reversing the order of the reference in my application now allows the application to call fltr in C2DbFW3G and that fltr() has the right value. -- John W. Colby www.ColbyConsulting.com From jm.hwsn at gmail.com Thu Sep 16 11:23:21 2010 From: jm.hwsn at gmail.com (Jim Hewson) Date: Thu, 16 Sep 2010 11:23:21 -0500 Subject: [AccessD] Tree View/Images/Command Bar In-Reply-To: <4C924091.7070806@nanaimo.ark.com> References: <4C921943.7060102@nanaimo.ark.com> <4C923ECE.5070408@colbyconsulting.com> <4C924091.7070806@nanaimo.ark.com> Message-ID: <4c92447d.193f970a.160c.ffffaf92@mx.google.com> I would like a copy. I too have been frustrated trying to use a treeview. I have successfully created one with three levels and it works, but any ideas on how to make it easier to use would be great. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Thursday, September 16, 2010 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Tree View/Images/Command Bar Hey John Would you like to test drive it first and if deemed worthy, sure it could be posted. I was kind of hoping on getting other's input and added to the primer, so that no one has to go through the frustration, it is gross. jwcolby wrote: >Very cool! I have always wanted to use these things but didn't want to undergo the frustration. > >Why don't you get it posted to our web site. > >John W. Colby >www.ColbyConsulting.com > >On 9/16/2010 9:18 AM, Tony Septav wrote: > > >>Hey All >>About a week ago I developed a treeview form for a client who had >>1,000s of lab results. About 6 years ago I had developed a fairly >>complex treeview form (10 levels) for a client, but I guess it is old >>age because I couldn't remember how I did most of the activities >>performed on the form. So basically I had relearn everything all over >>again. This became a study in frustration, "Just show me how to do >>it.", don't show me a page of cyptic code when I don't understand what >>I am doing in the first place. >> >>Anyway I decided to create a primer or cheat sheet mdb that I could >>use as a reference, to be updated as time goes by. It incorporates a >>treeview with 4 levels (from simple data tables) , treeview images >>(not a big fan of images but sometime I may need them, the images are >>poor quality because I just cut and pasted them) and a commandbar for >>the treeview. There is no fancy code (I wanted to keep it bare >>bones), some of the code is repetative, and because it is not an >>application there is no error trapping, integrity checks, etc. >> >>I am not an expert by any means with treeviews and commandbars, but it >>is a working model. >>If anyone is interested in working with treeviews and wants to avoid >>some of the frustration I went through, I can send you a copy of the >>primer offline. Maybe you can show me a few tips and tricks. >> >>Part 2 (when I get some more time) of my primer will incorporate >>linked subforms and list boxes. >> >>MDB - Access 2000 >>Hopefully everything will work on your machine, as I did read that >>sometimes problems can occur with the controls. >> >> >> >> >> >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Thu Sep 16 11:33:05 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 16 Sep 2010 12:33:05 -0400 Subject: [AccessD] Library order matters In-Reply-To: <4C924408.7060009@colbyconsulting.com> References: <4C924408.7060009@colbyconsulting.com> Message-ID: If your front end app does not make any direct calls to C2DbLWS, but instead is using routines in C2DbFW3G then it should also work if your app just has a reference to C2DbFW3G and no reference to C2DbLWS at all. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 16, 2010 12:21 PM To: Access Developers discussion and problem solving Subject: [AccessD] Library order matters I use libraries. My C2DbFW3G (framework, 3rd generation) has a function called fltr(). C2DbFW3G references C2DbLWS (my old Light Weight Security framework). C2DbLWS has a function fltr(). So... My front end references BOTH C2DbLWS and C2DbFW3G in that order. C2DbFW3G is setting filters for the application, but when the application calls fltr() to get the resulting values, because it references C2DbLWS first, it calls fltr in C2DbLWS and of course it returns a null value. Reversing the order of the reference in my application now allows the application to call fltr in C2DbFW3G and that fltr() has the right value. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 16 11:41:41 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 16 Sep 2010 12:41:41 -0400 Subject: [AccessD] Library order matters In-Reply-To: References: <4C924408.7060009@colbyconsulting.com> Message-ID: <4C9248C5.2060507@colbyconsulting.com> In fact it uses direct calls into both. Now comes the fun part... Remember decompile? Well... I have a query that references Fltr(). Once I change the order of the references, calling fltr in the debug window correctly calls the fltr function in C2DbFW3G. However the query still calls the fltr() in C2DbLWS. I had to decompile compile to cause the query to call fltr in C2DbFW3G. Once I changed the order AND decompiled / compiled, the problem I was having went away. This is a problem that could apparently not be fixed without a decompile. John W. Colby www.ColbyConsulting.com On 9/16/2010 12:33 PM, Heenan, Lambert wrote: > If your front end app does not make any direct calls to C2DbLWS, but instead is using routines in C2DbFW3G then it should also work if your app just has a reference to C2DbFW3G and no reference to C2DbLWS at all. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 16, 2010 12:21 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Library order matters > > I use libraries. My C2DbFW3G (framework, 3rd generation) has a function called fltr(). > > C2DbFW3G references C2DbLWS (my old Light Weight Security framework). C2DbLWS has a function fltr(). > > So... > > My front end references BOTH C2DbLWS and C2DbFW3G in that order. > > C2DbFW3G is setting filters for the application, but when the application calls fltr() to get the resulting values, because it references C2DbLWS first, it calls fltr in C2DbLWS and of course it returns a null value. > > Reversing the order of the reference in my application now allows the application to call fltr in C2DbFW3G and that fltr() has the right value. > > > From davidmcafee at gmail.com Thu Sep 16 11:53:44 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 16 Sep 2010 09:53:44 -0700 Subject: [AccessD] Tree View/Images/Command Bar In-Reply-To: <4c92447d.193f970a.160c.ffffaf92@mx.google.com> References: <4C921943.7060102@nanaimo.ark.com> <4C923ECE.5070408@colbyconsulting.com> <4C924091.7070806@nanaimo.ark.com> <4c92447d.193f970a.160c.ffffaf92@mx.google.com> Message-ID: I'd lke a copy too please. On Thu, Sep 16, 2010 at 9:23 AM, Jim Hewson wrote: > I would like a copy. > I too have been frustrated trying to use a treeview. ?I have successfully > created one with three levels and it works, but any ideas on how to make it > easier to use would be great. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > Sent: Thursday, September 16, 2010 11:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Tree View/Images/Command Bar > > Hey John > Would you like to test drive it first and if deemed worthy, sure it could be > posted. ?I was kind of hoping on getting other's input and added to the > primer, so that no one has to go through the frustration, it is gross. > > jwcolby wrote: > >>Very cool! ?I have always wanted to use these things but didn't want to > undergo the frustration. >> >>Why don't you get it posted to our web site. >> >>John W. Colby >>www.ColbyConsulting.com >> >>On 9/16/2010 9:18 AM, Tony Septav wrote: >> >> >>>Hey All >>>About a week ago I developed a treeview form for a client who had >>>1,000s of lab results. ?About 6 years ago I had developed a fairly >>>complex treeview form ?(10 levels) for a client, but I guess it is old >>>age because I couldn't remember how I did ?most of the activities >>>performed on the form. So basically I had relearn everything all over >>>again. This became a study in frustration, "Just show me how to do >>>it.", don't show me a page of cyptic code when I don't understand what >>>I am doing in the first place. >>> >>>Anyway I decided to create a primer or cheat sheet mdb that I could >>>use as a reference, to be updated as time goes by. It incorporates a >>>treeview with 4 levels (from simple data tables) , treeview images >>>(not a big fan of images but sometime I may need them, the images are >>>poor quality because I just cut and pasted them) and a commandbar for >>>the treeview. ?There is no fancy code (I wanted to keep it bare >>>bones), some of the code is repetative, and because it is not an >>>application there is no error trapping, integrity checks, etc. >>> >>>I am not an expert by any means with treeviews and commandbars, but it >>>is a working model. >>>If anyone is interested in working with treeviews and wants to avoid >>>some of the frustration I went through, I can send you a copy of the >>>primer offline. ?Maybe you can show me a few tips and tricks. >>> >>>Part 2 (when I get some more time) of my primer will incorporate >>>linked subforms and list boxes. >>> >>>MDB - Access 2000 >>>Hopefully everything will work on your machine, as I did read ?that >>>sometimes problems can occur with the controls. >>> >>> >>> >>> >>> >>> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at chartisinsurance.com Thu Sep 16 12:13:15 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 16 Sep 2010 13:13:15 -0400 Subject: [AccessD] Library order matters In-Reply-To: <4C9248C5.2060507@colbyconsulting.com> References: <4C924408.7060009@colbyconsulting.com> <4C9248C5.2060507@colbyconsulting.com> Message-ID: Probably a side effect of queries being "optimized" by JET when you save them. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 16, 2010 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Library order matters In fact it uses direct calls into both. Now comes the fun part... Remember decompile? Well... I have a query that references Fltr(). Once I change the order of the references, calling fltr in the debug window correctly calls the fltr function in C2DbFW3G. However the query still calls the fltr() in C2DbLWS. I had to decompile compile to cause the query to call fltr in C2DbFW3G. Once I changed the order AND decompiled / compiled, the problem I was having went away. This is a problem that could apparently not be fixed without a decompile. John W. Colby www.ColbyConsulting.com On 9/16/2010 12:33 PM, Heenan, Lambert wrote: > If your front end app does not make any direct calls to C2DbLWS, but instead is using routines in C2DbFW3G then it should also work if your app just has a reference to C2DbFW3G and no reference to C2DbLWS at all. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 16, 2010 12:21 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Library order matters > > I use libraries. My C2DbFW3G (framework, 3rd generation) has a function called fltr(). > > C2DbFW3G references C2DbLWS (my old Light Weight Security framework). C2DbLWS has a function fltr(). > > So... > > My front end references BOTH C2DbLWS and C2DbFW3G in that order. > > C2DbFW3G is setting filters for the application, but when the application calls fltr() to get the resulting values, because it references C2DbLWS first, it calls fltr in C2DbLWS and of course it returns a null value. > > Reversing the order of the reference in my application now allows the application to call fltr in C2DbFW3G and that fltr() has the right value. > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 16 12:51:17 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 16 Sep 2010 13:51:17 -0400 Subject: [AccessD] Library order matters In-Reply-To: References: <4C924408.7060009@colbyconsulting.com> <4C9248C5.2060507@colbyconsulting.com> Message-ID: <4C925915.5070900@colbyconsulting.com> > Probably a side effect of queries being "optimized" by JET when you save them. Yep. Really I just wanted to put it out there that queries referencing functions can cause issues that can't be fixed without a decompile. John W. Colby www.ColbyConsulting.com On 9/16/2010 1:13 PM, Heenan, Lambert wrote: > Probably a side effect of queries being "optimized" by JET when you save them. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 16, 2010 12:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Library order matters > > In fact it uses direct calls into both. > > Now comes the fun part... > > Remember decompile? Well... > > I have a query that references Fltr(). Once I change the order of the references, calling fltr in the debug window correctly calls the fltr function in C2DbFW3G. However the query still calls the > fltr() in C2DbLWS. I had to decompile compile to cause the query to call fltr in C2DbFW3G. > > Once I changed the order AND decompiled / compiled, the problem I was having went away. > > This is a problem that could apparently not be fixed without a decompile. > > John W. Colby > www.ColbyConsulting.com From robert at servicexp.com Thu Sep 16 14:26:33 2010 From: robert at servicexp.com (Robert) Date: Thu, 16 Sep 2010 15:26:33 -0400 Subject: [AccessD] OT: (kinda) WinZip Question. In-Reply-To: <4C923F22.17206.55CC9B0@stuart.lexacorp.com.pg> References: , <4C9204D8.7000705@colbyconsulting.com>, <001201cb55a8$6f2232d0$4d669870$@com> <4C923F22.17206.55CC9B0@stuart.lexacorp.com.pg> Message-ID: <002201cb55d5$14fc86c0$3ef59440$@com> Ah, thank you so much Stuart, I will give this a try... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 16, 2010 12:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: (kinda) WinZip Question. Not in a single step. You can only split an existing zip into chunks. If you haven't done so already, download the command line interface from http://www.winzip.com/downcl.htm Then in your batch file: wzzzip myzip.zip myfile.ext -e0 wzzip -ys102400 myzip.zip mysplit del myzip.zip This will a: create myzip.zip uncompressed from myfile.ext b. split myzip.zip into files myslit.z01, mysplit.z02 etc each 102400KB (100MB) in size c. get rid of the temporary myzip.zip -- Stuart On 16 Sep 2010 at 10:06, Robert wrote: > Does anyone know if this is possible: (on a windows 7 32 machine) > > WinZip (Latest Version) > > Zip a multi-GB file into a 100 Meg Segmented, non compressed zip using > a .bat file? > > The .bat file is the "problem". > > WBR > Robert > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Thu Sep 16 15:34:13 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 16 Sep 2010 15:34:13 -0500 Subject: [AccessD] Range of Values in Access Switch Function References: , <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005>, <49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET> <4C91A47B.28210.300AC26@stuart.lexacorp.com.pg> Message-ID: Is it possible to specify a range of values in a Switch Function that is used in an Access query? I have a Switch Function like this sample - DerivedGroup: Switch([Product] In ("1","2","3","4","5"),"Product Group One",True,"Default Product Group")) I would like to specify a range rather than spelling out each possible value Something like =("1" through "5") Thanks for your help, Brad From davidmcafee at gmail.com Thu Sep 16 15:48:29 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 16 Sep 2010 13:48:29 -0700 Subject: [AccessD] Range of Values in Access Switch Function In-Reply-To: References: <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET> <4C91A47B.28210.300AC26@stuart.lexacorp.com.pg> Message-ID: This isn't an answer to your question, but could you have a table with the values? tblTranslation Num PKID (1,2,3,...) NumWord text/char ("One", "Two", "Three"..._ Just join the table in when needed. On Thu, Sep 16, 2010 at 1:34 PM, Brad Marks wrote: > Is it possible to specify a range of values in a Switch Function that is > used in an Access query? > > > I have a Switch Function like this sample - > > > DerivedGroup: Switch([Product] In ("1","2","3","4","5"),"Product Group > One",True,"Default Product Group")) > > > I would like to specify a range rather than spelling out each possible > value > > > Something like ? =("1" through "5") > > > Thanks for your help, > Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at Marlow.com Thu Sep 16 15:49:17 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 16 Sep 2010 15:49:17 -0500 Subject: [AccessD] Tree View/Images/Command Bar In-Reply-To: <4c92447d.193f970a.160c.ffffaf92@mx.google.com> References: <4C921943.7060102@nanaimo.ark.com> <4C923ECE.5070408@colbyconsulting.com><4C924091.7070806@nanaimo.ark.com> <4c92447d.193f970a.160c.ffffaf92@mx.google.com> Message-ID: I hate to say this, but Access is not a good interface to use a treeview for. Two major reasons. First, if you want to wipe all the nodes in a treeview, (nodes.clear), the treeview actually unloads each node individually. With a small amount of nodes, it's unnoticeable, with more, you can watch it eating popcorn! The easiest way to get around this, is to actually set the treeview up as an array. Don't use instance 0, instead, use instance 1, and when you want to wipe the nodes, just unload the treeview itself and load a new instance. The other item is popup menus. In Access, you can't have control arrays, and it's popup menus don't work the same as in VB6. Some tips on Treeviews though... Each node needs a unique key. I recommend that each key gets a prefix to identify what type of node it is. Using a delimiter with Split, makes this very easy. Therefore, on Node events, when a user clicks a node, a simple split function can tell your code exactly what node you should expect. Build each node as necessary. Use HitTest. (great function!) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Thursday, September 16, 2010 11:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Tree View/Images/Command Bar I would like a copy. I too have been frustrated trying to use a treeview. I have successfully created one with three levels and it works, but any ideas on how to make it easier to use would be great. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Thursday, September 16, 2010 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Tree View/Images/Command Bar Hey John Would you like to test drive it first and if deemed worthy, sure it could be posted. I was kind of hoping on getting other's input and added to the primer, so that no one has to go through the frustration, it is gross. jwcolby wrote: >Very cool! I have always wanted to use these things but didn't want to undergo the frustration. > >Why don't you get it posted to our web site. > >John W. Colby >www.ColbyConsulting.com > >On 9/16/2010 9:18 AM, Tony Septav wrote: > > >>Hey All >>About a week ago I developed a treeview form for a client who had >>1,000s of lab results. About 6 years ago I had developed a fairly >>complex treeview form (10 levels) for a client, but I guess it is old >>age because I couldn't remember how I did most of the activities >>performed on the form. So basically I had relearn everything all over >>again. This became a study in frustration, "Just show me how to do >>it.", don't show me a page of cyptic code when I don't understand what >>I am doing in the first place. >> >>Anyway I decided to create a primer or cheat sheet mdb that I could >>use as a reference, to be updated as time goes by. It incorporates a >>treeview with 4 levels (from simple data tables) , treeview images >>(not a big fan of images but sometime I may need them, the images are >>poor quality because I just cut and pasted them) and a commandbar for >>the treeview. There is no fancy code (I wanted to keep it bare >>bones), some of the code is repetative, and because it is not an >>application there is no error trapping, integrity checks, etc. >> >>I am not an expert by any means with treeviews and commandbars, but it >>is a working model. >>If anyone is interested in working with treeviews and wants to avoid >>some of the frustration I went through, I can send you a copy of the >>primer offline. Maybe you can show me a few tips and tricks. >> >>Part 2 (when I get some more time) of my primer will incorporate >>linked subforms and list boxes. >> >>MDB - Access 2000 >>Hopefully everything will work on your machine, as I did read that >>sometimes problems can occur with the controls. >> >> >> >> >> >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From steve at datamanagementsolutions.biz Thu Sep 16 16:18:29 2010 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Fri, 17 Sep 2010 09:18:29 +1200 Subject: [AccessD] Range of Values in Access Switch Function In-Reply-To: References: , <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005>, <49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET><4C91A47B.28210.300AC26@stuart.lexacorp.com.pg> Message-ID: <00521FE004B240A49B7F33DA9E7F317D@stevelaptop> Brad, How about this... [Product] >= "1" And [Product] <= "5" I am curious about why you would prefer Switch() in this instance, rather than IIf(). Regards Steve -----Original Message----- From: Brad Marks Sent: Friday, September 17, 2010 8:34 AM To: Access Developers discussion and problem solving Subject: [AccessD] Range of Values in Access Switch Function Is it possible to specify a range of values in a Switch Function that is used in an Access query? I have a Switch Function like this sample - DerivedGroup: Switch([Product] In ("1","2","3","4","5"),"Product Group One",True,"Default Product Group")) I would like to specify a range rather than spelling out each possible value Something like =("1" through "5") Thanks for your help, Brad From BradM at blackforestltd.com Thu Sep 16 16:22:37 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 16 Sep 2010 16:22:37 -0500 Subject: [AccessD] Range of Values in Access Switch Function References: <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET><4C91A47B.28210.300AC26@stuart.lexacorp.com.pg> Message-ID: David, I had not thought of this approach. Thanks for the help. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, September 16, 2010 3:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Range of Values in Access Switch Function This isn't an answer to your question, but could you have a table with the values? tblTranslation Num PKID (1,2,3,...) NumWord text/char ("One", "Two", "Three"..._ Just join the table in when needed. On Thu, Sep 16, 2010 at 1:34 PM, Brad Marks wrote: > Is it possible to specify a range of values in a Switch Function that is > used in an Access query? > > > I have a Switch Function like this sample - > > > DerivedGroup: Switch([Product] In ("1","2","3","4","5"),"Product Group > One",True,"Default Product Group")) > > > I would like to specify a range rather than spelling out each possible > value > > > Something like ? =("1" through "5") > > > Thanks for your help, > Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From BradM at blackforestltd.com Thu Sep 16 16:28:29 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 16 Sep 2010 16:28:29 -0500 Subject: [AccessD] Range of Values in Access Switch Function References: , <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005>, <49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET><4C91A47B.28210.300AC26@stuart.lexacorp.com.pg> <00521FE004B240A49B7F33DA9E7F317D@stevelaptop> Message-ID: Steve, Thanks for the example. This works nicely in the query. The reason that I am experimenting with the Switch Function instead of the IIF approach is because of the complexity of the "real" query. The example that I posted is just a small part of a much bigger and more complicated SWITCH statement. Thanks again for the assistance. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 16, 2010 4:18 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Range of Values in Access Switch Function Brad, How about this... [Product] >= "1" And [Product] <= "5" I am curious about why you would prefer Switch() in this instance, rather than IIf(). Regards Steve -----Original Message----- From: Brad Marks Sent: Friday, September 17, 2010 8:34 AM To: Access Developers discussion and problem solving Subject: [AccessD] Range of Values in Access Switch Function Is it possible to specify a range of values in a Switch Function that is used in an Access query? I have a Switch Function like this sample - DerivedGroup: Switch([Product] In ("1","2","3","4","5"),"Product Group One",True,"Default Product Group")) I would like to specify a range rather than spelling out each possible value Something like =("1" through "5") Thanks for your help, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From steve at datamanagementsolutions.biz Thu Sep 16 16:58:14 2010 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Fri, 17 Sep 2010 09:58:14 +1200 Subject: [AccessD] Range of Values in Access Switch Function In-Reply-To: References: , <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005>, <49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET><4C91A47B.28210.300AC26@stuart.lexacorp.com.pg><00521FE004B240A49B7F33DA9E7F317D@stevelaptop> Message-ID: <93B3869531644A6692ECD7CDE1F0F994@stevelaptop> Hi Brad, Ok, I understand. If you are really using digits in a text field, the simple > and < idea I gave you will only work if the numbers in your real example don't go beyond "9". If they do go beyond "9", it is certainly possible to do what you want, but some further tweak will be required, either using the Val() function or Format() function within the Switch. Regards Steve -----Original Message----- From: Brad Marks Sent: Friday, September 17, 2010 9:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Range of Values in Access Switch Function Steve, Thanks for the example. This works nicely in the query. The reason that I am experimenting with the Switch Function instead of the IIF approach is because of the complexity of the "real" query. The example that I posted is just a small part of a much bigger and more complicated SWITCH statement. Thanks again for the assistance. Brad From stuart at lexacorp.com.pg Thu Sep 16 17:13:10 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Sep 2010 08:13:10 +1000 Subject: [AccessD] Library order matters In-Reply-To: <4C924408.7060009@colbyconsulting.com> References: <4C924408.7060009@colbyconsulting.com> Message-ID: <4C929676.4780.6B1E977@stuart.lexacorp.com.pg> A lot of us learnt that lesson when upgrading from 97 to 2000 (IIRC). Lots of errors cropping up because the order of references to ADO and DAO resulted in people creatinf ADO.Recordsets when the thought they were dealing with DAO.Recordsets. -- Stuart On 16 Sep 2010 at 12:21, jwcolby wrote: > I use libraries. My C2DbFW3G (framework, 3rd generation) has a > function called fltr(). > > C2DbFW3G references C2DbLWS (my old Light Weight Security framework). > C2DbLWS has a function fltr(). > > So... > > My front end references BOTH C2DbLWS and C2DbFW3G in that order. > > C2DbFW3G is setting filters for the application, but when the > application calls fltr() to get the resulting values, because it > references C2DbLWS first, it calls fltr in C2DbLWS and of course it > returns a null value. > > Reversing the order of the reference in my application now allows the > application to call fltr in C2DbFW3G and that fltr() has the right > value. > > > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Thu Sep 16 17:16:41 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Sep 2010 08:16:41 +1000 Subject: [AccessD] Library order matters In-Reply-To: <4C925915.5070900@colbyconsulting.com> References: <4C924408.7060009@colbyconsulting.com>, , <4C925915.5070900@colbyconsulting.com> Message-ID: <4C929749.13212.6B521D5@stuart.lexacorp.com.pg> Or without re-saving them? On 16 Sep 2010 at 13:51, jwcolby wrote: > > Probably a side effect of queries being "optimized" by JET when you > save them. > > Yep. > > Really I just wanted to put it out there that queries referencing > functions can cause issues that can't be fixed without a decompile. > > John W. Colby > www.ColbyConsulting.com > > On 9/16/2010 1:13 PM, Heenan, Lambert wrote: > > Probably a side effect of queries being "optimized" by JET when you > > save them. > > > > Lambert > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Thursday, September 16, 2010 12:42 PM To: Access Developers > > discussion and problem solving Subject: Re: [AccessD] Library order > > matters > > > > In fact it uses direct calls into both. > > > > Now comes the fun part... > > > > Remember decompile? Well... > > > > I have a query that references Fltr(). Once I change the order of > > the references, calling fltr in the debug window correctly calls the > > fltr function in C2DbFW3G. However the query still calls the fltr() > > in C2DbLWS. I had to decompile compile to cause the query to call > > fltr in C2DbFW3G. > > > > Once I changed the order AND decompiled / compiled, the problem I > > was having went away. > > > > This is a problem that could apparently not be fixed without a > > decompile. > > > > John W. Colby > > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Thu Sep 16 17:16:41 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Sep 2010 08:16:41 +1000 Subject: [AccessD] Library order matters In-Reply-To: <4C9248C5.2060507@colbyconsulting.com> References: <4C924408.7060009@colbyconsulting.com>, , <4C9248C5.2060507@colbyconsulting.com> Message-ID: <4C929749.24136.6B52177@stuart.lexacorp.com.pg> Couldn't it be fixed by making and reversing a change in the query and re-saving it? -- Stuart On 16 Sep 2010 at 12:41, jwcolby wrote: > In fact it uses direct calls into both. > > Now comes the fun part... > > Remember decompile? Well... > > I have a query that references Fltr(). Once I change the order of the > references, calling fltr in the debug window correctly calls the fltr > function in C2DbFW3G. However the query still calls the fltr() in > C2DbLWS. I had to decompile compile to cause the query to call fltr > in C2DbFW3G. > > Once I changed the order AND decompiled / compiled, the problem I was > having went away. > > This is a problem that could apparently not be fixed without a > decompile. > > John W. Colby > www.ColbyConsulting.com > > On 9/16/2010 12:33 PM, Heenan, Lambert wrote: > > If your front end app does not make any direct calls to C2DbLWS, but > > instead is using routines in C2DbFW3G then it should also work if > > your app just has a reference to C2DbFW3G and no reference to > > C2DbLWS at all. > > > > Lambert > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Thursday, September 16, 2010 12:21 PM To: Access Developers > > discussion and problem solving Subject: [AccessD] Library order > > matters > > > > I use libraries. My C2DbFW3G (framework, 3rd generation) has a > > function called fltr(). > > > > C2DbFW3G references C2DbLWS (my old Light Weight Security > > framework). C2DbLWS has a function fltr(). > > > > So... > > > > My front end references BOTH C2DbLWS and C2DbFW3G in that order. > > > > C2DbFW3G is setting filters for the application, but when the > > application calls fltr() to get the resulting values, because it > > references C2DbLWS first, it calls fltr in C2DbLWS and of course it > > returns a null value. > > > > Reversing the order of the reference in my application now allows > > the application to call fltr in C2DbFW3G and that fltr() has the > > right value. > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Sep 16 17:21:43 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 16 Sep 2010 18:21:43 -0400 Subject: [AccessD] Library order matters In-Reply-To: <4C929676.4780.6B1E977@stuart.lexacorp.com.pg> References: <4C924408.7060009@colbyconsulting.com> <4C929676.4780.6B1E977@stuart.lexacorp.com.pg> Message-ID: <4C929877.70000@colbyconsulting.com> uhh yep. In this case I was archiving an old be so that they could report out of it. I copied everything including the BE, FE and frameworks into an archive directory then had to go set up the references again. They got switched around while doing that. I didn't immediately open and try to use it so it just reared it's ugly head. John W. Colby www.ColbyConsulting.com On 9/16/2010 6:13 PM, Stuart McLachlan wrote: > A lot of us learnt that lesson when upgrading from 97 to 2000 (IIRC). > > Lots of errors cropping up because the order of references to ADO and DAO > resulted in people creatinf ADO.Recordsets when the thought they were dealing with > DAO.Recordsets. > From stuart at lexacorp.com.pg Thu Sep 16 17:25:53 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Sep 2010 08:25:53 +1000 Subject: [AccessD] Range of Values in Access Switch Function In-Reply-To: References: , Message-ID: <4C929971.21223.6BD8ECA@stuart.lexacorp.com.pg> If the "real" function is much more complicated, I'd roll my own along the lines of: Function DerivedGroup(Product as long) as String Sselect Case Product Case 1 - 5 DerivedGroup = "ProductGroupOne" Case 5,6,9 DerivedGroup = "ProductGroupTwo" Case 7 DerivedGroup = "ProductGroupThree" ... Case else DerivedGroup = "Default Product Group" End Select End Function -- Stuart On 16 Sep 2010 at 16:28, Brad Marks wrote: > Steve, > > Thanks for the example. This works nicely in the query. > > The reason that I am experimenting with the Switch Function instead of > the IIF approach is because of the complexity of the "real" query. > The example that I posted is just a small part of a much bigger and > more complicated SWITCH statement. > > Thanks again for the assistance. > Brad > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > Schapel Sent: Thursday, September 16, 2010 4:18 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] Range > of Values in Access Switch Function > > Brad, > > How about this... > [Product] >= "1" And [Product] <= "5" > > I am curious about why you would prefer Switch() in this instance, > rather than IIf(). > > Regards > Steve > > -----Original Message----- > From: Brad Marks > Sent: Friday, September 17, 2010 8:34 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Range of Values in Access Switch Function > > Is it possible to specify a range of values in a Switch Function that > is used in an Access query? > > > I have a Switch Function like this sample - > > > DerivedGroup: Switch([Product] In ("1","2","3","4","5"),"Product Group > One",True,"Default Product Group")) > > > I would like to specify a range rather than spelling out each possible > value > > > Something like =("1" through "5") > > > Thanks for your help, > Brad > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Sep 16 17:28:12 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 16 Sep 2010 18:28:12 -0400 Subject: [AccessD] Library order matters In-Reply-To: <4C929749.24136.6B52177@stuart.lexacorp.com.pg> References: <4C924408.7060009@colbyconsulting.com>, , <4C9248C5.2060507@colbyconsulting.com> <4C929749.24136.6B52177@stuart.lexacorp.com.pg> Message-ID: <4C9299FC.1000503@colbyconsulting.com> Probably. Now in an app with 100 forms, how many hidden places are there that need this done? Seems like a decompile / compile is more thorough. John W. Colby www.ColbyConsulting.com On 9/16/2010 6:16 PM, Stuart McLachlan wrote: > Couldn't it be fixed by making and reversing a change in the query and re-saving it? > From stuart at lexacorp.com.pg Thu Sep 16 17:39:47 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Sep 2010 08:39:47 +1000 Subject: [AccessD] Library order matters In-Reply-To: <4C9299FC.1000503@colbyconsulting.com> References: <4C924408.7060009@colbyconsulting.com>, <4C929749.24136.6B52177@stuart.lexacorp.com.pg>, <4C9299FC.1000503@colbyconsulting.com> Message-ID: <4C929CB3.3893.6CA49EE@stuart.lexacorp.com.pg> Very true. I'm not saying that decompile/reconpile is worthless. I was just pointing out "not be fixed without a decompile." was a bit of an over-statement which could be misleading to some people. -- Stuart On 16 Sep 2010 at 18:28, jwcolby wrote: > Probably. Now in an app with 100 forms, how many hidden places are > there that need this done? > > Seems like a decompile / compile is more thorough. > > > John W. Colby > www.ColbyConsulting.com > > On 9/16/2010 6:16 PM, Stuart McLachlan wrote: > > Couldn't it be fixed by making and reversing a change in the query > > and re-saving it? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ab-mi at post3.tele.dk Thu Sep 16 17:47:35 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Fri, 17 Sep 2010 00:47:35 +0200 Subject: [AccessD] Input and return data type in VB In-Reply-To: References: Message-ID: Hi list, Just noticed a VB issue I haven't encountered before. Say I want a function to receive two input parameters of type Byte and return a value of type Integer. I create a function like this: Function SumNumbers(Number1 As Byte, Number2 As Byte) As Integer SumNumbers=Number1 + Number2 End Function When testing the function I get this: ?SumNumbers(200,55) -> 255 (OK) ?SumNumbers(255,1) -> Run-time error 6 Overflow (??!!) The last error isn't expected since the return type is declared as Integer. I can prevent this behaviour by altering the function like this: Function SumNumbers(Number1 As Integer, Number2 As Byte) As Integer SumNumbers=Number1 + Number2 End Function In other words: I have to make room for the return type by declaring a sufficient large type for one or more of the input parameters. This certainly looks like a bug to me. And the "solution" of course doesn't apply if I actually want to restrict the input parameters to Byte and make room for a return value exceeding Byte. The same issue goes for other types, e.g. Integer as input type and Long as return type. Any solution? Asger From stuart at lexacorp.com.pg Thu Sep 16 18:13:33 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Sep 2010 09:13:33 +1000 Subject: [AccessD] Input and return data type in VB In-Reply-To: References: , , Message-ID: <4C92A49D.30631.6E9322B@stuart.lexacorp.com.pg> Explicit conversion of datatypes: Function SumNumbers(Number1 As Byte, Number2 As Byte) As Integer SumNumbers = CInt(Number1) + CInt(Number2) End Function -- Stuart On 17 Sep 2010 at 0:47, Asger Blond wrote: > Hi list, > Just noticed a VB issue I haven't encountered before. > Say I want a function to receive two input parameters of type Byte and > return a value of type Integer. I create a function like this: > > Function SumNumbers(Number1 As Byte, Number2 As Byte) As Integer > SumNumbers=Number1 + Number2 > End Function > > When testing the function I get this: > ?SumNumbers(200,55) -> 255 (OK) > ?SumNumbers(255,1) -> Run-time error 6 Overflow (??!!) > > The last error isn't expected since the return type is declared as > Integer. I can prevent this behaviour by altering the function like > this: Function SumNumbers(Number1 As Integer, Number2 As Byte) As > Integer > SumNumbers=Number1 + Number2 > End Function > > In other words: I have to make room for the return type by declaring a > sufficient large type for one or more of the input parameters. This > certainly looks like a bug to me. And the "solution" of course doesn't > apply if I actually want to restrict the input parameters to Byte and > make room for a return value exceeding Byte. The same issue goes for > other types, e.g. Integer as input type and Long as return type. Any > solution? Asger > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Thu Sep 16 19:13:32 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 16 Sep 2010 19:13:32 -0500 Subject: [AccessD] Range of Values in Access Switch Function References: , <4C929971.21223.6BD8ECA@stuart.lexacorp.com.pg> Message-ID: Stuart, WOW... you AccessD folks are great! I never thought about this approach. We may or may not use this method, but it is nice to have another approach in our bag of tricks for future situations. Thanks for your help, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan Sent: Thu 9/16/2010 5:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Range of Values in Access Switch Function If the "real" function is much more complicated, I'd roll my own along the lines of: Function DerivedGroup(Product as long) as String Sselect Case Product Case 1 - 5 DerivedGroup = "ProductGroupOne" Case 5,6,9 DerivedGroup = "ProductGroupTwo" Case 7 DerivedGroup = "ProductGroupThree" ... Case else DerivedGroup = "Default Product Group" End Select End Function -- Stuart On 16 Sep 2010 at 16:28, Brad Marks wrote: > Steve, > > Thanks for the example. This works nicely in the query. > > The reason that I am experimenting with the Switch Function instead of > the IIF approach is because of the complexity of the "real" query. > The example that I posted is just a small part of a much bigger and > more complicated SWITCH statement. > > Thanks again for the assistance. > Brad > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > Schapel Sent: Thursday, September 16, 2010 4:18 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] Range > of Values in Access Switch Function > > Brad, > > How about this... > [Product] >= "1" And [Product] <= "5" > > I am curious about why you would prefer Switch() in this instance, > rather than IIf(). > > Regards > Steve > > -----Original Message----- > From: Brad Marks > Sent: Friday, September 17, 2010 8:34 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Range of Values in Access Switch Function > > Is it possible to specify a range of values in a Switch Function that > is used in an Access query? > > > I have a Switch Function like this sample - > > > DerivedGroup: Switch([Product] In ("1","2","3","4","5"),"Product Group > One",True,"Default Product Group")) > > > I would like to specify a range rather than spelling out each possible > value > > > Something like =("1" through "5") > > > Thanks for your help, > Brad > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From charlotte.foust at gmail.com Thu Sep 16 21:54:14 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Thu, 16 Sep 2010 19:54:14 -0700 Subject: [AccessD] Input and return data type in VB In-Reply-To: References: Message-ID: .Net works the same way, and we always used Stuart's approach there as well. Even though you were trying to return an integer, the overflow occurred in dealing with bytes and you can't add bytes that come out to more than the limit of the byte data type. Not really a but, just the way it works. Charlotte Foust On Thu, Sep 16, 2010 at 3:47 PM, Asger Blond wrote: > Hi list, > Just noticed a VB issue I haven't encountered before. > Say I want a function to receive two input parameters of type Byte and return a value of type Integer. I create a function like this: > > Function SumNumbers(Number1 As Byte, Number2 As Byte) As Integer > ? SumNumbers=Number1 + Number2 > End Function > > When testing the function I get this: > ?SumNumbers(200,55) -> 255 (OK) > ?SumNumbers(255,1) -> Run-time error 6 Overflow (??!!) > > The last error isn't expected since the return type is declared as Integer. > I can prevent this behaviour by altering the function like this: > Function SumNumbers(Number1 As Integer, Number2 As Byte) As Integer > ? SumNumbers=Number1 + Number2 > End Function > > In other words: I have to make room for the return type by declaring a sufficient large type for one or more of the input parameters. > This certainly looks like a bug to me. And the "solution" of course doesn't apply if I actually want to restrict the input parameters to Byte and make room for a return value exceeding Byte. > The same issue goes for other types, e.g. Integer as input type and Long as return type. > Any solution? > Asger > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From charlotte.foust at gmail.com Thu Sep 16 21:57:06 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Thu, 16 Sep 2010 19:57:06 -0700 Subject: [AccessD] Range of Values in Access Switch Function In-Reply-To: References: <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET> <4C91A47B.28210.300AC26@stuart.lexacorp.com.pg> <00521FE004B240A49B7F33DA9E7F317D@stevelaptop> Message-ID: Don't use complicated switch statements in queries. The overhead is just too high, and the performance takes a major hit if you're dealing with a large number of records. You'd be better off creating a custom function to return the answer using a case statement and calling that function in the query. Charlotte Foust On Thu, Sep 16, 2010 at 2:28 PM, Brad Marks wrote: > Steve, > > Thanks for the example. ?This works nicely in the query. > > The reason that I am experimenting with the Switch Function instead of > the IIF approach is because of the complexity of the "real" query. ?The > example that I posted is just a small part of a much bigger and more > complicated SWITCH statement. > > Thanks again for the assistance. > Brad > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel > Sent: Thursday, September 16, 2010 4:18 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Range of Values in Access Switch Function > > Brad, > > How about this... > [Product] >= "1" And [Product] <= "5" > > I am curious about why you would prefer Switch() in this instance, > rather > than IIf(). > > Regards > Steve > > -----Original Message----- > From: Brad Marks > Sent: Friday, September 17, 2010 8:34 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Range of Values in Access Switch Function > > Is it possible to specify a range of values in a Switch Function that is > used in an Access query? > > > I have a Switch Function like this sample - > > > DerivedGroup: Switch([Product] In ("1","2","3","4","5"),"Product Group > One",True,"Default Product Group")) > > > I would like to specify a range rather than spelling out each possible > value > > > Something like ? =("1" through "5") > > > Thanks for your help, > Brad > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Fri Sep 17 05:57:54 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 17 Sep 2010 05:57:54 -0500 Subject: [AccessD] Range of Values in Access Switch Function References: <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><49A286ABF515E94A8505CD14DEB721700DCFD909@CPIEMAIL-EVS1.CPIQPC.NET><4C91A47B.28210.300AC26@stuart.lexacorp.com.pg><00521FE004B240A49B7F33DA9E7F317D@stevelaptop> Message-ID: Charlotte, Thanks for the advice, I really appreciate the help. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Thu 9/16/2010 9:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Range of Values in Access Switch Function Don't use complicated switch statements in queries. The overhead is just too high, and the performance takes a major hit if you're dealing with a large number of records. You'd be better off creating a custom function to return the answer using a case statement and calling that function in the query. Charlotte Foust On Thu, Sep 16, 2010 at 2:28 PM, Brad Marks wrote: > Steve, > > Thanks for the example. ?This works nicely in the query. > > The reason that I am experimenting with the Switch Function instead of > the IIF approach is because of the complexity of the "real" query. ?The > example that I posted is just a small part of a much bigger and more > complicated SWITCH statement. > > Thanks again for the assistance. > Brad > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel > Sent: Thursday, September 16, 2010 4:18 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Range of Values in Access Switch Function > > Brad, > > How about this... > [Product] >= "1" And [Product] <= "5" > > I am curious about why you would prefer Switch() in this instance, > rather > than IIf(). > > Regards > Steve > > -----Original Message----- > From: Brad Marks > Sent: Friday, September 17, 2010 8:34 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Range of Values in Access Switch Function > > Is it possible to specify a range of values in a Switch Function that is > used in an Access query? > > > I have a Switch Function like this sample - > > > DerivedGroup: Switch([Product] In ("1","2","3","4","5"),"Product Group > One",True,"Default Product Group")) > > > I would like to specify a range rather than spelling out each possible > value > > > Something like ? =("1" through "5") > > > Thanks for your help, > Brad > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From ab-mi at post3.tele.dk Fri Sep 17 09:02:07 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Fri, 17 Sep 2010 16:02:07 +0200 Subject: [AccessD] Input and return data type in VB In-Reply-To: <4C92A49D.30631.6E9322B@stuart.lexacorp.com.pg> References: , , <4C92A49D.30631.6E9322B@stuart.lexacorp.com.pg> Message-ID: <74DCE5E894A0494DA2E63C1C0D651685@abpc> Thanks Stuart - exactly what I was looking for! Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 17. september 2010 01:14 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Input and return data type in VB Explicit conversion of datatypes: Function SumNumbers(Number1 As Byte, Number2 As Byte) As Integer SumNumbers = CInt(Number1) + CInt(Number2) End Function -- Stuart On 17 Sep 2010 at 0:47, Asger Blond wrote: > Hi list, > Just noticed a VB issue I haven't encountered before. > Say I want a function to receive two input parameters of type Byte and > return a value of type Integer. I create a function like this: > > Function SumNumbers(Number1 As Byte, Number2 As Byte) As Integer > SumNumbers=Number1 + Number2 > End Function > > When testing the function I get this: > ?SumNumbers(200,55) -> 255 (OK) > ?SumNumbers(255,1) -> Run-time error 6 Overflow (??!!) > > The last error isn't expected since the return type is declared as > Integer. I can prevent this behaviour by altering the function like > this: Function SumNumbers(Number1 As Integer, Number2 As Byte) As > Integer > SumNumbers=Number1 + Number2 > End Function > > In other words: I have to make room for the return type by declaring a > sufficient large type for one or more of the input parameters. This > certainly looks like a bug to me. And the "solution" of course doesn't > apply if I actually want to restrict the input parameters to Byte and > make room for a return value exceeding Byte. The same issue goes for > other types, e.g. Integer as input type and Long as return type. Any > solution? Asger > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ab-mi at post3.tele.dk Fri Sep 17 09:08:23 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Fri, 17 Sep 2010 16:08:23 +0200 Subject: [AccessD] Input and return data type in VB In-Reply-To: References: Message-ID: <12332344EB5641B595A2C7425944D828@abpc> Well, converting the inputs is quite acceptable for me, so I'll stop blaming VB for a bug. Thanks Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Charlotte Foust Sendt: 17. september 2010 04:54 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Input and return data type in VB .Net works the same way, and we always used Stuart's approach there as well. Even though you were trying to return an integer, the overflow occurred in dealing with bytes and you can't add bytes that come out to more than the limit of the byte data type. Not really a but, just the way it works. Charlotte Foust On Thu, Sep 16, 2010 at 3:47 PM, Asger Blond wrote: > Hi list, > Just noticed a VB issue I haven't encountered before. > Say I want a function to receive two input parameters of type Byte and return a value of type Integer. I create a function like this: > > Function SumNumbers(Number1 As Byte, Number2 As Byte) As Integer > SumNumbers=Number1 + Number2 > End Function > > When testing the function I get this: > ?SumNumbers(200,55) -> 255 (OK) > ?SumNumbers(255,1) -> Run-time error 6 Overflow (??!!) > > The last error isn't expected since the return type is declared as Integer. > I can prevent this behaviour by altering the function like this: > Function SumNumbers(Number1 As Integer, Number2 As Byte) As Integer > SumNumbers=Number1 + Number2 > End Function > > In other words: I have to make room for the return type by declaring a sufficient large type for one or more of the input parameters. > This certainly looks like a bug to me. And the "solution" of course doesn't apply if I actually want to restrict the input parameters to Byte and make room for a return value exceeding Byte. > The same issue goes for other types, e.g. Integer as input type and Long as return type. > Any solution? > Asger > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rbgajewski at roadrunner.com Fri Sep 17 10:56:43 2010 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Fri, 17 Sep 2010 11:56:43 -0400 Subject: [AccessD] A2K3 Form - hide/show overlaid fields In-Reply-To: <12332344EB5641B595A2C7425944D828@abpc> References: <12332344EB5641B595A2C7425944D828@abpc> Message-ID: Hi Again Everyone I'm apparently having a series of brain lapses ... I have two pairs of fields on my form, with each pair overlaying the other ... Depending upon the value of another field, I want to display one pair and hide the other prevent the user from tabbing into the hidden fields. The code is at the end of this email. ---------------------------------------------------------------------------- --- Controlling Field: EmployeeCountryCodeID note: value of 38 = Canada, value of 230 = United States Field Pair #1: EmployeeStateCodeID and EmployeeZipCode Field Pair #2: EmployeeProvinceCodeID and EmployeePostalCode ---------------------------------------------------------------------------- --- I *seem* to be able to get the show/hide working, but I still have two problems: 1) When tabbing through the form, the cursor still goes to every field, including the hidden ones. >>>> How can I stop tabbing from accessing the hidden fields? 2) When going to a new record, the code crashes with "Run time error '2427': You entered an expression that has no value. >>>> How can I get the "IF" code to fire? In debug, the 'If IsNull' line is the one highlighted as having the problem. >>>> I also tried substituting "If acNewRec = True Then", but that failed on the test - the code advanced to the "Select Case EmployeeCountryCodeID" and failed there ... Is there a better (and simpler) way to simply test to see if it is a new record? Thanks!! Bob Gajewski PS - I have the same code in the EmployeeCountryCodeID_AfterUpdate() module. CODE BEHIND FORM Private Sub Form_Current() If IsNull([EmployeeCountryCodeID]) Or [EmployeeCountryCodeID] = 0 Or [EmployeeCountryCodeID] = "" Then EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False Else Select Case EmployeeCountryCodeID Case 38 ' Country = CA EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = True EmployeeProvinceCodeID.Enabled = True EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = True EmployeePostalCode.Enabled = True Case 230 ' Country = US EmployeeStateCodeID.Visible = True EmployeeStateCodeID.Enabled = True EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = True EmployeeZipCode.Enabled = True EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False Case Else EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False End Select End If End Sub From df.waters at comcast.net Fri Sep 17 11:12:54 2010 From: df.waters at comcast.net (Dan Waters) Date: Fri, 17 Sep 2010 11:12:54 -0500 Subject: [AccessD] A2K3 Form - hide/show overlaid fields In-Reply-To: References: <12332344EB5641B595A2C7425944D828@abpc> Message-ID: <36390DC26A7F495DAB23DB1999A6001C@danwaters> Hi Bob, I don't see anything wrong with your code. However, if you are setting the Visible property = False, then you can ignore the Enabled property. In your case, you can ignore the enabled property altogether. If you are able to tab into a field, then the visible property will always be True. You are using the form's Current event to trigger this code. Unfortunately, the Current event will run based on a number of things, some of which you can't control. I'd recommend initiating this code some other way. Put this code into its own procedure named FormatFormName, and call it in the Form's Load event. Also call it from any other appropriate event. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Friday, September 17, 2010 10:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2K3 Form - hide/show overlaid fields Hi Again Everyone I'm apparently having a series of brain lapses ... I have two pairs of fields on my form, with each pair overlaying the other ... Depending upon the value of another field, I want to display one pair and hide the other prevent the user from tabbing into the hidden fields. The code is at the end of this email. ---------------------------------------------------------------------------- --- Controlling Field: EmployeeCountryCodeID note: value of 38 = Canada, value of 230 = United States Field Pair #1: EmployeeStateCodeID and EmployeeZipCode Field Pair #2: EmployeeProvinceCodeID and EmployeePostalCode ---------------------------------------------------------------------------- --- I *seem* to be able to get the show/hide working, but I still have two problems: 1) When tabbing through the form, the cursor still goes to every field, including the hidden ones. >>>> How can I stop tabbing from accessing the hidden fields? 2) When going to a new record, the code crashes with "Run time error '2427': You entered an expression that has no value. >>>> How can I get the "IF" code to fire? In debug, the 'If IsNull' line is the one highlighted as having the problem. >>>> I also tried substituting "If acNewRec = True Then", but that failed on the test - the code advanced to the "Select Case EmployeeCountryCodeID" and failed there ... Is there a better (and simpler) way to simply test to see if it is a new record? Thanks!! Bob Gajewski PS - I have the same code in the EmployeeCountryCodeID_AfterUpdate() module. CODE BEHIND FORM Private Sub Form_Current() If IsNull([EmployeeCountryCodeID]) Or [EmployeeCountryCodeID] = 0 Or [EmployeeCountryCodeID] = "" Then EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False Else Select Case EmployeeCountryCodeID Case 38 ' Country = CA EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = True EmployeeProvinceCodeID.Enabled = True EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = True EmployeePostalCode.Enabled = True Case 230 ' Country = US EmployeeStateCodeID.Visible = True EmployeeStateCodeID.Enabled = True EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = True EmployeeZipCode.Enabled = True EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False Case Else EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False End Select End If End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rbgajewski at roadrunner.com Fri Sep 17 11:22:06 2010 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Fri, 17 Sep 2010 12:22:06 -0400 Subject: [AccessD] FW: A2K3 Form - hide/show overlaid fields Message-ID: <2B5B6D6ACC9649BAB003B771CBD29AD2@DCYN3T81> Doesn't it figure that it takes me forever to try and work this out, then type the whole email and bug you folks ... And then 10 seconds later I find the solution! I replaced: If IsNull([EmployeeCountryCodeID]) Or [EmployeeCountryCodeID] = 0 Or [EmployeeCountryCodeID] = "" Then With: If Form.NewRecord = True Then And it works. But hey - thanks anyways!! Best regards, Bob Gajewski -----Original Message----- From: Bob Gajewski [mailto:rbgajewski at roadrunner.com] Sent: Friday, September 17, 2010 11:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2K3 Form - hide/show overlaid fields Hi Again Everyone I'm apparently having a series of brain lapses ... I have two pairs of fields on my form, with each pair overlaying the other ... Depending upon the value of another field, I want to display one pair and hide the other prevent the user from tabbing into the hidden fields. The code is at the end of this email. ---------------------------------------------------------------------------- --- Controlling Field: EmployeeCountryCodeID note: value of 38 = Canada, value of 230 = United States Field Pair #1: EmployeeStateCodeID and EmployeeZipCode Field Pair #2: EmployeeProvinceCodeID and EmployeePostalCode ---------------------------------------------------------------------------- --- I *seem* to be able to get the show/hide working, but I still have two problems: 1) When tabbing through the form, the cursor still goes to every field, including the hidden ones. >>>> How can I stop tabbing from accessing the hidden fields? 2) When going to a new record, the code crashes with "Run time error '2427': You entered an expression that has no value. >>>> How can I get the "IF" code to fire? In debug, the 'If IsNull' line is the one highlighted as having the problem. >>>> I also tried substituting "If acNewRec = True Then", but that failed on the test - the code advanced to the "Select Case EmployeeCountryCodeID" and failed there ... Is there a better (and simpler) way to simply test to see if it is a new record? Thanks!! Bob Gajewski PS - I have the same code in the EmployeeCountryCodeID_AfterUpdate() module. CODE BEHIND FORM Private Sub Form_Current() If IsNull([EmployeeCountryCodeID]) Or [EmployeeCountryCodeID] = 0 Or [EmployeeCountryCodeID] = "" Then EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False Else Select Case EmployeeCountryCodeID Case 38 ' Country = CA EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = True EmployeeProvinceCodeID.Enabled = True EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = True EmployeePostalCode.Enabled = True Case 230 ' Country = US EmployeeStateCodeID.Visible = True EmployeeStateCodeID.Enabled = True EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = True EmployeeZipCode.Enabled = True EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False Case Else EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False End Select End If End Sub From delam at zyterra.com Fri Sep 17 12:53:04 2010 From: delam at zyterra.com (Debbie) Date: Fri, 17 Sep 2010 12:53:04 -0500 Subject: [AccessD] Exporting report to excel Message-ID: <87740757-8834-4D7B-912A-DA37094EDEC8@zyterra.com> I am exporting a report to excel from access 2007. This report has the detail section not visible and is only showing data in a group footer. I have discovered that the data will not show up at all unless I have some aggregate function in those text boxes (last and sum have worked well). My only issue is that a date field is always exporting as 1/0/1900. I have tried lots of different aggregation functions as well as appending a string to the end and using cstr() to see if that will work. All of my efforts so far yield blanks or 1/0/1900. Any other ideas? Debbie Sent from my iPhone From jwcolby at colbyconsulting.com Fri Sep 17 13:11:40 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 17 Sep 2010 14:11:40 -0400 Subject: [AccessD] A2K3 Form - hide/show overlaid fields In-Reply-To: <36390DC26A7F495DAB23DB1999A6001C@danwaters> References: <12332344EB5641B595A2C7425944D828@abpc> <36390DC26A7F495DAB23DB1999A6001C@danwaters> Message-ID: <4C93AF5C.7070007@colbyconsulting.com> Everything Dan said, but additionally my understanding is that controls on top of other controls causes speed issues. I would suggest rethinking how to do this whole thing. John W. Colby www.ColbyConsulting.com On 9/17/2010 12:12 PM, Dan Waters wrote: > Hi Bob, > > I don't see anything wrong with your code. However, if you are setting the > Visible property = False, then you can ignore the Enabled property. In your > case, you can ignore the enabled property altogether. > > If you are able to tab into a field, then the visible property will always > be True. > > You are using the form's Current event to trigger this code. Unfortunately, > the Current event will run based on a number of things, some of which you > can't control. I'd recommend initiating this code some other way. > > Put this code into its own procedure named FormatFormName, and call it in > the Form's Load event. Also call it from any other appropriate event. > > HTH, > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski > Sent: Friday, September 17, 2010 10:57 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] A2K3 Form - hide/show overlaid fields > > Hi Again Everyone > > I'm apparently having a series of brain lapses ... I have two pairs of > fields on my form, with each pair overlaying the other ... Depending upon > the value of another field, I want to display one pair and hide the other > prevent the user from tabbing into the hidden fields. The code is at > the end of this email. > > ---------------------------------------------------------------------------- > --- > Controlling Field: EmployeeCountryCodeID > note: value of 38 = Canada, value of 230 = United States > > Field Pair #1: EmployeeStateCodeID and EmployeeZipCode > > Field Pair #2: EmployeeProvinceCodeID and EmployeePostalCode > ---------------------------------------------------------------------------- > --- > > I *seem* to be able to get the show/hide working, but I still have two > problems: > > 1) When tabbing through the form, the cursor still goes to every field, > including the hidden ones. > >>>>> How can I stop tabbing from accessing the hidden fields? > > 2) When going to a new record, the code crashes with "Run time error '2427': > You entered an expression that has no value. > >>>>> How can I get the "IF" code to fire? In debug, the 'If IsNull' line is > the one highlighted as having the problem. > >>>>> I also tried substituting "If acNewRec = True Then", but that failed on > the test - the code advanced to the "Select Case EmployeeCountryCodeID" and > failed there ... Is there a better (and simpler) way to simply test to see > if it is a new record? > > Thanks!! > Bob Gajewski > > > PS - I have the same code in the EmployeeCountryCodeID_AfterUpdate() module. > > CODE BEHIND FORM > > Private Sub Form_Current() > If IsNull([EmployeeCountryCodeID]) Or [EmployeeCountryCodeID] = 0 Or > [EmployeeCountryCodeID] = "" Then > EmployeeStateCodeID.Visible = False > EmployeeStateCodeID.Enabled = False > EmployeeProvinceCodeID.Visible = False > EmployeeProvinceCodeID.Enabled = False > EmployeeZipCode.Visible = False > EmployeeZipCode.Enabled = False > EmployeePostalCode.Visible = False > EmployeePostalCode.Enabled = False > Else > Select Case EmployeeCountryCodeID > Case 38 ' Country = CA > EmployeeStateCodeID.Visible = False > EmployeeStateCodeID.Enabled = False > EmployeeProvinceCodeID.Visible = True > EmployeeProvinceCodeID.Enabled = True > EmployeeZipCode.Visible = False > EmployeeZipCode.Enabled = False > EmployeePostalCode.Visible = True > EmployeePostalCode.Enabled = True > Case 230 ' Country = US > EmployeeStateCodeID.Visible = True > EmployeeStateCodeID.Enabled = True > EmployeeProvinceCodeID.Visible = False > EmployeeProvinceCodeID.Enabled = False > EmployeeZipCode.Visible = True > EmployeeZipCode.Enabled = True > EmployeePostalCode.Visible = False > EmployeePostalCode.Enabled = False > Case Else > EmployeeStateCodeID.Visible = False > EmployeeStateCodeID.Enabled = False > EmployeeProvinceCodeID.Visible = False > EmployeeProvinceCodeID.Enabled = False > EmployeeZipCode.Visible = False > EmployeeZipCode.Enabled = False > EmployeePostalCode.Visible = False > EmployeePostalCode.Enabled = False > End Select > End If > End Sub > From jwcolby at colbyconsulting.com Fri Sep 17 13:17:30 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 17 Sep 2010 14:17:30 -0400 Subject: [AccessD] updating records in SQL Server with a clustered index Message-ID: <4C93B0BA.3020706@colbyconsulting.com> I am performing a "big picture" operation where records in an "address" table are copied to an "old address" table when an address changes. The table has a clustered index on it, using the PK as the key for the index. I had intended to do a copy, delete and append. IOW delete the old address records to "get them out of the way" and then append the new records back in in the "holes created". Obviously this is the brute force way, and simply updating every field except the PK makes more sense. this makes more sense due to how the clustered index works and all the work that has to be done to delete a record "in the middle" of a table with a clustered index. So the delete / add operation becomes an update operation. The update syntax gets ugly only because the field names are identical and the table comes from a temp database, joined to the data in the current database. Uggg. I don't want to used a stored view because this has to happen in a dynamic process on any selected database. Any thoughts on how to go about this? -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Fri Sep 17 13:28:31 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 17 Sep 2010 14:28:31 -0400 Subject: [AccessD] I found this Message-ID: <4C93B34F.6020705@colbyconsulting.com> UPDATE TABLEA SET FIELD1 = (SELECT TABLEB.FIELD1 FROM TABLEB WHERE TABLEB.ID = TABLEA.ID), FIELD2= (SELECT TABLEB.FIELD2 FROM TABLEB WHERE TABLEB.ID = TABLEA.ID) It seems darned ugly but I can see the logic. However I have about 16 fields to update for (in some cases) a subset of 2 million records in a 65 million record table. It seems like this is going to be very inefficient. -- John W. Colby www.ColbyConsulting.com From davidmcafee at gmail.com Fri Sep 17 13:46:22 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 17 Sep 2010 11:46:22 -0700 Subject: [AccessD] A2K3 Form - hide/show overlaid fields In-Reply-To: <4C93AF5C.7070007@colbyconsulting.com> References: <12332344EB5641B595A2C7425944D828@abpc> <36390DC26A7F495DAB23DB1999A6001C@danwaters> <4C93AF5C.7070007@colbyconsulting.com> Message-ID: I've never noticed any speed issues when I use overlapping controls, but I use them on unbound forms. :) On Fri, Sep 17, 2010 at 11:11 AM, jwcolby wrote: > Everything Dan said, but additionally my understanding is that controls on top of other controls > causes speed issues. ?I would suggest rethinking how to do this whole thing. > > John W. Colby > www.ColbyConsulting.com > > On 9/17/2010 12:12 PM, Dan Waters wrote: >> Hi Bob, >> >> I don't see anything wrong with your code. ?However, if you are setting the >> Visible property = False, then you can ignore the Enabled property. ?In your >> case, you can ignore the enabled property altogether. >> >> If you are able to tab into a field, then the visible property will always >> be True. >> >> You are using the form's Current event to trigger this code. ?Unfortunately, >> the Current event will run based on a number of things, some of which you >> can't control. ?I'd recommend initiating this code some other way. >> >> Put this code into its own procedure named FormatFormName, and call it in >> the Form's Load event. ?Also call it from any other appropriate event. >> >> HTH, >> Dan >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski >> Sent: Friday, September 17, 2010 10:57 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] A2K3 Form - hide/show overlaid fields >> >> Hi Again Everyone >> >> I'm apparently having a series of brain lapses ... I have two pairs of >> fields on my form, with each pair overlaying the other ... Depending upon >> the value of another field, I want to display one pair and hide the other >> ?prevent the user from tabbing into the hidden fields. The code is at >> the end of this email. >> >> ---------------------------------------------------------------------------- >> --- >> Controlling Field: EmployeeCountryCodeID >> ? ? ? note: value of 38 = Canada, value of 230 = United States >> >> Field Pair #1: EmployeeStateCodeID and EmployeeZipCode >> >> Field Pair #2: EmployeeProvinceCodeID and EmployeePostalCode >> ---------------------------------------------------------------------------- >> --- >> >> I *seem* to be able to get the show/hide working, but I still have two >> problems: >> >> 1) When tabbing through the form, the cursor still goes to every field, >> including the hidden ones. >> >>>>>> How can I stop tabbing from accessing the hidden fields? >> >> 2) When going to a new record, the code crashes with "Run time error '2427': >> You entered an expression that has no value. >> >>>>>> How can I get the "IF" code to fire? In debug, the 'If IsNull' line is >> the one highlighted as having the problem. >> >>>>>> I also tried substituting "If acNewRec = True Then", but that failed on >> the test - the code advanced to the "Select Case EmployeeCountryCodeID" and >> failed there ... Is there a better (and simpler) way to simply test to see >> if it is a new record? >> >> Thanks!! >> Bob Gajewski >> >> >> PS - I have the same code in the EmployeeCountryCodeID_AfterUpdate() module. >> >> CODE BEHIND FORM >> >> Private Sub Form_Current() >> If IsNull([EmployeeCountryCodeID]) Or [EmployeeCountryCodeID] = 0 Or >> [EmployeeCountryCodeID] = "" Then >> ? ? ?EmployeeStateCodeID.Visible = False >> ? ? ?EmployeeStateCodeID.Enabled = False >> ? ? ?EmployeeProvinceCodeID.Visible = False >> ? ? ?EmployeeProvinceCodeID.Enabled = False >> ? ? ?EmployeeZipCode.Visible = False >> ? ? ?EmployeeZipCode.Enabled = False >> ? ? ?EmployeePostalCode.Visible = False >> ? ? ?EmployeePostalCode.Enabled = False >> Else >> ? ? ?Select Case EmployeeCountryCodeID >> ? ? ? ? ?Case 38 ? ' Country = CA >> ? ? ? ? ? ? ?EmployeeStateCodeID.Visible = False >> ? ? ? ? ? ? ?EmployeeStateCodeID.Enabled = False >> ? ? ? ? ? ? ?EmployeeProvinceCodeID.Visible = True >> ? ? ? ? ? ? ?EmployeeProvinceCodeID.Enabled = True >> ? ? ? ? ? ? ?EmployeeZipCode.Visible = False >> ? ? ? ? ? ? ?EmployeeZipCode.Enabled = False >> ? ? ? ? ? ? ?EmployeePostalCode.Visible = True >> ? ? ? ? ? ? ?EmployeePostalCode.Enabled = True >> ? ? ? ? ?Case 230 ?' Country = US >> ? ? ? ? ? ? ?EmployeeStateCodeID.Visible = True >> ? ? ? ? ? ? ?EmployeeStateCodeID.Enabled = True >> ? ? ? ? ? ? ?EmployeeProvinceCodeID.Visible = False >> ? ? ? ? ? ? ?EmployeeProvinceCodeID.Enabled = False >> ? ? ? ? ? ? ?EmployeeZipCode.Visible = True >> ? ? ? ? ? ? ?EmployeeZipCode.Enabled = True >> ? ? ? ? ? ? ?EmployeePostalCode.Visible = False >> ? ? ? ? ? ? ?EmployeePostalCode.Enabled = False >> ? ? ? ? ?Case Else >> ? ? ? ? ? ? ?EmployeeStateCodeID.Visible = False >> ? ? ? ? ? ? ?EmployeeStateCodeID.Enabled = False >> ? ? ? ? ? ? ?EmployeeProvinceCodeID.Visible = False >> ? ? ? ? ? ? ?EmployeeProvinceCodeID.Enabled = False >> ? ? ? ? ? ? ?EmployeeZipCode.Visible = False >> ? ? ? ? ? ? ?EmployeeZipCode.Enabled = False >> ? ? ? ? ? ? ?EmployeePostalCode.Visible = False >> ? ? ? ? ? ? ?EmployeePostalCode.Enabled = False >> ? ? ?End Select >> End If >> End Sub >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davidmcafee at gmail.com Fri Sep 17 13:51:22 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 17 Sep 2010 11:51:22 -0700 Subject: [AccessD] I found this In-Reply-To: <4C93B34F.6020705@colbyconsulting.com> References: <4C93B34F.6020705@colbyconsulting.com> Message-ID: Have you tried it this way? UPDATE TABLEA SET A.FIELD1 = B.FIELD1, A.FIELD2 = B.FIELD2, A.FIELD3 = B.FIELD3, A.FIELD4 = B.FIELD4, A.FIELD5 = B.FIELD5, A.FIELD6 = B.FIELD6, A.FIELD7 = B.FIELD7, A.FIELD8 = B.FIELD8, A.FIELD9 = B.FIELD9, A.FIELD10 = B.FIELD10, A.FIELD11 = B.FIELD11, A.FIELD12 = B.FIELD12, A.FIELD13 = B.FIELD13, A.FIELD14 = B.FIELD14, A.FIELD15 = B.FIELD15, A.FIELD16 = B.FIELD16, FROM TABLEA AS A INNER JOIN TABLEB AS B ON A.ID = B.ID On Fri, Sep 17, 2010 at 11:28 AM, jwcolby wrote: > UPDATE TABLEA SET > FIELD1 = (SELECT TABLEB.FIELD1 FROM TABLEB WHERE TABLEB.ID = TABLEA.ID), > FIELD2= (SELECT TABLEB.FIELD2 FROM TABLEB WHERE TABLEB.ID = TABLEA.ID) > > It seems darned ugly but I can see the logic. ?However I have about 16 fields to update for (in some > cases) a subset of 2 million records in a 65 million record table. > > It seems like this is going to be very inefficient. > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From steve at goodhall.info Fri Sep 17 13:59:58 2010 From: steve at goodhall.info (Steve Goodhall) Date: Fri, 17 Sep 2010 13:59:58 -0500 Subject: [AccessD] updating records in SQL Server with a clustered index Message-ID: <50352.1284749998@goodhall.info> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Have you considered using a stored procedure? Regards, Steve Goodhall, MSCS, PMP 248-505-5204 On Fri 17/09/10 2:17 PM , jwcolby jwcolby at colbyconsulting.com sent: I am performing a "big picture" operation where records in an "address" table are copied to an "old address" table when an address changes. The table has a clustered index on it, using the PK as the key for the index. I had intended to do a copy, delete and append. IOW delete the old address records to "get them out of the way" and then append the new records back in in the "holes created". Obviously this is the brute force way, and simply updating every field except the PK makes more sense. this makes more sense due to how the clustered index works and all the work that has to be done to delete a record "in the middle" of a table with a clustered index. So the delete / add operation becomes an update operation. The update syntax gets ugly only because the field names are identical and the table comes from a temp database, joined to the data in the current database. Uggg. I don't want to used a stored view because this has to happen in a dynamic process on any selected database. Any thoughts on how to go about this? -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com [2] http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Links: ------ [1] http://www.ColbyConsulting.com [2] mailto:AccessD at databaseadvisors.com From BradM at blackforestltd.com Fri Sep 17 14:01:57 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 17 Sep 2010 14:01:57 -0500 Subject: [AccessD] Exporting report to excel References: <87740757-8834-4D7B-912A-DA37094EDEC8@zyterra.com> Message-ID: Debbie, Which Access command or technique are you using to export the report to Excel? Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Sent: Friday, September 17, 2010 12:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Exporting report to excel I am exporting a report to excel from access 2007. This report has the detail section not visible and is only showing data in a group footer. I have discovered that the data will not show up at all unless I have some aggregate function in those text boxes (last and sum have worked well). My only issue is that a date field is always exporting as 1/0/1900. I have tried lots of different aggregation functions as well as appending a string to the end and using cstr() to see if that will work. All of my efforts so far yield blanks or 1/0/1900. Any other ideas? Debbie Sent from my iPhone -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From jwcolby at colbyconsulting.com Fri Sep 17 14:13:49 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 17 Sep 2010 15:13:49 -0400 Subject: [AccessD] I found this In-Reply-To: References: <4C93B34F.6020705@colbyconsulting.com> Message-ID: <4C93BDED.5040900@colbyconsulting.com> David, UPDATE PSM11229.dbo.AZData SET A.FName = B.FName FROM PSM11229.dbo.AZData as A INNER JOIN PSM11229_Temp.dbo.AZData AS B ON A.PK = B.PK Compiles but fails to run with an error The multi-part identifier "A.FName" could not be bound. John W. Colby www.ColbyConsulting.com On 9/17/2010 2:51 PM, David McAfee wrote: > Have you tried it this way? > > UPDATE TABLEA > SET > A.FIELD1 = B.FIELD1, > A.FIELD2 = B.FIELD2, > A.FIELD3 = B.FIELD3, > A.FIELD4 = B.FIELD4, > A.FIELD5 = B.FIELD5, > A.FIELD6 = B.FIELD6, > A.FIELD7 = B.FIELD7, > A.FIELD8 = B.FIELD8, > A.FIELD9 = B.FIELD9, > A.FIELD10 = B.FIELD10, > A.FIELD11 = B.FIELD11, > A.FIELD12 = B.FIELD12, > A.FIELD13 = B.FIELD13, > A.FIELD14 = B.FIELD14, > A.FIELD15 = B.FIELD15, > A.FIELD16 = B.FIELD16, > FROM TABLEA AS A > INNER JOIN TABLEB AS B > ON A.ID = B.ID > > > On Fri, Sep 17, 2010 at 11:28 AM, jwcolby wrote: >> UPDATE TABLEA SET >> FIELD1 = (SELECT TABLEB.FIELD1 FROM TABLEB WHERE TABLEB.ID = TABLEA.ID), >> FIELD2= (SELECT TABLEB.FIELD2 FROM TABLEB WHERE TABLEB.ID = TABLEA.ID) >> >> It seems darned ugly but I can see the logic. However I have about 16 fields to update for (in some >> cases) a subset of 2 million records in a 65 million record table. >> >> It seems like this is going to be very inefficient. >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From jwcolby at colbyconsulting.com Fri Sep 17 14:14:58 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 17 Sep 2010 15:14:58 -0400 Subject: [AccessD] updating records in SQL Server with a clustered index In-Reply-To: <50352.1284749998@goodhall.info> References: <50352.1284749998@goodhall.info> Message-ID: <4C93BE32.6000604@colbyconsulting.com> All of the work I do uses dynamic SQL and I am moving away from stored procedures. John W. Colby www.ColbyConsulting.com On 9/17/2010 2:59 PM, Steve Goodhall wrote: > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; > }Have you considered using a stored procedure? > Regards, > Steve Goodhall, MSCS, PMP > 248-505-5204 > On Fri 17/09/10 2:17 PM , jwcolby jwcolby at colbyconsulting.com sent: > I am performing a "big picture" operation where records in an > "address" table are copied to an "old > address" table when an address changes. The table has a clustered > index on it, using the PK as the > key for the index. > I had intended to do a copy, delete and append. IOW delete the old > address records to "get them out > of the way" and then append the new records back in in the "holes > created". > Obviously this is the brute force way, and simply updating every > field except the PK makes more > sense. this makes more sense due to how the clustered index works > and all the work that has to be > done to delete a record "in the middle" of a table with a clustered > index. > So the delete / add operation becomes an update operation. > The update syntax gets ugly only because the field names are > identical and the table comes from a > temp database, joined to the data in the current database. > Uggg. > I don't want to used a stored view because this has to happen in a > dynamic process on any selected > database. > Any thoughts on how to go about this? > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com [2] > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > Links: > ------ > [1] http://www.ColbyConsulting.com > [2] mailto:AccessD at databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 17 14:27:13 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 17 Sep 2010 15:27:13 -0400 Subject: [AccessD] I found this In-Reply-To: <4C93BDED.5040900@colbyconsulting.com> References: <4C93B34F.6020705@colbyconsulting.com> <4C93BDED.5040900@colbyconsulting.com> Message-ID: <4C93C111.1080309@colbyconsulting.com> OK, it had to be UPDATE A SET A.FName = B.Fname FROM PSM11229.dbo.AZData as A INNER JOIN PSM11229_Temp.dbo.AZData AS B ON A.PK = B.PK John W. Colby www.ColbyConsulting.com On 9/17/2010 3:13 PM, jwcolby wrote: > David, > > UPDATE PSM11229.dbo.AZData > SET A.FName = B.FName > FROM PSM11229.dbo.AZData as A > INNER JOIN PSM11229_Temp.dbo.AZData AS B > ON A.PK = B.PK > > Compiles but fails to run with an error > > The multi-part identifier "A.FName" could not be bound. > > > John W. Colby > www.ColbyConsulting.com > > On 9/17/2010 2:51 PM, David McAfee wrote: >> Have you tried it this way? >> >> UPDATE TABLEA >> SET >> A.FIELD1 = B.FIELD1, >> A.FIELD2 = B.FIELD2, >> A.FIELD3 = B.FIELD3, >> A.FIELD4 = B.FIELD4, >> A.FIELD5 = B.FIELD5, >> A.FIELD6 = B.FIELD6, >> A.FIELD7 = B.FIELD7, >> A.FIELD8 = B.FIELD8, >> A.FIELD9 = B.FIELD9, >> A.FIELD10 = B.FIELD10, >> A.FIELD11 = B.FIELD11, >> A.FIELD12 = B.FIELD12, >> A.FIELD13 = B.FIELD13, >> A.FIELD14 = B.FIELD14, >> A.FIELD15 = B.FIELD15, >> A.FIELD16 = B.FIELD16, >> FROM TABLEA AS A >> INNER JOIN TABLEB AS B >> ON A.ID = B.ID >> >> >> On Fri, Sep 17, 2010 at 11:28 AM, jwcolby wrote: >>> UPDATE TABLEA SET >>> FIELD1 = (SELECT TABLEB.FIELD1 FROM TABLEB WHERE TABLEB.ID = TABLEA.ID), >>> FIELD2= (SELECT TABLEB.FIELD2 FROM TABLEB WHERE TABLEB.ID = TABLEA.ID) >>> >>> It seems darned ugly but I can see the logic. However I have about 16 fields to update for (in some >>> cases) a subset of 2 million records in a 65 million record table. >>> >>> It seems like this is going to be very inefficient. >>> >>> -- >>> John W. Colby >>> www.ColbyConsulting.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> From davidmcafee at gmail.com Fri Sep 17 14:32:11 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 17 Sep 2010 12:32:11 -0700 Subject: [AccessD] I found this In-Reply-To: <4C93C111.1080309@colbyconsulting.com> References: <4C93B34F.6020705@colbyconsulting.com> <4C93BDED.5040900@colbyconsulting.com> <4C93C111.1080309@colbyconsulting.com> Message-ID: oops, sorry about that. I didn't test it, just typed it into gmail, so I didn't catch that. On Fri, Sep 17, 2010 at 12:27 PM, jwcolby wrote: > OK, it had to be UPDATE A > SET A.FName = B.Fname > FROM PSM11229.dbo.AZData as A > ? ? ? ?INNER JOIN PSM11229_Temp.dbo.AZData AS B > ? ? ? ?ON A.PK = B.PK > > > John W. Colby > www.ColbyConsulting.com > > On 9/17/2010 3:13 PM, jwcolby wrote: >> David, >> >> UPDATE PSM11229.dbo.AZData >> SET A.FName = B.FName >> FROM PSM11229.dbo.AZData as A >> ? ? ? INNER JOIN PSM11229_Temp.dbo.AZData AS B >> ? ? ? ON A.PK = B.PK >> >> Compiles but fails to run with an error >> >> The multi-part identifier "A.FName" could not be bound. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 9/17/2010 2:51 PM, David McAfee wrote: >>> Have you tried it this way? >>> >>> UPDATE TABLEA >>> SET >>> A.FIELD1 = B.FIELD1, >>> A.FIELD2 = B.FIELD2, >>> A.FIELD3 = B.FIELD3, >>> A.FIELD4 = B.FIELD4, >>> A.FIELD5 = B.FIELD5, >>> A.FIELD6 = B.FIELD6, >>> A.FIELD7 = B.FIELD7, >>> A.FIELD8 = B.FIELD8, >>> A.FIELD9 = B.FIELD9, >>> A.FIELD10 = B.FIELD10, >>> A.FIELD11 = B.FIELD11, >>> A.FIELD12 = B.FIELD12, >>> A.FIELD13 = B.FIELD13, >>> A.FIELD14 = B.FIELD14, >>> A.FIELD15 = B.FIELD15, >>> A.FIELD16 = B.FIELD16, >>> FROM TABLEA AS A >>> INNER JOIN TABLEB AS B >>> ON A.ID = B.ID >>> >>> >>> On Fri, Sep 17, 2010 at 11:28 AM, jwcolby ? wrote: >>>> UPDATE TABLEA SET >>>> FIELD1 = (SELECT TABLEB.FIELD1 FROM TABLEB WHERE TABLEB.ID = TABLEA.ID), >>>> FIELD2= (SELECT TABLEB.FIELD2 FROM TABLEB WHERE TABLEB.ID = TABLEA.ID) >>>> >>>> It seems darned ugly but I can see the logic. ?However I have about 16 fields to update for (in some >>>> cases) a subset of 2 million records in a 65 million record table. >>>> >>>> It seems like this is going to be very inefficient. >>>> >>>> -- >>>> John W. Colby >>>> www.ColbyConsulting.com >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Fri Sep 17 14:39:18 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 17 Sep 2010 15:39:18 -0400 Subject: [AccessD] I found this In-Reply-To: References: <4C93B34F.6020705@colbyconsulting.com> <4C93BDED.5040900@colbyconsulting.com> <4C93C111.1080309@colbyconsulting.com> Message-ID: <4C93C3E6.6020101@colbyconsulting.com> No problem. Very cool. I created the query I needed in about 3 minutes and tested. Very nice. John W. Colby www.ColbyConsulting.com On 9/17/2010 3:32 PM, David McAfee wrote: > oops, sorry about that. I didn't test it, just typed it into gmail, so > I didn't catch that. > > > On Fri, Sep 17, 2010 at 12:27 PM, jwcolby wrote: >> OK, it had to be UPDATE A >> SET A.FName = B.Fname >> FROM PSM11229.dbo.AZData as A >> INNER JOIN PSM11229_Temp.dbo.AZData AS B >> ON A.PK = B.PK >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 9/17/2010 3:13 PM, jwcolby wrote: >>> David, >>> >>> UPDATE PSM11229.dbo.AZData >>> SET A.FName = B.FName >>> FROM PSM11229.dbo.AZData as A >>> INNER JOIN PSM11229_Temp.dbo.AZData AS B >>> ON A.PK = B.PK >>> >>> Compiles but fails to run with an error >>> >>> The multi-part identifier "A.FName" could not be bound. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> On 9/17/2010 2:51 PM, David McAfee wrote: >>>> Have you tried it this way? >>>> >>>> UPDATE TABLEA >>>> SET >>>> A.FIELD1 = B.FIELD1, >>>> A.FIELD2 = B.FIELD2, >>>> A.FIELD3 = B.FIELD3, >>>> A.FIELD4 = B.FIELD4, >>>> A.FIELD5 = B.FIELD5, >>>> A.FIELD6 = B.FIELD6, >>>> A.FIELD7 = B.FIELD7, >>>> A.FIELD8 = B.FIELD8, >>>> A.FIELD9 = B.FIELD9, >>>> A.FIELD10 = B.FIELD10, >>>> A.FIELD11 = B.FIELD11, >>>> A.FIELD12 = B.FIELD12, >>>> A.FIELD13 = B.FIELD13, >>>> A.FIELD14 = B.FIELD14, >>>> A.FIELD15 = B.FIELD15, >>>> A.FIELD16 = B.FIELD16, >>>> FROM TABLEA AS A >>>> INNER JOIN TABLEB AS B >>>> ON A.ID = B.ID >>>> >>>> >>>> On Fri, Sep 17, 2010 at 11:28 AM, jwcolby wrote: >>>>> UPDATE TABLEA SET >>>>> FIELD1 = (SELECT TABLEB.FIELD1 FROM TABLEB WHERE TABLEB.ID = TABLEA.ID), >>>>> FIELD2= (SELECT TABLEB.FIELD2 FROM TABLEB WHERE TABLEB.ID = TABLEA.ID) >>>>> >>>>> It seems darned ugly but I can see the logic. However I have about 16 fields to update for (in some >>>>> cases) a subset of 2 million records in a 65 million record table. >>>>> >>>>> It seems like this is going to be very inefficient. >>>>> >>>>> -- >>>>> John W. Colby >>>>> www.ColbyConsulting.com >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From BradM at blackforestltd.com Fri Sep 17 14:59:08 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 17 Sep 2010 14:59:08 -0500 Subject: [AccessD] Running Access 2007 in a "Terminal Services" Environment (AKA Remote Desktop Services) References: <4C93B34F.6020705@colbyconsulting.com> <4C93BDED.5040900@colbyconsulting.com> <4C93C111.1080309@colbyconsulting.com> Message-ID: I would like to learn more about using Access 2007 in a TS Environment. Is anyone aware of a website with good documentation on this topic? Thanks, Brad From delam at zyterra.com Fri Sep 17 15:09:44 2010 From: delam at zyterra.com (Debbie) Date: Fri, 17 Sep 2010 15:09:44 -0500 Subject: [AccessD] Exporting report to excel In-Reply-To: References: <87740757-8834-4D7B-912A-DA37094EDEC8@zyterra.com> Message-ID: I have the command on the ribbon. It is the same as the export to excel on the quick access toolbar. Debbie Sent from my iPhone On Sep 17, 2010, at 2:01 PM, "Brad Marks" wrote: > Debbie, > > Which Access command or technique are you using to export the report > to > Excel? > > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie > Sent: Friday, September 17, 2010 12:53 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Exporting report to excel > > I am exporting a report to excel from access 2007. This report has the > detail section not visible and is only showing data in a group footer. > I have discovered that the data will not show up at all unless I have > some aggregate function in those text boxes (last and sum have worked > well). My only issue is that a date field is always exporting as > 1/0/1900. I have tried lots of different aggregation functions as well > as appending a string to the end and using cstr() to see if that will > work. All of my efforts so far yield blanks or 1/0/1900. Any other > ideas? > > Debbie > > Sent from my iPhone > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Fri Sep 17 15:13:19 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 17 Sep 2010 15:13:19 -0500 Subject: [AccessD] Exporting report to excel References: <87740757-8834-4D7B-912A-DA37094EDEC8@zyterra.com> Message-ID: I recently ran into an issue when I was trying to export a report's underlying query to Excel. The catch is that the report had a dynamic filter which is not taken into account when exporting from the underlying query (the query exported more data to Excel than the Report was showing, due to the filter on the report) A number of people here in AccessD offered some nice ideas on how to deal with this. It looks like your situation is different, however. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Sent: Friday, September 17, 2010 3:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Exporting report to excel I have the command on the ribbon. It is the same as the export to excel on the quick access toolbar. Debbie Sent from my iPhone On Sep 17, 2010, at 2:01 PM, "Brad Marks" wrote: > Debbie, > > Which Access command or technique are you using to export the report > to > Excel? > > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie > Sent: Friday, September 17, 2010 12:53 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Exporting report to excel > > I am exporting a report to excel from access 2007. This report has the > detail section not visible and is only showing data in a group footer. > I have discovered that the data will not show up at all unless I have > some aggregate function in those text boxes (last and sum have worked > well). My only issue is that a date field is always exporting as > 1/0/1900. I have tried lots of different aggregation functions as well > as appending a string to the end and using cstr() to see if that will > work. All of my efforts so far yield blanks or 1/0/1900. Any other > ideas? > > Debbie > > Sent from my iPhone > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From cjlabs at att.net Fri Sep 17 15:38:14 2010 From: cjlabs at att.net (Carolyn Johnson) Date: Fri, 17 Sep 2010 15:38:14 -0500 Subject: [AccessD] Conditional formatting on combo box Message-ID: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell> Is it possible to use conditional formatting to change the appearance of rows in a combo box? Not the value of the combo box, but the appearnace of values in the rowsource? I'd like to make certain values bold and others normal based on a column's value (not the bound column) in the rowsource as an aid in selecting the correct row (ie, enrolled vs not enrolled). Thanks Carolyn Johnson From rockysmolin at bchacc.com Fri Sep 17 16:02:34 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 17 Sep 2010 14:02:34 -0700 Subject: [AccessD] A2K3 Form - hide/show overlaid fields In-Reply-To: References: <12332344EB5641B595A2C7425944D828@abpc> Message-ID: <65C91B887F57419F9063A46140689EE0@HAL9005> Set Tab Stop on the invisible fields to false? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Friday, September 17, 2010 8:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2K3 Form - hide/show overlaid fields Hi Again Everyone I'm apparently having a series of brain lapses ... I have two pairs of fields on my form, with each pair overlaying the other ... Depending upon the value of another field, I want to display one pair and hide the other prevent the user from tabbing into the hidden fields. The code is at the end of this email. ---------------------------------------------------------------------------- --- Controlling Field: EmployeeCountryCodeID note: value of 38 = Canada, value of 230 = United States Field Pair #1: EmployeeStateCodeID and EmployeeZipCode Field Pair #2: EmployeeProvinceCodeID and EmployeePostalCode ---------------------------------------------------------------------------- --- I *seem* to be able to get the show/hide working, but I still have two problems: 1) When tabbing through the form, the cursor still goes to every field, including the hidden ones. >>>> How can I stop tabbing from accessing the hidden fields? 2) When going to a new record, the code crashes with "Run time error '2427': You entered an expression that has no value. >>>> How can I get the "IF" code to fire? In debug, the 'If IsNull' line >>>> is the one highlighted as having the problem. >>>> I also tried substituting "If acNewRec = True Then", but that >>>> failed on the test - the code advanced to the "Select Case EmployeeCountryCodeID" and failed there ... Is there a better (and simpler) way to simply test to see if it is a new record? Thanks!! Bob Gajewski PS - I have the same code in the EmployeeCountryCodeID_AfterUpdate() module. CODE BEHIND FORM Private Sub Form_Current() If IsNull([EmployeeCountryCodeID]) Or [EmployeeCountryCodeID] = 0 Or [EmployeeCountryCodeID] = "" Then EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False Else Select Case EmployeeCountryCodeID Case 38 ' Country = CA EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = True EmployeeProvinceCodeID.Enabled = True EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = True EmployeePostalCode.Enabled = True Case 230 ' Country = US EmployeeStateCodeID.Visible = True EmployeeStateCodeID.Enabled = True EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = True EmployeeZipCode.Enabled = True EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False Case Else EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False End Select End If End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Fri Sep 17 16:09:05 2010 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 17 Sep 2010 16:09:05 -0500 Subject: [AccessD] Exporting report to excel In-Reply-To: <87740757-8834-4D7B-912A-DA37094EDEC8@zyterra.com> References: <87740757-8834-4D7B-912A-DA37094EDEC8@zyterra.com> Message-ID: Interesting that you would get that invalid date result. A date type field value of zero would result in a value of 12/30/1899 according to this http://support.microsoft.com/kb/130514/en-us So something is going haywire. Could you add a field into the underlying query for the report that formatted the date into a text value using a format function like MyDateField:Format([YourDateField],"mm/dd/yyyy") and then put that into the group footer in a TEXT BOX? At this point it would seem you are getting NOTHING in that date field if you are getting that invalid date result. Good luck! Keep trying! Easy for ME to say. I'm about to leave for home. ;-) GK On Fri, Sep 17, 2010 at 12:53 PM, Debbie wrote: > I am exporting a report to excel from access 2007. This report has the > detail section not visible and is only showing data in a group footer. > I have discovered that the data will not show up at all unless I have > some aggregate function in those text boxes (last and sum have worked > well). My only issue is that a date field is always exporting as > 1/0/1900. I have tried lots of different aggregation functions as well > as appending a string to the end and using cstr() to see if that will > work. All of my efforts so far yield blanks or 1/0/1900. Any other > ideas? > > Debbie > > Sent from my iPhone > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From ab-mi at post3.tele.dk Fri Sep 17 16:53:51 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Fri, 17 Sep 2010 23:53:51 +0200 Subject: [AccessD] Conditional formatting on combo box In-Reply-To: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell> References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell> Message-ID: <78B50C1E22C6435685214260CCED8414@abpc> Don't think this is possible but it would certainly be very cool and nice! So I'll keep hitting my receive-button to see if some bright person has an answer ;-) Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Carolyn Johnson Sendt: 17. september 2010 22:38 Til: Access Developers Emne: [AccessD] Conditional formatting on combo box Is it possible to use conditional formatting to change the appearance of rows in a combo box? Not the value of the combo box, but the appearnace of values in the rowsource? I'd like to make certain values bold and others normal based on a column's value (not the bound column) in the rowsource as an aid in selecting the correct row (ie, enrolled vs not enrolled). Thanks Carolyn Johnson -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Fri Sep 17 17:01:46 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 17 Sep 2010 15:01:46 -0700 Subject: [AccessD] Conditional formatting on combo box In-Reply-To: <78B50C1E22C6435685214260CCED8414@abpc> References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell> <78B50C1E22C6435685214260CCED8414@abpc> Message-ID: Duane Hookom has an example on Rogersaccesslibrary that allows for different row coloring/highlighting. This is what we did back in A97, before Conditional formatting was brought out in A2K. On Fri, Sep 17, 2010 at 2:53 PM, Asger Blond wrote: > Don't think this is possible but it would certainly be very cool and nice! > So I'll keep hitting my receive-button to see if some bright person has an answer ;-) > Asger > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Carolyn Johnson > Sendt: 17. september 2010 22:38 > Til: Access Developers > Emne: [AccessD] Conditional formatting on combo box > > Is it possible to use conditional formatting to change the appearance of rows in a combo box? ? Not the value of the combo box, but the appearnace of values in the rowsource? > > I'd like to make certain values bold and others normal based on a column's value (not the bound column) in the rowsource as an aid in selecting the correct row (ie, enrolled vs not enrolled). > > > Thanks > Carolyn Johnson > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From charlotte.foust at gmail.com Fri Sep 17 17:03:42 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Fri, 17 Sep 2010 15:03:42 -0700 Subject: [AccessD] Conditional formatting on combo box In-Reply-To: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell> References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell> Message-ID: Sorry, but that isn't possible with the built in combo box. The built-in combo box is populated by a string, with a delimiter to indicate line breaks. No way to format anything but the entire control. I wouldn't recommend different formats in rows anyhow. You could, of course, make the ENROLLED all caps to distinguish form Not Entrolled, which would serve the same purpose.. Charlotte Foust On Fri, Sep 17, 2010 at 1:38 PM, Carolyn Johnson wrote: > Is it possible to use conditional formatting to change the appearance of rows in a combo box? ? Not the value of the combo box, but the appearnace of values in the rowsource? > > I'd like to make certain values bold and others normal based on a column's value (not the bound column) in the rowsource as an aid in selecting the correct row (ie, enrolled vs not enrolled). > > > Thanks > Carolyn Johnson > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cjlabs at att.net Fri Sep 17 17:04:01 2010 From: cjlabs at att.net (Carolyn Johnson) Date: Fri, 17 Sep 2010 17:04:01 -0500 Subject: [AccessD] Conditional formatting on combo box References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell><78B50C1E22C6435685214260CCED8414@abpc> Message-ID: <471A5F5EF16A4935B4CF0E96189708C7@Dell> Thanks -- I'll take a look. Carolyn ----- Original Message ----- From: David McAfee To: Access Developers discussion and problem solving Sent: Friday, September 17, 2010 5:01 PM Subject: Re: [AccessD] Conditional formatting on combo box Duane Hookom has an example on Rogersaccesslibrary that allows for different row coloring/highlighting. This is what we did back in A97, before Conditional formatting was brought out in A2K. On Fri, Sep 17, 2010 at 2:53 PM, Asger Blond wrote: > Don't think this is possible but it would certainly be very cool and nice! > So I'll keep hitting my receive-button to see if some bright person has an answer ;-) > Asger > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Carolyn Johnson > Sendt: 17. september 2010 22:38 > Til: Access Developers > Emne: [AccessD] Conditional formatting on combo box > > Is it possible to use conditional formatting to change the appearance of rows in a combo box? Not the value of the combo box, but the appearnace of values in the rowsource? > > I'd like to make certain values bold and others normal based on a column's value (not the bound column) in the rowsource as an aid in selecting the correct row (ie, enrolled vs not enrolled). > > > Thanks > Carolyn Johnson > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cjlabs at att.net Fri Sep 17 17:09:00 2010 From: cjlabs at att.net (Carolyn Johnson) Date: Fri, 17 Sep 2010 17:09:00 -0500 Subject: [AccessD] Conditional formatting on combo box References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell> Message-ID: <089C0AB46E8E4368801CB24DF6E0B360@Dell> I was hoping to avoid adding Enrolled or Not enrolled as a visible column and just go with formatting, but showing the column serves the purpose. Thanks Carolyn ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Friday, September 17, 2010 5:03 PM Subject: Re: [AccessD] Conditional formatting on combo box Sorry, but that isn't possible with the built in combo box. The built-in combo box is populated by a string, with a delimiter to indicate line breaks. No way to format anything but the entire control. I wouldn't recommend different formats in rows anyhow. You could, of course, make the ENROLLED all caps to distinguish form Not Entrolled, which would serve the same purpose.. Charlotte Foust On Fri, Sep 17, 2010 at 1:38 PM, Carolyn Johnson wrote: > Is it possible to use conditional formatting to change the appearance of rows in a combo box? Not the value of the combo box, but the appearnace of values in the rowsource? > > I'd like to make certain values bold and others normal based on a column's value (not the bound column) in the rowsource as an aid in selecting the correct row (ie, enrolled vs not enrolled). > > > Thanks > Carolyn Johnson > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Fri Sep 17 17:10:52 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 17 Sep 2010 15:10:52 -0700 Subject: [AccessD] Conditional formatting on combo box In-Reply-To: <471A5F5EF16A4935B4CF0E96189708C7@Dell> References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell> <78B50C1E22C6435685214260CCED8414@abpc> <471A5F5EF16A4935B4CF0E96189708C7@Dell> Message-ID: oops, I read your post wrong. I thought you were asking to format the fields of a form's row, as in a continuous form, based on a combo box value. What you're asking can't be done. I've been wanting combos and listboxes to have this abbility for a while. But instead MS gives us a Ribbon. :) On Fri, Sep 17, 2010 at 3:04 PM, Carolyn Johnson wrote: > Thanks -- I'll take a look. > > Carolyn > > ?----- Original Message ----- > ?From: David McAfee > ?To: Access Developers discussion and problem solving > ?Sent: Friday, September 17, 2010 5:01 PM > ?Subject: Re: [AccessD] Conditional formatting on combo box > > > ?Duane Hookom has an example on Rogersaccesslibrary that allows for > ?different row coloring/highlighting. > ?This is what we did back in A97, before Conditional formatting was > ?brought out in A2K. > > > > ?On Fri, Sep 17, 2010 at 2:53 PM, Asger Blond wrote: > ?> Don't think this is possible but it would certainly be very cool and nice! > ?> So I'll keep hitting my receive-button to see if some bright person has an answer ;-) > ?> Asger > ?> -----Oprindelig meddelelse----- > ?> Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Carolyn Johnson > ?> Sendt: 17. september 2010 22:38 > ?> Til: Access Developers > ?> Emne: [AccessD] Conditional formatting on combo box > ?> > ?> Is it possible to use conditional formatting to change the appearance of rows in a combo box? Not the value of the combo box, but the appearnace of values in the rowsource? > ?> > ?> I'd like to make certain values bold and others normal based on a column's value (not the bound column) in the rowsource as an aid in selecting the correct row (ie, enrolled vs not enrolled). > ?> > ?> > ?> Thanks > ?> Carolyn Johnson > ?> -- > ?> AccessD mailing list > ?> AccessD at databaseadvisors.com > ?> http://databaseadvisors.com/mailman/listinfo/accessd > ?> Website: http://www.databaseadvisors.com > ?> > ?> > ?> -- > ?> AccessD mailing list > ?> AccessD at databaseadvisors.com > ?> http://databaseadvisors.com/mailman/listinfo/accessd > ?> Website: http://www.databaseadvisors.com > ?> > > ?-- > ?AccessD mailing list > ?AccessD at databaseadvisors.com > ?http://databaseadvisors.com/mailman/listinfo/accessd > ?Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davidmcafee at gmail.com Fri Sep 17 17:12:50 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 17 Sep 2010 15:12:50 -0700 Subject: [AccessD] Conditional formatting on combo box In-Reply-To: <089C0AB46E8E4368801CB24DF6E0B360@Dell> References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell> <089C0AB46E8E4368801CB24DF6E0B360@Dell> Message-ID: Here's the link for his sample, if you want to have a look: http://www.rogersaccesslibrary.com/forum/at-your-survey_topic3.html On Fri, Sep 17, 2010 at 3:09 PM, Carolyn Johnson wrote: > I was hoping to avoid adding Enrolled or Not enrolled as a visible column and just go with formatting, but showing the column serves the purpose. > > > Thanks > Carolyn > > ?----- Original Message ----- > ?From: Charlotte Foust > ?To: Access Developers discussion and problem solving > ?Sent: Friday, September 17, 2010 5:03 PM > ?Subject: Re: [AccessD] Conditional formatting on combo box > > > ?Sorry, but that isn't possible with the built in combo box. ?The > ?built-in combo box is populated by a string, with a delimiter to > ?indicate line breaks. ?No way to format anything but the entire > ?control. ?I wouldn't recommend different formats in rows anyhow. ?You > ?could, of course, make the ENROLLED all caps to distinguish form Not > ?Entrolled, which would serve the same purpose.. > > ?Charlotte Foust > > ?On Fri, Sep 17, 2010 at 1:38 PM, Carolyn Johnson wrote: > ?> Is it possible to use conditional formatting to change the appearance of rows in a combo box? Not the value of the combo box, but the appearnace of values in the rowsource? > ?> > ?> I'd like to make certain values bold and others normal based on a column's value (not the bound column) in the rowsource as an aid in selecting the correct row (ie, enrolled vs not enrolled). > ?> > ?> > ?> Thanks > ?> Carolyn Johnson > ?> -- > ?> AccessD mailing list > ?> AccessD at databaseadvisors.com > ?> http://databaseadvisors.com/mailman/listinfo/accessd > ?> Website: http://www.databaseadvisors.com > ?> > > ?-- > ?AccessD mailing list > ?AccessD at databaseadvisors.com > ?http://databaseadvisors.com/mailman/listinfo/accessd > ?Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cjlabs at att.net Fri Sep 17 17:15:29 2010 From: cjlabs at att.net (Carolyn Johnson) Date: Fri, 17 Sep 2010 17:15:29 -0500 Subject: [AccessD] Conditional formatting on combo box References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell><089C0AB46E8E4368801CB24DF6E0B360@Dell> Message-ID: <0A21F009BBB0438387774264EBFAEC45@Dell> Thanks. Carolyn ----- Original Message ----- From: David McAfee To: Access Developers discussion and problem solving Sent: Friday, September 17, 2010 5:12 PM Subject: Re: [AccessD] Conditional formatting on combo box Here's the link for his sample, if you want to have a look: http://www.rogersaccesslibrary.com/forum/at-your-survey_topic3.html On Fri, Sep 17, 2010 at 3:09 PM, Carolyn Johnson wrote: > I was hoping to avoid adding Enrolled or Not enrolled as a visible column and just go with formatting, but showing the column serves the purpose. > > > Thanks > Carolyn > > ----- Original Message ----- > From: Charlotte Foust > To: Access Developers discussion and problem solving > Sent: Friday, September 17, 2010 5:03 PM > Subject: Re: [AccessD] Conditional formatting on combo box > > > Sorry, but that isn't possible with the built in combo box. The > built-in combo box is populated by a string, with a delimiter to > indicate line breaks. No way to format anything but the entire > control. I wouldn't recommend different formats in rows anyhow. You > could, of course, make the ENROLLED all caps to distinguish form Not > Entrolled, which would serve the same purpose.. > > Charlotte Foust > > On Fri, Sep 17, 2010 at 1:38 PM, Carolyn Johnson wrote: > > Is it possible to use conditional formatting to change the appearance of rows in a combo box? Not the value of the combo box, but the appearnace of values in the rowsource? > > > > I'd like to make certain values bold and others normal based on a column's value (not the bound column) in the rowsource as an aid in selecting the correct row (ie, enrolled vs not enrolled). > > > > > > Thanks > > Carolyn Johnson > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Fri Sep 17 17:23:34 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 17 Sep 2010 15:23:34 -0700 Subject: [AccessD] Conditional formatting on combo box In-Reply-To: <0A21F009BBB0438387774264EBFAEC45@Dell> References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell> <089C0AB46E8E4368801CB24DF6E0B360@Dell> <0A21F009BBB0438387774264EBFAEC45@Dell> Message-ID: I'm sorry. That was the wrong sample. You want the top one on this link http://www.access.hookom.net/Samples.htm On Fri, Sep 17, 2010 at 3:15 PM, Carolyn Johnson wrote: > Thanks. > > Carolyn > > ?----- Original Message ----- > ?From: David McAfee > ?To: Access Developers discussion and problem solving > ?Sent: Friday, September 17, 2010 5:12 PM > ?Subject: Re: [AccessD] Conditional formatting on combo box > > > ?Here's the link for his sample, if you want to have a look: > > ?http://www.rogersaccesslibrary.com/forum/at-your-survey_topic3.html > > > > ?On Fri, Sep 17, 2010 at 3:09 PM, Carolyn Johnson wrote: > ?> I was hoping to avoid adding Enrolled or Not enrolled as a visible column and just go with formatting, but showing the column serves the purpose. > ?> > ?> > ?> Thanks > ?> Carolyn > ?> > ?> ----- Original Message ----- > ?> From: Charlotte Foust > ?> To: Access Developers discussion and problem solving > ?> Sent: Friday, September 17, 2010 5:03 PM > ?> Subject: Re: [AccessD] Conditional formatting on combo box > ?> > ?> > ?> Sorry, but that isn't possible with the built in combo box. The > ?> built-in combo box is populated by a string, with a delimiter to > ?> indicate line breaks. No way to format anything but the entire > ?> control. I wouldn't recommend different formats in rows anyhow. You > ?> could, of course, make the ENROLLED all caps to distinguish form Not > ?> Entrolled, which would serve the same purpose.. > ?> > ?> Charlotte Foust > ?> > ?> On Fri, Sep 17, 2010 at 1:38 PM, Carolyn Johnson wrote: > ?> > Is it possible to use conditional formatting to change the appearance of rows in a combo box? Not the value of the combo box, but the appearnace of values in the rowsource? > ?> > > ?> > I'd like to make certain values bold and others normal based on a column's value (not the bound column) in the rowsource as an aid in selecting the correct row (ie, enrolled vs not enrolled). > ?> > > ?> > > ?> > Thanks > ?> > Carolyn Johnson > ?> > -- > ?> > AccessD mailing list > ?> > AccessD at databaseadvisors.com > ?> > http://databaseadvisors.com/mailman/listinfo/accessd > ?> > Website: http://www.databaseadvisors.com > ?> > > ?> > ?> -- > ?> AccessD mailing list > ?> AccessD at databaseadvisors.com > ?> http://databaseadvisors.com/mailman/listinfo/accessd > ?> Website: http://www.databaseadvisors.com > ?> -- > ?> AccessD mailing list > ?> AccessD at databaseadvisors.com > ?> http://databaseadvisors.com/mailman/listinfo/accessd > ?> Website: http://www.databaseadvisors.com > ?> > > ?-- > ?AccessD mailing list > ?AccessD at databaseadvisors.com > ?http://databaseadvisors.com/mailman/listinfo/accessd > ?Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cjlabs at att.net Fri Sep 17 17:28:26 2010 From: cjlabs at att.net (Carolyn Johnson) Date: Fri, 17 Sep 2010 17:28:26 -0500 Subject: [AccessD] Conditional formatting on combo box References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell><089C0AB46E8E4368801CB24DF6E0B360@Dell><0A21F009BBB0438387774264EBFAEC45@Dell> Message-ID: <86AE3DB334C347F8BF028FB9352B94CD@Dell> Thanks. Carolyn ----- Original Message ----- From: David McAfee To: Access Developers discussion and problem solving Sent: Friday, September 17, 2010 5:23 PM Subject: Re: [AccessD] Conditional formatting on combo box I'm sorry. That was the wrong sample. You want the top one on this link http://www.access.hookom.net/Samples.htm On Fri, Sep 17, 2010 at 3:15 PM, Carolyn Johnson wrote: > Thanks. > > Carolyn > > ----- Original Message ----- > From: David McAfee > To: Access Developers discussion and problem solving > Sent: Friday, September 17, 2010 5:12 PM > Subject: Re: [AccessD] Conditional formatting on combo box > > > Here's the link for his sample, if you want to have a look: > > http://www.rogersaccesslibrary.com/forum/at-your-survey_topic3.html > > > > On Fri, Sep 17, 2010 at 3:09 PM, Carolyn Johnson wrote: > > I was hoping to avoid adding Enrolled or Not enrolled as a visible column and just go with formatting, but showing the column serves the purpose. > > > > > > Thanks > > Carolyn > > > > ----- Original Message ----- > > From: Charlotte Foust > > To: Access Developers discussion and problem solving > > Sent: Friday, September 17, 2010 5:03 PM > > Subject: Re: [AccessD] Conditional formatting on combo box > > > > > > Sorry, but that isn't possible with the built in combo box. The > > built-in combo box is populated by a string, with a delimiter to > > indicate line breaks. No way to format anything but the entire > > control. I wouldn't recommend different formats in rows anyhow. You > > could, of course, make the ENROLLED all caps to distinguish form Not > > Entrolled, which would serve the same purpose.. > > > > Charlotte Foust > > > > On Fri, Sep 17, 2010 at 1:38 PM, Carolyn Johnson wrote: > > > Is it possible to use conditional formatting to change the appearance of rows in a combo box? Not the value of the combo box, but the appearnace of values in the rowsource? > > > > > > I'd like to make certain values bold and others normal based on a column's value (not the bound column) in the rowsource as an aid in selecting the correct row (ie, enrolled vs not enrolled). > > > > > > > > > Thanks > > > Carolyn Johnson > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Sat Sep 18 00:51:55 2010 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 17 Sep 2010 22:51:55 -0700 Subject: [AccessD] Conditional formatting on combo box In-Reply-To: <86AE3DB334C347F8BF028FB9352B94CD@Dell> References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell> <089C0AB46E8E4368801CB24DF6E0B360@Dell> <0A21F009BBB0438387774264EBFAEC45@Dell> <86AE3DB334C347F8BF028FB9352B94CD@Dell> Message-ID: What I have done in a similar situation is to either set the value of the Name dropdown column to some visible formatting, like: =Name & iif(IsEnrolled," **","") or to add a sort by IsEnrolled as well so that all the names that aren't enrolled show after the names that are enrolled. Doug Steele From cjlabs at att.net Sat Sep 18 07:26:36 2010 From: cjlabs at att.net (Carolyn Johnson) Date: Sat, 18 Sep 2010 07:26:36 -0500 Subject: [AccessD] Conditional formatting on combo box References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell><089C0AB46E8E4368801CB24DF6E0B360@Dell><0A21F009BBB0438387774264EBFAEC45@Dell><86AE3DB334C347F8BF028FB9352B94CD@Dell> Message-ID: <3A8A4F90BAAA4DEA89D7A0AC48042BAA@Dell> That's what I've gone with as well -- as asterisk. Thanks Carolyn ----- Original Message ----- From: Doug Steele To: Access Developers discussion and problem solving Sent: Saturday, September 18, 2010 12:51 AM Subject: Re: [AccessD] Conditional formatting on combo box What I have done in a similar situation is to either set the value of the Name dropdown column to some visible formatting, like: =Name & iif(IsEnrolled," **","") or to add a sort by IsEnrolled as well so that all the names that aren't enrolled show after the names that are enrolled. Doug Steele -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sat Sep 18 08:24:45 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 18 Sep 2010 23:24:45 +1000 Subject: [AccessD] Conditional formatting on combo box In-Reply-To: <3A8A4F90BAAA4DEA89D7A0AC48042BAA@Dell> References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell>, <3A8A4F90BAAA4DEA89D7A0AC48042BAA@Dell> Message-ID: <4C94BD9D.27858.F1ADBEC@stuart.lexacorp.com.pg> If ou want to keep the entries in alphabetical order, you can do something like iif(IsEnrolled,UCase([Name]),[Name]) -- Stuart On 18 Sep 2010 at 7:26, Carolyn Johnson wrote: > That's what I've gone with as well -- as asterisk. > > Thanks > Carolyn > ----- Original Message ----- > From: Doug Steele > To: Access Developers discussion and problem solving > Sent: Saturday, September 18, 2010 12:51 AM > Subject: Re: [AccessD] Conditional formatting on combo box > > > What I have done in a similar situation is to either set the value > of the Name dropdown column to some visible formatting, like: > > =Name & iif(IsEnrolled," **","") > > or to add a sort by IsEnrolled as well so that all the names that > aren't enrolled show after the names that are enrolled. > > Doug Steele > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cjlabs at att.net Sat Sep 18 08:45:17 2010 From: cjlabs at att.net (Carolyn Johnson) Date: Sat, 18 Sep 2010 08:45:17 -0500 Subject: [AccessD] Conditional formatting on combo box References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell>, <3A8A4F90BAAA4DEA89D7A0AC48042BAA@Dell> <4C94BD9D.27858.F1ADBEC@stuart.lexacorp.com.pg> Message-ID: <78722166FF05403A878C7A52FB235BC1@Dell> Another good idea -- a way to use formatting instead of adding a column. Thanks Carolyn ----- Original Message ----- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Saturday, September 18, 2010 8:24 AM Subject: Re: [AccessD] Conditional formatting on combo box If ou want to keep the entries in alphabetical order, you can do something like iif(IsEnrolled,UCase([Name]),[Name]) -- Stuart On 18 Sep 2010 at 7:26, Carolyn Johnson wrote: > That's what I've gone with as well -- as asterisk. > > Thanks > Carolyn > ----- Original Message ----- > From: Doug Steele > To: Access Developers discussion and problem solving > Sent: Saturday, September 18, 2010 12:51 AM > Subject: Re: [AccessD] Conditional formatting on combo box > > > What I have done in a similar situation is to either set the value > of the Name dropdown column to some visible formatting, like: > > =Name & iif(IsEnrolled," **","") > > or to add a sort by IsEnrolled as well so that all the names that > aren't enrolled show after the names that are enrolled. > > Doug Steele > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Sat Sep 18 12:22:38 2010 From: dbdoug at gmail.com (Doug Steele) Date: Sat, 18 Sep 2010 10:22:38 -0700 Subject: [AccessD] Conditional formatting on combo box In-Reply-To: <4C94BD9D.27858.F1ADBEC@stuart.lexacorp.com.pg> References: <6CA49EB445834A32A9BF6E4B78AFE0D3@Dell> <3A8A4F90BAAA4DEA89D7A0AC48042BAA@Dell> <4C94BD9D.27858.F1ADBEC@stuart.lexacorp.com.pg> Message-ID: Good idea! I'm going to use this one. Thanks, Doug On Sat, Sep 18, 2010 at 6:24 AM, Stuart McLachlan wrote: > If ou want to keep the entries in alphabetical order, you can do something > like > iif(IsEnrolled,UCase([Name]),[Name]) > From rbgajewski at roadrunner.com Sat Sep 18 14:16:04 2010 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Sat, 18 Sep 2010 15:16:04 -0400 Subject: [AccessD] A2K3 Form - hide/show overlaid fields In-Reply-To: <65C91B887F57419F9063A46140689EE0@HAL9005> References: <12332344EB5641B595A2C7425944D828@abpc> <65C91B887F57419F9063A46140689EE0@HAL9005> Message-ID: <55C9E33E61E149EEA3311B6C67A0E113@DCYN3T81> Actually, I did that, and it didn't have any effect - tabbing still stopped at those fields ... But I am doing it programmatically, and that was the whole issue ... The code never got to the right part because by "Is New Record?" logic was flawed ... Once I fixed that, everything else worked just the way that I wanted. Bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, September 17, 2010 17:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2K3 Form - hide/show overlaid fields Set Tab Stop on the invisible fields to false? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Friday, September 17, 2010 8:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2K3 Form - hide/show overlaid fields Hi Again Everyone I'm apparently having a series of brain lapses ... I have two pairs of fields on my form, with each pair overlaying the other ... Depending upon the value of another field, I want to display one pair and hide the other prevent the user from tabbing into the hidden fields. The code is at the end of this email. ---------------------------------------------------------------------------- --- Controlling Field: EmployeeCountryCodeID note: value of 38 = Canada, value of 230 = United States Field Pair #1: EmployeeStateCodeID and EmployeeZipCode Field Pair #2: EmployeeProvinceCodeID and EmployeePostalCode ---------------------------------------------------------------------------- --- I *seem* to be able to get the show/hide working, but I still have two problems: 1) When tabbing through the form, the cursor still goes to every field, including the hidden ones. >>>> How can I stop tabbing from accessing the hidden fields? 2) When going to a new record, the code crashes with "Run time error '2427': You entered an expression that has no value. >>>> How can I get the "IF" code to fire? In debug, the 'If IsNull' line >>>> is the one highlighted as having the problem. >>>> I also tried substituting "If acNewRec = True Then", but that >>>> failed on the test - the code advanced to the "Select Case EmployeeCountryCodeID" and failed there ... Is there a better (and simpler) way to simply test to see if it is a new record? Thanks!! Bob Gajewski PS - I have the same code in the EmployeeCountryCodeID_AfterUpdate() module. CODE BEHIND FORM Private Sub Form_Current() If IsNull([EmployeeCountryCodeID]) Or [EmployeeCountryCodeID] = 0 Or [EmployeeCountryCodeID] = "" Then EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False Else Select Case EmployeeCountryCodeID Case 38 ' Country = CA EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = True EmployeeProvinceCodeID.Enabled = True EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = True EmployeePostalCode.Enabled = True Case 230 ' Country = US EmployeeStateCodeID.Visible = True EmployeeStateCodeID.Enabled = True EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = True EmployeeZipCode.Enabled = True EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False Case Else EmployeeStateCodeID.Visible = False EmployeeStateCodeID.Enabled = False EmployeeProvinceCodeID.Visible = False EmployeeProvinceCodeID.Enabled = False EmployeeZipCode.Visible = False EmployeeZipCode.Enabled = False EmployeePostalCode.Visible = False EmployeePostalCode.Enabled = False End Select End If End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sun Sep 19 12:47:51 2010 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 19 Sep 2010 19:47:51 +0200 Subject: [AccessD] OT: Sunday trip Message-ID: Holy Batman. This one nailed me to the screen. Starway to Heaven: http://www.flixxy.com/tower-climbing.htm Warning: Absolutely _not_ for those of you afraid of heights! /gustav From df.waters at comcast.net Sun Sep 19 13:08:11 2010 From: df.waters at comcast.net (Dan Waters) Date: Sun, 19 Sep 2010 13:08:11 -0500 Subject: [AccessD] OT: Sunday trip In-Reply-To: References: Message-ID: <7363D8D0A43147838451F9664C686692@danwaters> NOT for me!!!! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, September 19, 2010 12:48 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Sunday trip Holy Batman. This one nailed me to the screen. Starway to Heaven: http://www.flixxy.com/tower-climbing.htm Warning: Absolutely _not_ for those of you afraid of heights! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sun Sep 19 14:17:40 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 19 Sep 2010 23:17:40 +0400 Subject: [AccessD] OT: Sunday trip In-Reply-To: References: Message-ID: <0CDC6051ACD44B819C21AFDF459A0FD5@nant> Gustav -- I have got FireFox GPF-ing somewhere in the middle of that video :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, September 19, 2010 9:48 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Sunday trip Holy Batman. This one nailed me to the screen. Starway to Heaven: http://www.flixxy.com/tower-climbing.htm Warning: Absolutely _not_ for those of you afraid of heights! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Sun Sep 19 22:05:25 2010 From: robert at servicexp.com (Robert) Date: Sun, 19 Sep 2010 23:05:25 -0400 Subject: [AccessD] OT: (kinda) FTP Question. Heeeeelp In-Reply-To: <4C923F22.17206.55CC9B0@stuart.lexacorp.com.pg> References: , <4C9204D8.7000705@colbyconsulting.com>, <001201cb55a8$6f2232d0$4d669870$@com> <4C923F22.17206.55CC9B0@stuart.lexacorp.com.pg> Message-ID: <000301cb5870$adb98870$092c9950$@com> Considering the fact that this is the most talent group professional that I know of, I have yet another Command Line question. I have searched high and low, and can't seem to find a solution. Does anyone know of a good Multi-thread upload FTP client, that also has a solid Command Line interface: Stuart helped me work out the main section of my "project", and I really thought this was going to be the easy part.. After I have the split zip in a folder, I need to be able to send the folder using the same bat file via a multi-threaded upload. I can find great Multi-threaded FTP clients, but they have terrible Command Line support, OR I can find a great Command Line FTP Client but it doesn't have Multi- threaded uploading... I have looked at: CuteFTP SmartFTP Filezilla FTPRush FlashFXP ... HELP..... From robert at servicexp.com Sun Sep 19 22:05:25 2010 From: robert at servicexp.com (Robert) Date: Sun, 19 Sep 2010 23:05:25 -0400 Subject: [AccessD] OT: (kinda) WinZip Question. In-Reply-To: <4C923F22.17206.55CC9B0@stuart.lexacorp.com.pg> References: , <4C9204D8.7000705@colbyconsulting.com>, <001201cb55a8$6f2232d0$4d669870$@com> <4C923F22.17206.55CC9B0@stuart.lexacorp.com.pg> Message-ID: <000401cb5870$ae7a4060$0b6ec120$@com> Stuart, you're a genius.. Opened my world upto what you can actually do via the command prompt!! Thank You!! WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 16, 2010 12:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: (kinda) WinZip Question. Not in a single step. You can only split an existing zip into chunks. If you haven't done so already, download the command line interface from http://www.winzip.com/downcl.htm Then in your batch file: wzzzip myzip.zip myfile.ext -e0 wzzip -ys102400 myzip.zip mysplit del myzip.zip This will a: create myzip.zip uncompressed from myfile.ext b. split myzip.zip into files myslit.z01, mysplit.z02 etc each 102400KB (100MB) in size c. get rid of the temporary myzip.zip -- Stuart On 16 Sep 2010 at 10:06, Robert wrote: > Does anyone know if this is possible: (on a windows 7 32 machine) > > WinZip (Latest Version) > > Zip a multi-GB file into a 100 Meg Segmented, non compressed zip using > a .bat file? > > The .bat file is the "problem". > > WBR > Robert > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Sep 20 01:17:23 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 20 Sep 2010 08:17:23 +0200 Subject: [AccessD] OT: (kinda) FTP Question. Heeeeelp Message-ID: Hi Robert We used 3D-FTP for this - not by command line though but as a COM object and the API - for an app uploading thousands of pictures per batch to a web site. It ran at an amazing speed compared to the Windows FTP command line alternative with no errors for years until the client ceased business: http://www.3dftp.com/3dftp.htm However, when I look at the site now, everything about the API seems to have vanished after version 7. They are at version 9 now. We used version 4.01 and I still use it as a normal FTP client. You may address them about the API or how to obtain a version 7 should you wish to follow the COM route. /gustav >>> robert at servicexp.com 20-09-2010 05:05 >>> Considering the fact that this is the most talent group professional that I know of, I have yet another Command Line question. I have searched high and low, and can't seem to find a solution. Does anyone know of a good Multi-thread upload FTP client, that also has a solid Command Line interface: Stuart helped me work out the main section of my "project", and I really thought this was going to be the easy part.. After I have the split zip in a folder, I need to be able to send the folder using the same bat file via a multi-threaded upload. I can find great Multi-threaded FTP clients, but they have terrible Command Line support, OR I can find a great Command Line FTP Client but it doesn't have Multi- threaded uploading... I have looked at: CuteFTP SmartFTP Filezilla FTPRush FlashFXP ... HELP..... From ab-mi at post3.tele.dk Mon Sep 20 03:04:13 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 20 Sep 2010 10:04:13 +0200 Subject: [AccessD] OT: Sunday trip In-Reply-To: References: Message-ID: <922930A1797B47FC8BD51B6FD1B720A2@abpc> Oh... just lost my breakfast... got to clean up... what a mess! Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Gustav Brock Sendt: 19. september 2010 19:48 Til: accessd at databaseadvisors.com Emne: [AccessD] OT: Sunday trip Holy Batman. This one nailed me to the screen. Starway to Heaven: http://www.flixxy.com/tower-climbing.htm Warning: Absolutely _not_ for those of you afraid of heights! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Sep 20 08:19:49 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 20 Sep 2010 09:19:49 -0400 Subject: [AccessD] OT: Sunday trip In-Reply-To: References: Message-ID: <8BE8862B54B84B5AAD8BCC7E3D45254D@XPS> Looks like fun! Only thing I would be worried about is those storm clouds; lightening can travel a long way... Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, September 19, 2010 1:48 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Sunday trip Holy Batman. This one nailed me to the screen. Starway to Heaven: http://www.flixxy.com/tower-climbing.htm Warning: Absolutely _not_ for those of you afraid of heights! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 20 11:57:59 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 20 Sep 2010 12:57:59 -0400 Subject: [AccessD] OT: (kinda) FTP Question. Heeeeelp In-Reply-To: References: Message-ID: <4C979297.1040404@colbyconsulting.com> I too use 3D-FTP, probably at the recommendation of Gustav, long ago. Love the program. I don't actually automate it though. John W. Colby www.ColbyConsulting.com On 9/20/2010 2:17 AM, Gustav Brock wrote: > Hi Robert > > We used 3D-FTP for this - not by command line though but as a COM object and the API - for an app uploading thousands of pictures per batch to a web site. It ran at an amazing speed compared to the Windows FTP command line alternative with no errors for years until the client ceased business: > > http://www.3dftp.com/3dftp.htm > > However, when I look at the site now, everything about the API seems to have vanished after version 7. They are at version 9 now. We used version 4.01 and I still use it as a normal FTP client. You may address them about the API or how to obtain a version 7 should you wish to follow the COM route. > > /gustav > > >>>> robert at servicexp.com 20-09-2010 05:05>>> > Considering the fact that this is the most talent group professional that I > know of, I have yet another Command Line question. I have searched high and > low, and can't seem to find a solution. > > Does anyone know of a good Multi-thread upload FTP client, that also has a > solid Command Line interface: > > Stuart helped me work out the main section of my "project", and I really > thought this was going to be the easy part.. > > After I have the split zip in a folder, I need to be able to send the folder > using the same bat file via a multi-threaded upload. > > I can find great Multi-threaded FTP clients, but they have terrible Command > Line support, OR I can find a great Command Line FTP Client but it doesn't > have Multi- threaded uploading... > > I have looked at: > > CuteFTP > SmartFTP > Filezilla > FTPRush > > > FlashFXP > > ... HELP..... > > From iggy at nanaimo.ark.com Mon Sep 20 12:43:54 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 20 Sep 2010 10:43:54 -0700 Subject: [AccessD] TreeView Part 2 Ver. Access 2000 Message-ID: <4C979D5A.6010805@nanaimo.ark.com> Hey All When you have a standard set of parameters you could incorporate them into the treeview. If the data is repetative you just end up repeating the same set of data in the branches ending up with a visual mess. So split the repetative data out to list boxes and display the results in a edit/update sub form. I have a little demo, again no fancy coding, bare bones but it works. Anyone interested EMail me off line. From robert at servicexp.com Mon Sep 20 13:28:36 2010 From: robert at servicexp.com (Robert) Date: Mon, 20 Sep 2010 14:28:36 -0400 Subject: [AccessD] OT: (kinda) FTP Question. Heeeeelp In-Reply-To: <4C979297.1040404@colbyconsulting.com> References: <4C979297.1040404@colbyconsulting.com> Message-ID: <003c01cb58f1$a50ee310$ef2ca930$@com> Thanks guys for the suggestions. I have confirmed with them that you cannot upload a file/folder via command line. On that same note, I *** THINK **** I may have found a program that offers both, but their customer service is terrible / (would not answer a simple question - I have to find out for myself or purchase the program (NO pre sales ANYTHING support)). I know right, scary... WS_FTP Pro 12.2 I will be evaluating it over the next couple of days... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 20, 2010 12:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: (kinda) FTP Question. Heeeeelp I too use 3D-FTP, probably at the recommendation of Gustav, long ago. Love the program. I don't actually automate it though. John W. Colby www.ColbyConsulting.com On 9/20/2010 2:17 AM, Gustav Brock wrote: > Hi Robert > > We used 3D-FTP for this - not by command line though but as a COM object and the API - for an app uploading thousands of pictures per batch to a web site. It ran at an amazing speed compared to the Windows FTP command line alternative with no errors for years until the client ceased business: > > http://www.3dftp.com/3dftp.htm > > However, when I look at the site now, everything about the API seems to have vanished after version 7. They are at version 9 now. We used version 4.01 and I still use it as a normal FTP client. You may address them about the API or how to obtain a version 7 should you wish to follow the COM route. > > /gustav > > >>>> robert at servicexp.com 20-09-2010 05:05>>> > Considering the fact that this is the most talent group professional that I > know of, I have yet another Command Line question. I have searched high and > low, and can't seem to find a solution. > > Does anyone know of a good Multi-thread upload FTP client, that also has a > solid Command Line interface: > > Stuart helped me work out the main section of my "project", and I really > thought this was going to be the easy part.. > > After I have the split zip in a folder, I need to be able to send the folder > using the same bat file via a multi-threaded upload. > > I can find great Multi-threaded FTP clients, but they have terrible Command > Line support, OR I can find a great Command Line FTP Client but it doesn't > have Multi- threaded uploading... > > I have looked at: > > CuteFTP > SmartFTP > Filezilla > FTPRush > > > FlashFXP > > ... HELP..... > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Mon Sep 20 13:54:17 2010 From: df.waters at comcast.net (Dan Waters) Date: Mon, 20 Sep 2010 13:54:17 -0500 Subject: [AccessD] Quickly Drag/Copy Code Message-ID: <4E394AB9EE4641BC99D59F07EA07075E@danwaters> By accident, I found a way to quickly duplicate lines of code: 1) From the left side of the screen, select the lines of code you want to duplicate. 2) Hold down the Ctrl key 3) With the left mouse button, click anywhere on the highlighted code and drag that code to a new location. 4) Release the mouse button. When you're done with this, duplicate lines of code will be placed where you released the mouse button. I'm using Access 2003. Dan From Chester_Kaup at kindermorgan.com Mon Sep 20 14:07:17 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 20 Sep 2010 14:07:17 -0500 Subject: [AccessD] Link to spreadsheet Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C1925F48E92@houex1.kindermorgan.com> I am using the following code in an attempt to link to a password protected spreadsheet. I am running it from a terminal server instance of Access 2007 if that matters. I get the following error message. Could it have anything to do with the spreadsheet asking if I want to enable macros when I open it manually? The file '-1' does not exist Here is the code: Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim varFileName As Variant Dim strPassword As String Dim db As Database Dim oExcel As Object, oWb As Object Set oExcel = CreateObject("Excel.Application") DoCmd.SetWarnings False Set db = CurrentDb() strPassword = "rig" varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" Set oWb = oExcel.Workbooks.Open(FileName:=varFileName, ReadOnly:=True,_ Password:=strPassword, UpdateLinks:=0, IgnoreReadOnlyRecommended:=True) DoCmd.TransferSpreadsheet acLink, 8, varFileName, True oWb.Close SaveChanges:=False DoCmd.SetWarnings True LinkSpreadsheet_Exit: oExcel.Quit Set oExcel = Nothing Exit Sub LinkSpreadsheet_Err: MsgBox Error$ Resume LinkSpreadsheet_Exit End Sub Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From jimdettman at verizon.net Mon Sep 20 15:42:03 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 20 Sep 2010 16:42:03 -0400 Subject: [AccessD] OT: (kinda) FTP Question. Heeeeelp In-Reply-To: <003c01cb58f1$a50ee310$ef2ca930$@com> References: <4C979297.1040404@colbyconsulting.com> <003c01cb58f1$a50ee310$ef2ca930$@com> Message-ID: <2488A25297474ADD848FF197AC327E6B@XPS> Robert, I've used Move It Freely from the same folks for a number of years and never had a problem with it, so I've never had the occasion to call them. What is it specifically that your looking for on the command line? And why the multi-threading? Do you really have that much to transfer? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Monday, September 20, 2010 2:29 PM To: 'Access Developers discussion and problem solving' Cc: robert at servicexp.com Subject: Re: [AccessD] OT: (kinda) FTP Question. Heeeeelp Thanks guys for the suggestions. I have confirmed with them that you cannot upload a file/folder via command line. On that same note, I *** THINK **** I may have found a program that offers both, but their customer service is terrible / (would not answer a simple question - I have to find out for myself or purchase the program (NO pre sales ANYTHING support)). I know right, scary... WS_FTP Pro 12.2 I will be evaluating it over the next couple of days... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 20, 2010 12:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: (kinda) FTP Question. Heeeeelp I too use 3D-FTP, probably at the recommendation of Gustav, long ago. Love the program. I don't actually automate it though. John W. Colby www.ColbyConsulting.com On 9/20/2010 2:17 AM, Gustav Brock wrote: > Hi Robert > > We used 3D-FTP for this - not by command line though but as a COM object and the API - for an app uploading thousands of pictures per batch to a web site. It ran at an amazing speed compared to the Windows FTP command line alternative with no errors for years until the client ceased business: > > http://www.3dftp.com/3dftp.htm > > However, when I look at the site now, everything about the API seems to have vanished after version 7. They are at version 9 now. We used version 4.01 and I still use it as a normal FTP client. You may address them about the API or how to obtain a version 7 should you wish to follow the COM route. > > /gustav > > >>>> robert at servicexp.com 20-09-2010 05:05>>> > Considering the fact that this is the most talent group professional that I > know of, I have yet another Command Line question. I have searched high and > low, and can't seem to find a solution. > > Does anyone know of a good Multi-thread upload FTP client, that also has a > solid Command Line interface: > > Stuart helped me work out the main section of my "project", and I really > thought this was going to be the easy part.. > > After I have the split zip in a folder, I need to be able to send the folder > using the same bat file via a multi-threaded upload. > > I can find great Multi-threaded FTP clients, but they have terrible Command > Line support, OR I can find a great Command Line FTP Client but it doesn't > have Multi- threaded uploading... > > I have looked at: > > CuteFTP > SmartFTP > Filezilla > FTPRush > > > FlashFXP > > ... HELP..... > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Mon Sep 20 15:54:12 2010 From: robert at servicexp.com (Robert) Date: Mon, 20 Sep 2010 16:54:12 -0400 Subject: [AccessD] OT: (kinda) FTP Question. Heeeeelp In-Reply-To: <2488A25297474ADD848FF197AC327E6B@XPS> References: <4C979297.1040404@colbyconsulting.com> <003c01cb58f1$a50ee310$ef2ca930$@com> <2488A25297474ADD848FF197AC327E6B@XPS> Message-ID: <000701cb5905$fbca9fa0$f35fdee0$@com> Jim, I'm looking to upload a split zip folder via command line (bat file) (all other functions (zip, slit, move, and rename) are command line based). Some of these files can be several gigs large, so there is a tremendous need for multiple transfer threads... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 20, 2010 4:42 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: (kinda) FTP Question. Heeeeelp Robert, I've used Move It Freely from the same folks for a number of years and never had a problem with it, so I've never had the occasion to call them. What is it specifically that your looking for on the command line? And why the multi-threading? Do you really have that much to transfer? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Monday, September 20, 2010 2:29 PM To: 'Access Developers discussion and problem solving' Cc: robert at servicexp.com Subject: Re: [AccessD] OT: (kinda) FTP Question. Heeeeelp Thanks guys for the suggestions. I have confirmed with them that you cannot upload a file/folder via command line. On that same note, I *** THINK **** I may have found a program that offers both, but their customer service is terrible / (would not answer a simple question - I have to find out for myself or purchase the program (NO pre sales ANYTHING support)). I know right, scary... WS_FTP Pro 12.2 I will be evaluating it over the next couple of days... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 20, 2010 12:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: (kinda) FTP Question. Heeeeelp I too use 3D-FTP, probably at the recommendation of Gustav, long ago. Love the program. I don't actually automate it though. John W. Colby www.ColbyConsulting.com On 9/20/2010 2:17 AM, Gustav Brock wrote: > Hi Robert > > We used 3D-FTP for this - not by command line though but as a COM object and the API - for an app uploading thousands of pictures per batch to a web site. It ran at an amazing speed compared to the Windows FTP command line alternative with no errors for years until the client ceased business: > > http://www.3dftp.com/3dftp.htm > > However, when I look at the site now, everything about the API seems to have vanished after version 7. They are at version 9 now. We used version 4.01 and I still use it as a normal FTP client. You may address them about the API or how to obtain a version 7 should you wish to follow the COM route. > > /gustav > > >>>> robert at servicexp.com 20-09-2010 05:05>>> > Considering the fact that this is the most talent group professional that I > know of, I have yet another Command Line question. I have searched high and > low, and can't seem to find a solution. > > Does anyone know of a good Multi-thread upload FTP client, that also has a > solid Command Line interface: > > Stuart helped me work out the main section of my "project", and I really > thought this was going to be the easy part.. > > After I have the split zip in a folder, I need to be able to send the folder > using the same bat file via a multi-threaded upload. > > I can find great Multi-threaded FTP clients, but they have terrible Command > Line support, OR I can find a great Command Line FTP Client but it doesn't > have Multi- threaded uploading... > > I have looked at: > > CuteFTP > SmartFTP > Filezilla > FTPRush > > > FlashFXP > > ... HELP..... > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Sep 20 17:27:08 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 21 Sep 2010 08:27:08 +1000 Subject: [AccessD] OT: (kinda) FTP Question. Heeeeelp In-Reply-To: <000701cb5905$fbca9fa0$f35fdee0$@com> References: , <2488A25297474ADD848FF197AC327E6B@XPS>, <000701cb5905$fbca9fa0$f35fdee0$@com> Message-ID: <4C97DFBC.31261.1B583976@stuart.lexacorp.com.pg> But do they need to be in the same application or can you just run multiple instances of an FTP application. Since you are doing it all with batch files, why not just run multiple instances of the built in Windows CLI FTP client. Assuming your "chunked" files are myfile.z01,myfile.z02.... In your main Batch file , START the UPLOAD.BAT file below once for each "chunked" file : ... FOR %f IN (*.z??) DO START UPLOAD %f ... Now for the file UPLOAD.BAT: @echo off REM UPLOAD.BAT echo user MyUserName> %1.DAT echo MyPassword>> %1.DAT echo bin>> %1.DAT echo put %1>> %1.DAT echo quit>> %1.DAT ftp -n -s:%1.DAT SERVERNAME.COM del %1.DAT UPLOAD.BAT will: 1. create a command file myfile.z0x.DAT which contains the necessary FTP commands 2. Create an FTP instance and upload myfile.z0x based on the command file. 3. Delete the command file. Because you are calling it with START, you will have multiple instances of it running asynchronously. -- Stuart On 20 Sep 2010 at 16:54, Robert wrote: > Jim, > I'm looking to upload a split zip folder via command line (bat file) > (all > other functions (zip, slit, move, and rename) are command line based). > Some of these files can be several gigs large, so there is a > tremendous need for multiple transfer threads... > > WBR > Robert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Monday, September 20, 2010 4:42 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] OT: (kinda) FTP > Question. Heeeeelp > > Robert, > > I've used Move It Freely from the same folks for a number of years > and > never had a problem with it, so I've never had the occasion to call > them. > > What is it specifically that your looking for on the command line? > And > why the multi-threading? Do you really have that much to transfer? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, September 20, 2010 2:29 PM To: 'Access Developers > discussion and problem solving' Cc: robert at servicexp.com Subject: Re: > [AccessD] OT: (kinda) FTP Question. Heeeeelp > > Thanks guys for the suggestions. I have confirmed with them that you > cannot upload a file/folder via command line. > > On that same note, I *** THINK **** I may have found a program that > offers both, but their customer service is terrible / (would not > answer a simple question - I have to find out for myself or purchase > the program (NO pre sales ANYTHING support)). I know right, scary... > > > WS_FTP Pro 12.2 > > I will be evaluating it over the next couple of days... > > WBR > Robert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, September 20, 2010 12:58 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] OT: (kinda) FTP > Question. Heeeeelp > > I too use 3D-FTP, probably at the recommendation of Gustav, long ago. > Love the program. > > I don't actually automate it though. > > John W. Colby > www.ColbyConsulting.com > > On 9/20/2010 2:17 AM, Gustav Brock wrote: > > Hi Robert > > > > We used 3D-FTP for this - not by command line though but as a COM > > object > and the API - for an app uploading thousands of pictures per batch to > a web site. It ran at an amazing speed compared to the Windows FTP > command line alternative with no errors for years until the client > ceased business: > > http://www.3dftp.com/3dftp.htm > > However, when > I look at the site now, everything about the API seems to have > vanished after version 7. They are at version 9 now. We used version > 4.01 and I still use it as a normal FTP client. You may address them > about the API or how to obtain a version 7 should you wish to follow > the COM route. > > /gustav > > >>>> robert at servicexp.com 20-09-2010 > 05:05>>> > Considering the fact that this is the most talent group > professional that I > know of, I have yet another Command Line > question. I have searched high and > low, and can't seem to find a > solution. > > Does anyone know of a good Multi-thread upload FTP > client, that also has a > solid Command Line interface: > > Stuart > helped me work out the main section of my "project", and I really > > thought this was going to be the easy part.. > > After I have the > split zip in a folder, I need to be able to send the folder > using > the same bat file via a multi-threaded upload. > > I can find great > Multi-threaded FTP clients, but they have terrible Command > Line > support, OR I can find a great Command Line FTP Client but it doesn't > > have Multi- threaded uploading... > > I have looked at: > > CuteFTP > > SmartFTP > Filezilla > FTPRush > > > FlashFXP > > ... HELP..... > > > -- AccessD mailing list AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd Website: > http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Sep 20 18:47:54 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 20 Sep 2010 19:47:54 -0400 Subject: [AccessD] Importing everything and then there are groups Message-ID: <4C97F2AA.70803@colbyconsulting.com> I had occasion to rebuild an FE. When I was done the groups didn't come in. Does anyone know where that info is stored? -- John W. Colby www.ColbyConsulting.com From Darryl.Collins at iag.com.au Mon Sep 20 19:12:17 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 21 Sep 2010 10:12:17 +1000 Subject: [AccessD] Link to spreadsheet In-Reply-To: <0B2BF8524B73A248A2F1B81BA751ED3C1925F48E92@houex1.kindermorgan.com> Message-ID: <201009210012.o8L0CCO7025797@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Chester, Maybe obvious, but the first thing I would check is that the path and file name is 100% correct. If you are on a LAN I would recommend you change the drive to a URL name rather than a drive letter. You can use a function to test if the file exists first before attempting to open if. If the function below returns true the file exists. I would suggest you test for the file first. If the function passes you can then start checking other options for the failure. varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" If CheckFileOrDirExists(varFileName) = True Then wb.open blah blah.. End If '=========================================================== Function CheckFileOrDirExists(PathName As String) As Boolean 'Macro Purpose: Function returns TRUE if the specified file ' or folder exists, false if not. 'PathName : Supports Windows mapped drives or UNC ' : Supports Macintosh paths 'File usage : Provide full file path and extension 'Folder usage : Provide full folder path ' Accepts with/without trailing "\" (Windows) ' Accepts with/without trailing ":" (Macintosh) Dim iTemp As Integer 'Ignore errors to allow for error evaluation On Error Resume Next iTemp = GetAttr(PathName) 'Check if error exists and set response appropriately Select Case Err.Number Case Is = 0 CheckFileOrDirExists = True Case Else CheckFileOrDirExists = False End Select 'Resume error checking On Error GoTo 0 End Function '=============================================================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 5:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Link to spreadsheet I am using the following code in an attempt to link to a password protected spreadsheet. I am running it from a terminal server instance of Access 2007 if that matters. I get the following error message. Could it have anything to do with the spreadsheet asking if I want to enable macros when I open it manually? The file '-1' does not exist Here is the code: Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim varFileName As Variant Dim strPassword As String Dim db As Database Dim oExcel As Object, oWb As Object Set oExcel = CreateObject("Excel.Application") DoCmd.SetWarnings False Set db = CurrentDb() strPassword = "rig" varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" Set oWb = oExcel.Workbooks.Open(FileName:=varFileName, ReadOnly:=True,_ Password:=strPassword, UpdateLinks:=0, IgnoreReadOnlyRecommended:=True) DoCmd.TransferSpreadsheet acLink, 8, varFileName, True oWb.Close SaveChanges:=False DoCmd.SetWarnings True LinkSpreadsheet_Exit: oExcel.Quit Set oExcel = Nothing Exit Sub LinkSpreadsheet_Err: MsgBox Error$ Resume LinkSpreadsheet_Exit End Sub Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From Darryl.Collins at iag.com.au Mon Sep 20 19:24:33 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 21 Sep 2010 10:24:33 +1000 Subject: [AccessD] Link to spreadsheet In-Reply-To: <0B2BF8524B73A248A2F1B81BA751ED3C1925F48E92@houex1.kindermorgan.com> Message-ID: <201009210024.o8L0OSTZ014378@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ I would also change Dim varFileName As Variant to Dim strFileName as String Variant may also cause you problems as VBA will 'best guess' what it should be. It can guess wrong. Regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 5:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Link to spreadsheet I am using the following code in an attempt to link to a password protected spreadsheet. I am running it from a terminal server instance of Access 2007 if that matters. I get the following error message. Could it have anything to do with the spreadsheet asking if I want to enable macros when I open it manually? The file '-1' does not exist Here is the code: Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim varFileName As Variant Dim strPassword As String Dim db As Database Dim oExcel As Object, oWb As Object Set oExcel = CreateObject("Excel.Application") DoCmd.SetWarnings False Set db = CurrentDb() strPassword = "rig" varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" Set oWb = oExcel.Workbooks.Open(FileName:=varFileName, ReadOnly:=True,_ Password:=strPassword, UpdateLinks:=0, IgnoreReadOnlyRecommended:=True) DoCmd.TransferSpreadsheet acLink, 8, varFileName, True oWb.Close SaveChanges:=False DoCmd.SetWarnings True LinkSpreadsheet_Exit: oExcel.Quit Set oExcel = Nothing Exit Sub LinkSpreadsheet_Err: MsgBox Error$ Resume LinkSpreadsheet_Exit End Sub Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From Gustav at cactus.dk Tue Sep 21 01:16:26 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Sep 2010 08:16:26 +0200 Subject: [AccessD] OT: (kinda) FTP Question. Heeeeelp Message-ID: Hi Robert In my experience multithreading is only of major value for transferring bunches of small files where you for each file have a lot of housekeeping not eating bandwidth. For large files, indeed GB-sized, this housekeeping is not significant and the transfer itself will consume all bandwidth available. /gustav >>> robert at servicexp.com 20-09-2010 22:54 >>> Jim, I'm looking to upload a split zip folder via command line (bat file) (all other functions (zip, slit, move, and rename) are command line based). Some of these files can be several gigs large, so there is a tremendous need for multiple transfer threads... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 20, 2010 4:42 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: (kinda) FTP Question. Heeeeelp Robert, I've used Move It Freely from the same folks for a number of years and never had a problem with it, so I've never had the occasion to call them. What is it specifically that your looking for on the command line? And why the multi-threading? Do you really have that much to transfer? Jim. From Chester_Kaup at kindermorgan.com Tue Sep 21 08:55:15 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 21 Sep 2010 08:55:15 -0500 Subject: [AccessD] Link to spreadsheet In-Reply-To: <201009210012.o8L0CCO7025797@databaseadvisors.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C1925F48E92@houex1.kindermorgan.com> <201009210012.o8L0CCO7025797@databaseadvisors.com> Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C1925F48F7F@houex1.kindermorgan.com> Code shows that the file exists. Changing dim on varFileName to String made no difference. Still getting the error The file '-1' does not exist -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, September 20, 2010 7:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Chester, Maybe obvious, but the first thing I would check is that the path and file name is 100% correct. If you are on a LAN I would recommend you change the drive to a URL name rather than a drive letter. You can use a function to test if the file exists first before attempting to open if. If the function below returns true the file exists. I would suggest you test for the file first. If the function passes you can then start checking other options for the failure. varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" If CheckFileOrDirExists(varFileName) = True Then wb.open blah blah.. End If '=========================================================== Function CheckFileOrDirExists(PathName As String) As Boolean 'Macro Purpose: Function returns TRUE if the specified file ' or folder exists, false if not. 'PathName : Supports Windows mapped drives or UNC ' : Supports Macintosh paths 'File usage : Provide full file path and extension 'Folder usage : Provide full folder path ' Accepts with/without trailing "\" (Windows) ' Accepts with/without trailing ":" (Macintosh) Dim iTemp As Integer 'Ignore errors to allow for error evaluation On Error Resume Next iTemp = GetAttr(PathName) 'Check if error exists and set response appropriately Select Case Err.Number Case Is = 0 CheckFileOrDirExists = True Case Else CheckFileOrDirExists = False End Select 'Resume error checking On Error GoTo 0 End Function '=============================================================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 5:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Link to spreadsheet I am using the following code in an attempt to link to a password protected spreadsheet. I am running it from a terminal server instance of Access 2007 if that matters. I get the following error message. Could it have anything to do with the spreadsheet asking if I want to enable macros when I open it manually? The file '-1' does not exist Here is the code: Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim varFileName As Variant Dim strPassword As String Dim db As Database Dim oExcel As Object, oWb As Object Set oExcel = CreateObject("Excel.Application") DoCmd.SetWarnings False Set db = CurrentDb() strPassword = "rig" varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" Set oWb = oExcel.Workbooks.Open(FileName:=varFileName, ReadOnly:=True,_ Password:=strPassword, UpdateLinks:=0, IgnoreReadOnlyRecommended:=True) DoCmd.TransferSpreadsheet acLink, 8, varFileName, True oWb.Close SaveChanges:=False DoCmd.SetWarnings True LinkSpreadsheet_Exit: oExcel.Quit Set oExcel = Nothing Exit Sub LinkSpreadsheet_Err: MsgBox Error$ Resume LinkSpreadsheet_Exit End Sub Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ab-mi at post3.tele.dk Tue Sep 21 10:02:09 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Tue, 21 Sep 2010 17:02:09 +0200 Subject: [AccessD] Link to spreadsheet In-Reply-To: <0B2BF8524B73A248A2F1B81BA751ED3C1925F48F7F@houex1.kindermorgan.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C1925F48E92@houex1.kindermorgan.com><201009210012.o8L0CCO7025797@databaseadvisors.com> <0B2BF8524B73A248A2F1B81BA751ED3C1925F48F7F@houex1.kindermorgan.com> Message-ID: <291AFFE3451E4F9EAE97166A724653DC@abpc> Chester, > DoCmd.TransferSpreadsheet acLink, 8, varFileName, True Parameter 4 is supposed to be the filename. So setting this to True obviously give the mentioned error (-1 = True). Parameter 3 is supposed to be the name of the linked table, which in your case might be "Link to Rig Schedule" So the right syntax should be: DoCmd.TransferSpreadsheet acLink, 8, "Link to Rig Schedule", varFileName, True But if your Excel file is password-protected then this code will produce another error telling that the file couldn't be decrypted. As I read your code you are trying to solve this protection issue by opening the file via automation supplying the password. Problem is that this won't do any good to the DoCmd.TransferSpreadsheet because the TransferSpreadsheet method doesn't use the instance of the file you have just opened via automation. I don't think you can use DoCmd.TransferSpreadsheet at all create a link to a password protected Excel file. Maybe you could make the link by creating a new TableDef from your oWb and then appending it to the database's TableDefs collection. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kaup, Chester Sendt: 21. september 2010 15:55 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Link to spreadsheet Code shows that the file exists. Changing dim on varFileName to String made no difference. Still getting the error The file '-1' does not exist -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, September 20, 2010 7:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Chester, Maybe obvious, but the first thing I would check is that the path and file name is 100% correct. If you are on a LAN I would recommend you change the drive to a URL name rather than a drive letter. You can use a function to test if the file exists first before attempting to open if. If the function below returns true the file exists. I would suggest you test for the file first. If the function passes you can then start checking other options for the failure. varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" If CheckFileOrDirExists(varFileName) = True Then wb.open blah blah.. End If '=========================================================== Function CheckFileOrDirExists(PathName As String) As Boolean 'Macro Purpose: Function returns TRUE if the specified file ' or folder exists, false if not. 'PathName : Supports Windows mapped drives or UNC ' : Supports Macintosh paths 'File usage : Provide full file path and extension 'Folder usage : Provide full folder path ' Accepts with/without trailing "\" (Windows) ' Accepts with/without trailing ":" (Macintosh) Dim iTemp As Integer 'Ignore errors to allow for error evaluation On Error Resume Next iTemp = GetAttr(PathName) 'Check if error exists and set response appropriately Select Case Err.Number Case Is = 0 CheckFileOrDirExists = True Case Else CheckFileOrDirExists = False End Select 'Resume error checking On Error GoTo 0 End Function '=============================================================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 5:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Link to spreadsheet I am using the following code in an attempt to link to a password protected spreadsheet. I am running it from a terminal server instance of Access 2007 if that matters. I get the following error message. Could it have anything to do with the spreadsheet asking if I want to enable macros when I open it manually? The file '-1' does not exist Here is the code: Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim varFileName As Variant Dim strPassword As String Dim db As Database Dim oExcel As Object, oWb As Object Set oExcel = CreateObject("Excel.Application") DoCmd.SetWarnings False Set db = CurrentDb() strPassword = "rig" varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" Set oWb = oExcel.Workbooks.Open(FileName:=varFileName, ReadOnly:=True,_ Password:=strPassword, UpdateLinks:=0, IgnoreReadOnlyRecommended:=True) DoCmd.TransferSpreadsheet acLink, 8, varFileName, True oWb.Close SaveChanges:=False DoCmd.SetWarnings True LinkSpreadsheet_Exit: oExcel.Quit Set oExcel = Nothing Exit Sub LinkSpreadsheet_Err: MsgBox Error$ Resume LinkSpreadsheet_Exit End Sub Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Tue Sep 21 10:22:17 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 21 Sep 2010 10:22:17 -0500 Subject: [AccessD] Link to spreadsheet In-Reply-To: <291AFFE3451E4F9EAE97166A724653DC@abpc> References: <0B2BF8524B73A248A2F1B81BA751ED3C1925F48E92@houex1.kindermorgan.com><201009210012.o8L0CCO7025797@databaseadvisors.com> <0B2BF8524B73A248A2F1B81BA751ED3C1925F48F7F@houex1.kindermorgan.com> <291AFFE3451E4F9EAE97166A724653DC@abpc> Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C1925F48FB1@houex1.kindermorgan.com> Thanks for the good explanation. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Tuesday, September 21, 2010 10:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Link to spreadsheet Chester, > DoCmd.TransferSpreadsheet acLink, 8, varFileName, True Parameter 4 is supposed to be the filename. So setting this to True obviously give the mentioned error (-1 = True). Parameter 3 is supposed to be the name of the linked table, which in your case might be "Link to Rig Schedule" So the right syntax should be: DoCmd.TransferSpreadsheet acLink, 8, "Link to Rig Schedule", varFileName, True But if your Excel file is password-protected then this code will produce another error telling that the file couldn't be decrypted. As I read your code you are trying to solve this protection issue by opening the file via automation supplying the password. Problem is that this won't do any good to the DoCmd.TransferSpreadsheet because the TransferSpreadsheet method doesn't use the instance of the file you have just opened via automation. I don't think you can use DoCmd.TransferSpreadsheet at all create a link to a password protected Excel file. Maybe you could make the link by creating a new TableDef from your oWb and then appending it to the database's TableDefs collection. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kaup, Chester Sendt: 21. september 2010 15:55 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Link to spreadsheet Code shows that the file exists. Changing dim on varFileName to String made no difference. Still getting the error The file '-1' does not exist -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, September 20, 2010 7:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Chester, Maybe obvious, but the first thing I would check is that the path and file name is 100% correct. If you are on a LAN I would recommend you change the drive to a URL name rather than a drive letter. You can use a function to test if the file exists first before attempting to open if. If the function below returns true the file exists. I would suggest you test for the file first. If the function passes you can then start checking other options for the failure. varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" If CheckFileOrDirExists(varFileName) = True Then wb.open blah blah.. End If '=========================================================== Function CheckFileOrDirExists(PathName As String) As Boolean 'Macro Purpose: Function returns TRUE if the specified file ' or folder exists, false if not. 'PathName : Supports Windows mapped drives or UNC ' : Supports Macintosh paths 'File usage : Provide full file path and extension 'Folder usage : Provide full folder path ' Accepts with/without trailing "\" (Windows) ' Accepts with/without trailing ":" (Macintosh) Dim iTemp As Integer 'Ignore errors to allow for error evaluation On Error Resume Next iTemp = GetAttr(PathName) 'Check if error exists and set response appropriately Select Case Err.Number Case Is = 0 CheckFileOrDirExists = True Case Else CheckFileOrDirExists = False End Select 'Resume error checking On Error GoTo 0 End Function '=============================================================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 5:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Link to spreadsheet I am using the following code in an attempt to link to a password protected spreadsheet. I am running it from a terminal server instance of Access 2007 if that matters. I get the following error message. Could it have anything to do with the spreadsheet asking if I want to enable macros when I open it manually? The file '-1' does not exist Here is the code: Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim varFileName As Variant Dim strPassword As String Dim db As Database Dim oExcel As Object, oWb As Object Set oExcel = CreateObject("Excel.Application") DoCmd.SetWarnings False Set db = CurrentDb() strPassword = "rig" varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" Set oWb = oExcel.Workbooks.Open(FileName:=varFileName, ReadOnly:=True,_ Password:=strPassword, UpdateLinks:=0, IgnoreReadOnlyRecommended:=True) DoCmd.TransferSpreadsheet acLink, 8, varFileName, True oWb.Close SaveChanges:=False DoCmd.SetWarnings True LinkSpreadsheet_Exit: oExcel.Quit Set oExcel = Nothing Exit Sub LinkSpreadsheet_Err: MsgBox Error$ Resume LinkSpreadsheet_Exit End Sub Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Tue Sep 21 13:36:48 2010 From: edzedz at comcast.net (Edward Zuris) Date: Tue, 21 Sep 2010 12:36:48 -0600 Subject: [AccessD] Differentiating between different data groups within a sub-form Message-ID: <000d01cb59bb$f3b71710$5bdea8c0@edz1> Here is an interesting problem. How do you differentiate between different data groups within an MsAccews sub-form ? I would like to have sub-form which contains many room numbers. Some are the same room number over and over while there will be other different room numbers. The room numbers are sorted in ascending order. There will be a clump of 101's, followed by maybe a 102, followed by a group of 103's, etc., etc. I would like to draw a line between each clump, or change the background color for each clump. Or any thing else - that would make it easer to see where one clump of room numbers change over to another clump of room numbers. Any ideas on how to do this ? Thanks. Sincerely, Edward Zuris edzedz at comcast.net From stuart at lexacorp.com.pg Tue Sep 21 15:44:58 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 22 Sep 2010 06:44:58 +1000 Subject: [AccessD] Differentiating between different data groups within a sub-form In-Reply-To: <000d01cb59bb$f3b71710$5bdea8c0@edz1> References: <000d01cb59bb$f3b71710$5bdea8c0@edz1> Message-ID: <4C99194A.20849.20210BBB@stuart.lexacorp.com.pg> If the room numbers are consecutive, you could do it with conditional formatting. Set the background colour based on the condition RoomNum = Int([RoomNum]/2)*2 That way, you will colour odd and even numbered rooms differently, Of course if rooms are missing and you get consecutive odd or even rooms, this won't give you a visual break. On 21 Sep 2010 at 12:36, Edward Zuris wrote: > > Here is an interesting problem. > > How do you differentiate between different data > groups within an MsAccews sub-form ? > > I would like to have sub-form which contains many > room numbers. Some are the same room number over > and over while there will be other different room > numbers. The room numbers are sorted in ascending > order. > > There will be a clump of 101's, followed by maybe > a 102, followed by a group of 103's, etc., etc. > > I would like to draw a line between each clump, or > change the background color for each clump. > > Or any thing else - that would make it easer to > see where one clump of room numbers change over > to another clump of room numbers. > > Any ideas on how to do this ? > > Thanks. > > Sincerely, > Edward Zuris > edzedz at comcast.net > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Darryl.Collins at iag.com.au Tue Sep 21 18:35:50 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Wed, 22 Sep 2010 09:35:50 +1000 Subject: [AccessD] Link to spreadsheet In-Reply-To: <0B2BF8524B73A248A2F1B81BA751ED3C1925F48F7F@houex1.kindermorgan.com> Message-ID: <201009212335.o8LNZk2T011390@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Thanks for checking that, one issue out of the way. Next suspicion (as has been discussed) would be transfer spreadsheet method. I move data between Excel and Access a lot and never use transferspreadsheet, I don't like using this at all. You might be better off using other ways. Some of them are slower, but much more reliable. In my experience transfer spreadsheet can be problematic and frankly, not to be trusted. have a look here, it might help <> this is probably even closer to what you need <> Regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 11:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet Code shows that the file exists. Changing dim on varFileName to String made no difference. Still getting the error The file '-1' does not exist -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, September 20, 2010 7:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Chester, Maybe obvious, but the first thing I would check is that the path and file name is 100% correct. If you are on a LAN I would recommend you change the drive to a URL name rather than a drive letter. You can use a function to test if the file exists first before attempting to open if. If the function below returns true the file exists. I would suggest you test for the file first. If the function passes you can then start checking other options for the failure. varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" If CheckFileOrDirExists(varFileName) = True Then wb.open blah blah.. End If '=========================================================== Function CheckFileOrDirExists(PathName As String) As Boolean 'Macro Purpose: Function returns TRUE if the specified file ' or folder exists, false if not. 'PathName : Supports Windows mapped drives or UNC ' : Supports Macintosh paths 'File usage : Provide full file path and extension 'Folder usage : Provide full folder path ' Accepts with/without trailing "\" (Windows) ' Accepts with/without trailing ":" (Macintosh) Dim iTemp As Integer 'Ignore errors to allow for error evaluation On Error Resume Next iTemp = GetAttr(PathName) 'Check if error exists and set response appropriately Select Case Err.Number Case Is = 0 CheckFileOrDirExists = True Case Else CheckFileOrDirExists = False End Select 'Resume error checking On Error GoTo 0 End Function '=============================================================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 5:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Link to spreadsheet I am using the following code in an attempt to link to a password protected spreadsheet. I am running it from a terminal server instance of Access 2007 if that matters. I get the following error message. Could it have anything to do with the spreadsheet asking if I want to enable macros when I open it manually? The file '-1' does not exist Here is the code: Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim varFileName As Variant Dim strPassword As String Dim db As Database Dim oExcel As Object, oWb As Object Set oExcel = CreateObject("Excel.Application") DoCmd.SetWarnings False Set db = CurrentDb() strPassword = "rig" varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" Set oWb = oExcel.Workbooks.Open(FileName:=varFileName, ReadOnly:=True,_ Password:=strPassword, UpdateLinks:=0, IgnoreReadOnlyRecommended:=True) DoCmd.TransferSpreadsheet acLink, 8, varFileName, True oWb.Close SaveChanges:=False DoCmd.SetWarnings True LinkSpreadsheet_Exit: oExcel.Quit Set oExcel = Nothing Exit Sub LinkSpreadsheet_Err: MsgBox Error$ Resume LinkSpreadsheet_Exit End Sub Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From ab-mi at post3.tele.dk Tue Sep 21 19:16:43 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Wed, 22 Sep 2010 02:16:43 +0200 Subject: [AccessD] Link to spreadsheet In-Reply-To: <201009212335.o8LNZk2T011390@databaseadvisors.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C1925F48F7F@houex1.kindermorgan.com> <201009212335.o8LNZk2T011390@databaseadvisors.com> Message-ID: <5F04F61C3DAB4A5ABC88FF2C3196E0B1@abpc> Darryl, Don't see how this would solve Chester's problem. Please supply code example linking an Excel file which is password protected. That's the question (dead-or-alive) IMO. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Darryl Collins Sendt: 22. september 2010 01:36 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Thanks for checking that, one issue out of the way. Next suspicion (as has been discussed) would be transfer spreadsheet method. I move data between Excel and Access a lot and never use transferspreadsheet, I don't like using this at all. You might be better off using other ways. Some of them are slower, but much more reliable. In my experience transfer spreadsheet can be problematic and frankly, not to be trusted. have a look here, it might help <> this is probably even closer to what you need <> Regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 11:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet Code shows that the file exists. Changing dim on varFileName to String made no difference. Still getting the error The file '-1' does not exist -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, September 20, 2010 7:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Chester, Maybe obvious, but the first thing I would check is that the path and file name is 100% correct. If you are on a LAN I would recommend you change the drive to a URL name rather than a drive letter. You can use a function to test if the file exists first before attempting to open if. If the function below returns true the file exists. I would suggest you test for the file first. If the function passes you can then start checking other options for the failure. varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" If CheckFileOrDirExists(varFileName) = True Then wb.open blah blah.. End If '=========================================================== Function CheckFileOrDirExists(PathName As String) As Boolean 'Macro Purpose: Function returns TRUE if the specified file ' or folder exists, false if not. 'PathName : Supports Windows mapped drives or UNC ' : Supports Macintosh paths 'File usage : Provide full file path and extension 'Folder usage : Provide full folder path ' Accepts with/without trailing "\" (Windows) ' Accepts with/without trailing ":" (Macintosh) Dim iTemp As Integer 'Ignore errors to allow for error evaluation On Error Resume Next iTemp = GetAttr(PathName) 'Check if error exists and set response appropriately Select Case Err.Number Case Is = 0 CheckFileOrDirExists = True Case Else CheckFileOrDirExists = False End Select 'Resume error checking On Error GoTo 0 End Function '=============================================================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 5:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Link to spreadsheet I am using the following code in an attempt to link to a password protected spreadsheet. I am running it from a terminal server instance of Access 2007 if that matters. I get the following error message. Could it have anything to do with the spreadsheet asking if I want to enable macros when I open it manually? The file '-1' does not exist Here is the code: Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim varFileName As Variant Dim strPassword As String Dim db As Database Dim oExcel As Object, oWb As Object Set oExcel = CreateObject("Excel.Application") DoCmd.SetWarnings False Set db = CurrentDb() strPassword = "rig" varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" Set oWb = oExcel.Workbooks.Open(FileName:=varFileName, ReadOnly:=True,_ Password:=strPassword, UpdateLinks:=0, IgnoreReadOnlyRecommended:=True) DoCmd.TransferSpreadsheet acLink, 8, varFileName, True oWb.Close SaveChanges:=False DoCmd.SetWarnings True LinkSpreadsheet_Exit: oExcel.Quit Set oExcel = Nothing Exit Sub LinkSpreadsheet_Err: MsgBox Error$ Resume LinkSpreadsheet_Exit End Sub Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Sep 21 23:28:33 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Sep 2010 00:28:33 -0400 Subject: [AccessD] You'll love this! Message-ID: <4C9985F1.2010705@colbyconsulting.com> My client asked me to sum (give him a count of) the records in zips where the count in each zip is > 20. No problem, do a count group by zip, where the count > 20. This gives me a list of such zip codes. Then build a sum on that base query. No comes the not so cool part. I will have to select my records only from zips where the count of records in a zip is >=20. This may be easy, join the base query back to the table and update a field to a code, then select from the table where that code is set. My fear is that the join will make the view non-updateable. Which will leave me using a cursor? We shall see. -- John W. Colby www.ColbyConsulting.com From edzedz at comcast.net Tue Sep 21 23:30:53 2010 From: edzedz at comcast.net (Edward Zuris) Date: Tue, 21 Sep 2010 22:30:53 -0600 Subject: [AccessD] Differentiating between different data groups withina sub-form In-Reply-To: <4C99194A.20849.20210BBB@stuart.lexacorp.com.pg> Message-ID: <001901cb5a0e$f1fc8010$5bdea8c0@edz1> Interesting. I can tell when the numbers change with some dummy data. Ones for the first group, two's for the second group, etc. How does conditional formatting work in an interactive sub-forms embedded in a form ? Thanks. . . . -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, September 21, 2010 2:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Differentiating between different data groups withina sub-form If the room numbers are consecutive, you could do it with conditional formatting. Set the background colour based on the condition RoomNum = Int([RoomNum]/2)*2 That way, you will colour odd and even numbered rooms differently, Of course if rooms are missing and you get consecutive odd or even rooms, this won't give you a visual break. On 21 Sep 2010 at 12:36, Edward Zuris wrote: > > Here is an interesting problem. > > How do you differentiate between different data > groups within an MsAccews sub-form ? > > I would like to have sub-form which contains many > room numbers. Some are the same room number over > and over while there will be other different room > numbers. The room numbers are sorted in ascending > order. > > There will be a clump of 101's, followed by maybe > a 102, followed by a group of 103's, etc., etc. > > I would like to draw a line between each clump, or > change the background color for each clump. > > Or any thing else - that would make it easer to > see where one clump of room numbers change over > to another clump of room numbers. > > Any ideas on how to do this ? > > Thanks. > > Sincerely, > Edward Zuris > edzedz at comcast.net > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Tue Sep 21 23:42:18 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Wed, 22 Sep 2010 14:42:18 +1000 Subject: [AccessD] Link to spreadsheet In-Reply-To: <5F04F61C3DAB4A5ABC88FF2C3196E0B1@abpc> Message-ID: <201009220442.o8M4gBKh032110@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ yeah, I think you are right. I did some tests pushing the password to the open command, doesn't seem to like it. :-/ I mean I can open the workbook fine using the password and do stuff like count how many sheets etc, but getting the data out via an ADO recordset is another matter. Don't have time to poke around more on this. The fact I can open it gives me hope there maybe a solution... Wish I had more time to explore options on this. Maybe tomorrow? cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Wednesday, 22 September 2010 10:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Link to spreadsheet Darryl, Don't see how this would solve Chester's problem. Please supply code example linking an Excel file which is password protected. That's the question (dead-or-alive) IMO. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Darryl Collins Sendt: 22. september 2010 01:36 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Thanks for checking that, one issue out of the way. Next suspicion (as has been discussed) would be transfer spreadsheet method. I move data between Excel and Access a lot and never use transferspreadsheet, I don't like using this at all. You might be better off using other ways. Some of them are slower, but much more reliable. In my experience transfer spreadsheet can be problematic and frankly, not to be trusted. have a look here, it might help <> this is probably even closer to what you need <> Regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 11:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet Code shows that the file exists. Changing dim on varFileName to String made no difference. Still getting the error The file '-1' does not exist -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, September 20, 2010 7:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Chester, Maybe obvious, but the first thing I would check is that the path and file name is 100% correct. If you are on a LAN I would recommend you change the drive to a URL name rather than a drive letter. You can use a function to test if the file exists first before attempting to open if. If the function below returns true the file exists. I would suggest you test for the file first. If the function passes you can then start checking other options for the failure. varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" If CheckFileOrDirExists(varFileName) = True Then wb.open blah blah.. End If '=========================================================== Function CheckFileOrDirExists(PathName As String) As Boolean 'Macro Purpose: Function returns TRUE if the specified file ' or folder exists, false if not. 'PathName : Supports Windows mapped drives or UNC ' : Supports Macintosh paths 'File usage : Provide full file path and extension 'Folder usage : Provide full folder path ' Accepts with/without trailing "\" (Windows) ' Accepts with/without trailing ":" (Macintosh) Dim iTemp As Integer 'Ignore errors to allow for error evaluation On Error Resume Next iTemp = GetAttr(PathName) 'Check if error exists and set response appropriately Select Case Err.Number Case Is = 0 CheckFileOrDirExists = True Case Else CheckFileOrDirExists = False End Select 'Resume error checking On Error GoTo 0 End Function '=============================================================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 5:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Link to spreadsheet I am using the following code in an attempt to link to a password protected spreadsheet. I am running it from a terminal server instance of Access 2007 if that matters. I get the following error message. Could it have anything to do with the spreadsheet asking if I want to enable macros when I open it manually? The file '-1' does not exist Here is the code: Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim varFileName As Variant Dim strPassword As String Dim db As Database Dim oExcel As Object, oWb As Object Set oExcel = CreateObject("Excel.Application") DoCmd.SetWarnings False Set db = CurrentDb() strPassword = "rig" varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" Set oWb = oExcel.Workbooks.Open(FileName:=varFileName, ReadOnly:=True,_ Password:=strPassword, UpdateLinks:=0, IgnoreReadOnlyRecommended:=True) DoCmd.TransferSpreadsheet acLink, 8, varFileName, True oWb.Close SaveChanges:=False DoCmd.SetWarnings True LinkSpreadsheet_Exit: oExcel.Quit Set oExcel = Nothing Exit Sub LinkSpreadsheet_Err: MsgBox Error$ Resume LinkSpreadsheet_Exit End Sub Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From adtp at airtelmail.in Wed Sep 22 00:08:36 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Wed, 22 Sep 2010 10:38:36 +0530 Subject: [AccessD] Resizing of forms to suit screen resolution in force References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005> <4C92283F.1010506@colbyconsulting.com> Message-ID: <274CF11D77114AB581A0B3C8E54EC044@personal4a8ede> The topic of automated resizing of forms so as to suit current screen resolution comes up from time to time. My sample db named Form_Resize (in Access 2002-2003 file format, reference: DAO 3.6), meant to cover this requirement, has been uploaded to Rogers Access Library. Link - http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=45 Apart from automatic resizing to suit current screen resolution, the sample offers custom resizing (up or down in steps of 5 percent) of any given form, if so desired by the user, with the option to freeze the custom size so that thereafter the form opens to custom size (over-riding the size dictated by actual resolution). At any stage the behavior can be reset to normal (i.e. automatic resizing to suit current resolution). Resizing is effected through a self contained class. Six styles of demo forms are included in the sample as follows: (a) Simple controls - all free to float and resize. (b) Simple controls - with certain controls having tag property settings for locking their position and / or size. (c) Combo box and list box. (d) Nested subforms - Continuous. (e) Nested subforms - Datasheet. (f) Tab control having (i) Nested subforms and (ii) Option group. Also - an option group directly on the form. I shall be thankful if interested members could kindly make it convenient to run the sample and confirm whether any aspects need further tweaking. Explanatory notes are provided in file Notes.htm accompanying the sample. Best wishes, A.D. Tejpal ------------ From rockysmolin at bchacc.com Wed Sep 22 00:32:22 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 21 Sep 2010 22:32:22 -0700 Subject: [AccessD] Resizing of forms to suit screen resolution in force In-Reply-To: <274CF11D77114AB581A0B3C8E54EC044@personal4a8ede> References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com> <274CF11D77114AB581A0B3C8E54EC044@personal4a8ede> Message-ID: <31A2A7B0F11E4267831256F840707491@HAL9005> A.D.: I have had a problem with 'jumping' screens - forms that seem to jump a millimeter or so when they open - or maybe flash and repaint. It only happens with mdes not mdbs, and I have always thought it had to do with the form resizing code I got from the ADH. Do you know about this and does your method eliminate this problem? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Tuesday, September 21, 2010 10:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resizing of forms to suit screen resolution in force The topic of automated resizing of forms so as to suit current screen resolution comes up from time to time. My sample db named Form_Resize (in Access 2002-2003 file format, reference: DAO 3.6), meant to cover this requirement, has been uploaded to Rogers Access Library. Link - http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=45 Apart from automatic resizing to suit current screen resolution, the sample offers custom resizing (up or down in steps of 5 percent) of any given form, if so desired by the user, with the option to freeze the custom size so that thereafter the form opens to custom size (over-riding the size dictated by actual resolution). At any stage the behavior can be reset to normal (i.e. automatic resizing to suit current resolution). Resizing is effected through a self contained class. Six styles of demo forms are included in the sample as follows: (a) Simple controls - all free to float and resize. (b) Simple controls - with certain controls having tag property settings for locking their position and / or size. (c) Combo box and list box. (d) Nested subforms - Continuous. (e) Nested subforms - Datasheet. (f) Tab control having (i) Nested subforms and (ii) Option group. Also - an option group directly on the form. I shall be thankful if interested members could kindly make it convenient to run the sample and confirm whether any aspects need further tweaking. Explanatory notes are provided in file Notes.htm accompanying the sample. Best wishes, A.D. Tejpal ------------ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Wed Sep 22 02:44:08 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Wed, 22 Sep 2010 13:14:08 +0530 Subject: [AccessD] Resizing of forms to suit screen resolution in force References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede> <31A2A7B0F11E4267831256F840707491@HAL9005> Message-ID: <369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede> Rocky, Could you kindly open my sample db, click on various command buttons on switchboard form so as to open the demo forms one by one and advise whether the behavior is found OK ? You can also test the custom resize feature by dbl clicking a demo form's blank area. It should take only a few minutes. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Rocky Smolin To: 'Access Developers discussion and problem solving' Sent: Wednesday, September 22, 2010 11:02 Subject: Re: [AccessD] Resizing of forms to suit screen resolution in force A.D.: I have had a problem with 'jumping' screens - forms that seem to jump a millimeter or so when they open - or maybe flash and repaint. It only happens with mdes not mdbs, and I have always thought it had to do with the form resizing code I got from the ADH. Do you know about this and does your method eliminate this problem? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Tuesday, September 21, 2010 10:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resizing of forms to suit screen resolution in force The topic of automated resizing of forms so as to suit current screen resolution comes up from time to time. My sample db named Form_Resize (in Access 2002-2003 file format, reference: DAO 3.6), meant to cover this requirement, has been uploaded to Rogers Access Library. Link - http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=45 Apart from automatic resizing to suit current screen resolution, the sample offers custom resizing (up or down in steps of 5 percent) of any given form, if so desired by the user, with the option to freeze the custom size so that thereafter the form opens to custom size (over-riding the size dictated by actual resolution). At any stage the behavior can be reset to normal (i.e. automatic resizing to suit current resolution). Resizing is effected through a self contained class. Six styles of demo forms are included in the sample as follows: (a) Simple controls - all free to float and resize. (b) Simple controls - with certain controls having tag property settings for locking their position and / or size. (c) Combo box and list box. (d) Nested subforms - Continuous. (e) Nested subforms - Datasheet. (f) Tab control having (i) Nested subforms and (ii) Option group. Also - an option group directly on the form. I shall be thankful if interested members could kindly make it convenient to run the sample and confirm whether any aspects need further tweaking. Explanatory notes are provided in file Notes.htm accompanying the sample. Best wishes, A.D. Tejpal ------------ From rockysmolin at bchacc.com Wed Sep 22 08:14:35 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 22 Sep 2010 06:14:35 -0700 Subject: [AccessD] Resizing of forms to suit screen resolution in force In-Reply-To: <369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede> References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005> <369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede> Message-ID: <4D74DAC436BB425C83678F1633DF57A0@HAL9005> A.D: No, yours does not. I made an mde and there was no flashing or jumping on open. I'll have to give this a try on a couple forms in my current app and see what happens. Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Wednesday, September 22, 2010 12:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resizing of forms to suit screen resolution in force Rocky, Could you kindly open my sample db, click on various command buttons on switchboard form so as to open the demo forms one by one and advise whether the behavior is found OK ? You can also test the custom resize feature by dbl clicking a demo form's blank area. It should take only a few minutes. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Rocky Smolin To: 'Access Developers discussion and problem solving' Sent: Wednesday, September 22, 2010 11:02 Subject: Re: [AccessD] Resizing of forms to suit screen resolution in force A.D.: I have had a problem with 'jumping' screens - forms that seem to jump a millimeter or so when they open - or maybe flash and repaint. It only happens with mdes not mdbs, and I have always thought it had to do with the form resizing code I got from the ADH. Do you know about this and does your method eliminate this problem? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Tuesday, September 21, 2010 10:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resizing of forms to suit screen resolution in force The topic of automated resizing of forms so as to suit current screen resolution comes up from time to time. My sample db named Form_Resize (in Access 2002-2003 file format, reference: DAO 3.6), meant to cover this requirement, has been uploaded to Rogers Access Library. Link - http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=45 Apart from automatic resizing to suit current screen resolution, the sample offers custom resizing (up or down in steps of 5 percent) of any given form, if so desired by the user, with the option to freeze the custom size so that thereafter the form opens to custom size (over-riding the size dictated by actual resolution). At any stage the behavior can be reset to normal (i.e. automatic resizing to suit current resolution). Resizing is effected through a self contained class. Six styles of demo forms are included in the sample as follows: (a) Simple controls - all free to float and resize. (b) Simple controls - with certain controls having tag property settings for locking their position and / or size. (c) Combo box and list box. (d) Nested subforms - Continuous. (e) Nested subforms - Datasheet. (f) Tab control having (i) Nested subforms and (ii) Option group. Also - an option group directly on the form. I shall be thankful if interested members could kindly make it convenient to run the sample and confirm whether any aspects need further tweaking. Explanatory notes are provided in file Notes.htm accompanying the sample. Best wishes, A.D. Tejpal ------------ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Wed Sep 22 14:07:11 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Wed, 22 Sep 2010 14:07:11 -0500 Subject: [AccessD] Link to spreadsheet References: <201009212335.o8LNZk2T011390@databaseadvisors.com> Message-ID: I also have had bad results with "transferspreadsheet" I have struggled a bit with exporting Access 2007 Reports to Excel. Exporting the report's underlying query works nicely, but this method does not take into account any report filters that may be turned on. Here is a very simple method that seems to work nicely for the reports that I am currently working with. Open the report On the Ribbon choose - External Data / Export / Excel Run the actual export to Excel (for a first time test) Save Export Steps (This will create a "Saved Export" - give it a name of your choice. I chose "Export-Report1" for this example) In VBA code I then use DoCmd.RunSavedImportExport "Export-Report1" to run the Saved Export via a button. This seems to work nicely. Even though this technique is working well, I am curious as to what Access is doing behind the scenes Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, September 21, 2010 6:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Thanks for checking that, one issue out of the way. Next suspicion (as has been discussed) would be transfer spreadsheet method. I move data between Excel and Access a lot and never use transferspreadsheet, I don't like using this at all. You might be better off using other ways. Some of them are slower, but much more reliable. In my experience transfer spreadsheet can be problematic and frankly, not to be trusted. have a look here, it might help <> this is probably even closer to what you need <> Regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 11:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet Code shows that the file exists. Changing dim on varFileName to String made no difference. Still getting the error The file '-1' does not exist -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, September 20, 2010 7:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Chester, Maybe obvious, but the first thing I would check is that the path and file name is 100% correct. If you are on a LAN I would recommend you change the drive to a URL name rather than a drive letter. You can use a function to test if the file exists first before attempting to open if. If the function below returns true the file exists. I would suggest you test for the file first. If the function passes you can then start checking other options for the failure. varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" If CheckFileOrDirExists(varFileName) = True Then wb.open blah blah.. End If '=========================================================== Function CheckFileOrDirExists(PathName As String) As Boolean 'Macro Purpose: Function returns TRUE if the specified file ' or folder exists, false if not. 'PathName : Supports Windows mapped drives or UNC ' : Supports Macintosh paths 'File usage : Provide full file path and extension 'Folder usage : Provide full folder path ' Accepts with/without trailing "\" (Windows) ' Accepts with/without trailing ":" (Macintosh) Dim iTemp As Integer 'Ignore errors to allow for error evaluation On Error Resume Next iTemp = GetAttr(PathName) 'Check if error exists and set response appropriately Select Case Err.Number Case Is = 0 CheckFileOrDirExists = True Case Else CheckFileOrDirExists = False End Select 'Resume error checking On Error GoTo 0 End Function '=============================================================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 5:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Link to spreadsheet I am using the following code in an attempt to link to a password protected spreadsheet. I am running it from a terminal server instance of Access 2007 if that matters. I get the following error message. Could it have anything to do with the spreadsheet asking if I want to enable macros when I open it manually? The file '-1' does not exist Here is the code: Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim varFileName As Variant Dim strPassword As String Dim db As Database Dim oExcel As Object, oWb As Object Set oExcel = CreateObject("Excel.Application") DoCmd.SetWarnings False Set db = CurrentDb() strPassword = "rig" varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" Set oWb = oExcel.Workbooks.Open(FileName:=varFileName, ReadOnly:=True,_ Password:=strPassword, UpdateLinks:=0, IgnoreReadOnlyRecommended:=True) DoCmd.TransferSpreadsheet acLink, 8, varFileName, True oWb.Close SaveChanges:=False DoCmd.SetWarnings True LinkSpreadsheet_Exit: oExcel.Quit Set oExcel = Nothing Exit Sub LinkSpreadsheet_Err: MsgBox Error$ Resume LinkSpreadsheet_Exit End Sub Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From robert at servicexp.com Wed Sep 22 16:04:22 2010 From: robert at servicexp.com (Robert) Date: Wed, 22 Sep 2010 17:04:22 -0400 Subject: [AccessD] OT: (kinda) FTP Question. Heeeeelp In-Reply-To: <4C97DFBC.31261.1B583976@stuart.lexacorp.com.pg> References: , <2488A25297474ADD848FF197AC327E6B@XPS>, <000701cb5905$fbca9fa0$f35fdee0$@com> <4C97DFBC.31261.1B583976@stuart.lexacorp.com.pg> Message-ID: <001901cb5a99$bca66a30$35f33e90$@com> You know I just never thought of opening up multiply copies, but then again I didn't think to use the windows CLI FTP either.. ;). Thanks for all your help Stuart. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, September 20, 2010 6:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: (kinda) FTP Question. Heeeeelp But do they need to be in the same application or can you just run multiple instances of an FTP application. Since you are doing it all with batch files, why not just run multiple instances of the built in Windows CLI FTP client. Assuming your "chunked" files are myfile.z01,myfile.z02.... In your main Batch file , START the UPLOAD.BAT file below once for each "chunked" file : ... FOR %f IN (*.z??) DO START UPLOAD %f ... Now for the file UPLOAD.BAT: @echo off REM UPLOAD.BAT echo user MyUserName> %1.DAT echo MyPassword>> %1.DAT echo bin>> %1.DAT echo put %1>> %1.DAT echo quit>> %1.DAT ftp -n -s:%1.DAT SERVERNAME.COM del %1.DAT UPLOAD.BAT will: 1. create a command file myfile.z0x.DAT which contains the necessary FTP commands 2. Create an FTP instance and upload myfile.z0x based on the command file. 3. Delete the command file. Because you are calling it with START, you will have multiple instances of it running asynchronously. -- Stuart On 20 Sep 2010 at 16:54, Robert wrote: > Jim, > I'm looking to upload a split zip folder via command line (bat file) > (all > other functions (zip, slit, move, and rename) are command line based). > Some of these files can be several gigs large, so there is a > tremendous need for multiple transfer threads... > > WBR > Robert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Monday, September 20, 2010 4:42 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] OT: (kinda) FTP > Question. Heeeeelp > > Robert, > > I've used Move It Freely from the same folks for a number of years > and > never had a problem with it, so I've never had the occasion to call > them. > > What is it specifically that your looking for on the command line? > And > why the multi-threading? Do you really have that much to transfer? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, September 20, 2010 2:29 PM To: 'Access Developers > discussion and problem solving' Cc: robert at servicexp.com Subject: Re: > [AccessD] OT: (kinda) FTP Question. Heeeeelp > > Thanks guys for the suggestions. I have confirmed with them that you > cannot upload a file/folder via command line. > > On that same note, I *** THINK **** I may have found a program that > offers both, but their customer service is terrible / (would not > answer a simple question - I have to find out for myself or purchase > the program (NO pre sales ANYTHING support)). I know right, scary... > > > WS_FTP Pro 12.2 > > I will be evaluating it over the next couple of days... > > WBR > Robert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, September 20, 2010 12:58 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] OT: (kinda) FTP > Question. Heeeeelp > > I too use 3D-FTP, probably at the recommendation of Gustav, long ago. > Love the program. > > I don't actually automate it though. > > John W. Colby > www.ColbyConsulting.com > > On 9/20/2010 2:17 AM, Gustav Brock wrote: > > Hi Robert > > > > We used 3D-FTP for this - not by command line though but as a COM > > object > and the API - for an app uploading thousands of pictures per batch to > a web site. It ran at an amazing speed compared to the Windows FTP > command line alternative with no errors for years until the client > ceased business: > > http://www.3dftp.com/3dftp.htm > > However, when > I look at the site now, everything about the API seems to have > vanished after version 7. They are at version 9 now. We used version > 4.01 and I still use it as a normal FTP client. You may address them > about the API or how to obtain a version 7 should you wish to follow > the COM route. > > /gustav > > >>>> robert at servicexp.com 20-09-2010 > 05:05>>> > Considering the fact that this is the most talent group > professional that I > know of, I have yet another Command Line > question. I have searched high and > low, and can't seem to find a > solution. > > Does anyone know of a good Multi-thread upload FTP > client, that also has a > solid Command Line interface: > > Stuart > helped me work out the main section of my "project", and I really > > thought this was going to be the easy part.. > > After I have the > split zip in a folder, I need to be able to send the folder > using > the same bat file via a multi-threaded upload. > > I can find great > Multi-threaded FTP clients, but they have terrible Command > Line > support, OR I can find a great Command Line FTP Client but it doesn't > > have Multi- threaded uploading... > > I have looked at: > > CuteFTP > > SmartFTP > Filezilla > FTPRush > > > FlashFXP > > ... HELP..... > > > -- AccessD mailing list AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd Website: > http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Thu Sep 23 10:37:07 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 23 Sep 2010 11:37:07 -0400 Subject: [AccessD] Conditional formatting in Access 2010 report Message-ID: I'm trying to apply a conditional format to a report control using Access 2010. The feature offers two methods -- conditional formatting based on the current value and conditional formatting based on an expression. I was hoping I could use an expression to refer to another value in the same record. For instance -- if the InStock value goes below a certain number, display the Reorder value in red -- or something like that. I can't figure out -- is this even possible? Susan H. From Chester_Kaup at kindermorgan.com Thu Sep 23 10:38:55 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 23 Sep 2010 10:38:55 -0500 Subject: [AccessD] Link to spreadsheet In-Reply-To: <201009212335.o8LNZk2T011390@databaseadvisors.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C1925F48F7F@houex1.kindermorgan.com> <201009212335.o8LNZk2T011390@databaseadvisors.com> Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C192609FCD1@houex1.kindermorgan.com> I came up with a solution. I gave up the idea of linking and instead was able to copy the data into an access table. Here is what I came up with if anyone is curious. Option Compare Database Option Explicit Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim xl As New Excel.Application Dim xlWB As Excel.Workbook Dim xlWS As Excel.Worksheet Dim RetVal Dim strSQL As String Dim db As Database, rs As Recordset, r As Long Set db = CurrentDb With xl .Visible = True End With Set xlWB = xl.Workbooks.Open(FileName:="F:\Data\Public\Rig Schedule\Rig Schedule.xls", ReadOnly:=True, Password:="rig") Set xlWB = xl.ActiveWorkbook xlWB.Sheets("TA").Select Set xlWS = xlWB.ActiveSheet xlWS.Range("A3").Select 'delete the data in the access proposed TA Wells table and replace it with updated data strSQL = "DELETE * from [tbl Proposed TA Wells2];" DBEngine(0)(0).Execute strSQL, dbFailOnError ' exports data from the active worksheet to a table in an Access database ' get all records in a table Set rs = db.OpenRecordset("tbl Proposed TA Wells2", dbOpenTable) r = 3 ' the start row in the worksheet Do While Len(xlWS.Range("A" & r).Formula) > 0 ' repeat until first empty cell in column A With rs .AddNew ' create a new record ' add values to each field in the record .Fields("Priority") = xlWS.Range("A" & r).Value .Fields("Field Area") = xlWS.Range("B" & r).Value .Fields("Well") = xlWS.Range("C" & r).Value .Fields("Inactive Date") = xlWS.Range("D" & r).Value .Fields("Days Down") = xlWS.Range("E" & r).Value .Fields("Date Approved") = xlWS.Range("F" & r).Value .Fields("Days Scheduled") = xlWS.Range("G" & r).Value .Fields("CSG Pressure") = xlWS.Range("H" & r).Value .Fields("Pattern/ Well BOPD") = xlWS.Range("I" & r).Value .Fields("Maint Fee List") = xlWS.Range("J" & r).Value .Fields("KM Owned Expiration Date") = xlWS.Range("K" & r).Value .Fields("Status") = xlWS.Range("L" & r).Value .Fields("Engineer") = xlWS.Range("M" & r).Value .Fields("Comments") = xlWS.Range("N" & r).Value .Update ' stores the new record End With r = r + 1 ' next row Loop rs.Close Set rs = Nothing xlWB.Close SaveChanges:=False End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, September 21, 2010 6:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Thanks for checking that, one issue out of the way. Next suspicion (as has been discussed) would be transfer spreadsheet method. I move data between Excel and Access a lot and never use transferspreadsheet, I don't like using this at all. You might be better off using other ways. Some of them are slower, but much more reliable. In my experience transfer spreadsheet can be problematic and frankly, not to be trusted. have a look here, it might help <> this is probably even closer to what you need <> Regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 11:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet Code shows that the file exists. Changing dim on varFileName to String made no difference. Still getting the error The file '-1' does not exist -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, September 20, 2010 7:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Chester, Maybe obvious, but the first thing I would check is that the path and file name is 100% correct. If you are on a LAN I would recommend you change the drive to a URL name rather than a drive letter. You can use a function to test if the file exists first before attempting to open if. If the function below returns true the file exists. I would suggest you test for the file first. If the function passes you can then start checking other options for the failure. varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" If CheckFileOrDirExists(varFileName) = True Then wb.open blah blah.. End If '=========================================================== Function CheckFileOrDirExists(PathName As String) As Boolean 'Macro Purpose: Function returns TRUE if the specified file ' or folder exists, false if not. 'PathName : Supports Windows mapped drives or UNC ' : Supports Macintosh paths 'File usage : Provide full file path and extension 'Folder usage : Provide full folder path ' Accepts with/without trailing "\" (Windows) ' Accepts with/without trailing ":" (Macintosh) Dim iTemp As Integer 'Ignore errors to allow for error evaluation On Error Resume Next iTemp = GetAttr(PathName) 'Check if error exists and set response appropriately Select Case Err.Number Case Is = 0 CheckFileOrDirExists = True Case Else CheckFileOrDirExists = False End Select 'Resume error checking On Error GoTo 0 End Function '=============================================================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 5:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Link to spreadsheet I am using the following code in an attempt to link to a password protected spreadsheet. I am running it from a terminal server instance of Access 2007 if that matters. I get the following error message. Could it have anything to do with the spreadsheet asking if I want to enable macros when I open it manually? The file '-1' does not exist Here is the code: Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim varFileName As Variant Dim strPassword As String Dim db As Database Dim oExcel As Object, oWb As Object Set oExcel = CreateObject("Excel.Application") DoCmd.SetWarnings False Set db = CurrentDb() strPassword = "rig" varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" Set oWb = oExcel.Workbooks.Open(FileName:=varFileName, ReadOnly:=True,_ Password:=strPassword, UpdateLinks:=0, IgnoreReadOnlyRecommended:=True) DoCmd.TransferSpreadsheet acLink, 8, varFileName, True oWb.Close SaveChanges:=False DoCmd.SetWarnings True LinkSpreadsheet_Exit: oExcel.Quit Set oExcel = Nothing Exit Sub LinkSpreadsheet_Err: MsgBox Error$ Resume LinkSpreadsheet_Exit End Sub Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Thu Sep 23 10:46:15 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 23 Sep 2010 11:46:15 -0400 Subject: [AccessD] Fw: Conditional formatting in Access 2010 report Message-ID: <4170D3F5EDCB44A8A7897066CC172D20@salvationomc4p> As usual... nevermind! :) You guys are magic -- it works everytime! Susan H. I'm trying to apply a conditional format to a report control using Access 2010. The feature offers two methods -- conditional formatting based on the current value and conditional formatting based on an expression. I was hoping I could use an expression to refer to another value in the same record. For instance -- if the InStock value goes below a certain number, display the Reorder value in red -- or something like that. I can't figure out -- is this even possible? Susan H. From edzedz at comcast.net Thu Sep 23 10:48:30 2010 From: edzedz at comcast.net (Edward Zuris) Date: Thu, 23 Sep 2010 09:48:30 -0600 Subject: [AccessD] Fw: Conditional formatting in Access 2010 report In-Reply-To: <4170D3F5EDCB44A8A7897066CC172D20@salvationomc4p> Message-ID: <004201cb5b36$c5aecd00$5bdea8c0@edz1> But what is the Answer ? Please share. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, September 23, 2010 9:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Fw: Conditional formatting in Access 2010 report As usual... nevermind! :) You guys are magic -- it works everytime! Susan H. I'm trying to apply a conditional format to a report control using Access 2010. The feature offers two methods -- conditional formatting based on the current value and conditional formatting based on an expression. I was hoping I could use an expression to refer to another value in the same record. For instance -- if the InStock value goes below a certain number, display the Reorder value in red -- or something like that. I can't figure out -- is this even possible? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Thu Sep 23 11:01:32 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 23 Sep 2010 12:01:32 -0400 Subject: [AccessD] Fw: Conditional formatting in Access 2010 report References: <004201cb5b36$c5aecd00$5bdea8c0@edz1> Message-ID: <337A442C8BF74565BBFF65DAA1421402@salvationomc4p> Oh, I'm sorry. The expression I was using was fine -- it worked exactly as I expected once I rename the controls. The feature gets lost if you use the default control names, which are the same as the underlying field names. I haven't worked in Access in a while and it took me a minute to remember that. Susan H. > > > But what is the Answer ? > > Please share. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Thursday, September 23, 2010 9:46 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Fw: Conditional formatting in Access 2010 report > > > As usual... nevermind! :) You guys are magic -- it works everytime! > > Susan H. > > > I'm trying to apply a conditional format to a report control using > Access 2010. The feature offers two methods -- conditional formatting > based on the current value and conditional formatting based on an > expression. I was hoping I could use an expression to refer to another > value in the same record. For instance -- if the InStock value goes > below a certain number, display the Reorder value in red -- or something > like that. I can't figure out -- is this even possible? > > Susan H. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From df.waters at comcast.net Thu Sep 23 16:53:22 2010 From: df.waters at comcast.net (Dan Waters) Date: Thu, 23 Sep 2010 16:53:22 -0500 Subject: [AccessD] Move Back to Toolbars in Office 2007/2010 Message-ID: <35CC04EF54084899AE47087F9F0A2BE9@danwaters> Has anyone not liked the Ribbon in Office 2007? Hmmmm - I think I remember reading something about that! ;-) This site has an answer - I haven't tried but it does look promising! http://www.ubit.ch/software/ubitmenu-languages/ Dan From kathryn at bassett.net Thu Sep 23 17:21:41 2010 From: kathryn at bassett.net (Kathryn Bassett) Date: Thu, 23 Sep 2010 15:21:41 -0700 Subject: [AccessD] Move Back to Toolbars in Office 2007/2010 In-Reply-To: <35CC04EF54084899AE47087F9F0A2BE9@danwaters> References: <35CC04EF54084899AE47087F9F0A2BE9@danwaters> Message-ID: <008201cb5b6d$b3e25ab0$1ba71010$@net> I use this one: http://www.accmsoft.com/office-2007/classic-style-menus-toolbars/ -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net?? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Thursday, September 23, 2010 2:53 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Move Back to Toolbars in Office 2007/2010 > > Has anyone not liked the Ribbon in Office 2007? Hmmmm - I think I > remember > reading something about that! ;-) > > > > This site has an answer - I haven't tried but it does look promising! > > > > http://www.ubit.ch/software/ubitmenu-languages/ > > > > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From delam at zyterra.com Thu Sep 23 18:30:40 2010 From: delam at zyterra.com (Debbie) Date: Thu, 23 Sep 2010 18:30:40 -0500 Subject: [AccessD] Move Back to Toolbars in Office 2007/2010 In-Reply-To: <35CC04EF54084899AE47087F9F0A2BE9@danwaters> References: <35CC04EF54084899AE47087F9F0A2BE9@danwaters> Message-ID: <2879135C-7A95-456D-9811-4FFB3FFA58BB@zyterra.com> I am suporting a major app that someone else wrote ribbons for. I have done some customization. My opinion is mixed. Code to put into basic buttons is not well documented, but can be found when you learn the trick. This is an add on, not a well integrated feature and has a bit of kluginess as a result. As a standard tool bar it is really nice and easy to add once the ribbon is written. Best advice, get a book on writing office ribbons before attempting it. Debbie Sent from my iPhone On Sep 23, 2010, at 4:53 PM, "Dan Waters" wrote: > Has anyone not liked the Ribbon in Office 2007? Hmmmm - I think I > remember > reading something about that! ;-) > > > > This site has an answer - I haven't tried but it does look promising! > > > > http://www.ubit.ch/software/ubitmenu-languages/ > > > > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rbgajewski at roadrunner.com Thu Sep 23 20:37:57 2010 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Thu, 23 Sep 2010 21:37:57 -0400 Subject: [AccessD] Move Back to Toolbars in Office 2007/2010 In-Reply-To: <2879135C-7A95-456D-9811-4FFB3FFA58BB@zyterra.com> References: <35CC04EF54084899AE47087F9F0A2BE9@danwaters> <2879135C-7A95-456D-9811-4FFB3FFA58BB@zyterra.com> Message-ID: This application shows promise ... Of course, the paid version has all the good features :-( http://pschmid.net/office2007/ribboncustomizer/starter.php Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Sent: Thursday, September 23, 2010 19:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Move Back to Toolbars in Office 2007/2010 I am suporting a major app that someone else wrote ribbons for. I have done some customization. My opinion is mixed. Code to put into basic buttons is not well documented, but can be found when you learn the trick. This is an add on, not a well integrated feature and has a bit of kluginess as a result. As a standard tool bar it is really nice and easy to add once the ribbon is written. Best advice, get a book on writing office ribbons before attempting it. Debbie Sent from my iPhone On Sep 23, 2010, at 4:53 PM, "Dan Waters" wrote: > Has anyone not liked the Ribbon in Office 2007? Hmmmm - I think I > remember reading something about that! ;-) > > > > This site has an answer - I haven't tried but it does look promising! > > > > http://www.ubit.ch/software/ubitmenu-languages/ > > > > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Fri Sep 24 10:07:40 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 24 Sep 2010 11:07:40 -0400 Subject: [AccessD] Access Code Prettifier Message-ID: Does anyone know of a free VBA code prettifier for Access? I've inherited an app and I hate its formatting style, but it's a lot of code to do by hand. TIA, Arthur From fuller.artful at gmail.com Fri Sep 24 10:14:39 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 24 Sep 2010 11:14:39 -0400 Subject: [AccessD] Move children from one parent to another Message-ID: I have been asked to add a feature to an existing app and am trying to think of a cool way to do it. The general idea is this: There are Factories.(PK FactoryID) The Factories contain Machines (PK MachineID, FK FactoryID) On occasion, the client wants to move one or more machines to another factory. Obviously the back-end stuff is simple: for each machine selected, change the old FK to the new FK. My initial thought was a dialog that lists the machines in the currently selected factory, allowing multiple-select; plus a list or combo that lists the other factories owned by the client. Grab the PK of the new Factory and walk through the selected Machines, changing the FK to match. Anybody got a slicker idea? TIA, Arthur From jm.hwsn at gmail.com Fri Sep 24 10:20:58 2010 From: jm.hwsn at gmail.com (Jim Hewson) Date: Fri, 24 Sep 2010 10:20:58 -0500 Subject: [AccessD] Move children from one parent to another In-Reply-To: References: Message-ID: <4c9cc1dd.1f3f970a.42b2.6b14@mx.google.com> I've seen this done, but have not done it. Could you use a treeview and move the nodes and therefore the machines to different factories. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 24, 2010 10:15 AM To: Access Developers discussion and problem solving Subject: [AccessD] Move children from one parent to another I have been asked to add a feature to an existing app and am trying to think of a cool way to do it. The general idea is this: There are Factories.(PK FactoryID) The Factories contain Machines (PK MachineID, FK FactoryID) On occasion, the client wants to move one or more machines to another factory. Obviously the back-end stuff is simple: for each machine selected, change the old FK to the new FK. My initial thought was a dialog that lists the machines in the currently selected factory, allowing multiple-select; plus a list or combo that lists the other factories owned by the client. Grab the PK of the new Factory and walk through the selected Machines, changing the FK to match. Anybody got a slicker idea? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 24 10:48:28 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 24 Sep 2010 17:48:28 +0200 Subject: [AccessD] Access Code Prettifier Message-ID: Hi Arthur So retirement was for a few months only?? /gustav >>> fuller.artful at gmail.com 24-09-2010 17:07 >>> Does anyone know of a free VBA code prettifier for Access? I've inherited an app and I hate its formatting style, but it's a lot of code to do by hand. TIA, Arthur From ssharkins at gmail.com Fri Sep 24 11:05:12 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 24 Sep 2010 12:05:12 -0400 Subject: [AccessD] Access Code Prettifier References: Message-ID: Arthur, I'm wondering if you couldn't copy the code to Word and use styles to update -- copy back? Susan H. > Hi Arthur > > So retirement was for a few months only?? > > /gustav > > >>>> fuller.artful at gmail.com 24-09-2010 17:07 >>> > Does anyone know of a free VBA code prettifier for Access? I've inherited > an > app and I hate its formatting style, but it's a lot of code to do by hand. > > TIA, > Arthur From dbdoug at gmail.com Fri Sep 24 11:07:41 2010 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 24 Sep 2010 09:07:41 -0700 Subject: [AccessD] Move children from one parent to another In-Reply-To: References: Message-ID: I've done something like the query wizard's Field selection boxes: two list boxes next to each other. If you double click on an item in the left box, it jumps to the right box and vice versa. You could fancy it up using 'arrow' buttons with >, >> and <, << . Doug On Fri, Sep 24, 2010 at 8:14 AM, Arthur Fuller wrote: > I have been asked to add a feature to an existing app and am trying to > think > of a cool way to do it. The general idea is this: > > There are Factories.(PK FactoryID) > The Factories contain Machines (PK MachineID, FK FactoryID) > > On occasion, the client wants to move one or more machines to another > factory. Obviously the back-end stuff is simple: for each machine selected, > change the old FK to the new FK. > > My initial thought was a dialog that lists the machines in the currently > selected factory, allowing multiple-select; plus a list or combo that lists > the other factories owned by the client. Grab the PK of the new Factory and > walk through the selected Machines, changing the FK to match. > > Anybody got a slicker idea? > > TIA, > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at comcast.net Fri Sep 24 11:22:24 2010 From: df.waters at comcast.net (Dan Waters) Date: Fri, 24 Sep 2010 11:22:24 -0500 Subject: [AccessD] Access Code Prettifier In-Reply-To: References: Message-ID: <3EE31579813645FD93EBFEDB6DE4B1F7@danwaters> Arthur - are you looking for a utility to improve the appearance of forms and reports? Or are you looking to make the VBA code more readable? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 24, 2010 10:08 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access Code Prettifier Does anyone know of a free VBA code prettifier for Access? I've inherited an app and I hate its formatting style, but it's a lot of code to do by hand. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Fri Sep 24 11:23:11 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 24 Sep 2010 12:23:11 -0400 Subject: [AccessD] Access Code Prettifier In-Reply-To: References: Message-ID: <74789289169D462ABE306CDC715C13E1@XPS> Arthur, I've been using this one: http://www.oaltd.co.uk/Indenter/ Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 24, 2010 11:08 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access Code Prettifier Does anyone know of a free VBA code prettifier for Access? I've inherited an app and I hate its formatting style, but it's a lot of code to do by hand. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Fri Sep 24 11:25:07 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 24 Sep 2010 12:25:07 -0400 Subject: [AccessD] Access Code Prettifier In-Reply-To: References: Message-ID: <2310E405008A49C292E6CB269512677A@XPS> Also, I think MZ tools (http://www.mztools.com/v3/download.aspx) has indenting along with a lot of other things (add procedure header, error handler, etc) which would help with code cleanup. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 24, 2010 11:08 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access Code Prettifier Does anyone know of a free VBA code prettifier for Access? I've inherited an app and I hate its formatting style, but it's a lot of code to do by hand. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Fri Sep 24 11:58:18 2010 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 24 Sep 2010 09:58:18 -0700 Subject: [AccessD] Excel export problem Message-ID: Hello all: I am trying to export a query to Excel (this works just fine). One of the columns contains a decimal number which is a result of calculating the elapsed hours between two times. The number of decimal places ranges from none to 15 (!). The column is a real mess when it shows up in Excel. The user could always reformat the column, but I'd rather export the hours with 2 decimal places only. If I try to use the Round function "= Round(MyHours,2)", Access ignores it completely and outputs the original multi decimal places. If I try to use Format "=Format(MyHours,"0.00")", I get the two decimal places but Excel flags every cell as 'Number formatted as text'. If I try to convert the formatted value back to a single "=CSng(Format(MyHours,"0.00"))", I get the multi decimal numbers I started with. Does anyone have a solution? Thanks, Doug From ab-mi at post3.tele.dk Fri Sep 24 12:39:26 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Fri, 24 Sep 2010 19:39:26 +0200 Subject: [AccessD] Excel export problem In-Reply-To: References: Message-ID: <4EA0D73819B7410F8425EAC1704DB60B@abpc> Did you try to make a query and set the property for the field to Fixed with 2 decimals, then export this query to Excel? This works for me. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Doug Steele Sendt: 24. september 2010 18:58 Til: Access Developers discussion and problem solving Emne: [AccessD] Excel export problem Hello all: I am trying to export a query to Excel (this works just fine). One of the columns contains a decimal number which is a result of calculating the elapsed hours between two times. The number of decimal places ranges from none to 15 (!). The column is a real mess when it shows up in Excel. The user could always reformat the column, but I'd rather export the hours with 2 decimal places only. If I try to use the Round function "= Round(MyHours,2)", Access ignores it completely and outputs the original multi decimal places. If I try to use Format "=Format(MyHours,"0.00")", I get the two decimal places but Excel flags every cell as 'Number formatted as text'. If I try to convert the formatted value back to a single "=CSng(Format(MyHours,"0.00"))", I get the multi decimal numbers I started with. Does anyone have a solution? Thanks, Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Fri Sep 24 12:50:02 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 24 Sep 2010 10:50:02 -0700 Subject: [AccessD] Move children from one parent to another In-Reply-To: References: Message-ID: The way I handle my machines is by insertions: tblCompany CompanyID CompanyName etc... tblAddress (a company can have multiple address) AddrID CompanyID etc... tblMachineMaster MachineID SN ModelID etc... tblMachineInstalls MachineID AddrID InstallDate installNotes entryUserID entryDateTime I simply make a new insertion into my Machine Install table I have an "move machine" screen where a SN is entered and the customer information pops up on the left. The new customer is selecter (or entered, if new) on the right and the machine is now "moved over", with self auditing historical records showing that it was located at old customer prior to install date. On Fri, Sep 24, 2010 at 9:07 AM, Doug Steele wrote: > I've done something like the query wizard's Field selection boxes: two list > boxes next to each other. If you double click on an item in the left box, it > jumps to the right box and vice versa. ?You could fancy it up using 'arrow' > buttons with >, >> and <, << . > > Doug > > On Fri, Sep 24, 2010 at 8:14 AM, Arthur Fuller wrote: > >> I have been asked to add a feature to an existing app and am trying to >> think >> of a cool way to do it. The general idea is this: >> >> There are Factories.(PK FactoryID) >> The Factories contain Machines (PK MachineID, FK FactoryID) >> >> On occasion, the client wants to move one or more machines to another >> factory. Obviously the back-end stuff is simple: for each machine selected, >> change the old FK to the new FK. >> >> My initial thought was a dialog that lists the machines in the currently >> selected factory, allowing multiple-select; plus a list or combo that lists >> the other factories owned by the client. Grab the PK of the new Factory and >> walk through the selected Machines, changing the FK to match. >> >> Anybody got a slicker idea? >> >> TIA, >> Arthur >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dbdoug at gmail.com Fri Sep 24 13:39:59 2010 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 24 Sep 2010 11:39:59 -0700 Subject: [AccessD] Excel export problem In-Reply-To: <4EA0D73819B7410F8425EAC1704DB60B@abpc> References: <4EA0D73819B7410F8425EAC1704DB60B@abpc> Message-ID: That did it - thanks Asger! I've never used that feature. Doug On Fri, Sep 24, 2010 at 10:39 AM, Asger Blond wrote: > Did you try to make a query and set the property for the field to Fixed > with 2 decimals, then export this query to Excel? > This works for me. > Asger > > From jwcolby at colbyconsulting.com Fri Sep 24 14:59:13 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 24 Sep 2010 15:59:13 -0400 Subject: [AccessD] Move children from one parent to another In-Reply-To: References: Message-ID: <4C9D0311.8020408@colbyconsulting.com> I have to do this in the disability insurance call center app. Occasionally they data enter a claim under the wrong policy. The way I do it is simply add a combo in the claim form which is the parent policy id / name. (Only) The managers can select a different policy in the combo and it basically just changes out the FK in the claim table with the new policy id. This works fine for one-off changes. John W. Colby www.ColbyConsulting.com On 9/24/2010 11:14 AM, Arthur Fuller wrote: > I have been asked to add a feature to an existing app and am trying to think > of a cool way to do it. The general idea is this: > > There are Factories.(PK FactoryID) > The Factories contain Machines (PK MachineID, FK FactoryID) > > On occasion, the client wants to move one or more machines to another > factory. Obviously the back-end stuff is simple: for each machine selected, > change the old FK to the new FK. > > My initial thought was a dialog that lists the machines in the currently > selected factory, allowing multiple-select; plus a list or combo that lists > the other factories owned by the client. Grab the PK of the new Factory and > walk through the selected Machines, changing the FK to match. > > Anybody got a slicker idea? > > TIA, > Arthur From jwcolby at colbyconsulting.com Fri Sep 24 15:00:21 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 24 Sep 2010 16:00:21 -0400 Subject: [AccessD] Access Code Prettifier In-Reply-To: References: Message-ID: <4C9D0355.5020007@colbyconsulting.com> Gustav, He got hungry. In case you haven't seen Arthur, he can't afford to miss many meals. ;) John W. Colby www.ColbyConsulting.com On 9/24/2010 11:48 AM, Gustav Brock wrote: > Hi Arthur > > So retirement was for a few months only?? > > /gustav > > >>>> fuller.artful at gmail.com 24-09-2010 17:07>>> > Does anyone know of a free VBA code prettifier for Access? I've inherited an > app and I hate its formatting style, but it's a lot of code to do by hand. > > TIA, > Arthur > > From charlotte.foust at gmail.com Fri Sep 24 15:34:40 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Fri, 24 Sep 2010 13:34:40 -0700 Subject: [AccessD] Move children from one parent to another In-Reply-To: References: Message-ID: Arthur, I would think you might need a history of which factories the machines have been in, so just substituting a FactoryID in the machine record wouldn't be adequate. You need to add a record and perhaps have a date field to indicate when the machine was moved to that factory. Clients always think they don't want a history ... until they wake up one day and realize they do. Charlotte Foust On Fri, Sep 24, 2010 at 8:14 AM, Arthur Fuller wrote: > I have been asked to add a feature to an existing app and am trying to think > of a cool way to do it. The general idea is this: > > There are Factories.(PK FactoryID) > The Factories contain Machines (PK MachineID, FK FactoryID) > > On occasion, the client wants to move one or more machines to another > factory. Obviously the back-end stuff is simple: for each machine selected, > change the old FK to the new FK. > > My initial thought was a dialog that lists the machines in the currently > selected factory, allowing multiple-select; plus a list or combo that lists > the other factories owned by the client. Grab the PK of the new Factory and > walk through the selected Machines, changing the FK to match. > > Anybody got a slicker idea? > > TIA, > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From john at winhaven.net Fri Sep 24 17:23:26 2010 From: john at winhaven.net (John Bartow) Date: Fri, 24 Sep 2010 17:23:26 -0500 Subject: [AccessD] Move children from one parent to another In-Reply-To: References: Message-ID: <01a201cb5c37$1bab02e0$530108a0$@winhaven.net> Spot on -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 24, 2010 3:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Move children from one parent to another Arthur, I would think you might need a history of which factories the machines have been in, so just substituting a FactoryID in the machine record wouldn't be adequate. You need to add a record and perhaps have a date field to indicate when the machine was moved to that factory. Clients always think they don't want a history ... until they wake up one day and realize they do. Charlotte Foust On Fri, Sep 24, 2010 at 8:14 AM, Arthur Fuller wrote: > I have been asked to add a feature to an existing app and am trying to > think of a cool way to do it. The general idea is this: > > There are Factories.(PK FactoryID) > The Factories contain Machines (PK MachineID, FK FactoryID) > > On occasion, the client wants to move one or more machines to another > factory. Obviously the back-end stuff is simple: for each machine > selected, change the old FK to the new FK. > > My initial thought was a dialog that lists the machines in the > currently selected factory, allowing multiple-select; plus a list or > combo that lists the other factories owned by the client. Grab the PK > of the new Factory and walk through the selected Machines, changing the FK to match. > > Anybody got a slicker idea? > > TIA, > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Fri Sep 24 19:56:22 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 24 Sep 2010 17:56:22 -0700 Subject: [AccessD] Format dollar amount inside messagebox Message-ID: I have this code: If Me.txtOldAmt <> Me.txtIncentiveAmt Then 'Split & Amt Changed strMsg = "Are you sure you want to change this incentive?" & vbCrLf & _ "Amount will change from " & Me.txtOldAmt & " to " & Me.txtIncentiveAmt It displays as: "Amount will change from 2 to 4.5" I would like it to show as "Amount will change from $2.00 to $4.50" Any idea? From stuart at lexacorp.com.pg Fri Sep 24 20:03:54 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 25 Sep 2010 11:03:54 +1000 Subject: [AccessD] Format dollar amount inside messagebox In-Reply-To: References: Message-ID: <4C9D4A7A.15743.30811949@stuart.lexacorp.com.pg> ..."Amount will change from " & Format$(Me.txtOldAmt,"$0.00") & " to " & Format$(Me.txtIncentiveAmt,"$0.00")... On 24 Sep 2010 at 17:56, David McAfee wrote: > I have this code: > > If Me.txtOldAmt <> Me.txtIncentiveAmt Then 'Split & Amt Changed > strMsg = "Are you sure you want to change > this incentive?" & vbCrLf & _ > "Amount will change from " & > Me.txtOldAmt & " to " & Me.txtIncentiveAmt > > It displays as: "Amount will change from 2 to 4.5" > > I would like it to show as "Amount will change from $2.00 to $4.50" > > Any idea? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davidmcafee at gmail.com Fri Sep 24 20:07:50 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 24 Sep 2010 18:07:50 -0700 Subject: [AccessD] Format dollar amount inside messagebox In-Reply-To: <4C9D4A7A.15743.30811949@stuart.lexacorp.com.pg> References: <4C9D4A7A.15743.30811949@stuart.lexacorp.com.pg> Message-ID: Awesome, thanks! On Fri, Sep 24, 2010 at 6:03 PM, Stuart McLachlan wrote: > ..."Amount will change from " & Format$(Me.txtOldAmt,"$0.00") > & " to " & Format$(Me.txtIncentiveAmt,"$0.00")... > > > > On 24 Sep 2010 at 17:56, David McAfee wrote: > >> I have this code: >> >> If Me.txtOldAmt <> Me.txtIncentiveAmt Then 'Split & Amt Changed >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? strMsg = "Are you sure you want to change >> this incentive?" & vbCrLf & _ >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?"Amount will change from " & >> Me.txtOldAmt & " to " & Me.txtIncentiveAmt >> >> It displays as: "Amount will change from 2 to 4.5" >> >> I would like it to show as "Amount will change from $2.00 to $4.50" >> >> Any idea? >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From paul.hartland at googlemail.com Fri Sep 24 20:11:06 2010 From: paul.hartland at googlemail.com (Paul Hartland) Date: Sat, 25 Sep 2010 02:11:06 +0100 Subject: [AccessD] Format dollar amount inside messagebox In-Reply-To: References: Message-ID: David, Couldnt you simply change "Amount will change from " & Me.txtOldAmt & " to " & Me.txtIncentiveAmt To "Amount will change from $" & Me.txtOldAmt & " to $" & Me.txtIncentiveAmt Paul On 25 September 2010 01:56, David McAfee wrote: > I have this code: > > If Me.txtOldAmt <> Me.txtIncentiveAmt Then 'Split & Amt Changed > strMsg = "Are you sure you want to change > this incentive?" & vbCrLf & _ > "Amount will change from " & > Me.txtOldAmt & " to " & Me.txtIncentiveAmt > > It displays as: "Amount will change from 2 to 4.5" > > I would like it to show as "Amount will change from $2.00 to $4.50" > > Any idea? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Paul Hartland paul.hartland at googlemail.com From steve at datamanagementsolutions.biz Fri Sep 24 20:18:59 2010 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Sat, 25 Sep 2010 13:18:59 +1200 Subject: [AccessD] Format dollar amount inside messagebox In-Reply-To: References: Message-ID: David, Try it like this... "Amount will change from " & FormatCurrency(Me.txtOldAmt) & " to " & FormatCurrency(Me.txtIncentiveAmt) Regards Steve -----Original Message----- From: David McAfee Sent: Saturday, September 25, 2010 12:56 PM To: Access Developers discussion and problem solving Subject: [AccessD] Format dollar amount inside messagebox I have this code: If Me.txtOldAmt <> Me.txtIncentiveAmt Then 'Split & Amt Changed strMsg = "Are you sure you want to change this incentive?" & vbCrLf & _ "Amount will change from " & Me.txtOldAmt & " to " & Me.txtIncentiveAmt It displays as: "Amount will change from 2 to 4.5" I would like it to show as "Amount will change from $2.00 to $4.50" Any idea? From rockysmolin at bchacc.com Sat Sep 25 11:05:30 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 25 Sep 2010 09:05:30 -0700 Subject: [AccessD] Resizing of forms to suit screen resolution in force In-Reply-To: <369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede> References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005> <369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede> Message-ID: <1F1069C670C94A18974A5E3FB1C867BA@HAL9005> A.D.: I tried your resizing routine this morning, and sorry to say it did not fix the flashing problem. But, I now think that my original assumption was wrong - it does not have to do with the resizing because I commented out the call to the resizing module in a form that jumps consistently on opening and it still jumped. So there's something else going on there that I can't figure out. This only happens with the mde, not the mdb, BTW. So I commented out ALL the code in one of the jumping forms in the _Open and Current events of both the main form and sub-form on the theory that there was something in there that caused the jump. Still jumped. So I copied the mdb to machine #2, fired it up in A2007, created and mde in A2007- no jumping. So then I copied over the mde that had been created in A2003. No jumping. So apparently it has to do with running the mde in A2003. Could it be the installation on A2003 on my primary machine? I copied the mde created in A2003 to my laptop and ran it in A2003. Jumps. Last test - copied mde created on machine #1 in A2003 to machine 2 where I tested the mde in A2007 but also have A2003. On that machine in A2003 the forms jumps on opening whether screen resizing is used or not. So it's still a mystery but I've eliminated a few possibilities. Regards, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Wednesday, September 22, 2010 12:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resizing of forms to suit screen resolution in force Rocky, Could you kindly open my sample db, click on various command buttons on switchboard form so as to open the demo forms one by one and advise whether the behavior is found OK ? You can also test the custom resize feature by dbl clicking a demo form's blank area. It should take only a few minutes. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Rocky Smolin To: 'Access Developers discussion and problem solving' Sent: Wednesday, September 22, 2010 11:02 Subject: Re: [AccessD] Resizing of forms to suit screen resolution in force A.D.: I have had a problem with 'jumping' screens - forms that seem to jump a millimeter or so when they open - or maybe flash and repaint. It only happens with mdes not mdbs, and I have always thought it had to do with the form resizing code I got from the ADH. Do you know about this and does your method eliminate this problem? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Tuesday, September 21, 2010 10:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resizing of forms to suit screen resolution in force The topic of automated resizing of forms so as to suit current screen resolution comes up from time to time. My sample db named Form_Resize (in Access 2002-2003 file format, reference: DAO 3.6), meant to cover this requirement, has been uploaded to Rogers Access Library. Link - http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=45 Apart from automatic resizing to suit current screen resolution, the sample offers custom resizing (up or down in steps of 5 percent) of any given form, if so desired by the user, with the option to freeze the custom size so that thereafter the form opens to custom size (over-riding the size dictated by actual resolution). At any stage the behavior can be reset to normal (i.e. automatic resizing to suit current resolution). Resizing is effected through a self contained class. Six styles of demo forms are included in the sample as follows: (a) Simple controls - all free to float and resize. (b) Simple controls - with certain controls having tag property settings for locking their position and / or size. (c) Combo box and list box. (d) Nested subforms - Continuous. (e) Nested subforms - Datasheet. (f) Tab control having (i) Nested subforms and (ii) Option group. Also - an option group directly on the form. I shall be thankful if interested members could kindly make it convenient to run the sample and confirm whether any aspects need further tweaking. Explanatory notes are provided in file Notes.htm accompanying the sample. Best wishes, A.D. Tejpal ------------ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Sat Sep 25 17:14:19 2010 From: boogieloogie at gmail.com (Boogie Loogie) Date: Sat, 25 Sep 2010 19:14:19 -0300 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com> <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: I use .net and SQL Server / SQL Server Express for all database apps. I develop Windows Mobile apps and then process the .sdf on the desktop. I would have stayed with Access but the day Micro$oft stop support for Pocket Access was the day I switched. They had a good thing going and then it was gone. For old apps that I wrote in Access I had to get clients to purchase KaioneSync to make up for the shortcomings in the latest versions of ActiveSync and Windows Mobile because they did not want the wheel reinvented. M$ steps forward were steps backwards for Mobile - Access develop IMO. :L On Mon, Sep 13, 2010 at 4:02 PM, Brad Marks wrote: > All, > > Compared to most of you, I am a relative newcomer to the world of > Access. > > Over the past few months, I have noticed a number of references to the > Bound/Unbound debate. It sounds like this was a really hotly contested > issue at one time and that now people almost joke about it. > > For us newcomers, it would be nice if someone could explain this issue > at a high level and perhaps spell out the major pros and cons of each > side of the debate. > > It is not my intent to start a Web-war, I would just like to better > understand what is going on here. > > Thanks, > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Monday, September 13, 2010 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SQL Server Express - true skinny > > Exactly. Which is part of the premise of the bound/unbound debate. > With unbound forms, where data is written in a split second chunk, the > stability of much higher user volume goes up tremendously! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Friday, September 10, 2010 2:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SQL Server Express - true skinny > > Dan, > > That is more or less true, but the real bottle neck with a JET based DB > has > never been .LDB file operations. > > With JET, all processing is on the client side. The server acts as > nothing > more then a file share. > > The trick with keeping a connection open to the BE avoids the repeated > closing/opening of the LDB and DB files and all the associated overhead > with > removing/adding an active user under JET. Some apps benefit from that, > other not because they already maintain a connection one way or another. > The problem can be further compounded if the server has OPLOCKS on > (which > allows client side caching of files). JET doesn't need this as the > cache is > already on the client side. So it's simply a wasted effort on the > servers > part. And by default, OPLOCKs is enabled on Windows servers. > > The real restriction of JET is just one of stability. With no server > side > process to perform a rollback if a disconnect occurs, anytime that > happens > in the middle of write operations your fair game for corruption. So by > the > time you get past 30 or 40 stations, it's just hard to keep the > environment > stable. > > To prove that point, you can easily run a read-only/reporting JET based > app > with 200+ users without issues. > > It's not an issue of performance, but one of stability. > > Jim. > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please > contact the sender > immediately and destroy the material in its entirety, whether electronic > or hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this > information by persons > or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From iggy at nanaimo.ark.com Mon Sep 27 10:52:29 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 27 Sep 2010 08:52:29 -0700 Subject: [AccessD] Roll Your Own Combo Box Message-ID: <4CA0BDBD.9040401@nanaimo.ark.com> Hey All A while ago I developed a set of combo boxes for a client using list boxes, basically because I did'n't like the way the combo boxes were displaying on a form replicating their paper form. Anyway I have taken the idea a step forward using conditional formatting and continuous forms. The code is simple (no rocket science involved), there is no error checking and it is not 100% bullet proofed. Anyone interested in the demo, EMail me offline. 2 examples a single and a mutlicolumn combo box. Maybe someone will have some suggestions on how I can improve the multi-column combo box. From jwcolby at colbyconsulting.com Mon Sep 27 07:03:05 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 27 Sep 2010 08:03:05 -0400 Subject: [AccessD] New CPR tecnique Message-ID: <4CA087F9.1040108@colbyconsulting.com> http://www.youtube.com/watch?v=EcbgpiKyUbs -- John W. Colby www.ColbyConsulting.com From Darryl.Collins at iag.com.au Sun Sep 26 19:09:03 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Mon, 27 Sep 2010 10:09:03 +1000 Subject: [AccessD] Link to spreadsheet In-Reply-To: <0B2BF8524B73A248A2F1B81BA751ED3C192609FCD1@houex1.kindermorgan.com> Message-ID: <201009271655.o8RGtX6e021587@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Nice work Chester, Much better than linking to Excel. A couple of tweaks to your code will make things a bit more secure and sharper. This is pretty much all you need to do Set xl = CreateObject("Excel.Application") Set xlWB = xl.Workbooks.Open(FileName:="F:\Data\Public\Rig Schedule\Rig Schedule.xls", ReadOnly:=True, Password:="rig") Set xlWS = xlWB.Sheets("TA") You can drop all this code. 'Set xlWB = xl.ActiveWorkbook <-- Drop this, you have already set the xlWB in the line above 'xlWB.Sheets("TA").Select <-- No need to select anything 'Set xlWS = xlWB.ActiveSheet <-- not required. You can set the ws without making it active or selected 'xlWS.Range("A3").Select <-- Don't need this at all, no need to select anything in Excel. At the end of the code, make sure you close down the XL app correctly (otherwise it will stay in memory) and set your objects to nothing. xlWB.Close False ' Change to TRUE if you want to save the changes xl.Quit ' Will close the XL application set xlWS = nothing set xlWB = nothing set xl = nothing ' END OF CODE CHANGES. Cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Friday, 24 September 2010 1:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Link to spreadsheet I came up with a solution. I gave up the idea of linking and instead was able to copy the data into an access table. Here is what I came up with if anyone is curious. Option Compare Database Option Explicit Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim xl As New Excel.Application Dim xlWB As Excel.Workbook Dim xlWS As Excel.Worksheet Dim RetVal Dim strSQL As String Dim db As Database, rs As Recordset, r As Long Set db = CurrentDb With xl .Visible = True End With Set xlWB = xl.Workbooks.Open(FileName:="F:\Data\Public\Rig Schedule\Rig Schedule.xls", ReadOnly:=True, Password:="rig") Set xlWB = xl.ActiveWorkbook xlWB.Sheets("TA").Select Set xlWS = xlWB.ActiveSheet xlWS.Range("A3").Select 'delete the data in the access proposed TA Wells table and replace it with updated data strSQL = "DELETE * from [tbl Proposed TA Wells2];" DBEngine(0)(0).Execute strSQL, dbFailOnError ' exports data from the active worksheet to a table in an Access database ' get all records in a table Set rs = db.OpenRecordset("tbl Proposed TA Wells2", dbOpenTable) r = 3 ' the start row in the worksheet Do While Len(xlWS.Range("A" & r).Formula) > 0 ' repeat until first empty cell in column A With rs .AddNew ' create a new record ' add values to each field in the record .Fields("Priority") = xlWS.Range("A" & r).Value .Fields("Field Area") = xlWS.Range("B" & r).Value .Fields("Well") = xlWS.Range("C" & r).Value .Fields("Inactive Date") = xlWS.Range("D" & r).Value .Fields("Days Down") = xlWS.Range("E" & r).Value .Fields("Date Approved") = xlWS.Range("F" & r).Value .Fields("Days Scheduled") = xlWS.Range("G" & r).Value .Fields("CSG Pressure") = xlWS.Range("H" & r).Value .Fields("Pattern/ Well BOPD") = xlWS.Range("I" & r).Value .Fields("Maint Fee List") = xlWS.Range("J" & r).Value .Fields("KM Owned Expiration Date") = xlWS.Range("K" & r).Value .Fields("Status") = xlWS.Range("L" & r).Value .Fields("Engineer") = xlWS.Range("M" & r).Value .Fields("Comments") = xlWS.Range("N" & r).Value .Update ' stores the new record End With r = r + 1 ' next row Loop rs.Close Set rs = Nothing xlWB.Close SaveChanges:=False End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, September 21, 2010 6:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Thanks for checking that, one issue out of the way. Next suspicion (as has been discussed) would be transfer spreadsheet method. I move data between Excel and Access a lot and never use transferspreadsheet, I don't like using this at all. You might be better off using other ways. Some of them are slower, but much more reliable. In my experience transfer spreadsheet can be problematic and frankly, not to be trusted. have a look here, it might help <> this is probably even closer to what you need <> Regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 11:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet Code shows that the file exists. Changing dim on varFileName to String made no difference. Still getting the error The file '-1' does not exist -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, September 20, 2010 7:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Chester, Maybe obvious, but the first thing I would check is that the path and file name is 100% correct. If you are on a LAN I would recommend you change the drive to a URL name rather than a drive letter. You can use a function to test if the file exists first before attempting to open if. If the function below returns true the file exists. I would suggest you test for the file first. If the function passes you can then start checking other options for the failure. varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" If CheckFileOrDirExists(varFileName) = True Then wb.open blah blah.. End If '=========================================================== Function CheckFileOrDirExists(PathName As String) As Boolean 'Macro Purpose: Function returns TRUE if the specified file ' or folder exists, false if not. 'PathName : Supports Windows mapped drives or UNC ' : Supports Macintosh paths 'File usage : Provide full file path and extension 'Folder usage : Provide full folder path ' Accepts with/without trailing "\" (Windows) ' Accepts with/without trailing ":" (Macintosh) Dim iTemp As Integer 'Ignore errors to allow for error evaluation On Error Resume Next iTemp = GetAttr(PathName) 'Check if error exists and set response appropriately Select Case Err.Number Case Is = 0 CheckFileOrDirExists = True Case Else CheckFileOrDirExists = False End Select 'Resume error checking On Error GoTo 0 End Function '=============================================================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 5:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Link to spreadsheet I am using the following code in an attempt to link to a password protected spreadsheet. I am running it from a terminal server instance of Access 2007 if that matters. I get the following error message. Could it have anything to do with the spreadsheet asking if I want to enable macros when I open it manually? The file '-1' does not exist Here is the code: Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim varFileName As Variant Dim strPassword As String Dim db As Database Dim oExcel As Object, oWb As Object Set oExcel = CreateObject("Excel.Application") DoCmd.SetWarnings False Set db = CurrentDb() strPassword = "rig" varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" Set oWb = oExcel.Workbooks.Open(FileName:=varFileName, ReadOnly:=True,_ Password:=strPassword, UpdateLinks:=0, IgnoreReadOnlyRecommended:=True) DoCmd.TransferSpreadsheet acLink, 8, varFileName, True oWb.Close SaveChanges:=False DoCmd.SetWarnings True LinkSpreadsheet_Exit: oExcel.Quit Set oExcel = Nothing Exit Sub LinkSpreadsheet_Err: MsgBox Error$ Resume LinkSpreadsheet_Exit End Sub Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From davidmcafee at gmail.com Mon Sep 27 11:39:26 2010 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 27 Sep 2010 09:39:26 -0700 Subject: [AccessD] The Famous Bound/Unbound Debate In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com> <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: And it seems they are not supporting SDFs in the new WM7, at least not in the initial release. It looks like they want to force XML tables onto developers. I, like you, also developed CE apps using cdb files, then had to switch to SDFs when MS went that route. On Sat, Sep 25, 2010 at 3:14 PM, Boogie Loogie wrote: > > > I use .net and SQL Server / SQL Server Express for all database apps. I > develop Windows Mobile apps and then process the .sdf on the desktop. I > would have stayed with Access but the day Micro$oft stop support for Pocket > Access was the day I switched. They had a good thing going and then it was > gone. > > For old apps that I wrote in Access I had to get clients to purchase > KaioneSync to make up for the shortcomings in the latest versions of > ActiveSync and Windows Mobile because they did not want the wheel > reinvented. M$ steps forward were steps backwards for Mobile - Access > develop IMO. > > :L > > > > On Mon, Sep 13, 2010 at 4:02 PM, Brad Marks wrote: > >> All, >> >> Compared to most of you, I am a relative newcomer to the world of >> Access. >> >> Over the past few months, I have noticed a number of references to the >> Bound/Unbound debate. ?It sounds like this was a really hotly contested >> issue at one time and that now people almost joke about it. >> >> For us newcomers, it would be nice if someone could explain this issue >> at a high level and perhaps spell out the major pros and cons of each >> side of the debate. >> >> It is not my intent to start a Web-war, I would just like to better >> understand what is going on here. >> >> Thanks, >> Brad >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >> Sent: Monday, September 13, 2010 1:53 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SQL Server Express - true skinny >> >> Exactly. ?Which is part of the premise of the bound/unbound debate. >> With unbound forms, where data is written in a split second chunk, the >> stability of much higher user volume goes up tremendously! >> >> Drew >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >> Sent: Friday, September 10, 2010 2:46 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] SQL Server Express - true skinny >> >> Dan, >> >> ?That is more or less true, but the real bottle neck with a JET based DB >> has >> never been .LDB file operations. >> >> ?With JET, all processing is on the client side. ?The server acts as >> nothing >> more then a file share. >> >> ?The trick with keeping a connection open to the BE avoids the repeated >> closing/opening of the LDB and DB files and all the associated overhead >> with >> removing/adding an active user under JET. ?Some apps benefit from that, >> other not because they already maintain a connection one way or another. >> The problem can be further compounded if the server has OPLOCKS on >> (which >> allows client side caching of files). ?JET doesn't need this as the >> cache is >> already on the client side. ?So it's simply a wasted effort on the >> servers >> part. ?And by default, OPLOCKs is enabled on Windows servers. >> >> ?The real restriction of JET is just one of stability. ?With no server >> side >> process to perform a rollback if a disconnect occurs, anytime that >> happens >> in the middle of write operations your fair game for corruption. ? So by >> the >> time you get past 30 or 40 stations, it's just hard to keep the >> environment >> stable. >> >> ?To prove that point, you can easily run a read-only/reporting JET based >> app >> with 200+ users without issues. >> >> ?It's not an issue of performance, but one of stability. >> >> Jim. >> The information contained in this transmission is intended only for the >> person or entity >> to which it is addressed and may contain II-VI Proprietary and/or II-VI >> Business >> Sensitive material. If you are not the intended recipient, please >> contact the sender >> immediately and destroy the material in its entirety, whether electronic >> or hard copy. >> You are notified that any review, retransmission, copying, disclosure, >> dissemination, >> or other use of, or taking of any action in reliance upon this >> information by persons >> or entities other than the intended recipient is prohibited. >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at comcast.net Mon Sep 27 12:32:20 2010 From: df.waters at comcast.net (Dan Waters) Date: Mon, 27 Sep 2010 12:32:20 -0500 Subject: [AccessD] New CPR tecnique In-Reply-To: <4CA087F9.1040108@colbyconsulting.com> References: <4CA087F9.1040108@colbyconsulting.com> Message-ID: That's an excellent training video! Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 27, 2010 7:03 AM To: Access Developers discussion and problem solving Subject: [AccessD] New CPR tecnique http://www.youtube.com/watch?v=EcbgpiKyUbs -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dkalsow at yahoo.com Mon Sep 27 08:44:02 2010 From: dkalsow at yahoo.com (Dale Kalsow) Date: Mon, 27 Sep 2010 06:44:02 -0700 (PDT) Subject: [AccessD] datagridview in vb.net 2010 In-Reply-To: References: <4C8A743F.2080808@colbyconsulting.com> <5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> Message-ID: <64560.94736.qm@web50407.mail.re2.yahoo.com> Good Morning, ? I was hoping someone here might have some experience with vb.net 2010.? Here is what I have going on: ? I am using the datagridview in vb .net 2010.? I have setup a datasource to an access 2010 database.? I then drag that connection onto the form and it creates my datagridview.? This all works fine.? My problems start with the second datagridview.? The access database has several table and I have them all in the same datasource.? When I drag the second table onto the from, the gridview is created as normal and when I run the program, that data is populated into it.? However, I do not get a second naviator bar for it and when I try to save the data via a button I created, I do not get an error but the data does not save. Any help would be greatly appreciated. Thanks! Dale From bill_patten at embarqmail.com Mon Sep 27 13:01:25 2010 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 27 Sep 2010 11:01:25 -0700 Subject: [AccessD] datagridview in vb.net 2010 In-Reply-To: <64560.94736.qm@web50407.mail.re2.yahoo.com> References: <4C8A743F.2080808@colbyconsulting.com><5E9801A8ECCC45F99427C3CBCBEB4F33@danwaters> <64560.94736.qm@web50407.mail.re2.yahoo.com> Message-ID: ?Dale, That's the way it works, one data grid per form. If you try and force a second data grid you will find that several queries that you need to add/update/ and deleted will not be created and creating them by hand is tough. I did it this way, I created a new form, dragged the appropriate dataset to the new form. Then make sure that the correct binding source and table adapters etc are on the original form you want, copy and paste the grid and the navigator to the form you want and it will work. You may need to add a tab and or a panel to have a second navigator on one form, I didn't do that but needed the correct queries to add and update the second grid by typing in the row marked with the star or an existing row. To see the queries I am talking about double click on the dataset find the table in the xsd view screen and then select the table adaptor and look at the properties you will notice Delete Command for example click the little drop down and the look at the command text. These appear to be built by the wizard when it creates the binding navigator and will not be there if you just drag the table adaptor and binding source to the form. HTH Bill -------------------------------------------------- From: "Dale Kalsow" Sent: Monday, September 27, 2010 6:44 AM To: "Access Developers discussion and problem solving" Subject: [AccessD] datagridview in vb.net 2010 Good Morning, I was hoping someone here might have some experience with vb.net 2010. Here is what I have going on: I am using the datagridview in vb .net 2010. I have setup a datasource to an access 2010 database. I then drag that connection onto the form and it creates my datagridview. This all works fine. My problems start with the second datagridview. The access database has several table and I have them all in the same datasource. When I drag the second table onto the from, the gridview is created as normal and when I run the program, that data is populated into it. However, I do not get a second naviator bar for it and when I try to save the data via a button I created, I do not get an error but the data does not save. Any help would be greatly appreciated. Thanks! Dale -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Mon Sep 27 13:25:38 2010 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 27 Sep 2010 14:25:38 -0400 Subject: [AccessD] Archive Search Function Not Working? In-Reply-To: References: <9A71D281EBF445BE996C147D6BC0E45F@HAL9005> <4C8DF83B.8010000@colbyconsulting.com> <96BDE89A26634D07B171342F210132E8@creativesystemdesigns.com> Message-ID: Sorry it's taken so long to get the archives search back up, but they are back up and working. If anyone notices a problem, please drop me a line so I can look into it. Bryan On Wed, Sep 15, 2010 at 10:13 AM, Bryan Carbonnell wrote: > Sorry folks. I haven't been monitoring the list in quite a while. But > I've been looking into the archive issue since Jim brought it to my > attention. > > I'll post here when it is back up and searching. > > Bryan > > On Mon, Sep 13, 2010 at 2:26 PM, Jim Lawrence wrote: >> Hi John: >> >> This is the first time I have heard about this and have forwarded a request >> to Bryan to check it out or if I do not hear anything shortly I will >> investigate it myself. >> >> I did test the search features using an asterisk "*" and returned over 75K >> hits, so the data is still there but the search engine seems to not be >> functioning. >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Monday, September 13, 2010 3:09 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Archive Search Function Not Working? >> >> Yep, I tried the other day with same results. ?I posted here but no one >> responded. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 9/12/2010 11:40 PM, Rocky Smolin wrote: >>> I tried to retrieve something from the archives but the search function >>> doesn't seem to be working for me. ?Any search I enter comes up with no >>> matches. ?I'm using Firefox - don't know if that has any bearing. >>> >>> >>> >>> Anyone else experiencing this? >>> >>> >>> >>> Rocky Smolin >>> >>> Beach Access Software >>> >>> 858-259-4334 >>> >>> Skype: rocky.smolin >>> >>> www.e-z-mrp.com >>> >>> www.bchacc.com >>> >>> >>> >>> >>> >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Bryan Carbonnell - carbonnb at gmail.com > Life's journey is not to arrive at the grave safely in a well > preserved body, but rather to skid in sideways, totally worn out, > shouting "What a great ride!" > -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Chester_Kaup at kindermorgan.com Mon Sep 27 13:56:14 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 27 Sep 2010 13:56:14 -0500 Subject: [AccessD] Link to spreadsheet In-Reply-To: <201009271655.o8RGtX6e021587@databaseadvisors.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C192609FCD1@houex1.kindermorgan.com> <201009271655.o8RGtX6e021587@databaseadvisors.com> Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C1925F49887@houex1.kindermorgan.com> Thanks for the pointers. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, September 26, 2010 7:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Nice work Chester, Much better than linking to Excel. A couple of tweaks to your code will make things a bit more secure and sharper. This is pretty much all you need to do Set xl = CreateObject("Excel.Application") Set xlWB = xl.Workbooks.Open(FileName:="F:\Data\Public\Rig Schedule\Rig Schedule.xls", ReadOnly:=True, Password:="rig") Set xlWS = xlWB.Sheets("TA") You can drop all this code. 'Set xlWB = xl.ActiveWorkbook <-- Drop this, you have already set the xlWB in the line above 'xlWB.Sheets("TA").Select <-- No need to select anything 'Set xlWS = xlWB.ActiveSheet <-- not required. You can set the ws without making it active or selected 'xlWS.Range("A3").Select <-- Don't need this at all, no need to select anything in Excel. At the end of the code, make sure you close down the XL app correctly (otherwise it will stay in memory) and set your objects to nothing. xlWB.Close False ' Change to TRUE if you want to save the changes xl.Quit ' Will close the XL application set xlWS = nothing set xlWB = nothing set xl = nothing ' END OF CODE CHANGES. Cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Friday, 24 September 2010 1:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Link to spreadsheet I came up with a solution. I gave up the idea of linking and instead was able to copy the data into an access table. Here is what I came up with if anyone is curious. Option Compare Database Option Explicit Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim xl As New Excel.Application Dim xlWB As Excel.Workbook Dim xlWS As Excel.Worksheet Dim RetVal Dim strSQL As String Dim db As Database, rs As Recordset, r As Long Set db = CurrentDb With xl .Visible = True End With Set xlWB = xl.Workbooks.Open(FileName:="F:\Data\Public\Rig Schedule\Rig Schedule.xls", ReadOnly:=True, Password:="rig") Set xlWB = xl.ActiveWorkbook xlWB.Sheets("TA").Select Set xlWS = xlWB.ActiveSheet xlWS.Range("A3").Select 'delete the data in the access proposed TA Wells table and replace it with updated data strSQL = "DELETE * from [tbl Proposed TA Wells2];" DBEngine(0)(0).Execute strSQL, dbFailOnError ' exports data from the active worksheet to a table in an Access database ' get all records in a table Set rs = db.OpenRecordset("tbl Proposed TA Wells2", dbOpenTable) r = 3 ' the start row in the worksheet Do While Len(xlWS.Range("A" & r).Formula) > 0 ' repeat until first empty cell in column A With rs .AddNew ' create a new record ' add values to each field in the record .Fields("Priority") = xlWS.Range("A" & r).Value .Fields("Field Area") = xlWS.Range("B" & r).Value .Fields("Well") = xlWS.Range("C" & r).Value .Fields("Inactive Date") = xlWS.Range("D" & r).Value .Fields("Days Down") = xlWS.Range("E" & r).Value .Fields("Date Approved") = xlWS.Range("F" & r).Value .Fields("Days Scheduled") = xlWS.Range("G" & r).Value .Fields("CSG Pressure") = xlWS.Range("H" & r).Value .Fields("Pattern/ Well BOPD") = xlWS.Range("I" & r).Value .Fields("Maint Fee List") = xlWS.Range("J" & r).Value .Fields("KM Owned Expiration Date") = xlWS.Range("K" & r).Value .Fields("Status") = xlWS.Range("L" & r).Value .Fields("Engineer") = xlWS.Range("M" & r).Value .Fields("Comments") = xlWS.Range("N" & r).Value .Update ' stores the new record End With r = r + 1 ' next row Loop rs.Close Set rs = Nothing xlWB.Close SaveChanges:=False End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, September 21, 2010 6:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Thanks for checking that, one issue out of the way. Next suspicion (as has been discussed) would be transfer spreadsheet method. I move data between Excel and Access a lot and never use transferspreadsheet, I don't like using this at all. You might be better off using other ways. Some of them are slower, but much more reliable. In my experience transfer spreadsheet can be problematic and frankly, not to be trusted. have a look here, it might help <> this is probably even closer to what you need <> Regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 11:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet Code shows that the file exists. Changing dim on varFileName to String made no difference. Still getting the error The file '-1' does not exist -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, September 20, 2010 7:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link to spreadsheet _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Chester, Maybe obvious, but the first thing I would check is that the path and file name is 100% correct. If you are on a LAN I would recommend you change the drive to a URL name rather than a drive letter. You can use a function to test if the file exists first before attempting to open if. If the function below returns true the file exists. I would suggest you test for the file first. If the function passes you can then start checking other options for the failure. varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" If CheckFileOrDirExists(varFileName) = True Then wb.open blah blah.. End If '=========================================================== Function CheckFileOrDirExists(PathName As String) As Boolean 'Macro Purpose: Function returns TRUE if the specified file ' or folder exists, false if not. 'PathName : Supports Windows mapped drives or UNC ' : Supports Macintosh paths 'File usage : Provide full file path and extension 'Folder usage : Provide full folder path ' Accepts with/without trailing "\" (Windows) ' Accepts with/without trailing ":" (Macintosh) Dim iTemp As Integer 'Ignore errors to allow for error evaluation On Error Resume Next iTemp = GetAttr(PathName) 'Check if error exists and set response appropriately Select Case Err.Number Case Is = 0 CheckFileOrDirExists = True Case Else CheckFileOrDirExists = False End Select 'Resume error checking On Error GoTo 0 End Function '=============================================================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, 21 September 2010 5:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Link to spreadsheet I am using the following code in an attempt to link to a password protected spreadsheet. I am running it from a terminal server instance of Access 2007 if that matters. I get the following error message. Could it have anything to do with the spreadsheet asking if I want to enable macros when I open it manually? The file '-1' does not exist Here is the code: Sub LinkSpreadsheet() On Error GoTo LinkSpreadsheet_Err Dim varFileName As Variant Dim strPassword As String Dim db As Database Dim oExcel As Object, oWb As Object Set oExcel = CreateObject("Excel.Application") DoCmd.SetWarnings False Set db = CurrentDb() strPassword = "rig" varFileName = "F:\DATA\PUBLIC\Rig Schedule\Rig Schedule.xls" Set oWb = oExcel.Workbooks.Open(FileName:=varFileName, ReadOnly:=True,_ Password:=strPassword, UpdateLinks:=0, IgnoreReadOnlyRecommended:=True) DoCmd.TransferSpreadsheet acLink, 8, varFileName, True oWb.Close SaveChanges:=False DoCmd.SetWarnings True LinkSpreadsheet_Exit: oExcel.Quit Set oExcel = Nothing Exit Sub LinkSpreadsheet_Err: MsgBox Error$ Resume LinkSpreadsheet_Exit End Sub Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Sun Sep 26 22:24:49 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Mon, 27 Sep 2010 08:54:49 +0530 Subject: [AccessD] Resizing of forms to suit screen resolution in force References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede> <1F1069C670C94A18974A5E3FB1C867BA@HAL9005> Message-ID: Rocky, The problem of jumping forms encountered by you seems to be arising out of run time manipulation of tool bars (depending upon mdb or mde format). If you eliminate all such code and make the mde file only from a version of mdb file that has only those tool bars as are required for mde version, the problem should stand resolved. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Rocky Smolin To: 'Access Developers discussion and problem solving' Sent: Saturday, September 25, 2010 21:35 Subject: Re: [AccessD] Resizing of forms to suit screen resolution in force A.D.: I tried your resizing routine this morning, and sorry to say it did not fix the flashing problem. But, I now think that my original assumption was wrong - it does not have to do with the resizing because I commented out the call to the resizing module in a form that jumps consistently on opening and it still jumped. So there's something else going on there that I can't figure out. This only happens with the mde, not the mdb, BTW. So I commented out ALL the code in one of the jumping forms in the _Open and Current events of both the main form and sub-form on the theory that there was something in there that caused the jump. Still jumped. So I copied the mdb to machine #2, fired it up in A2007, created and mde in A2007- no jumping. So then I copied over the mde that had been created in A2003. No jumping. So apparently it has to do with running the mde in A2003. Could it be the installation on A2003 on my primary machine? I copied the mde created in A2003 to my laptop and ran it in A2003. Jumps. Last test - copied mde created on machine #1 in A2003 to machine 2 where I tested the mde in A2007 but also have A2003. On that machine in A2003 the forms jumps on opening whether screen resizing is used or not. So it's still a mystery but I've eliminated a few possibilities. Regards, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From BradM at blackforestltd.com Mon Sep 27 15:10:30 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 27 Sep 2010 15:10:30 -0500 Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file (Front End) References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> Message-ID: Are there any general rules for how large an Access 2007 "Accdb" file can be? This would be the "Front End" part of an Access Application, with the data stored in the "Back End". If necessary, we could split the Front End into more than one Accdb file. Thanks, Brad From garykjos at gmail.com Mon Sep 27 15:16:54 2010 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 27 Sep 2010 15:16:54 -0500 Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file (Front End) In-Reply-To: References: <4C916EF3.7070700@colbyconsulting.com> <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com> <1148A449423644DF89E9F3A6A785EA42@HAL9005> <4C92283F.1010506@colbyconsulting.com> <274CF11D77114AB581A0B3C8E54EC044@personal4a8ede> <31A2A7B0F11E4267831256F840707491@HAL9005> <369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede> <1F1069C670C94A18974A5E3FB1C867BA@HAL9005> Message-ID: 2 Gb is the Max size in an Access Database . http://office.microsoft.com/en-gb/access-help/access-2007-specifications-HA010030739.aspx GK On Mon, Sep 27, 2010 at 3:10 PM, Brad Marks wrote: > Are there any general rules for how large an Access 2007 "Accdb" file > can be? > > This would be the "Front End" part of an Access Application, with the > data stored in the "Back End". > > If necessary, we could split the Front End into more than one Accdb > file. > > Thanks, > Brad > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From steve at datamanagementsolutions.biz Tue Sep 28 03:03:55 2010 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Tue, 28 Sep 2010 21:03:55 +1300 Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file (FrontEnd) In-Reply-To: References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> Message-ID: <7318F31AC114487BBF86155A323F523F@stevelaptop> Brad, Gary has given you the answer re 2 GB. Just wondering - what is the reason for your concern? In my experience, backend database files can sometimes get pretty meaty, but the size of the frontend is not normally an issue. The biggest one I have is only about 30 MB (after compacting), and I can't really imagine one ever getting too big. Regards Steve -----Original Message----- From: Brad Marks Sent: Tuesday, September 28, 2010 9:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file (FrontEnd) Are there any general rules for how large an Access 2007 "Accdb" file can be? This would be the "Front End" part of an Access Application, with the data stored in the "Back End". If necessary, we could split the Front End into more than one Accdb file. From pedro at plex.nl Tue Sep 28 15:13:31 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 28 Sep 2010 15:13:31 (CEST) Subject: [AccessD] query to slow Message-ID: <201009281313.o8SDDVC3014785@mailhostC.plex.net> From pedro at plex.nl Tue Sep 28 17:04:50 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 28 Sep 2010 17:04:50 (CEST) Subject: [AccessD] query to slow Message-ID: <201009281504.o8SF4o4L021605@mailhostC.plex.net> Dear List, i have a query with about 400000 records. This query contains patientnumbers and dates Patientnr UitvoerDatum 01000616 1-6-2009 01000616 29-7-2009 01000661 1-5-2010 01000661 3-6-2010 01000661 3-6-2010 01000832 11-9-2009 01000832 17-9-2009 01000832 1-3-2010 I need to have for each Patientnumber, the last date (see final result). I did this with two queries (see below), but only with low number queries (a few thousand records. With more then 500000 records it takes to much time to get the result. Can i do this with 1 query in a normal time span for 400000 records?? Thanks Pedro SELECT qryKreatinine.Patientnr, qryKreatinine.UitvoerDatum FROM qryKreatinine WHERE qryKreatinine.UitvoerDatum =(SELECT MAX(T.UitvoerDatum) as MaxDate FROM qryKreatinine as T WHERE T.Patientnr = qryKreatinine.Patientnr); result: Patientnr UitvoerDatum 01000616 29-7-2009 01000616 29-7-2009 01000661 3-6-2010 01000661 3-6-2010 01000661 3-6-2010 01000832 1-3-2010 01000832 1-3-2010 01000832 1-3-2010 SELECT qryKreatinine_LaatsteDatum.Patientnr, qryKreatinine_LaatsteDatum.UitvoerDatum FROM qryKreatinine_LaatsteDatum GROUP BY qryKreatinine_LaatsteDatum.Patientnr, qryKreatinine_LaatsteDatum.UitvoerDatum HAVING (((qryKreatinine_LaatsteDatum.Patientnr) In (SELECT [Patientnr] FROM [qryKreatinine_LaatsteDatum] As Tmp GROUP BY [Patientnr]))) ORDER BY qryKreatinine_LaatsteDatum.Patientnr; final result: Patientnr UitvoerDatum 01000616 29-7-2009 01000661 3-6-2010 01000832 1-3-2010 From rockysmolin at bchacc.com Tue Sep 28 10:15:30 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 28 Sep 2010 08:15:30 -0700 Subject: [AccessD] query to slow In-Reply-To: <201009281504.o8SF4o4L021605@mailhostC.plex.net> References: <201009281504.o8SF4o4L021605@mailhostC.plex.net> Message-ID: <546B5052E1CC4F6D8AA0FC189B3A693F@HAL9005> Is Patientnr indexed? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: Tuesday, September 28, 2010 5:05 PM To: accessd at databaseadvisors.com Subject: [AccessD] query to slow Dear List, i have a query with about 400000 records. This query contains patientnumbers and dates Patientnr UitvoerDatum 01000616 1-6-2009 01000616 29-7-2009 01000661 1-5-2010 01000661 3-6-2010 01000661 3-6-2010 01000832 11-9-2009 01000832 17-9-2009 01000832 1-3-2010 I need to have for each Patientnumber, the last date (see final result). I did this with two queries (see below), but only with low number queries (a few thousand records. With more then 500000 records it takes to much time to get the result. Can i do this with 1 query in a normal time span for 400000 records?? Thanks Pedro SELECT qryKreatinine.Patientnr, qryKreatinine.UitvoerDatum FROM qryKreatinine WHERE qryKreatinine.UitvoerDatum =(SELECT MAX(T.UitvoerDatum) as MaxDate FROM qryKreatinine as T WHERE T.Patientnr = qryKreatinine.Patientnr); result: Patientnr UitvoerDatum 01000616 29-7-2009 01000616 29-7-2009 01000661 3-6-2010 01000661 3-6-2010 01000661 3-6-2010 01000832 1-3-2010 01000832 1-3-2010 01000832 1-3-2010 SELECT qryKreatinine_LaatsteDatum.Patientnr, qryKreatinine_LaatsteDatum.UitvoerDatum FROM qryKreatinine_LaatsteDatum GROUP BY qryKreatinine_LaatsteDatum.Patientnr, qryKreatinine_LaatsteDatum.UitvoerDatum HAVING (((qryKreatinine_LaatsteDatum.Patientnr) In (SELECT [Patientnr] FROM [qryKreatinine_LaatsteDatum] As Tmp GROUP BY [Patientnr]))) ORDER BY qryKreatinine_LaatsteDatum.Patientnr; final result: Patientnr UitvoerDatum 01000616 29-7-2009 01000661 3-6-2010 01000832 1-3-2010 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Sep 28 10:28:42 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Sep 2010 17:28:42 +0200 Subject: [AccessD] query to slow Message-ID: Hi Pedro Why not just: SELECT Patientnr, Max(UitvoerDatum) As UitvoerDatumLast FROM qryKreatinine GROUP BY Patientnr; /gustav >>> pedro at plex.nl 28-09-2010 17:04 >>> Dear List, i have a query with about 400000 records. This query contains patientnumbers and dates Patientnr UitvoerDatum 01000616 1-6-2009 01000616 29-7-2009 01000661 1-5-2010 01000661 3-6-2010 01000661 3-6-2010 01000832 11-9-2009 01000832 17-9-2009 01000832 1-3-2010 I need to have for each Patientnumber, the last date (see final result). I did this with two queries (see below), but only with low number queries (a few thousand records. With more then 500000 records it takes to much time to get the result. Can i do this with 1 query in a normal time span for 400000 records?? Thanks Pedro From Chester_Kaup at kindermorgan.com Tue Sep 28 10:28:59 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 28 Sep 2010 10:28:59 -0500 Subject: [AccessD] query to slow In-Reply-To: <201009281504.o8SF4o4L021605@mailhostC.plex.net> References: <201009281504.o8SF4o4L021605@mailhostC.plex.net> Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C1925F499E9@houex1.kindermorgan.com> I think all you need is SELECT DISTINCT qryKreatinine.Patientnr, Max(qryKreatinine.UitvoerDatum) AS MaxOfUitvoerDatum FROM qryKreatinine GROUP BY qryKreatinine.Patientnr; -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: Tuesday, September 28, 2010 12:05 PM To: accessd at databaseadvisors.com Subject: [AccessD] query to slow Dear List, i have a query with about 400000 records. This query contains patientnumbers and dates Patientnr UitvoerDatum 01000616 1-6-2009 01000616 29-7-2009 01000661 1-5-2010 01000661 3-6-2010 01000661 3-6-2010 01000832 11-9-2009 01000832 17-9-2009 01000832 1-3-2010 I need to have for each Patientnumber, the last date (see final result). I did this with two queries (see below), but only with low number queries (a few thousand records. With more then 500000 records it takes to much time to get the result. Can i do this with 1 query in a normal time span for 400000 records?? Thanks Pedro SELECT qryKreatinine.Patientnr, qryKreatinine.UitvoerDatum FROM qryKreatinine WHERE qryKreatinine.UitvoerDatum =(SELECT MAX(T.UitvoerDatum) as MaxDate FROM qryKreatinine as T WHERE T.Patientnr = qryKreatinine.Patientnr); result: Patientnr UitvoerDatum 01000616 29-7-2009 01000616 29-7-2009 01000661 3-6-2010 01000661 3-6-2010 01000661 3-6-2010 01000832 1-3-2010 01000832 1-3-2010 01000832 1-3-2010 SELECT qryKreatinine_LaatsteDatum.Patientnr, qryKreatinine_LaatsteDatum.UitvoerDatum FROM qryKreatinine_LaatsteDatum GROUP BY qryKreatinine_LaatsteDatum.Patientnr, qryKreatinine_LaatsteDatum.UitvoerDatum HAVING (((qryKreatinine_LaatsteDatum.Patientnr) In (SELECT [Patientnr] FROM [qryKreatinine_LaatsteDatum] As Tmp GROUP BY [Patientnr]))) ORDER BY qryKreatinine_LaatsteDatum.Patientnr; final result: Patientnr UitvoerDatum 01000616 29-7-2009 01000661 3-6-2010 01000832 1-3-2010 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Tue Sep 28 10:32:03 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 28 Sep 2010 11:32:03 -0400 Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file (Front End) In-Reply-To: References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> Message-ID: <24035E94505B4968B2689B741D95FA76@XPS> None really although I've found that some think anything over 25 or 30MB is "too big" for some reason. Never been able to put a rhyme or reason to that. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, September 27, 2010 4:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file (Front End) Are there any general rules for how large an Access 2007 "Accdb" file can be? This would be the "Front End" part of an Access Application, with the data stored in the "Back End". If necessary, we could split the Front End into more than one Accdb file. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Tue Sep 28 11:36:34 2010 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 28 Sep 2010 17:36:34 +0100 Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file(Front End) In-Reply-To: <24035E94505B4968B2689B741D95FA76@XPS> Message-ID: <439D0A07610B4AA0BC6B5FAC784FFEDF@MINSTER> I have FE of over 50mb and no problem. Admittedly still on good old A97 but hey. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: 28 September 2010 16:32 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" file(Front End) None really although I've found that some think anything over 25 or 30MB is "too big" for some reason. Never been able to put a rhyme or reason to that. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, September 27, 2010 4:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file (Front End) Are there any general rules for how large an Access 2007 "Accdb" file can be? This would be the "Front End" part of an Access Application, with the data stored in the "Back End". If necessary, we could split the Front End into more than one Accdb file. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Tue Sep 28 12:06:46 2010 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 28 Sep 2010 10:06:46 -0700 Subject: [AccessD] query to slow In-Reply-To: <201009281504.o8SF4o4L021605@mailhostC.plex.net> References: <201009281504.o8SF4o4L021605@mailhostC.plex.net> Message-ID: SELECT A.Patientnr, MAX(A.UitvoerDatum) AS MaxReturnDate FROM qryKreatinine_LaatsteDatum AS A GROUP BY A.Patientnr, ORDER BY A.Patientnr; Would work, but what is the SQL for qryKreatine? May be able to speed it up a bit as well. On Tue, Sep 28, 2010 at 10:04 AM, wrote: > Dear List, > > i have a query with about 400000 records. > This query contains patientnumbers and dates > > > > Patientnr ? UitvoerDatum > 01000616 ? ?1-6-2009 > 01000616 ? ?29-7-2009 > 01000661 ? ?1-5-2010 > 01000661 ? ?3-6-2010 > 01000661 ? ?3-6-2010 > 01000832 ? ?11-9-2009 > 01000832 ? ?17-9-2009 > 01000832 ? ?1-3-2010 > > I need to have for each Patientnumber, the last date (see final result). > I did this with two queries (see below), but only with low number queries (a few thousand records. > With more then 500000 records it takes to much time to get the result. > > Can i do this with 1 query in a normal time span for 400000 records?? > > > Thanks > > Pedro > > > > > SELECT qryKreatinine.Patientnr, qryKreatinine.UitvoerDatum > FROM qryKreatinine > WHERE qryKreatinine.UitvoerDatum =(SELECT MAX(T.UitvoerDatum) as MaxDate > FROM qryKreatinine as T > WHERE T.Patientnr = qryKreatinine.Patientnr); > > > result: > Patientnr ? UitvoerDatum > 01000616 ? ?29-7-2009 > 01000616 ? ?29-7-2009 > 01000661 ? ?3-6-2010 > 01000661 ? ?3-6-2010 > 01000661 ? ?3-6-2010 > 01000832 ? ?1-3-2010 > 01000832 ? ?1-3-2010 > 01000832 ? ?1-3-2010 > > > > > SELECT qryKreatinine_LaatsteDatum.Patientnr, qryKreatinine_LaatsteDatum.UitvoerDatum > FROM qryKreatinine_LaatsteDatum > GROUP BY qryKreatinine_LaatsteDatum.Patientnr, qryKreatinine_LaatsteDatum.UitvoerDatum > HAVING (((qryKreatinine_LaatsteDatum.Patientnr) In (SELECT [Patientnr] FROM [qryKreatinine_LaatsteDatum] As Tmp GROUP BY [Patientnr]))) > ORDER BY qryKreatinine_LaatsteDatum.Patientnr; > > final result: > Patientnr ? UitvoerDatum > 01000616 ? ?29-7-2009 > 01000661 ? ?3-6-2010 > 01000832 ? ?1-3-2010 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Tue Sep 28 12:52:42 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Tue, 28 Sep 2010 12:52:42 -0500 Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file(FrontEnd) References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <7318F31AC114487BBF86155A323F523F@stevelaptop> Message-ID: Steve, I have noticed that once in a while our Access Front-End seems to load slowly (15-20 seconds). I was just curious if this might be caused by its size (20 Meg). We could split the Front-End into multiple files, but this would be a last resort. Thanks for the help, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Tuesday, September 28, 2010 3:04 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" file(FrontEnd) Brad, Gary has given you the answer re 2 GB. Just wondering - what is the reason for your concern? In my experience, backend database files can sometimes get pretty meaty, but the size of the frontend is not normally an issue. The biggest one I have is only about 30 MB (after compacting), and I can't really imagine one ever getting too big. Regards Steve -----Original Message----- From: Brad Marks Sent: Tuesday, September 28, 2010 9:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file (FrontEnd) Are there any general rules for how large an Access 2007 "Accdb" file can be? This would be the "Front End" part of an Access Application, with the data stored in the "Back End". If necessary, we could split the Front End into more than one Accdb file. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From pedro at plex.nl Tue Sep 28 14:10:20 2010 From: pedro at plex.nl (Pedro Janssen) Date: Tue, 28 Sep 2010 21:10:20 +0200 Subject: [AccessD] query to slow In-Reply-To: References: Message-ID: <4CA23D9C.1020701@plex.nl> Hello Gustav and Chester, thanks for the help. I will try this tomorrow. I'll hope will hope for large numbers of records. But i still need the subquery for counting measures. May be there is a work around for this counting. If i don't manage it by myself, i will get back to the list for help. Rocky, Patientnr is indexed. Thanks Pedro Op 28-9-2010 17:28, Gustav Brock schreef: > Hi Pedro > > Why not just: > > SELECT > Patientnr, > Max(UitvoerDatum) As UitvoerDatumLast > FROM > qryKreatinine > GROUP BY > Patientnr; > > /gustav > > >>>> pedro at plex.nl 28-09-2010 17:04>>> > Dear List, > > i have a query with about 400000 records. > This query contains patientnumbers and dates > > > > Patientnr UitvoerDatum > 01000616 1-6-2009 > 01000616 29-7-2009 > 01000661 1-5-2010 > 01000661 3-6-2010 > 01000661 3-6-2010 > 01000832 11-9-2009 > 01000832 17-9-2009 > 01000832 1-3-2010 > > I need to have for each Patientnumber, the last date (see final result). > I did this with two queries (see below), but only with low number queries (a few thousand records. > With more then 500000 records it takes to much time to get the result. > > Can i do this with 1 query in a normal time span for 400000 records?? > > > Thanks > > Pedro > > > From BradM at blackforestltd.com Tue Sep 28 15:32:57 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Tue, 28 Sep 2010 15:32:57 -0500 Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file(Front End) References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> Message-ID: Jim, Any ideas on why some think that anything over 25 or 30 MB is too big? Some folks must have run into some issues for this idea to be floating around. Thanks, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, September 28, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" file(Front End) None really although I've found that some think anything over 25 or 30MB is "too big" for some reason. Never been able to put a rhyme or reason to that. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, September 27, 2010 4:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file (Front End) Are there any general rules for how large an Access 2007 "Accdb" file can be? This would be the "Front End" part of an Access Application, with the data stored in the "Back End". If necessary, we could split the Front End into more than one Accdb file. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From garykjos at gmail.com Tue Sep 28 15:48:18 2010 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 28 Sep 2010 15:48:18 -0500 Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file(Front End) In-Reply-To: References: <4C916EF3.7070700@colbyconsulting.com> <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com> <1148A449423644DF89E9F3A6A785EA42@HAL9005> <4C92283F.1010506@colbyconsulting.com> <274CF11D77114AB581A0B3C8E54EC044@personal4a8ede> <31A2A7B0F11E4267831256F840707491@HAL9005> <369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede> <1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> Message-ID: It might be more of a gut feeling kind of thing. As a front end expands it does increase the amount of data needing to be shot up and down the LAN connection. Smaller = faster. Since Access has no "database server" so to speak, everything has to happen on the client machine so there is a lot of LAN traffic. Keeping the front end local helps that a lot and many developers will work out a system to copy a central copy from the server to a local hard drive with a batch file or something similar prior to starting the application up. GK On Tue, Sep 28, 2010 at 3:32 PM, Brad Marks wrote: > Jim, > > Any ideas on why some think that anything over 25 or 30 MB is too big? > > Some folks must have run into some issues for this idea to be floating > around. > > Thanks, > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Tuesday, September 28, 2010 10:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" > file(Front End) > > > ?None really although I've found that some think anything over 25 or > 30MB > is "too big" for some reason. ?Never been able to put a rhyme or reason > to > that. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Monday, September 27, 2010 4:11 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file > (Front > End) > > Are there any general rules for how large an Access 2007 "Accdb" file > can be? > > This would be the "Front End" part of an Access Application, with the > data stored in the "Back End". > > If necessary, we could split the Front End into more than one Accdb > file. > > Thanks, > Brad > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From pedro at plex.nl Tue Sep 28 15:55:59 2010 From: pedro at plex.nl (Pedro Janssen) Date: Tue, 28 Sep 2010 22:55:59 +0200 Subject: [AccessD] query to slow In-Reply-To: References: <201009281504.o8SF4o4L021605@mailhostC.plex.net> Message-ID: <4CA2565F.7070406@plex.nl> David, its a normal selectionquery. Is it better to change it to a tablemakequery and do the "max"query from the table? Does that speed things up? Pedro Op 28-9-2010 19:06, David McAfee schreef: > SELECT > A.Patientnr, > MAX(A.UitvoerDatum) AS MaxReturnDate > FROM qryKreatinine_LaatsteDatum AS A > GROUP BY > A.Patientnr, > ORDER BY A.Patientnr; > > Would work, but what is the SQL for qryKreatine? > > May be able to speed it up a bit as well. > > > > On Tue, Sep 28, 2010 at 10:04 AM, wrote: >> Dear List, >> >> i have a query with about 400000 records. >> This query contains patientnumbers and dates >> >> >> >> Patientnr UitvoerDatum >> 01000616 1-6-2009 >> 01000616 29-7-2009 >> 01000661 1-5-2010 >> 01000661 3-6-2010 >> 01000661 3-6-2010 >> 01000832 11-9-2009 >> 01000832 17-9-2009 >> 01000832 1-3-2010 >> >> I need to have for each Patientnumber, the last date (see final result). >> I did this with two queries (see below), but only with low number queries (a few thousand records. >> With more then 500000 records it takes to much time to get the result. >> >> Can i do this with 1 query in a normal time span for 400000 records?? >> >> >> Thanks >> >> Pedro >> >> >> >> >> SELECT qryKreatinine.Patientnr, qryKreatinine.UitvoerDatum >> FROM qryKreatinine >> WHERE qryKreatinine.UitvoerDatum =(SELECT MAX(T.UitvoerDatum) as MaxDate >> FROM qryKreatinine as T >> WHERE T.Patientnr = qryKreatinine.Patientnr); >> >> >> result: >> Patientnr UitvoerDatum >> 01000616 29-7-2009 >> 01000616 29-7-2009 >> 01000661 3-6-2010 >> 01000661 3-6-2010 >> 01000661 3-6-2010 >> 01000832 1-3-2010 >> 01000832 1-3-2010 >> 01000832 1-3-2010 >> >> >> >> >> SELECT qryKreatinine_LaatsteDatum.Patientnr, qryKreatinine_LaatsteDatum.UitvoerDatum >> FROM qryKreatinine_LaatsteDatum >> GROUP BY qryKreatinine_LaatsteDatum.Patientnr, qryKreatinine_LaatsteDatum.UitvoerDatum >> HAVING (((qryKreatinine_LaatsteDatum.Patientnr) In (SELECT [Patientnr] FROM [qryKreatinine_LaatsteDatum] As Tmp GROUP BY [Patientnr]))) >> ORDER BY qryKreatinine_LaatsteDatum.Patientnr; >> >> final result: >> Patientnr UitvoerDatum >> 01000616 29-7-2009 >> 01000661 3-6-2010 >> 01000832 1-3-2010 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From BradM at blackforestltd.com Tue Sep 28 16:04:54 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Tue, 28 Sep 2010 16:04:54 -0500 Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file(FrontEnd) References: <4C916EF3.7070700@colbyconsulting.com><1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005><24035E94505B4968B2689B741D95FA76@XPS> Message-ID: Gary, Thanks for the help. I have read a lot of info about Access, but I don't think that I have seen much in the realm of "Production Deployment" guidelines. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, September 28, 2010 3:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" file(FrontEnd) It might be more of a gut feeling kind of thing. As a front end expands it does increase the amount of data needing to be shot up and down the LAN connection. Smaller = faster. Since Access has no "database server" so to speak, everything has to happen on the client machine so there is a lot of LAN traffic. Keeping the front end local helps that a lot and many developers will work out a system to copy a central copy from the server to a local hard drive with a batch file or something similar prior to starting the application up. GK On Tue, Sep 28, 2010 at 3:32 PM, Brad Marks wrote: > Jim, > > Any ideas on why some think that anything over 25 or 30 MB is too big? > > Some folks must have run into some issues for this idea to be floating > around. > > Thanks, > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Tuesday, September 28, 2010 10:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" > file(Front End) > > > ?None really although I've found that some think anything over 25 or > 30MB > is "too big" for some reason. ?Never been able to put a rhyme or reason > to > that. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Monday, September 27, 2010 4:11 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file > (Front > End) > > Are there any general rules for how large an Access 2007 "Accdb" file > can be? > > This would be the "Front End" part of an Access Application, with the > data stored in the "Back End". > > If necessary, we could split the Front End into more than one Accdb > file. > > Thanks, > Brad > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From davidmcafee at gmail.com Tue Sep 28 16:15:35 2010 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 28 Sep 2010 14:15:35 -0700 Subject: [AccessD] query to slow In-Reply-To: <4CA2565F.7070406@plex.nl> References: <201009281504.o8SF4o4L021605@mailhostC.plex.net> <4CA2565F.7070406@plex.nl> Message-ID: Well, it is eliminating one queries. Probably won't help much, but it doesn't hurt either. :) D On Tue, Sep 28, 2010 at 1:55 PM, Pedro Janssen wrote: > > ?David, > > its a normal selectionquery. > > Is it better to change it to a tablemakequery and do the "max"query from > the table? > Does that speed things up? > > Pedro > > > > > > > > Op 28-9-2010 19:06, David McAfee schreef: >> SELECT >> ? ? ? A.Patientnr, >> ? ? ? MAX(A.UitvoerDatum) AS MaxReturnDate >> FROM qryKreatinine_LaatsteDatum AS A >> GROUP BY >> ? ? ? A.Patientnr, >> ORDER BY A.Patientnr; >> >> Would work, but what is the SQL for qryKreatine? >> >> May be able to speed it up a bit as well. >> >> >> >> On Tue, Sep 28, 2010 at 10:04 AM, ?wrote: >>> Dear List, >>> >>> i have a query ?with about 400000 records. >>> This query contains patientnumbers and dates >>> >>> >>> >>> Patientnr ? UitvoerDatum >>> 01000616 ? ?1-6-2009 >>> 01000616 ? ?29-7-2009 >>> 01000661 ? ?1-5-2010 >>> 01000661 ? ?3-6-2010 >>> 01000661 ? ?3-6-2010 >>> 01000832 ? ?11-9-2009 >>> 01000832 ? ?17-9-2009 >>> 01000832 ? ?1-3-2010 >>> >>> I need to have for each Patientnumber, the last date (see final result). >>> I did this with two queries (see below), but only with low number queries (a few thousand records. >>> With more then 500000 records it takes to much time to get the result. >>> >>> Can i do this with 1 query in a normal time span for 400000 records?? >>> >>> >>> Thanks >>> >>> Pedro >>> >>> >>> >>> >>> SELECT qryKreatinine.Patientnr, qryKreatinine.UitvoerDatum >>> FROM qryKreatinine >>> WHERE qryKreatinine.UitvoerDatum =(SELECT MAX(T.UitvoerDatum) as MaxDate >>> FROM qryKreatinine as T >>> WHERE T.Patientnr = qryKreatinine.Patientnr); >>> >>> >>> result: >>> Patientnr ? UitvoerDatum >>> 01000616 ? ?29-7-2009 >>> 01000616 ? ?29-7-2009 >>> 01000661 ? ?3-6-2010 >>> 01000661 ? ?3-6-2010 >>> 01000661 ? ?3-6-2010 >>> 01000832 ? ?1-3-2010 >>> 01000832 ? ?1-3-2010 >>> 01000832 ? ?1-3-2010 >>> >>> >>> >>> >>> SELECT qryKreatinine_LaatsteDatum.Patientnr, qryKreatinine_LaatsteDatum.UitvoerDatum >>> FROM qryKreatinine_LaatsteDatum >>> GROUP BY qryKreatinine_LaatsteDatum.Patientnr, qryKreatinine_LaatsteDatum.UitvoerDatum >>> HAVING (((qryKreatinine_LaatsteDatum.Patientnr) In (SELECT [Patientnr] FROM [qryKreatinine_LaatsteDatum] As Tmp GROUP BY [Patientnr]))) >>> ORDER BY qryKreatinine_LaatsteDatum.Patientnr; >>> >>> final result: >>> Patientnr ? UitvoerDatum >>> 01000616 ? ?29-7-2009 >>> 01000661 ? ?3-6-2010 >>> 01000832 ? ?1-3-2010 >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Tue Sep 28 16:40:51 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 29 Sep 2010 07:40:51 +1000 Subject: [AccessD] query to slow In-Reply-To: <201009281313.o8SDDVC3014785@mailhostC.plex.net> References: <201009281313.o8SDDVC3014785@mailhostC.plex.net> Message-ID: <4CA260E3.20367.27CA08F@stuart.lexacorp.com.pg> message too brief On 28 Sep 2010 at 15:13, pedro at plex.nl wrote: > From pedro at plex.nl Tue Sep 28 17:22:49 2010 From: pedro at plex.nl (Pedro Janssen) Date: Wed, 29 Sep 2010 00:22:49 +0200 Subject: [AccessD] query to slow In-Reply-To: <4CA260E3.20367.27CA08F@stuart.lexacorp.com.pg> References: <201009281313.o8SDDVC3014785@mailhostC.plex.net> <4CA260E3.20367.27CA08F@stuart.lexacorp.com.pg> Message-ID: <4CA26AB9.3010501@plex.nl> And quick fingers Op 28-9-2010 23:40, Stuart McLachlan schreef: > message too brief > > On 28 Sep 2010 at 15:13, pedro at plex.nl wrote: > > From Gustav at cactus.dk Wed Sep 29 01:48:12 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 29 Sep 2010 08:48:12 +0200 Subject: [AccessD] query to slow Message-ID: Hi Pedro So it would/could(?) be this: SELECT Patientnr, Max(UitvoerDatum) As UitvoerDatumLast, Count(*) As AantalMetingen FROM qryKreatinine GROUP BY Patientnr; /gustav >>> pedro at plex.nl 28-09-2010 21:10 >>> Hello Gustav and Chester, thanks for the help. I will try this tomorrow. I'll hope will hope for large numbers of records. But i still need the subquery for counting measures. May be there is a work around for this counting. If i don't manage it by myself, i will get back to the list for help. Rocky, Patientnr is indexed. Thanks Pedro Op 28-9-2010 17:28, Gustav Brock schreef: > Hi Pedro > > Why not just: > > SELECT > Patientnr, > Max(UitvoerDatum) As UitvoerDatumLast > FROM > qryKreatinine > GROUP BY > Patientnr; > > /gustav > > >>>> pedro at plex.nl 28-09-2010 17:04>>> > Dear List, > > i have a query with about 400000 records. > This query contains patientnumbers and dates > > > > Patientnr UitvoerDatum > 01000616 1-6-2009 > 01000616 29-7-2009 > 01000661 1-5-2010 > 01000661 3-6-2010 > 01000661 3-6-2010 > 01000832 11-9-2009 > 01000832 17-9-2009 > 01000832 1-3-2010 > > I need to have for each Patientnumber, the last date (see final result). > I did this with two queries (see below), but only with low number queries (a few thousand records. > With more then 500000 records it takes to much time to get the result. > > Can i do this with 1 query in a normal time span for 400000 records?? > > > Thanks > > Pedro From jimdettman at verizon.net Wed Sep 29 07:29:25 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 29 Sep 2010 08:29:25 -0400 Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file(FrontEnd) In-Reply-To: References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> Message-ID: <8257EBBA898944B7B38F321AAD5F040A@XPS> As I said, I never could put any real rhyme or reason to it. Seems to be one of those myths that have just been floating around. As Gary suggested, it may have come about from developers who don't bother to do a split design or do it and *still* leave the FE on the server to be shared rather then deploying it out to the clients. I've never had any problems with FE's of any size that I could trace just to the factor of size. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Tuesday, September 28, 2010 4:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" file(FrontEnd) Jim, Any ideas on why some think that anything over 25 or 30 MB is too big? Some folks must have run into some issues for this idea to be floating around. Thanks, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, September 28, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" file(Front End) None really although I've found that some think anything over 25 or 30MB is "too big" for some reason. Never been able to put a rhyme or reason to that. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, September 27, 2010 4:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file (Front End) Are there any general rules for how large an Access 2007 "Accdb" file can be? This would be the "Front End" part of an Access Application, with the data stored in the "Back End". If necessary, we could split the Front End into more than one Accdb file. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Wed Sep 29 08:59:46 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 29 Sep 2010 08:59:46 -0500 Subject: [AccessD] Top Values Query Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C1925F49B76@houex1.kindermorgan.com> In the attached query I am attempting to get the top three dates for each PID in the dbo_DSS_Welltests table. I calculate I should be getting 3 records for each of 9 PIDs for a total of 27 records. I only get 7 records. SELECT TOP 3 dbo_DSS_Welltests.TestDate, dbo_DSS_Welltests.PID FROM dbo_DSS_Welltests INNER JOIN ConfigMaster ON dbo_DSS_Welltests.PID = ConfigMaster.ChildPID WHERE ((([Configmaster].[PID]) In ("PAT 225-10","PAT 225-8","PAT 225-11","PAT 225-3A"))) ORDER BY dbo_DSS_Welltests.TestDate DESC; Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From jwcolby at colbyconsulting.com Wed Sep 29 09:24:11 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 29 Sep 2010 10:24:11 -0400 Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file(FrontEnd) In-Reply-To: <8257EBBA898944B7B38F321AAD5F040A@XPS> References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> <8257EBBA898944B7B38F321AAD5F040A@XPS> Message-ID: <4CA34C0B.9000106@colbyconsulting.com> > I've never had any problems with FE's of any size that I could trace just > to the factor of size. Me either. OTOH I have never seen a database much above 25 megabytes even though I have some with LOTS of forms and queries. John W. Colby www.ColbyConsulting.com On 9/29/2010 8:29 AM, Jim Dettman wrote: > > As I said, I never could put any real rhyme or reason to it. Seems to be > one of those myths that have just been floating around. > > As Gary suggested, it may have come about from developers who don't bother > to do a split design or do it and *still* leave the FE on the server to be > shared rather then deploying it out to the clients. > > I've never had any problems with FE's of any size that I could trace just > to the factor of size. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Tuesday, September 28, 2010 4:33 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" > file(FrontEnd) > > Jim, > > Any ideas on why some think that anything over 25 or 30 MB is too big? > > Some folks must have run into some issues for this idea to be floating > around. > > Thanks, > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Tuesday, September 28, 2010 10:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" > file(Front End) > > > None really although I've found that some think anything over 25 or > 30MB > is "too big" for some reason. Never been able to put a rhyme or reason > to > that. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Monday, September 27, 2010 4:11 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file > (Front > End) > > Are there any general rules for how large an Access 2007 "Accdb" file > can be? > > This would be the "Front End" part of an Access Application, with the > data stored in the "Back End". > > If necessary, we could split the Front End into more than one Accdb > file. > > Thanks, > Brad > > From dw-murphy at cox.net Wed Sep 29 11:22:52 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 29 Sep 2010 09:22:52 -0700 Subject: [AccessD] "Rule of Thumb" for size ofAccess "Accdb" file(FrontEnd) In-Reply-To: <4CA34C0B.9000106@colbyconsulting.com> References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> <8257EBBA898944B7B38F321AAD5F040A@XPS> <4CA34C0B.9000106@colbyconsulting.com> Message-ID: We have a client in Access 2007 with a 33 Meg front end and it runs fine with the front end on each users computer. When we got involved with this application they were sharing from the server over a not very fast network and it really was slow. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 29, 2010 7:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] "Rule of Thumb" for size ofAccess "Accdb" file(FrontEnd) > I've never had any problems with FE's of any size that I could trace just > to the factor of size. Me either. OTOH I have never seen a database much above 25 megabytes even though I have some with LOTS of forms and queries. John W. Colby www.ColbyConsulting.com On 9/29/2010 8:29 AM, Jim Dettman wrote: > > As I said, I never could put any real rhyme or reason to it. Seems > to be one of those myths that have just been floating around. > > As Gary suggested, it may have come about from developers who don't > bother to do a split design or do it and *still* leave the FE on the > server to be shared rather then deploying it out to the clients. > > I've never had any problems with FE's of any size that I could > trace just to the factor of size. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Tuesday, September 28, 2010 4:33 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" > file(FrontEnd) > > Jim, > > Any ideas on why some think that anything over 25 or 30 MB is too big? > > Some folks must have run into some issues for this idea to be floating > around. > > Thanks, > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Tuesday, September 28, 2010 10:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" > file(Front End) > > > None really although I've found that some think anything over 25 or > 30MB is "too big" for some reason. Never been able to put a rhyme or > reason to that. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Monday, September 27, 2010 4:11 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file > (Front > End) > > Are there any general rules for how large an Access 2007 "Accdb" file > can be? > > This would be the "Front End" part of an Access Application, with the > data stored in the "Back End". > > If necessary, we could split the Front End into more than one Accdb > file. > > Thanks, > Brad > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Wed Sep 29 13:26:56 2010 From: jm.hwsn at gmail.com (jm.hwsn) Date: Wed, 29 Sep 2010 13:26:56 -0500 Subject: [AccessD] "Rule of Thumb" for sizeofAccess "Accdb" file(FrontEnd) In-Reply-To: References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> <8257EBBA898944B7B38F321AAD5F040A@XPS><4CA34C0B.9000106@colbyconsulting.com> Message-ID: How is the speed over the network with A2007? What are you using for the BE? I have a Access 2007 front end on each user's desktop; with an Access 2007 BE. With only one or two people using it - it is slow.... The contract says..."Access 2007" only. It is painfully slow. I surmise it's the network because even accessing some Word or Excel files it's slow. What could be done to speed it up? Thanks, Jim -------------------------------------------------- From: "Doug Murphy" Sent: Wednesday, September 29, 2010 11:22 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] "Rule of Thumb" for sizeofAccess "Accdb"file(FrontEnd)> We have a client in Access 2007 with a 33 Meg front end and it runs fine > with the front end on each users computer. When we got involved with this > application they were sharing from the server over a not very fast network > and it really was slow. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 29, 2010 7:24 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] "Rule of Thumb" for size ofAccess "Accdb" > file(FrontEnd) > > > I've never had any problems with FE's of any size that I could trace > just > > to the factor of size. > > Me either. OTOH I have never seen a database much above 25 megabytes even > though I have some with LOTS of forms and queries. > > John W. Colby > www.ColbyConsulting.com > > On 9/29/2010 8:29 AM, Jim Dettman wrote: >> >> As I said, I never could put any real rhyme or reason to it. Seems >> to be one of those myths that have just been floating around. >> >> As Gary suggested, it may have come about from developers who don't >> bother to do a split design or do it and *still* leave the FE on the >> server to be shared rather then deploying it out to the clients. >> >> I've never had any problems with FE's of any size that I could >> trace just to the factor of size. >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks >> Sent: Tuesday, September 28, 2010 4:33 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" >> file(FrontEnd) >> >> Jim, >> >> Any ideas on why some think that anything over 25 or 30 MB is too big? >> >> Some folks must have run into some issues for this idea to be floating >> around. >> >> Thanks, >> Brad >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >> Sent: Tuesday, September 28, 2010 10:32 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" >> file(Front End) >> >> >> None really although I've found that some think anything over 25 or >> 30MB is "too big" for some reason. Never been able to put a rhyme or >> reason to that. >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks >> Sent: Monday, September 27, 2010 4:11 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file >> (Front >> End) >> >> Are there any general rules for how large an Access 2007 "Accdb" file >> can be? >> >> This would be the "Front End" part of an Access Application, with the >> data stored in the "Back End". >> >> If necessary, we could split the Front End into more than one Accdb >> file. >> >> Thanks, >> Brad >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dw-murphy at cox.net Wed Sep 29 13:41:04 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 29 Sep 2010 11:41:04 -0700 Subject: [AccessD] "Rule of Thumb" forsizeofAccess "Accdb" file(FrontEnd) In-Reply-To: References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> <8257EBBA898944B7B38F321AAD5F040A@XPS><4CA34C0B.9000106@colbyconsulting.com> Message-ID: <25646369F2DA48CFABDBF0E8887F323D@murphy3234aaf1> For this app the speed is reasonable. The back end is in 2000 format, i.e. mdb. Network speed can have a real impact. Keep the database connected as has been discussed here many times. For info look in the archives. I have another client who specified 2007 and that database was slowwwwww. It was even slow to develop in, forms took forever to open in design view. The person who did the original design used attachment fields. It was my assumption that these were the cause of much of the lag, but I never took the time to prove this. The customer wanted it faster so we put the back end in SQL Server, changed the attachment fields to binaries and the thing really moves now. I suggested using the file system for the attachment files but the customer was adamant that they would be in the database. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Wednesday, September 29, 2010 11:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] "Rule of Thumb" forsizeofAccess "Accdb" file(FrontEnd) How is the speed over the network with A2007? What are you using for the BE? I have a Access 2007 front end on each user's desktop; with an Access 2007 BE. With only one or two people using it - it is slow.... The contract says..."Access 2007" only. It is painfully slow. I surmise it's the network because even accessing some Word or Excel files it's slow. What could be done to speed it up? Thanks, Jim -------------------------------------------------- From: "Doug Murphy" Sent: Wednesday, September 29, 2010 11:22 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] "Rule of Thumb" for sizeofAccess "Accdb"file(FrontEnd)> We have a client in Access 2007 with a 33 Meg front end and it runs fine > with the front end on each users computer. When we got involved with > this application they were sharing from the server over a not very > fast network and it really was slow. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, September 29, 2010 7:24 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] "Rule of Thumb" for size ofAccess "Accdb" > file(FrontEnd) > > > I've never had any problems with FE's of any size that I could > > trace > just > > to the factor of size. > > Me either. OTOH I have never seen a database much above 25 megabytes > even though I have some with LOTS of forms and queries. > > John W. Colby > www.ColbyConsulting.com > > On 9/29/2010 8:29 AM, Jim Dettman wrote: >> >> As I said, I never could put any real rhyme or reason to it. >> Seems to be one of those myths that have just been floating around. >> >> As Gary suggested, it may have come about from developers who >> don't bother to do a split design or do it and *still* leave the FE >> on the server to be shared rather then deploying it out to the clients. >> >> I've never had any problems with FE's of any size that I could >> trace just to the factor of size. >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks >> Sent: Tuesday, September 28, 2010 4:33 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" >> file(FrontEnd) >> >> Jim, >> >> Any ideas on why some think that anything over 25 or 30 MB is too big? >> >> Some folks must have run into some issues for this idea to be >> floating around. >> >> Thanks, >> Brad >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> Dettman >> Sent: Tuesday, September 28, 2010 10:32 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" >> file(Front End) >> >> >> None really although I've found that some think anything over 25 >> or 30MB is "too big" for some reason. Never been able to put a rhyme >> or reason to that. >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks >> Sent: Monday, September 27, 2010 4:11 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file >> (Front >> End) >> >> Are there any general rules for how large an Access 2007 "Accdb" file >> can be? >> >> This would be the "Front End" part of an Access Application, with the >> data stored in the "Back End". >> >> If necessary, we could split the Front End into more than one Accdb >> file. >> >> Thanks, >> Brad >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Wed Sep 29 14:32:45 2010 From: jm.hwsn at gmail.com (jm.hwsn) Date: Wed, 29 Sep 2010 14:32:45 -0500 Subject: [AccessD] "Rule of Thumb" forsizeofAccess "Accdb" file(FrontEnd) In-Reply-To: <25646369F2DA48CFABDBF0E8887F323D@murphy3234aaf1> References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> <8257EBBA898944B7B38F321AAD5F040A@XPS><4CA34C0B.9000106@colbyconsulting.com> <25646369F2DA48CFABDBF0E8887F323D@murphy3234aaf1> Message-ID: <24264394EA8D47EEB0E563B1A3DC7B1D@HomePC> Thanks, Doug. I did convert the BE to 2000 format and it did speed up. My next step is to keep it connected. Thanks, Jim -------------------------------------------------- From: "Doug Murphy" Sent: Wednesday, September 29, 2010 1:41 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] "Rule of Thumb" forsizeofAccess "Accdb"file(FrontEnd)> For this app the speed is reasonable. The back end is in 2000 format, i.e. > mdb. Network speed can have a real impact. Keep the database connected as > has been discussed here many times. For info look in the archives. > > I have another client who specified 2007 and that database was slowwwwww. > It > was even slow to develop in, forms took forever to open in design view. > The > person who did the original design used attachment fields. It was my > assumption that these were the cause of much of the lag, but I never took > the time to prove this. The customer wanted it faster so we put the back > end > in SQL Server, changed the attachment fields to binaries and the thing > really moves now. I suggested using the file system for the attachment > files > but the customer was adamant that they would be in the database. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Wednesday, September 29, 2010 11:27 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] "Rule of Thumb" forsizeofAccess "Accdb" > file(FrontEnd) > > How is the speed over the network with A2007? > What are you using for the BE? > > I have a Access 2007 front end on each user's desktop; with an Access 2007 > BE. With only one or two people using it - it is slow.... > > The contract says..."Access 2007" only. It is painfully slow. I surmise > it's the network because even accessing some Word or Excel files it's > slow. > > What could be done to speed it up? > > Thanks, > Jim > > -------------------------------------------------- > From: "Doug Murphy" > Sent: Wednesday, September 29, 2010 11:22 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] "Rule of Thumb" for sizeofAccess > "Accdb"file(FrontEnd)> We have a client in Access 2007 with a 33 Meg front > end and it runs fine >> with the front end on each users computer. When we got involved with >> this application they were sharing from the server over a not very >> fast network and it really was slow. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, September 29, 2010 7:24 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] "Rule of Thumb" for size ofAccess "Accdb" >> file(FrontEnd) >> >> > I've never had any problems with FE's of any size that I could >> > trace >> just >> > to the factor of size. >> >> Me either. OTOH I have never seen a database much above 25 megabytes >> even though I have some with LOTS of forms and queries. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 9/29/2010 8:29 AM, Jim Dettman wrote: >>> >>> As I said, I never could put any real rhyme or reason to it. >>> Seems to be one of those myths that have just been floating around. >>> >>> As Gary suggested, it may have come about from developers who >>> don't bother to do a split design or do it and *still* leave the FE >>> on the server to be shared rather then deploying it out to the clients. >>> >>> I've never had any problems with FE's of any size that I could >>> trace just to the factor of size. >>> >>> Jim. >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks >>> Sent: Tuesday, September 28, 2010 4:33 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" >>> file(FrontEnd) >>> >>> Jim, >>> >>> Any ideas on why some think that anything over 25 or 30 MB is too big? >>> >>> Some folks must have run into some issues for this idea to be >>> floating around. >>> >>> Thanks, >>> Brad >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>> Dettman >>> Sent: Tuesday, September 28, 2010 10:32 AM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] "Rule of Thumb" for size of Access "Accdb" >>> file(Front End) >>> >>> >>> None really although I've found that some think anything over 25 >>> or 30MB is "too big" for some reason. Never been able to put a rhyme >>> or reason to that. >>> >>> Jim. >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks >>> Sent: Monday, September 27, 2010 4:11 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] "Rule of Thumb" for size of Access "Accdb" file >>> (Front >>> End) >>> >>> Are there any general rules for how large an Access 2007 "Accdb" file >>> can be? >>> >>> This would be the "Front End" part of an Access Application, with the >>> data stored in the "Back End". >>> >>> If necessary, we could split the Front End into more than one Accdb >>> file. >>> >>> Thanks, >>> Brad >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Wed Sep 29 15:06:11 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Wed, 29 Sep 2010 15:06:11 -0500 Subject: [AccessD] Final Totals on Access Report to not include all report rows References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> <8257EBBA898944B7B38F321AAD5F040A@XPS><4CA34C0B.9000106@colbyconsulting.com><25646369F2DA48CFABDBF0E8887F323D@murphy3234aaf1> <24264394EA8D47EEB0E563B1A3DC7B1D@HomePC > Message-ID: All, I ran into a unusual situation recently. I have developed a solution with some VBA code, but afterwards I wondered if there is a better approach. Below is a small sample of the data that needs to be on a report. The Goal for Acct "A" is 100.00, the Goal for Acct "B" is 200.00. During a month, transactions are done with amounts stored in "Amt-2". We now want to have final totals. The catch is that we only want to add an Account's Goal one time to the final total for each account (Final total of 300.00 instead of 600.00) Is there a simple way to obtain these results in an Access Report? The VBA method works, but there probably is a better way to do this. Acct Goal Amt-2 A 100.00 1.00 A 100.00 4.00 B 200.00 5.00 B 200.00 2.00 _________________ 300.00 12.00 Thanks, Brad From rockysmolin at bchacc.com Wed Sep 29 15:47:02 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 29 Sep 2010 13:47:02 -0700 Subject: [AccessD] Final Totals on Access Report to not include all reportrows In-Reply-To: References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> <8257EBBA898944B7B38F321AAD5F040A@XPS><4CA34C0B.9000106@colbyconsulting.com><25646369F2DA48CFABDBF0E8887F323D@murphy3234aaf1><24264394EA8D47EEB0E563B1A3DC7B1D@HomePC > Message-ID: WAG - Extract the Acct Goal values in a query using Unique Values property of the query = True? If that works then make it a summation query on the Acct Goal field and it should say 300. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Wednesday, September 29, 2010 1:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Final Totals on Access Report to not include all reportrows All, I ran into a unusual situation recently. I have developed a solution with some VBA code, but afterwards I wondered if there is a better approach. Below is a small sample of the data that needs to be on a report. The Goal for Acct "A" is 100.00, the Goal for Acct "B" is 200.00. During a month, transactions are done with amounts stored in "Amt-2". We now want to have final totals. The catch is that we only want to add an Account's Goal one time to the final total for each account (Final total of 300.00 instead of 600.00) Is there a simple way to obtain these results in an Access Report? The VBA method works, but there probably is a better way to do this. Acct Goal Amt-2 A 100.00 1.00 A 100.00 4.00 B 200.00 5.00 B 200.00 2.00 _________________ 300.00 12.00 Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Wed Sep 29 16:02:49 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Wed, 29 Sep 2010 16:02:49 -0500 Subject: [AccessD] Final Totals on Access Report to not include all report rows References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> <8257EBBA898944B7B38F321AAD5F040A@XPS><4CA34C0B.9000106@colbyconsulting.com><25646369F2DA48CFABDBF0E8887F323D@murphy3234aaf1><24264394EA8D47EEB0E563B1A3DC7B1D@HomePC> Message-ID: I should have mentioned earlier that we need to keep the detail lines on the report for Amt-2. Sorry In other words, we want to show the lines as shown in the example below. The trick is that we want to have a total for Goal that only includes one occurrence of the Goal Amt for each Acct. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 29, 2010 3:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Final Totals on Access Report to not include allreportrows WAG - Extract the Acct Goal values in a query using Unique Values property of the query = True? If that works then make it a summation query on the Acct Goal field and it should say 300. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Wednesday, September 29, 2010 1:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Final Totals on Access Report to not include all reportrows All, I ran into a unusual situation recently. I have developed a solution with some VBA code, but afterwards I wondered if there is a better approach. Below is a small sample of the data that needs to be on a report. The Goal for Acct "A" is 100.00, the Goal for Acct "B" is 200.00. During a month, transactions are done with amounts stored in "Amt-2". We now want to have final totals. The catch is that we only want to add an Account's Goal one time to the final total for each account (Final total of 300.00 instead of 600.00) Is there a simple way to obtain these results in an Access Report? The VBA method works, but there probably is a better way to do this. Acct Goal Amt-2 A 100.00 1.00 A 100.00 4.00 B 200.00 5.00 B 200.00 2.00 _________________ 300.00 12.00 Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From davidmcafee at gmail.com Wed Sep 29 16:13:49 2010 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 29 Sep 2010 14:13:49 -0700 Subject: [AccessD] Final Totals on Access Report to not include all report rows In-Reply-To: References: <4C916EF3.7070700@colbyconsulting.com> <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com> <1148A449423644DF89E9F3A6A785EA42@HAL9005> <4C92283F.1010506@colbyconsulting.com> <274CF11D77114AB581A0B3C8E54EC044@personal4a8ede> <31A2A7B0F11E4267831256F840707491@HAL9005> <369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede> <1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> <8257EBBA898944B7B38F321AAD5F040A@XPS> <4CA34C0B.9000106@colbyconsulting.com> <25646369F2DA48CFABDBF0E8887F323D@murphy3234aaf1> Message-ID: I think Rocky is correct. What is supposed to show with the following: Acct Goal Amt-2 A 50.00 2.00 A 100.00 1.00 A 100.00 4.00 B 200.00 5.00 B 200.00 2.00 B 300.00 1.00 _________________ 650.00 15.00 On Wed, Sep 29, 2010 at 1:06 PM, Brad Marks wrote: > All, > > I ran into a unusual situation recently. > I have developed a solution with some VBA code, but > afterwards I wondered if there is a better approach. > > Below is a small sample of the data that needs to be on a report. > > The Goal for Acct "A" is 100.00, the Goal for Acct "B" is 200.00. > > During a month, transactions are done with amounts stored in "Amt-2". > > We now want to have final totals. ?The catch is that we only want to > add an Account's Goal one time to the final total > for each account (Final total of 300.00 instead of 600.00) > > Is there a simple way to obtain these results in an Access Report? > > The VBA method works, but there probably is a better way to do this. > > > > Acct Goal ? Amt-2 > > A ? 100.00 ?1.00 > A ? 100.00 ?4.00 > B ? 200.00 ?5.00 > B ? 200.00 ?2.00 > _________________ > ? ?300.00 12.00 > > > > Thanks, > Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Wed Sep 29 16:38:44 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 29 Sep 2010 14:38:44 -0700 Subject: [AccessD] Final Totals on Access Report to not include allreport rows In-Reply-To: References: , <4C916EF3.7070700@colbyconsulting.com>, <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> <8257EBBA898944B7B38F321AAD5F040A@XPS><4CA34C0B.9000106@colbyconsulting.com><25646369F2DA48CFABDBF0E8887F323D@murphy3234aaf1><24264394EA8D47EEB0E563B1A3DC7B1D@HomePC> Message-ID: <242E8B1136FA4E9BAF5004790D78597E@HAL9005> Make the report as usual and fill in the totals in the format event of the report footer using the query? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Wednesday, September 29, 2010 2:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Final Totals on Access Report to not include allreport rows I should have mentioned earlier that we need to keep the detail lines on the report for Amt-2. Sorry In other words, we want to show the lines as shown in the example below. The trick is that we want to have a total for Goal that only includes one occurrence of the Goal Amt for each Acct. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, September 29, 2010 3:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Final Totals on Access Report to not include allreportrows WAG - Extract the Acct Goal values in a query using Unique Values property of the query = True? If that works then make it a summation query on the Acct Goal field and it should say 300. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Wednesday, September 29, 2010 1:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Final Totals on Access Report to not include all reportrows All, I ran into a unusual situation recently. I have developed a solution with some VBA code, but afterwards I wondered if there is a better approach. Below is a small sample of the data that needs to be on a report. The Goal for Acct "A" is 100.00, the Goal for Acct "B" is 200.00. During a month, transactions are done with amounts stored in "Amt-2". We now want to have final totals. The catch is that we only want to add an Account's Goal one time to the final total for each account (Final total of 300.00 instead of 600.00) Is there a simple way to obtain these results in an Access Report? The VBA method works, but there probably is a better way to do this. Acct Goal Amt-2 A 100.00 1.00 A 100.00 4.00 B 200.00 5.00 B 200.00 2.00 _________________ 300.00 12.00 Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Sep 29 16:44:10 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 29 Sep 2010 17:44:10 -0400 Subject: [AccessD] Final Totals on Access Report to not include all report rows In-Reply-To: References: , <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> <8257EBBA898944B7B38F321AAD5F040A@XPS><4CA34C0B.9000106@colbyconsulting.com><25646369F2DA48CFABDBF0E8887F323D@murphy3234aaf1> <24264394EA8D47EEB0E563B1A3DC7B1D@HomePC > Message-ID: <4CA3B32A.9030509@colbyconsulting.com> Hmm... a goal for book keeping. Can you say "cooked"? ;) John W. Colby www.ColbyConsulting.com On 9/29/2010 4:06 PM, Brad Marks wrote: > All, > > I ran into a unusual situation recently. > I have developed a solution with some VBA code, but > afterwards I wondered if there is a better approach. > > Below is a small sample of the data that needs to be on a report. > > The Goal for Acct "A" is 100.00, the Goal for Acct "B" is 200.00. > > During a month, transactions are done with amounts stored in "Amt-2". > > We now want to have final totals. The catch is that we only want to > add an Account's Goal one time to the final total > for each account (Final total of 300.00 instead of 600.00) > > Is there a simple way to obtain these results in an Access Report? > > The VBA method works, but there probably is a better way to do this. > > > > Acct Goal Amt-2 > > A 100.00 1.00 > A 100.00 4.00 > B 200.00 5.00 > B 200.00 2.00 > _________________ > 300.00 12.00 > > > > Thanks, > Brad > From pedro at plex.nl Thu Sep 30 10:39:06 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 30 Sep 2010 10:39:06 (CEST) Subject: [AccessD] substract dates Message-ID: <201009300839.o8U8d6lq018816@mailhostC.plex.net> Dear List, i have two tables tbl1 patientnr Afsluitdatum 01234567 01-01-2010 09876543 15-01-2010 tbl2 patientnr Uitvoerdatum 01234567 01-02-2009 09876543 01-01-2009 I would like as result a new table that subtracts UitvoerDatum from Afsluitdatum, and when the result is within 365 days, i need a "1" and when the result is more then 365 days, i need a "0". So the result is: patientnr days value 01234567 334 1 09876543 379 0 Normally i do this in Excell, but i would like to do everything in access and not part in access and part in excell. Thanks Pedro From steve at datamanagementsolutions.biz Thu Sep 30 04:28:31 2010 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Thu, 30 Sep 2010 22:28:31 +1300 Subject: [AccessD] substract dates In-Reply-To: <201009300839.o8U8d6lq018816@mailhostC.plex.net> References: <201009300839.o8U8d6lq018816@mailhostC.plex.net> Message-ID: <6D0C7CEB1CF44F32B0469022BE96EDFE@stevelaptop> Pedro, Leaving aside for the moment why these data are in two separate tables, and of course I don't know the full story here, but at some stage you might consider joining them together. I think the query you need here will look like this: SELECT tbl1.patientnr, [Afsluitdatum]-[Uitvoerdatum] As Days, Abs(([Afsluitdatum]-[Uitvoerdatum])<365) As TheValue FROM tbl1 INNER JOIN tbl2 ON tbl1.patientnr = tbl2.patientnr Regards Steve -----Original Message----- From: pedro at plex.nl Sent: Thursday, September 30, 2010 10:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] substract dates Dear List, i have two tables tbl1 patientnr Afsluitdatum 01234567 01-01-2010 09876543 15-01-2010 tbl2 patientnr Uitvoerdatum 01234567 01-02-2009 09876543 01-01-2009 I would like as result a new table that subtracts UitvoerDatum from Afsluitdatum, and when the result is within 365 days, i need a "1" and when the result is more then 365 days, i need a "0". So the result is: patientnr days value 01234567 334 1 09876543 379 0 Normally i do this in Excell, but i would like to do everything in access and not part in access and part in excell. From garykjos at gmail.com Thu Sep 30 06:39:04 2010 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 30 Sep 2010 06:39:04 -0500 Subject: [AccessD] Final Totals on Access Report to not include all report rows In-Reply-To: References: <4C916EF3.7070700@colbyconsulting.com> <1D3BC23516554AC18AF5C9A49E1E6337@HAL9005> <4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg> <4C9204D8.7000705@colbyconsulting.com> <1148A449423644DF89E9F3A6A785EA42@HAL9005> <4C92283F.1010506@colbyconsulting.com> <274CF11D77114AB581A0B3C8E54EC044@personal4a8ede> <31A2A7B0F11E4267831256F840707491@HAL9005> <369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede> <1F1069C670C94A18974A5E3FB1C867BA@HAL9005> <24035E94505B4968B2689B741D95FA76@XPS> <8257EBBA898944B7B38F321AAD5F040A@XPS> <4CA34C0B.9000106@colbyconsulting.com> <25646369F2DA48CFABDBF0E8887F323D@murphy3234aaf1> Message-ID: How about if you used only the account number totals in the main report and then listed the individual transactions for each account in a sub report? Then those goals on the individual transactions wouldn't mess you up on the final totals as that would be only the data from the main report. Just a thought before I have had any coffee. GK On Wed, Sep 29, 2010 at 3:06 PM, Brad Marks wrote: > All, > > I ran into a unusual situation recently. > I have developed a solution with some VBA code, but > afterwards I wondered if there is a better approach. > > Below is a small sample of the data that needs to be on a report. > > The Goal for Acct "A" is 100.00, the Goal for Acct "B" is 200.00. > > During a month, transactions are done with amounts stored in "Amt-2". > > We now want to have final totals. ?The catch is that we only want to > add an Account's Goal one time to the final total > for each account (Final total of 300.00 instead of 600.00) > > Is there a simple way to obtain these results in an Access Report? > > The VBA method works, but there probably is a better way to do this. > > > > Acct Goal ? Amt-2 > > A ? 100.00 ?1.00 > A ? 100.00 ?4.00 > B ? 200.00 ?5.00 > B ? 200.00 ?2.00 > _________________ > ? ?300.00 12.00 > > > > Thanks, > Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From jwcolby at colbyconsulting.com Thu Sep 30 11:49:57 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 30 Sep 2010 12:49:57 -0400 Subject: [AccessD] New server doesn't get domain name resolution Message-ID: <4CA4BFB5.7010208@colbyconsulting.com> I built a new server last night and installed Windows 2003. I was on the internet, I installed about 90 updates to Server 2003. Today I can ping ip addresses but I cannot ping the domain name, iow Google is 66.249.92.104. In Firefox (or in ping) I can see that number but I cannot see Google.com. I have told the local area connections / tcp/ip properties to use 4.2.2.1 and 4.2.2.2 as my DNS server but for some reason the translation request doesn't seem to leave my LAN. My router is what does my local DNS and I can directly ping another computer in my network by name, but I can't ping out to the internet by name. Just for the newest server though. Is there some way to tell my router that my new server exists and it needs this stuff. -- John W. Colby www.ColbyConsulting.com From jedi at charm.net Thu Sep 30 12:12:14 2010 From: jedi at charm.net (Michael Bahr) Date: Thu, 30 Sep 2010 13:12:14 -0400 (EDT) Subject: [AccessD] New server doesn't get domain name resolution In-Reply-To: <4CA4BFB5.7010208@colbyconsulting.com> References: <4CA4BFB5.7010208@colbyconsulting.com> Message-ID: <1813.24.35.23.165.1285866734.squirrel@mail.expedient.net> John, did you do a port forward in the router and the range of ports? Mike > I built a new server last night and installed Windows 2003. I was on the > internet, I installed > about 90 updates to Server 2003. > > Today I can ping ip addresses but I cannot ping the domain name, iow > Google is 66.249.92.104. In > Firefox (or in ping) I can see that number but I cannot see Google.com. > > I have told the local area connections / tcp/ip properties to use 4.2.2.1 > and 4.2.2.2 as my DNS > server but for some reason the translation request doesn't seem to leave > my LAN. My router is what > does my local DNS and I can directly ping another computer in my network > by name, but I can't ping > out to the internet by name. Just for the newest server though. > > Is there some way to tell my router that my new server exists and it needs > this stuff. > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Sep 30 12:36:41 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 30 Sep 2010 13:36:41 -0400 Subject: [AccessD] new server internet Message-ID: <4CA4CAA9.3040201@colbyconsulting.com> I reset the router just to see if that helps. It does not. So to reiterate, I can ping an IP address, or even browse an IP address, but not a domain name. Just on the new server. The TCP/IP properties have a domain name server IP specified which did not help. I suspect that it was something in the updates I did after the install because they worked, except that the IE8 said something about 2 dll entry points bad. I have uninstalled IE8 but that didn't help. -- John W. Colby www.ColbyConsulting.com From BradM at blackforestltd.com Thu Sep 30 13:15:26 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 30 Sep 2010 13:15:26 -0500 Subject: [AccessD] Final Totals on Access Report to not include allreport rows References: <4C916EF3.7070700@colbyconsulting.com><1D3BC23516554AC18AF5C9A49E1E6337@HAL9005><4C91A403.26634.2FED9DA@stuart.lexacorp.com.pg><4C9204D8.7000705@colbyconsulting.com><1148A449423644DF89E9F3A6A785EA42@HAL9005><4C92283F.1010506@colbyconsulting.com><274CF11D77114AB581A0B3C8E54EC044@personal4a8ede><31A2A7B0F11E4267831256F840707491@HAL9005><369B93EF75EE4F4BB887ABF1AA1B97C5@personal4a8ede><1F1069C670C94A18974A5E3FB1C867BA@HAL9005><24035E94505B4968B2689B741D95FA76@XPS><8257EBBA898944B7B38F321AAD5F040A@XPS><4CA34C0B.9000106@colbyconsulting.com><25646369F2DA48CFABDBF0E8887F323D@murphy3234aaf1> Message-ID: Gary, Good idea, I hadn't thought of that approach. I wrote some VBA code to handle this unusual situation, but I would prefer another approach. Thanks, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, September 30, 2010 6:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Final Totals on Access Report to not include allreport rows How about if you used only the account number totals in the main report and then listed the individual transactions for each account in a sub report? Then those goals on the individual transactions wouldn't mess you up on the final totals as that would be only the data from the main report. Just a thought before I have had any coffee. GK On Wed, Sep 29, 2010 at 3:06 PM, Brad Marks wrote: > All, > > I ran into a unusual situation recently. > I have developed a solution with some VBA code, but > afterwards I wondered if there is a better approach. > > Below is a small sample of the data that needs to be on a report. > > The Goal for Acct "A" is 100.00, the Goal for Acct "B" is 200.00. > > During a month, transactions are done with amounts stored in "Amt-2". > > We now want to have final totals. ?The catch is that we only want to > add an Account's Goal one time to the final total > for each account (Final total of 300.00 instead of 600.00) > > Is there a simple way to obtain these results in an Access Report? > > The VBA method works, but there probably is a better way to do this. > > > > Acct Goal ? Amt-2 > > A ? 100.00 ?1.00 > A ? 100.00 ?4.00 > B ? 200.00 ?5.00 > B ? 200.00 ?2.00 > _________________ > ? ?300.00 12.00 > > > > Thanks, > Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From steve at datamanagementsolutions.biz Thu Sep 30 13:31:36 2010 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Fri, 1 Oct 2010 07:31:36 +1300 Subject: [AccessD] substract dates In-Reply-To: <201009301112.o8UBCtSc027287@mailhostC.plex.net> References: <201009301112.o8UBCtSc027287@mailhostC.plex.net> Message-ID: <7065869184934C738E909FC20096C4AE@stevelaptop> Sorry, Pedro, I don't quite understand. What do you mean the query doesn't work? Can you give a specific example of where it gives the incorrect result? You specified it should show 1 if the difference between the dates is less that 365, and a 0 if it is more, and I think this is what the expression I gave you would do. Let's clear this up first, before we tackle the next question of negative values - which I presume you mean would be if Uitvoerdatum is later than Afsluitdatum? Regards Steve -----Original Message----- From: pedro at plex.nl Sent: Thursday, September 30, 2010 1:12 PM To: steve at datamanagementsolutions.biz Subject: Re: [AccessD] substract dates Hello Steve and others, i was just a trail, so the in the final database, the two tables will be joined. But the query you gave, doesn't work. When adjusting the query from <365 to >365, the result has to be the other part of the records. Now only the value field changes from 1 into 0. Who can help me further with this. I would like to make one addition. In the days column, negative values may not participate in the granted values 1 and 0. Thanks Pedro In antwoord op: > From: "Steve Schapel" > To: "Access Developers discussion and problem solving" > Date: Thu, 30 Sep 2010 22:28:31 +1300 > Subject: Re: [AccessD] substract dates > > > > Pedro, > > Leaving aside for the moment why these data are in two separate tables, > and > of course I don't know the full story here, but at some stage you might > consider joining them together. > > I think the query you need here will look like this: > > SELECT tbl1.patientnr, [Afsluitdatum]-[Uitvoerdatum] As Days, > Abs(([Afsluitdatum]-[Uitvoerdatum])<365) As TheValue > FROM tbl1 INNER JOIN tbl2 ON tbl1.patientnr = tbl2.patientnr > > Regards > Steve > > -----Original Message----- > From: pedro at plex.nl > Sent: Thursday, September 30, 2010 10:39 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] substract dates > > Dear List, > > i have two tables > > tbl1 > patientnr Afsluitdatum > 01234567 01-01-2010 > 09876543 15-01-2010 > > tbl2 > patientnr Uitvoerdatum > 01234567 01-02-2009 > 09876543 01-01-2009 > > I would like as result a new table that subtracts UitvoerDatum from > Afsluitdatum, and when the result is within 365 days, i need a "1" and > when > the result is more then 365 days, i need a "0". > > So the result is: > > patientnr days value > 01234567 334 1 > 09876543 379 0 > > Normally i do this in Excell, but i would like to do everything in access > and not part in access and part in excell. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From davidmcafee at gmail.com Thu Sep 30 19:31:17 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 30 Sep 2010 17:31:17 -0700 Subject: [AccessD] Is there a way to dynamically hide fields if needed Message-ID: I'm working in an ADP. I have the pseudo pivot table since I am working in SQL2000 (PIVOT wasn't available until SQL2005) SELECT SplitID, IncDetID, SplitTypeID, SplitAmt FROM tblSplit WHERE IncDetID = 5199 returns SplitID IncDetID SplitTypeID SplitAmt ---------- ------------- ---------------- ------------- 36 5199 1 15.00 37 5199 7 5.00 My pseudo pivot table: SELECT IncDetID, SUM(CASE SplitTypeID WHEN 1 THEN SplitAmt ELSE 0 END) AS DlrPay, SUM(CASE SplitTypeID WHEN 2 THEN SplitAmt ELSE 0 END) AS SvcMgr, SUM(CASE SplitTypeID WHEN 3 THEN SplitAmt ELSE 0 END) AS PartsDept, SUM(CASE SplitTypeID WHEN 4 THEN SplitAmt ELSE 0 END) AS SvcAdv, SUM(CASE SplitTypeID WHEN 5 THEN SplitAmt ELSE 0 END) AS SvcDept, SUM(CASE SplitTypeID WHEN 6 THEN SplitAmt ELSE 0 END) AS SvcTech, SUM(CASE SplitTypeID WHEN 7 THEN SplitAmt ELSE 0 END) AS Contest FROM tblSPlit GROUP BY IncDetID returns: IncDetID DlrPay SvcMgr PartsDept SvcAdv SvcDept SvcTech Contest ------------ ----------- ------------- -------------- ------------ ------------ ------------ ----------- 5199 15.00 0.00 0.00 0.00 0.00 0.00 5.00 In the actual final display, there are many tables joined to this, so the resultset really looks like: CustNo InvNo ItemNo Qty Unit Price IncentiveAmt TotalIncentive DlrPay SvcMgr PartsDept SvcAdv SvcDept SvcTech Contest ------------ --------------- ------------- ----------- ---------------- --------------------- ---------------------- ------------- -------------- ---------------- ------------- -------------- -------------- -------------- 07235 54521337 02951 6 54.95 20.00 120.00 15.00 0.00 0.00 0.00 0.00 0.00 5.00 07235 54521337 03111 12 40.95 17.00 204.00 15.00 0.00 0.00 0.00 0.00 0.00 2.00 07235 54521337 01121 24 30.95 20.00 480.00 15.00 0.00 0.00 0.00 0.00 0.00 5.00 07235 54521337 01161 12 36.95 25.00 300.00 15.00 0.00 0.00 0.00 0.00 0.00 10.00 07235 54521337 06011 12 47.95 22.00 264.00 15.00 0.00 0.00 0.00 0.00 0.00 7.00 07235 54521337 10521 12 41.95 19.00 228.00 15.00 0.00 0.00 0.00 0.00 0.00 4.00 I'd really like it to look like this: CustNo InvNo ItemNo Qty Unit Price IncentiveAmt TotalIncentive DlrPay Contest ------------ --------------- ------------- ----------- ---------------- --------------------- ---------------------- ------------- -------------- 07235 54521337 02951 6 54.95 20.00 120.00 15.00 5.00 07235 54521337 03111 12 40.95 17.00 204.00 15.00 2.00 07235 54521337 01121 24 30.95 20.00 480.00 15.00 5.00 07235 54521337 01161 12 36.95 25.00 300.00 15.00 10.00 07235 54521337 06011 12 47.95 22.00 264.00 15.00 7.00 07235 54521337 10521 12 41.95 19.00 228.00 15.00 4.00 I'm still debating on displaying this as a listbox or subform on the main form. I'm thinking if it is in a listbox, simply loop through the last 7 colums. If the entire column is 0 then make that column a 0" width in the list box. If I go with a datasheet subform, run a recordset clone and if all values for a given field are 0 then make that field hidden. any ideas? I have to do this on a form and on a report (print out of the form) so I'm trying to think of a good way to do this that will apply to both. Thanks, David