From gustav at cactus.dk Sat Sep 3 08:07:37 2016 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 3 Sep 2016 13:07:37 +0000 Subject: [AccessD] Trap when updating time only in SQL Server via ODBC Message-ID: Hi all There is a trap in updating time via ODBC in SQL Server with the dbFailOnError option which I haven't met before: http://stackoverflow.com/questions/39303408/ where a time value will be stored with today's date and not the zero-date of Access/VBA, 1899-12-30. The work-around seems to be either to pass the value as text(!) or to use a query with data type specified parameters. /gustav From rockysmolin at bchacc.com Sat Sep 3 13:28:05 2016 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 3 Sep 2016 11:28:05 -0700 Subject: [AccessD] Record counter not working Message-ID: <015d01d20610$e9a78900$bcf69b00$@bchacc.com> Dear List: I have two text boxes on a form - one shows the total number of records to be processed and the other is a counter. So that the form shows that there's something going on (i.e., Processing Record: 14 of 250). I put Me.txtRecNo = Me.txtRecNo + 1 At the top of the look but it didn't update. So I added: Me.Repaint Still no update. So I added: DoEvents Still no update. It always reads 0 of n (I initialize the text box with a zero). Any idea why I can't get this to update? I use this technique a lot to let the user know at what point in the process the program is, and it is often unreliable. I have used a long variable for the counter and just plugged the variable into the text box after it was incremented but that doesn't work in this case. Any ideas appreciated. MTIA Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin From bensonforums at gmail.com Sat Sep 3 14:05:14 2016 From: bensonforums at gmail.com (Bill Benson) Date: Sat, 3 Sep 2016 15:05:14 -0400 Subject: [AccessD] Record counter not working In-Reply-To: <015d01d20610$e9a78900$bcf69b00$@bchacc.com> References: <015d01d20610$e9a78900$bcf69b00$@bchacc.com> Message-ID: Is it a continuous for or single? What does "at the top of the look" mean? On Sep 3, 2016 2:29 PM, "Rocky Smolin" wrote: > Dear List: > > > > I have two text boxes on a form - one shows the total number of records to > be processed and the other is a counter. So that the form shows that > there's something going on (i.e., Processing Record: 14 of 250). > > > > I put > > > > Me.txtRecNo = Me.txtRecNo + 1 > > > > At the top of the look but it didn't update. > > > > So I added: > > > > Me.Repaint > > > > Still no update. So I added: > > > > DoEvents > > > > Still no update. It always reads 0 of n (I initialize the text box with a > zero). > > > > Any idea why I can't get this to update? I use this technique a lot to let > the user know at what point in the process the program is, and it is often > unreliable. I have used a long variable for the counter and just plugged > the variable into the text box after it was incremented but that doesn't > work in this case. > > > > Any ideas appreciated. > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bensonforums at gmail.com Sat Sep 3 14:07:17 2016 From: bensonforums at gmail.com (Bill Benson) Date: Sat, 3 Sep 2016 15:07:17 -0400 Subject: [AccessD] Record counter not working In-Reply-To: <015d01d20610$e9a78900$bcf69b00$@bchacc.com> References: <015d01d20610$e9a78900$bcf69b00$@bchacc.com> Message-ID: Try =CLNG(NZ ([txtRecNo],0))+1 On Sep 3, 2016 2:29 PM, "Rocky Smolin" wrote: > Dear List: > > > > I have two text boxes on a form - one shows the total number of records to > be processed and the other is a counter. So that the form shows that > there's something going on (i.e., Processing Record: 14 of 250). > > > > I put > > > > Me.txtRecNo = Me.txtRecNo + 1 > > > > At the top of the look but it didn't update. > > > > So I added: > > > > Me.Repaint > > > > Still no update. So I added: > > > > DoEvents > > > > Still no update. It always reads 0 of n (I initialize the text box with a > zero). > > > > Any idea why I can't get this to update? I use this technique a lot to let > the user know at what point in the process the program is, and it is often > unreliable. I have used a long variable for the counter and just plugged > the variable into the text box after it was incremented but that doesn't > work in this case. > > > > Any ideas appreciated. > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > 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 3 16:46:30 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 04 Sep 2016 07:46:30 +1000 Subject: [AccessD] Record counter not working In-Reply-To: <015d01d20610$e9a78900$bcf69b00$@bchacc.com> References: <>, <015d01d20610$e9a78900$bcf69b00$@bchacc.com> Message-ID: <57CB44B6.16470.52D415E@stuart.lexacorp.com.pg> Is all of the procesing code in the form's module or is it done by a single call to a function/procedure in a separate module? (Failing code not shown!) On 3 Sep 2016 at 11:28, Rocky Smolin wrote: > Dear List: > > > > I have two text boxes on a form - one shows the total number of > records to be processed and the other is a counter. So that the form > shows that there's something going on (i.e., Processing Record: 14 of > 250). > > > > I put > > > > Me.txtRecNo = Me.txtRecNo + 1 > > > > At the top of the look but it didn't update. > > > > So I added: > > > > Me.Repaint > > > > Still no update. So I added: > > > > DoEvents > > > > Still no update. It always reads 0 of n (I initialize the text box > with a zero). > > > > Any idea why I can't get this to update? I use this technique a lot > to let the user know at what point in the process the program is, and > it is often unreliable. I have used a long variable for the counter > and just plugged the variable into the text box after it was > incremented but that doesn't work in this case. > > > > Any ideas appreciated. > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bensonforums at gmail.com Sat Sep 3 16:55:17 2016 From: bensonforums at gmail.com (Bill Benson) Date: Sat, 3 Sep 2016 17:55:17 -0400 Subject: [AccessD] Record counter not working In-Reply-To: <57CB44B6.16470.52D415E@stuart.lexacorp.com.pg> References: <015d01d20610$e9a78900$bcf69b00$@bchacc.com> <57CB44B6.16470.52D415E@stuart.lexacorp.com.pg> Message-ID: Again, I ask why not put it in the controlsource of the textbox. On Sep 3, 2016 5:48 PM, "Stuart McLachlan" wrote: > Is all of the procesing code in the form's module or is it done by a > single call to a > function/procedure in a separate module? > > (Failing code not shown!) > > > On 3 Sep 2016 at 11:28, Rocky Smolin wrote: > > > Dear List: > > > > > > > > I have two text boxes on a form - one shows the total number of > > records to be processed and the other is a counter. So that the form > > shows that there's something going on (i.e., Processing Record: 14 of > > 250). > > > > > > > > I put > > > > > > > > Me.txtRecNo = Me.txtRecNo + 1 > > > > > > > > At the top of the look but it didn't update. > > > > > > > > So I added: > > > > > > > > Me.Repaint > > > > > > > > Still no update. So I added: > > > > > > > > DoEvents > > > > > > > > Still no update. It always reads 0 of n (I initialize the text box > > with a zero). > > > > > > > > Any idea why I can't get this to update? I use this technique a lot > > to let the user know at what point in the process the program is, and > > it is often unreliable. I have used a long variable for the counter > > and just plugged the variable into the text box after it was > > incremented but that doesn't work in this case. > > > > > > > > Any ideas appreciated. > > > > > > > > MTIA > > > > > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > -- > > 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 Sat Sep 3 17:31:07 2016 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 3 Sep 2016 15:31:07 -0700 Subject: [AccessD] Record counter not working In-Reply-To: References: <015d01d20610$e9a78900$bcf69b00$@bchacc.com> Message-ID: <01a601d20632$dd9c5fb0$98d51f10$@bchacc.com> Means at the top of the loop - (stuped spel chequer) If by continuous or single you mean form it's neither - it's a form not bound to anything but running a rather complex bunch of code to create a temp table that gets output to a spreadsheet or a report. There's a big loop and it might take 10-60 seconds to process the data. As it's going through the loop, I know up front how many record are going to be in the loop (the loop is a recordset so I can get rs.RecordCount). I show the total records in the loop to the user, and I want to increment a counter every time through the loop and display that to the user so they know how many records have been processed and how many remain. So they know if they have time to take a dump or whatever before the looping is finished. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Saturday, September 03, 2016 12:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record counter not working Is it a continuous for or single? What does "at the top of the look" mean? On Sep 3, 2016 2:29 PM, "Rocky Smolin" wrote: > Dear List: > > > > I have two text boxes on a form - one shows the total number of > records to be processed and the other is a counter. So that the form > shows that there's something going on (i.e., Processing Record: 14 of 250). > > > > I put > > > > Me.txtRecNo = Me.txtRecNo + 1 > > > > At the top of the look but it didn't update. > > > > So I added: > > > > Me.Repaint > > > > Still no update. So I added: > > > > DoEvents > > > > Still no update. It always reads 0 of n (I initialize the text box > with a zero). > > > > Any idea why I can't get this to update? I use this technique a lot > to let the user know at what point in the process the program is, and > it is often unreliable. I have used a long variable for the counter > and just plugged the variable into the text box after it was > incremented but that doesn't work in this case. > > > > Any ideas appreciated. > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > 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 Sat Sep 3 17:39:19 2016 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 3 Sep 2016 15:39:19 -0700 Subject: [AccessD] Record counter not working In-Reply-To: References: <015d01d20610$e9a78900$bcf69b00$@bchacc.com> Message-ID: <01a701d20634$02836fc0$078a4f40$@bchacc.com> Bill: No soap. It should work. But so should Me.txtRecNo=Me. txtRecNo + 1. Oddly, it worked once while I was trying different things. But then not again. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Saturday, September 03, 2016 12:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record counter not working Try =CLNG(NZ ([txtRecNo],0))+1 On Sep 3, 2016 2:29 PM, "Rocky Smolin" wrote: > Dear List: > > > > I have two text boxes on a form - one shows the total number of > records to be processed and the other is a counter. So that the form > shows that there's something going on (i.e., Processing Record: 14 of 250). > > > > I put > > > > Me.txtRecNo = Me.txtRecNo + 1 > > > > At the top of the look but it didn't update. > > > > So I added: > > > > Me.Repaint > > > > Still no update. So I added: > > > > DoEvents > > > > Still no update. It always reads 0 of n (I initialize the text box > with a zero). > > > > Any idea why I can't get this to update? I use this technique a lot > to let the user know at what point in the process the program is, and > it is often unreliable. I have used a long variable for the counter > and just plugged the variable into the text box after it was > incremented but that doesn't work in this case. > > > > Any ideas appreciated. > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > 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 Sat Sep 3 17:53:19 2016 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 3 Sep 2016 15:53:19 -0700 Subject: [AccessD] Record counter not working In-Reply-To: <57CB44B6.16470.52D415E@stuart.lexacorp.com.pg> References: <>, <015d01d20610$e9a78900$bcf69b00$@bchacc.com> <57CB44B6.16470.52D415E@stuart.lexacorp.com.pg> Message-ID: <01ae01d20635$f7398120$e5ac8360$@bchacc.com> In the form's module. r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Saturday, September 03, 2016 2:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record counter not working Is all of the procesing code in the form's module or is it done by a single call to a function/procedure in a separate module? (Failing code not shown!) On 3 Sep 2016 at 11:28, Rocky Smolin wrote: > Dear List: > > > > I have two text boxes on a form - one shows the total number of > records to be processed and the other is a counter. So that the form > shows that there's something going on (i.e., Processing Record: 14 of > 250). > > > > I put > > > > Me.txtRecNo = Me.txtRecNo + 1 > > > > At the top of the look but it didn't update. > > > > So I added: > > > > Me.Repaint > > > > Still no update. So I added: > > > > DoEvents > > > > Still no update. It always reads 0 of n (I initialize the text box > with a zero). > > > > Any idea why I can't get this to update? I use this technique a lot > to let the user know at what point in the process the program is, and > it is often unreliable. I have used a long variable for the counter > and just plugged the variable into the text box after it was > incremented but that doesn't work in this case. > > > > Any ideas appreciated. > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > 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 Sat Sep 3 17:54:13 2016 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 3 Sep 2016 15:54:13 -0700 Subject: [AccessD] Record counter not working In-Reply-To: References: <015d01d20610$e9a78900$bcf69b00$@bchacc.com> <57CB44B6.16470.52D415E@stuart.lexacorp.com.pg> Message-ID: <01af01d20636$17849050$468db0f0$@bchacc.com> Then what triggers it to change as the code loops through its loop? r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Saturday, September 03, 2016 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record counter not working Again, I ask why not put it in the controlsource of the textbox. On Sep 3, 2016 5:48 PM, "Stuart McLachlan" wrote: > Is all of the procesing code in the form's module or is it done by a > single call to a function/procedure in a separate module? > > (Failing code not shown!) > > > On 3 Sep 2016 at 11:28, Rocky Smolin wrote: > > > Dear List: > > > > > > > > I have two text boxes on a form - one shows the total number of > > records to be processed and the other is a counter. So that the > > form shows that there's something going on (i.e., Processing Record: > > 14 of 250). > > > > > > > > I put > > > > > > > > Me.txtRecNo = Me.txtRecNo + 1 > > > > > > > > At the top of the look but it didn't update. > > > > > > > > So I added: > > > > > > > > Me.Repaint > > > > > > > > Still no update. So I added: > > > > > > > > DoEvents > > > > > > > > Still no update. It always reads 0 of n (I initialize the text box > > with a zero). > > > > > > > > Any idea why I can't get this to update? I use this technique a lot > > to let the user know at what point in the process the program is, > > and it is often unreliable. I have used a long variable for the > > counter and just plugged the variable into the text box after it was > > incremented but that doesn't work in this case. > > > > > > > > Any ideas appreciated. > > > > > > > > MTIA > > > > > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > -- > > 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 Sat Sep 3 18:04:01 2016 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 3 Sep 2016 16:04:01 -0700 Subject: [AccessD] Record counter not working In-Reply-To: <01af01d20636$17849050$468db0f0$@bchacc.com> References: <015d01d20610$e9a78900$bcf69b00$@bchacc.com> <57CB44B6.16470.52D415E@stuart.lexacorp.com.pg> <01af01d20636$17849050$468db0f0$@bchacc.com> Message-ID: <01c001d20637$76062d90$621288b0$@bchacc.com> OK- here's a clue (don't know what to make of it though) I put msgbox "Stop" after the Me.txtRecNo = CLng(Nz([txtRecNo], 0)) + 1 and the text box showed as updated. Actually is also worked with the simple Me.txtRecNo = Me.txtRecNo + 1. So is it a timing thing? I tried Me.Repaint and DoEvents to no avail. TIA r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, September 03, 2016 3:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Record counter not working Then what triggers it to change as the code loops through its loop? r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Saturday, September 03, 2016 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record counter not working Again, I ask why not put it in the controlsource of the textbox. On Sep 3, 2016 5:48 PM, "Stuart McLachlan" wrote: > Is all of the procesing code in the form's module or is it done by a > single call to a function/procedure in a separate module? > > (Failing code not shown!) > > > On 3 Sep 2016 at 11:28, Rocky Smolin wrote: > > > Dear List: > > > > > > > > I have two text boxes on a form - one shows the total number of > > records to be processed and the other is a counter. So that the > > form shows that there's something going on (i.e., Processing Record: > > 14 of 250). > > > > > > > > I put > > > > > > > > Me.txtRecNo = Me.txtRecNo + 1 > > > > > > > > At the top of the look but it didn't update. > > > > > > > > So I added: > > > > > > > > Me.Repaint > > > > > > > > Still no update. So I added: > > > > > > > > DoEvents > > > > > > > > Still no update. It always reads 0 of n (I initialize the text box > > with a zero). > > > > > > > > Any idea why I can't get this to update? I use this technique a lot > > to let the user know at what point in the process the program is, > > and it is often unreliable. I have used a long variable for the > > counter and just plugged the variable into the text box after it was > > incremented but that doesn't work in this case. > > > > > > > > Any ideas appreciated. > > > > > > > > MTIA > > > > > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > -- > > 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 Sat Sep 3 18:14:59 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 04 Sep 2016 09:14:59 +1000 Subject: [AccessD] Record counter not working In-Reply-To: <01c001d20637$76062d90$621288b0$@bchacc.com> References: <015d01d20610$e9a78900$bcf69b00$@bchacc.com>, <01af01d20636$17849050$468db0f0$@bchacc.com>, <01c001d20637$76062d90$621288b0$@bchacc.com> Message-ID: <57CB5973.7690.57E443D@stuart.lexacorp.com.pg> Did you have both Me.Repaint and DoEvents or did you only try it with each of those separately? On 3 Sep 2016 at 16:04, Rocky Smolin wrote: > OK- here's a clue (don't know what to make of it though) > > I put msgbox "Stop" after the Me.txtRecNo = CLng(Nz([txtRecNo], 0)) + > 1 and the text box showed as updated. Actually is also worked with > the simple Me.txtRecNo = Me.txtRecNo + 1. > > > So is it a timing thing? I tried Me.Repaint and DoEvents to no avail. > > TIA > > > r > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Rocky Smolin Sent: Saturday, September 03, 2016 3:54 PM To: 'Access > Developers discussion and problem solving' Subject: Re: [AccessD] > Record counter not working > > Then what triggers it to change as the code loops through its loop? > > r > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Bill Benson Sent: Saturday, September 03, 2016 2:55 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Record counter not working > > Again, I ask why not put it in the controlsource of the textbox. > > On Sep 3, 2016 5:48 PM, "Stuart McLachlan" > wrote: > > > Is all of the procesing code in the form's module or is it done by a > > single call to a function/procedure in a separate module? > > > > (Failing code not shown!) > > > > > > On 3 Sep 2016 at 11:28, Rocky Smolin wrote: > > > > > Dear List: > > > > > > > > > > > > I have two text boxes on a form - one shows the total number of > > > records to be processed and the other is a counter. So that the > > > form shows that there's something going on (i.e., Processing > > > Record: 14 of 250). > > > > > > > > > > > > I put > > > > > > > > > > > > Me.txtRecNo = Me.txtRecNo + 1 > > > > > > > > > > > > At the top of the look but it didn't update. > > > > > > > > > > > > So I added: > > > > > > > > > > > > Me.Repaint > > > > > > > > > > > > Still no update. So I added: > > > > > > > > > > > > DoEvents > > > > > > > > > > > > Still no update. It always reads 0 of n (I initialize the text > > > box with a zero). > > > > > > > > > > > > Any idea why I can't get this to update? I use this technique a > > > lot to let the user know at what point in the process the program > > > is, and it is often unreliable. I have used a long variable for > > > the counter and just plugged the variable into the text box after > > > it was incremented but that doesn't work in this case. > > > > > > > > > > > > Any ideas appreciated. > > > > > > > > > > > > MTIA > > > > > > > > > > > > > > > > > > Rocky Smolin > > > > > > Beach Access Software > > > > > > 760-683-5777 > > > > > > www.bchacc.com > > > > > > www.e-z-mrp.com > > > > > > Skype: rocky.smolin > > > > > > > > > > > > > > > > > > -- > > > 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 Sat Sep 3 21:51:44 2016 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 3 Sep 2016 19:51:44 -0700 Subject: [AccessD] Record counter not working In-Reply-To: <57CB5973.7690.57E443D@stuart.lexacorp.com.pg> References: <015d01d20610$e9a78900$bcf69b00$@bchacc.com>, <01af01d20636$17849050$468db0f0$@bchacc.com>, <01c001d20637$76062d90$621288b0$@bchacc.com> <57CB5973.7690.57E443D@stuart.lexacorp.com.pg> Message-ID: <01dd01d20657$45d4efb0$d17ecf10$@bchacc.com> First one, then the other, then both, then in reverse order. I left no tern unstoned. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Saturday, September 03, 2016 4:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record counter not working Did you have both Me.Repaint and DoEvents or did you only try it with each of those separately? On 3 Sep 2016 at 16:04, Rocky Smolin wrote: > OK- here's a clue (don't know what to make of it though) > > I put msgbox "Stop" after the Me.txtRecNo = CLng(Nz([txtRecNo], 0)) + > 1 and the text box showed as updated. Actually is also worked with > the simple Me.txtRecNo = Me.txtRecNo + 1. > > > So is it a timing thing? I tried Me.Repaint and DoEvents to no avail. > > TIA > > > r > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Rocky Smolin Sent: Saturday, September 03, 2016 3:54 PM To: 'Access > Developers discussion and problem solving' Subject: Re: [AccessD] > Record counter not working > > Then what triggers it to change as the code loops through its loop? > > r > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Bill Benson Sent: Saturday, September 03, 2016 2:55 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Record counter not working > > Again, I ask why not put it in the controlsource of the textbox. > > On Sep 3, 2016 5:48 PM, "Stuart McLachlan" > wrote: > > > Is all of the procesing code in the form's module or is it done by a > > single call to a function/procedure in a separate module? > > > > (Failing code not shown!) > > > > > > On 3 Sep 2016 at 11:28, Rocky Smolin wrote: > > > > > Dear List: > > > > > > > > > > > > I have two text boxes on a form - one shows the total number of > > > records to be processed and the other is a counter. So that the > > > form shows that there's something going on (i.e., Processing > > > Record: 14 of 250). > > > > > > > > > > > > I put > > > > > > > > > > > > Me.txtRecNo = Me.txtRecNo + 1 > > > > > > > > > > > > At the top of the look but it didn't update. > > > > > > > > > > > > So I added: > > > > > > > > > > > > Me.Repaint > > > > > > > > > > > > Still no update. So I added: > > > > > > > > > > > > DoEvents > > > > > > > > > > > > Still no update. It always reads 0 of n (I initialize the text > > > box with a zero). > > > > > > > > > > > > Any idea why I can't get this to update? I use this technique a > > > lot to let the user know at what point in the process the program > > > is, and it is often unreliable. I have used a long variable for > > > the counter and just plugged the variable into the text box after > > > it was incremented but that doesn't work in this case. > > > > > > > > > > > > Any ideas appreciated. > > > > > > > > > > > > MTIA > > > > > > > > > > > > > > > > > > Rocky Smolin > > > > > > Beach Access Software > > > > > > 760-683-5777 > > > > > > www.bchacc.com > > > > > > www.e-z-mrp.com > > > > > > Skype: rocky.smolin > > > > > > > > > > > > > > > > > > -- > > > 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 accessd at shaw.ca Mon Sep 5 22:59:53 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 5 Sep 2016 21:59:53 -0600 (MDT) Subject: [AccessD] Getting rid of fossil fuel dependancy In-Reply-To: <01c001d20637$76062d90$621288b0$@bchacc.com> Message-ID: <832341931.74590272.1473134393697.JavaMail.root@shaw.ca> The small country of Costa Rica now virtually create all its electricity through renewable. https://www.ted.com/talks/monica_araya_a_small_country_with_big_ideas_to_get_rid_of_fossil_fuels?language=en http://bit.ly/2cj87nY Jim From stuart at lexacorp.com.pg Mon Sep 5 23:29:27 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 06 Sep 2016 14:29:27 +1000 Subject: [AccessD] Getting rid of fossil fuel dependancy In-Reply-To: <832341931.74590272.1473134393697.JavaMail.root@shaw.ca> References: <01c001d20637$76062d90$621288b0$@bchacc.com>, <832341931.74590272.1473134393697.JavaMail.root@shaw.ca> Message-ID: <57CE4627.1910.10EAAA0C@stuart.lexacorp.com.pg> Yep, pity that there aren't any other countries fortunate enough to be able to generate 95% of their electricity needs from hydro (80%) and geothermal (15%). That's what you can do with a small population, no major industry, highly volcanic mountainous terrain and the 4th highest rainfall in the world. Hardly an exemplar for any other nation. But the greenies sure do love to ignore the details and pretend that it is a feasible option for everyone. -- Stuart On 5 Sep 2016 at 21:59, Jim Lawrence wrote: > The small country of Costa Rica now virtually create all its > electricity through renewable. > > https://www.ted.com/talks/monica_araya_a_small_country_with_big_ideas_ > to_get_rid_of_fossil_fuels?language=en > > http://bit.ly/2cj87nY > > Jim > -- > 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 5 23:31:03 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 06 Sep 2016 14:31:03 +1000 Subject: [AccessD] Getting rid of fossil fuel dependancy In-Reply-To: <832341931.74590272.1473134393697.JavaMail.root@shaw.ca> References: <01c001d20637$76062d90$621288b0$@bchacc.com>, <832341931.74590272.1473134393697.JavaMail.root@shaw.ca> Message-ID: <57CE4687.26035.10EC21EA@stuart.lexacorp.com.pg> Just notices this is AccessD. I think Jim meant it for Access-OT. My apologies for littering with my previous response. On 5 Sep 2016 at 21:59, Jim Lawrence wrote: > The small country of Costa Rica now virtually create all its > electricity through renewable. > > https://www.ted.com/talks/monica_araya_a_small_country_with_big_ideas_ > to_get_rid_of_fossil_fuels?language=en > > http://bit.ly/2cj87nY > > Jim > -- > 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 5 23:51:55 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 5 Sep 2016 22:51:55 -0600 (MDT) Subject: [AccessD] Getting rid of fossil fuel dependancy In-Reply-To: <57CE4627.1910.10EAAA0C@stuart.lexacorp.com.pg> Message-ID: <2017392798.74610279.1473137515265.JavaMail.root@shaw.ca> That environment, minus volcanoes describes our province and we are not alone. There are countries in Africa and South America that have appropriate natural conditions. The region of Scandinavia are also working to achieve similar results. Then there are regions through out north Africa that have a stellar results from the combination use of wind and solar power. There are hundreds of countries that have already achieved a certain level energy independence. They are not all near a hundred percent but every percentage move toward energy freedom is a positive move. Considering a decade or so ago renewable energy was little more than a concept. Jim ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Monday, September 5, 2016 9:29:27 PM Subject: Re: [AccessD] Getting rid of fossil fuel dependancy Yep, pity that there aren't any other countries fortunate enough to be able to generate 95% of their electricity needs from hydro (80%) and geothermal (15%). That's what you can do with a small population, no major industry, highly volcanic mountainous terrain and the 4th highest rainfall in the world. Hardly an exemplar for any other nation. But the greenies sure do love to ignore the details and pretend that it is a feasible option for everyone. -- Stuart On 5 Sep 2016 at 21:59, Jim Lawrence wrote: > The small country of Costa Rica now virtually create all its > electricity through renewable. > > https://www.ted.com/talks/monica_araya_a_small_country_with_big_ideas_ > to_get_rid_of_fossil_fuels?language=en > > http://bit.ly/2cj87nY > > Jim > -- > 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 Tue Sep 6 00:43:49 2016 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 5 Sep 2016 22:43:49 -0700 Subject: [AccessD] Getting rid of fossil fuel dependency Message-ID: <007801d20801$a48058f0$ed810ad0$@bchacc.com> And why is it such a subject of derision that a country supplies anywhere from 1 to 100% of its energy from renewable sources? What if a country (or a province) can supply only a quarter or a third of its energy from wind, wave, hydro, geothermal, or solar? Where's the downside? A smart country will get its energy from a whole smorgasbord of energy sources. Like a diversified portfolio - is reduces volatility and increases the total energy available. Remarkable that one country, regardless of their special resources, should achieve total independence from conventional power generation, and perhaps lead other countries to look at their un- or under-developed alternates. There is simply no downside to this. r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 05, 2016 9:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting rid of fossil fuel dependancy That environment, minus volcanoes describes our province and we are not alone. There are countries in Africa and South America that have appropriate natural conditions. The region of Scandinavia are also working to achieve similar results. Then there are regions through out north Africa that have a stellar results from the combination use of wind and solar power. There are hundreds of countries that have already achieved a certain level energy independence. They are not all near a hundred percent but every percentage move toward energy freedom is a positive move. Considering a decade or so ago renewable energy was little more than a concept. Jim ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Monday, September 5, 2016 9:29:27 PM Subject: Re: [AccessD] Getting rid of fossil fuel dependancy Yep, pity that there aren't any other countries fortunate enough to be able to generate 95% of their electricity needs from hydro (80%) and geothermal (15%). That's what you can do with a small population, no major industry, highly volcanic mountainous terrain and the 4th highest rainfall in the world. Hardly an exemplar for any other nation. But the greenies sure do love to ignore the details and pretend that it is a feasible option for everyone. -- Stuart On 5 Sep 2016 at 21:59, Jim Lawrence wrote: > The small country of Costa Rica now virtually create all its > electricity through renewable. > > https://www.ted.com/talks/monica_araya_a_small_country_with_big_ideas_ > to_get_rid_of_fossil_fuels?language=en > > http://bit.ly/2cj87nY > > Jim > -- > 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 at whittleconsulting.com.au Tue Sep 6 20:45:58 2016 From: darryl at whittleconsulting.com.au (Darryl Collins) Date: Wed, 7 Sep 2016 01:45:58 +0000 Subject: [AccessD] Windows 10 Downloads - Notify for download hack - only slightly OT Message-ID: As many of you know, windows 10 downloads can be problematic to manage. We run many PC's at our work and the automatic download was giving us a lot of grief and network issues. One of the guys poked around behind the scenes and found a registry hack that allows you to be notified when a download is available so you can download it when it suits (pretty much Like you could do with Windows 7 updates). If anyone want the actual reg file itself, which you just click to run and it is set up, email me and I will send you a zipped version off list. Or you can set it up manually via reg edit as per the copied email below. This setting is in Windows 10, but it is not presented as an option to the users - the only way to get it working is via the Registry hack. I haven't tested this yet, but I believe this works for the Windows 10 Home variant as well. Cheers Darryl. '----------------------------------------------- START OF COPIED EMAIL Hey guys, As you are aware the recent upgrade to Windows 10 has had a detrimental effect on our internet connection. All it takes is one PC to start downloading updates and everything goes downhill. It is having a big effect on Skype and TeamViewer. I've been looking at fixes (and Internet upgrade options) and have found an interim solution - to stop Windows 10 from automatically downloading updates. It is a behind the scene type of adjustment but it works, the caveat being you will need to make sure you update manually which is important for security reasons. Please set this up for all your machines. Will also need to do for the other machines (not Process) that are in the office. There are 2 ways to create the "Notify for Download" setting (which does not exist in the user interface). 1. Just run the attached registry hack (will prob have to save to local drive first). Quick, easy and just works. or 2. If you are more curiuos/adventerous you can make the change in the Group Policy Editor: a. Press Windows Key + R to open the Run dialog b. Type gpedit.msc and then Enter c. Navigate to Computer Configuration\Administrative Templates\Windows Components\Windows Update d. Locate the "Configure Automatic Updates" setting in the right pane and double-click it e. Set it to "Enabled" f. Select "2 - Notify for download and notify for install" g. Save changes. Once you have done either option you can see this change here: 1. Visit the Windows Update pane in the Settings app and click "Check for updates." 2. You can then click "Advanced options" and you'll see your new setting here (as in the pic below) '----------------------------------------------- END OF COPIED EMAIL Darryl Collins Whittle Consulting Pty Ltd Suite 8, 660 Canterbury Rd Surrey Hills, VIC, 3127 w3w: petty.legs.zoom p: +61 3 9898 3242 m: +61 418 381 548 f: +61 3 9898 1855 e: darryl at whittleconsulting.com.au w: www.whittleconsulting.com.au From jm.hwsn at gmail.com Wed Sep 7 11:44:06 2016 From: jm.hwsn at gmail.com (Jim Hewson) Date: Wed, 7 Sep 2016 11:44:06 -0500 Subject: [AccessD] Windows 10 Downloads - Notify for download hack - only slightly OT In-Reply-To: References: Message-ID: Thanks Darryl. This is very useful. The automatic download and install is also problematic when using a laptop through a hotspot. The downloads can chew up the data very quickly. I learned the hard way. The only problem I had was the Windows 10 version that is on my laptop is "Home"... it doesn't have the gpedit utility. I did find it on the internet, downloaded and installed it... works well. Thanks, Jim On Tue, Sep 6, 2016 at 8:45 PM, Darryl Collins < darryl at whittleconsulting.com.au> wrote: > As many of you know, windows 10 downloads can be problematic to manage. > We run many PC's at our work and the automatic download was giving us a > lot of grief and network issues. > > One of the guys poked around behind the scenes and found a registry hack > that allows you to be notified when a download is available so you can > download it when it suits (pretty much > Like you could do with Windows 7 updates). If anyone want the actual reg > file itself, which you just click to run and it is set up, email me and I > will send you a zipped version off list. Or you can set it up manually via > reg edit > as per the copied email below. > > This setting is in Windows 10, but it is not presented as an option to the > users - the only way to get it working is via the Registry hack. > I haven't tested this yet, but I believe this works for the Windows 10 > Home variant as well. > Cheers > Darryl. > > > '----------------------------------------------- START OF COPIED EMAIL > > Hey guys, > > As you are aware the recent upgrade to Windows 10 has had a detrimental > effect on our internet connection. > All it takes is one PC to start downloading updates and everything goes > downhill. It is having a big effect on Skype and TeamViewer. > > I've been looking at fixes (and Internet upgrade options) and have found > an interim solution - to stop Windows 10 from automatically downloading > updates. > It is a behind the scene type of adjustment but it works, the caveat being > you will need to make sure you update manually which is important for > security reasons. > > Please set this up for all your machines. Will also need to do for the > other machines (not Process) that are in the office. > > There are 2 ways to create the "Notify for Download" setting (which does > not exist in the user interface). > > > 1. Just run the attached registry hack (will prob have to save to > local drive first). Quick, easy and just works. > > or > > > 2. If you are more curiuos/adventerous you can make the change in > the Group Policy Editor: > > a. Press Windows Key + R to open the Run dialog > > b. Type gpedit.msc and then Enter > > c. Navigate to Computer Configuration\Administrative > Templates\Windows Components\Windows Update > > d. Locate the "Configure Automatic Updates" setting in the right > pane and double-click it > > e. Set it to "Enabled" > > f. Select "2 - Notify for download and notify for install" > > g. Save changes. > > > Once you have done either option you can see this change here: > > 1. Visit the Windows Update pane in the Settings app and click > "Check for updates." > > 2. You can then click "Advanced options" and you'll see your new > setting here (as in the pic below) > > > > '----------------------------------------------- END OF COPIED EMAIL > > > > > Darryl Collins > Whittle Consulting Pty Ltd > Suite 8, 660 Canterbury Rd > Surrey Hills, VIC, 3127 > > w3w: petty.legs.zoom > > p: +61 3 9898 3242 > m: +61 418 381 548 > f: +61 3 9898 1855 > e: darryl at whittleconsulting.com.au > w: www.whittleconsulting.com.au > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bensonforums at gmail.com Wed Sep 7 11:58:54 2016 From: bensonforums at gmail.com (Bill Benson) Date: Wed, 7 Sep 2016 12:58:54 -0400 Subject: [AccessD] Windows 10 Downloads - Notify for download hack - only slightly OT In-Reply-To: References: Message-ID: In most corporations you (1) cannot hack your registry and (2) the Infrastructure team is going to push updates along when they feel like it anyway. But it might help me at home. As If I am going to move to Win10 any time soon, with Win7 still supported for a little while. And by that time, MS might find a way to neutralize this hack. On Wed, Sep 7, 2016 at 12:44 PM, Jim Hewson wrote: > Thanks Darryl. This is very useful. > The automatic download and install is also problematic when using a laptop > through a hotspot. The downloads can chew up the data very quickly. I > learned the hard way. > The only problem I had was the Windows 10 version that is on my laptop is > "Home"... it doesn't have the gpedit utility. I did find it on the > internet, downloaded and installed it... works well. > Thanks, > Jim > > On Tue, Sep 6, 2016 at 8:45 PM, Darryl Collins < > darryl at whittleconsulting.com.au> wrote: > > > As many of you know, windows 10 downloads can be problematic to manage. > > We run many PC's at our work and the automatic download was giving us a > > lot of grief and network issues. > > > > One of the guys poked around behind the scenes and found a registry hack > > that allows you to be notified when a download is available so you can > > download it when it suits (pretty much > > Like you could do with Windows 7 updates). If anyone want the actual > reg > > file itself, which you just click to run and it is set up, email me and I > > will send you a zipped version off list. Or you can set it up manually > via > > reg edit > > as per the copied email below. > > > > This setting is in Windows 10, but it is not presented as an option to > the > > users - the only way to get it working is via the Registry hack. > > I haven't tested this yet, but I believe this works for the Windows 10 > > Home variant as well. > > Cheers > > Darryl. > > > > > > '----------------------------------------------- START OF COPIED EMAIL > > > > Hey guys, > > > > As you are aware the recent upgrade to Windows 10 has had a detrimental > > effect on our internet connection. > > All it takes is one PC to start downloading updates and everything goes > > downhill. It is having a big effect on Skype and TeamViewer. > > > > I've been looking at fixes (and Internet upgrade options) and have found > > an interim solution - to stop Windows 10 from automatically downloading > > updates. > > It is a behind the scene type of adjustment but it works, the caveat > being > > you will need to make sure you update manually which is important for > > security reasons. > > > > Please set this up for all your machines. Will also need to do for the > > other machines (not Process) that are in the office. > > > > There are 2 ways to create the "Notify for Download" setting (which does > > not exist in the user interface). > > > > > > 1. Just run the attached registry hack (will prob have to save to > > local drive first). Quick, easy and just works. > > > > or > > > > > > 2. If you are more curiuos/adventerous you can make the change in > > the Group Policy Editor: > > > > a. Press Windows Key + R to open the Run dialog > > > > b. Type gpedit.msc and then Enter > > > > c. Navigate to Computer Configuration\Administrative > > Templates\Windows Components\Windows Update > > > > d. Locate the "Configure Automatic Updates" setting in the right > > pane and double-click it > > > > e. Set it to "Enabled" > > > > f. Select "2 - Notify for download and notify for install" > > > > g. Save changes. > > > > > > Once you have done either option you can see this change here: > > > > 1. Visit the Windows Update pane in the Settings app and click > > "Check for updates." > > > > 2. You can then click "Advanced options" and you'll see your new > > setting here (as in the pic below) > > > > > > > > '----------------------------------------------- END OF COPIED EMAIL > > > > > > > > > > Darryl Collins > > Whittle Consulting Pty Ltd > > Suite 8, 660 Canterbury Rd > > Surrey Hills, VIC, 3127 > > > > w3w: petty.legs.zoom > > > > p: +61 3 9898 3242 > > m: +61 418 381 548 > > f: +61 3 9898 1855 > > e: darryl at whittleconsulting.com.au whittleconsulting.com.au> > > w: www.whittleconsulting.com.au > > > > -- > > 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 Wed Sep 7 14:00:51 2016 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 7 Sep 2016 19:00:51 +0000 Subject: [AccessD] Form label not refreshing Message-ID: <8E16E03987F1FD4FB0A9BEBF7CC160CB294CE4F6@HOUEX11.kindermorgan.com> I have a module that opens a form and runs some queries. After each query runs the label on the form is supposed to refresh and display. The code refreshes the form if I step through it but not if I run it . I put some sleep statements in which work when stepping through the code but not when running it. Is my strategy flawed? Below is part of the code. Thanks for any ideas. Option Compare Database Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Function A() Call Active_Well_Counts_by_Project_Area End Function '------------------------------------------------------------ ' mdl Active_Well_Counts_by_Project_Area ' '------------------------------------------------------------ Sub Active_Well_Counts_by_Project_Area() Dim frmMessage As Form DoCmd.OpenForm "frm Message Form 1" Set frmMessage = Forms("frm Message Form 1") On Error GoTo Active_Well_Counts_by_Project_Area_Err DoCmd.SetWarnings False DoCmd.OpenQuery "qry Status First Day of Prior Month", acViewNormal, acEdit frmMessage.ProgressMessage.Caption = "Getting Well Statuses during Month" 'This one works DoCmd.OpenQuery "qry Statuses During Prior Month", acViewNormal, acEdit frmMessage.ProgressMessage.Caption = "Getting Active Injectors List Prior Month" 'blows by this Sleep 10000 DoCmd.OpenQuery "qry Active Injectors List Prior Month", acViewNormal, acEdit frmMessage.ProgressMessage.Caption = "Getting Active Producers List Prior Month" Sleep 10000 From Lambert.Heenan at aig.com Wed Sep 7 14:03:51 2016 From: Lambert.Heenan at aig.com (Heenan, Lambert) Date: Wed, 7 Sep 2016 19:03:51 +0000 Subject: [AccessD] Form label not refreshing In-Reply-To: <8E16E03987F1FD4FB0A9BEBF7CC160CB294CE4F6@HOUEX11.kindermorgan.com> References: <8E16E03987F1FD4FB0A9BEBF7CC160CB294CE4F6@HOUEX11.kindermorgan.com> Message-ID: Try a DoEvents after each frmMessage.ProgressMessage.Caption = "" line. Lambert? -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 07, 2016 3:01 PM To: Access Developers discussion and problem solving Subject: [AccessD] Form label not refreshing I have a module that opens a form and runs some queries. After each query runs the label on the form is supposed to refresh and display. The code refreshes the form if I step through it but not if I run it . I put some sleep statements in which work when stepping through the code but not when running it. Is my strategy flawed? Below is part of the code. Thanks for any ideas. Option Compare Database Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Function A() Call Active_Well_Counts_by_Project_Area End Function '------------------------------------------------------------ ' mdl Active_Well_Counts_by_Project_Area ' '------------------------------------------------------------ Sub Active_Well_Counts_by_Project_Area() Dim frmMessage As Form DoCmd.OpenForm "frm Message Form 1" Set frmMessage = Forms("frm Message Form 1") On Error GoTo Active_Well_Counts_by_Project_Area_Err DoCmd.SetWarnings False DoCmd.OpenQuery "qry Status First Day of Prior Month", acViewNormal, acEdit frmMessage.ProgressMessage.Caption = "Getting Well Statuses during Month" 'This one works DoCmd.OpenQuery "qry Statuses During Prior Month", acViewNormal, acEdit frmMessage.ProgressMessage.Caption = "Getting Active Injectors List Prior Month" 'blows by this Sleep 10000 DoCmd.OpenQuery "qry Active Injectors List Prior Month", acViewNormal, acEdit frmMessage.ProgressMessage.Caption = "Getting Active Producers List Prior Month" Sleep 10000 -- 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 7 14:15:15 2016 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 7 Sep 2016 19:15:15 +0000 Subject: [AccessD] Form label not refreshing In-Reply-To: References: <8E16E03987F1FD4FB0A9BEBF7CC160CB294CE4F6@HOUEX11.kindermorgan.com> Message-ID: <8E16E03987F1FD4FB0A9BEBF7CC160CB294CE511@HOUEX11.kindermorgan.com> That was it. Works perfectly. Had a DoEvents in there originally but in the wrong place. Thank You. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, September 07, 2016 2:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Form label not refreshing Try a DoEvents after each frmMessage.ProgressMessage.Caption = "" line. Lambert? -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 07, 2016 3:01 PM To: Access Developers discussion and problem solving Subject: [AccessD] Form label not refreshing I have a module that opens a form and runs some queries. After each query runs the label on the form is supposed to refresh and display. The code refreshes the form if I step through it but not if I run it . I put some sleep statements in which work when stepping through the code but not when running it. Is my strategy flawed? Below is part of the code. Thanks for any ideas. Option Compare Database Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Function A() Call Active_Well_Counts_by_Project_Area End Function '------------------------------------------------------------ ' mdl Active_Well_Counts_by_Project_Area ' '------------------------------------------------------------ Sub Active_Well_Counts_by_Project_Area() Dim frmMessage As Form DoCmd.OpenForm "frm Message Form 1" Set frmMessage = Forms("frm Message Form 1") On Error GoTo Active_Well_Counts_by_Project_Area_Err DoCmd.SetWarnings False DoCmd.OpenQuery "qry Status First Day of Prior Month", acViewNormal, acEdit frmMessage.ProgressMessage.Caption = "Getting Well Statuses during Month" 'This one works DoCmd.OpenQuery "qry Statuses During Prior Month", acViewNormal, acEdit frmMessage.ProgressMessage.Caption = "Getting Active Injectors List Prior Month" 'blows by this Sleep 10000 DoCmd.OpenQuery "qry Active Injectors List Prior Month", acViewNormal, acEdit frmMessage.ProgressMessage.Caption = "Getting Active Producers List Prior Month" Sleep 10000 -- 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 at whittleconsulting.com.au Wed Sep 7 18:38:31 2016 From: darryl at whittleconsulting.com.au (Darryl Collins) Date: Wed, 7 Sep 2016 23:38:31 +0000 Subject: [AccessD] Windows 10 Downloads - Notify for download hack - only slightly OT In-Reply-To: References: Message-ID: Yes Bill, for most corporates, that is true. I am lucky where I work at an organisation that treats us like responsible adults and we can pretty much do what we need to , to get the job done in the best way possible. Even so, this information might still be useful for home and other places where you can edit the registry as you see fit. Cheers Darryl. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: 8 September, 2016 2:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Windows 10 Downloads - Notify for download hack - only slightly OT In most corporations you (1) cannot hack your registry and (2) the Infrastructure team is going to push updates along when they feel like it anyway. But it might help me at home. As If I am going to move to Win10 any time soon, with Win7 still supported for a little while. And by that time, MS might find a way to neutralize this hack. On Wed, Sep 7, 2016 at 12:44 PM, Jim Hewson wrote: > Thanks Darryl. This is very useful. > The automatic download and install is also problematic when using a > laptop through a hotspot. The downloads can chew up the data very > quickly. I learned the hard way. > The only problem I had was the Windows 10 version that is on my laptop > is "Home"... it doesn't have the gpedit utility. I did find it on the > internet, downloaded and installed it... works well. > Thanks, > Jim > > On Tue, Sep 6, 2016 at 8:45 PM, Darryl Collins < > darryl at whittleconsulting.com.au> wrote: > > > As many of you know, windows 10 downloads can be problematic to manage. > > We run many PC's at our work and the automatic download was giving > > us a lot of grief and network issues. > > > > One of the guys poked around behind the scenes and found a registry > > hack that allows you to be notified when a download is available so > > you can download it when it suits (pretty much > > Like you could do with Windows 7 updates). If anyone want the actual > reg > > file itself, which you just click to run and it is set up, email me > > and I will send you a zipped version off list. Or you can set it up > > manually > via > > reg edit > > as per the copied email below. > > > > This setting is in Windows 10, but it is not presented as an option > > to > the > > users - the only way to get it working is via the Registry hack. > > I haven't tested this yet, but I believe this works for the Windows > > 10 Home variant as well. > > Cheers > > Darryl. > > > > > > '----------------------------------------------- START OF COPIED > > EMAIL > > > > Hey guys, > > > > As you are aware the recent upgrade to Windows 10 has had a > > detrimental effect on our internet connection. > > All it takes is one PC to start downloading updates and everything > > goes downhill. It is having a big effect on Skype and TeamViewer. > > > > I've been looking at fixes (and Internet upgrade options) and have > > found an interim solution - to stop Windows 10 from automatically > > downloading updates. > > It is a behind the scene type of adjustment but it works, the caveat > being > > you will need to make sure you update manually which is important > > for security reasons. > > > > Please set this up for all your machines. Will also need to do for the > > other machines (not Process) that are in the office. > > > > There are 2 ways to create the "Notify for Download" setting (which > > does not exist in the user interface). > > > > > > 1. Just run the attached registry hack (will prob have to save to > > local drive first). Quick, easy and just works. > > > > or > > > > > > 2. If you are more curiuos/adventerous you can make the change in > > the Group Policy Editor: > > > > a. Press Windows Key + R to open the Run dialog > > > > b. Type gpedit.msc and then Enter > > > > c. Navigate to Computer Configuration\Administrative > > Templates\Windows Components\Windows Update > > > > d. Locate the "Configure Automatic Updates" setting in the right > > pane and double-click it > > > > e. Set it to "Enabled" > > > > f. Select "2 - Notify for download and notify for install" > > > > g. Save changes. > > > > > > Once you have done either option you can see this change here: > > > > 1. Visit the Windows Update pane in the Settings app and click > > "Check for updates." > > > > 2. You can then click "Advanced options" and you'll see your new > > setting here (as in the pic below) > > > > > > > > '----------------------------------------------- END OF COPIED EMAIL > > > > > > > > > > Darryl Collins > > Whittle Consulting Pty Ltd > > Suite 8, 660 Canterbury Rd > > Surrey Hills, VIC, 3127 > > > > w3w: petty.legs.zoom > > > > p: +61 3 9898 3242 > > m: +61 418 381 548 > > f: +61 3 9898 1855 > > e: darryl at whittleconsulting.com.au whittleconsulting.com.au> > > w: > > www.whittleconsulting.com.au > > > > -- > > 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 gmail.com Fri Sep 9 22:32:11 2016 From: jwcolby at gmail.com (John Colby) Date: Fri, 9 Sep 2016 23:32:11 -0400 Subject: [AccessD] Stunning Videos of Evolution in Action - The Atlantic Message-ID: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> http://www.theatlantic.com/science/archive/2016/09/stunning-videos-of-evolution-in-action/499136/ -- John W. Colby From michael at mattysconsulting.com Sat Sep 10 19:54:07 2016 From: michael at mattysconsulting.com (Michael Mattys) Date: Sat, 10 Sep 2016 20:54:07 -0400 Subject: [AccessD] Stunning Videos of Evolution in Action - The Atlantic In-Reply-To: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> Message-ID: <004901d20bc7$013d55c0$03b80140$@mattysconsulting.com> Hi John, There will need to be databases created for the ensuing data ... Apparently, we are speeding up these processes by our own actions - http://www.who.int/mediacentre/commentaries/stop-antibiotic-resistance/en/ This may well become a serious condition - https://consumerist.com/2016/05/19/antibiotic-resistant-superbugs-could-kill -millions-every-year-if-left-unchecked/ I didn't see much discussion of this in the Comments section, just the usual trolls chasing each other. Mike Mattys -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Friday, September 9, 2016 11:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Stunning Videos of Evolution in Action - The Atlantic http://www.theatlantic.com/science/archive/2016/09/stunning-videos-of-evolut ion-in-action/499136/ -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Sep 10 21:30:41 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 10 Sep 2016 20:30:41 -0600 (MDT) Subject: [AccessD] Stunning Videos of Evolution in Action - The Atlantic In-Reply-To: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> Message-ID: <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> That is truly awesome. Thanks for posting. Jim ----- Original Message ----- From: "John Colby" To: "Access Developers discussion and problem solving" Sent: Friday, September 9, 2016 8:32:11 PM Subject: [AccessD] Stunning Videos of Evolution in Action - The Atlantic http://www.theatlantic.com/science/archive/2016/09/stunning-videos-of-evolution-in-action/499136/ -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Sun Sep 11 07:59:15 2016 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Sun, 11 Sep 2016 08:59:15 -0400 Subject: [AccessD] Stunning Videos of Evolution in Action - The Atlantic In-Reply-To: <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> Message-ID: OK. I was hoping this would just pass unnoticed. This is OT fodder. It doesnt' belong on AccessD Thanks, Your friendly neighbourhood Listmaster. Bryan On Sat, Sep 10, 2016 at 10:30 PM, Jim Lawrence wrote: > That is truly awesome. Thanks for posting. > > Jim > > ----- Original Message ----- > From: "John Colby" > To: "Access Developers discussion and problem solving" > Sent: Friday, September 9, 2016 8:32:11 PM > Subject: [AccessD] Stunning Videos of Evolution in Action - The Atlantic > > > http://www.theatlantic.com/science/archive/2016/09/stunning-videos-of-evolution-in-action/499136/ > > -- > John W. Colby > > -- > 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 rockysmolin at bchacc.com Tue Sep 13 11:48:49 2016 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 13 Sep 2016 09:48:49 -0700 Subject: [AccessD] Tabbed Forms in Access 2010 Message-ID: <021601d20dde$b40b83c0$1c228b40$@bchacc.com> The default seems to be no tabbed forms - requires me to set it for each database I create or legacy mdb I'm working with. Is there a way to make tabbed forms the default? MTIA Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin From bensonforums at gmail.com Tue Sep 13 12:59:37 2016 From: bensonforums at gmail.com (Bill Benson) Date: Tue, 13 Sep 2016 13:59:37 -0400 Subject: [AccessD] Tabbed Forms in Access 2010 In-Reply-To: <021601d20dde$b40b83c0$1c228b40$@bchacc.com> References: <021601d20dde$b40b83c0$1c228b40$@bchacc.com> Message-ID: Other than start with a blank database with this setting already set, and keep re-using it, no I do not believe so. On Tue, Sep 13, 2016 at 12:48 PM, Rocky Smolin wrote: > The default seems to be no tabbed forms - requires me to set it for each > database I create or legacy mdb I'm working with. > > > > Is there a way to make tabbed forms the default? > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > 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 13 16:34:15 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 14 Sep 2016 07:34:15 +1000 Subject: [AccessD] Tabbed Forms in Access 2010 In-Reply-To: References: <021601d20dde$b40b83c0$1c228b40$@bchacc.com>, Message-ID: <57D870D7.23317.37BAAE0@stuart.lexacorp.com.pg> That's what I do. I created a blank database, set all my preferred options and then I copy that as a template when I want a new db. On 13 Sep 2016 at 13:59, Bill Benson wrote: > Other than start with a blank database with this setting already set, > and keep re-using it, no I do not believe so. > > On Tue, Sep 13, 2016 at 12:48 PM, Rocky Smolin > wrote: > > > The default seems to be no tabbed forms - requires me to set it for > > each database I create or legacy mdb I'm working with. > > > > > > > > Is there a way to make tabbed forms the default? > > > > > > > > MTIA > > > > > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > -- > > 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 16 11:58:45 2016 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 16 Sep 2016 09:58:45 -0700 Subject: [AccessD] Split with multiple delimiters? Message-ID: Does anyone know of a way to use SPLIT() with multiple delimiters? Something like varx = Split("some-Text: like'this","-', ") I don't think I can nest them because of the arrays that they create as the result. Thanks, David From gustav at cactus.dk Fri Sep 16 12:06:37 2016 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Sep 2016 17:06:37 +0000 Subject: [AccessD] Split with multiple delimiters? Message-ID: Hi David I don't think you can - that's a feature of dotNet. But perhaps you could first replace the split characters with a single rare character like "?", and then use: varx = Split("some-Text: like'this","?") /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af David McAfee Sendt: 16. september 2016 18:59 Til: Access Developers discussion and problem solving Emne: [AccessD] Split with multiple delimiters? Does anyone know of a way to use SPLIT() with multiple delimiters? Something like varx = Split("some-Text: like'this","-', ") I don't think I can nest them because of the arrays that they create as the result. Thanks, David From jamesbutton at blueyonder.co.uk Fri Sep 16 13:26:16 2016 From: jamesbutton at blueyonder.co.uk (James Button) Date: Fri, 16 Sep 2016 19:26:16 +0100 Subject: [AccessD] Split with multiple delimiters? In-Reply-To: References: Message-ID: Maybe substitute (all of) one delimiter for the other within the string before the split. JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Friday, September 16, 2016 5:59 PM To: Access Developers discussion and problem solving Subject: [AccessD] Split with multiple delimiters? Does anyone know of a way to use SPLIT() with multiple delimiters? Something like varx = Split("some-Text: like'this","-', ") I don't think I can nest them because of the arrays that they create as the result. Thanks, David -- 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 16 15:34:43 2016 From: bradm at blackforestltd.com (Brad Marks) Date: Fri, 16 Sep 2016 20:34:43 +0000 Subject: [AccessD] MZ-Tools for Access 2013 Message-ID: All, For several years, I have been using the free version of MZ-Tools for Access 2007 VBA code. The main feature that I use is the "line numbering" feature. Recently, I have been given a new PC with Access 2013. It appears that the free version of MZ-Tools is not available for Access 2013. Is this correct? Is there an alternative free tool for "line numbering" in VBA code? Thanks, Brad Marks From davidmcafee at gmail.com Fri Sep 16 16:12:28 2016 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 16 Sep 2016 14:12:28 -0700 Subject: [AccessD] Split with multiple delimiters? In-Reply-To: References: Message-ID: Thanks, I dodn't think about using REPLACE() inside of the split. :) Now that I think about it, there is different logic for a couple of the delimiters, so I guess I still have to run Split() in multiple passes anyway. :/ On Fri, Sep 16, 2016 at 11:26 AM, James Button wrote: > Maybe substitute (all of) one delimiter for the other within the string > before > the split. > > JimB > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > David > McAfee > Sent: Friday, September 16, 2016 5:59 PM > To: Access Developers discussion and problem solving > > Subject: [AccessD] Split with multiple delimiters? > > Does anyone know of a way to use SPLIT() with multiple delimiters? > > Something like varx = Split("some-Text: like'this","-', ") > > I don't think I can nest them because of the arrays that they create as the > result. > > Thanks, > David > -- > 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 16 16:13:55 2016 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 16 Sep 2016 14:13:55 -0700 Subject: [AccessD] Split with multiple delimiters? In-Reply-To: References: Message-ID: <05ac01d2105f$3ba25e80$b2e71b80$@bchacc.com> Brilliant! R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 16, 2016 10:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Split with multiple delimiters? Hi David I don't think you can - that's a feature of dotNet. But perhaps you could first replace the split characters with a single rare character like "?", and then use: varx = Split("some-Text: like'this","?") /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af David McAfee Sendt: 16. september 2016 18:59 Til: Access Developers discussion and problem solving Emne: [AccessD] Split with multiple delimiters? Does anyone know of a way to use SPLIT() with multiple delimiters? Something like varx = Split("some-Text: like'this","-', ") I don't think I can nest them because of the arrays that they create as the result. Thanks, David -- 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 16 16:16:18 2016 From: bradm at blackforestltd.com (Brad Marks) Date: Fri, 16 Sep 2016 21:16:18 +0000 Subject: [AccessD] How to Force the Location of a small form next to a report Message-ID: All, Recently, I was asked to develop a small form which controls the data that appears on a related report. This form has six text boxes and five radio buttons. By using these text boxes and radio buttons, our users can control the data that is shown on the report. Our users have fairly wide screens. There is room to show the entire form on the right size of the report. Is there a way to force the form to always appear in a specific location? Currently, when the form is opened, it appears in the upper left of the window. I would like to have it always appear on the right side of the report. Thanks, Brad Marks From charlotte.foust at gmail.com Fri Sep 16 16:18:40 2016 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Fri, 16 Sep 2016 14:18:40 -0700 Subject: [AccessD] MZ-Tools for Access 2013 In-Reply-To: References: Message-ID: I have the paid version that works for Access 2010 and above, and it's well worth the money. That are so many tools in MZ-Tools, that I haven't reached the end of them. Charlotte Foust (916) 206-4336 On Fri, Sep 16, 2016 at 1:34 PM, Brad Marks wrote: > All, > > For several years, I have been using the free version of MZ-Tools for > Access 2007 VBA code. The main feature that I use is the "line numbering" > feature. > > Recently, I have been given a new PC with Access 2013. > > It appears that the free version of MZ-Tools is not available for Access > 2013. > > Is this correct? > > Is there an alternative free tool for "line numbering" in VBA code? > > Thanks, > > Brad Marks > > -- > 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 16 16:22:54 2016 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Fri, 16 Sep 2016 14:22:54 -0700 Subject: [AccessD] Record counter not working In-Reply-To: <01dd01d20657$45d4efb0$d17ecf10$@bchacc.com> References: <015d01d20610$e9a78900$bcf69b00$@bchacc.com> <01af01d20636$17849050$468db0f0$@bchacc.com> <01c001d20637$76062d90$621288b0$@bchacc.com> <57CB5973.7690.57E443D@stuart.lexacorp.com.pg> <01dd01d20657$45d4efb0$d17ecf10$@bchacc.com> Message-ID: You left requery unstoned. Just requery the textbox. Charlotte Foust (916) 206-4336 On Sat, Sep 3, 2016 at 7:51 PM, Rocky Smolin wrote: > First one, then the other, then both, then in reverse order. I left no > tern > unstoned. > > R > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Stuart McLachlan > Sent: Saturday, September 03, 2016 4:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Record counter not working > > Did you have both Me.Repaint and DoEvents or did you only try it with each > of those separately? > > > On 3 Sep 2016 at 16:04, Rocky Smolin wrote: > > > OK- here's a clue (don't know what to make of it though) > > > > I put msgbox "Stop" after the Me.txtRecNo = CLng(Nz([txtRecNo], 0)) + > > 1 and the text box showed as updated. Actually is also worked with > > the simple Me.txtRecNo = Me.txtRecNo + 1. > > > > > > So is it a timing thing? I tried Me.Repaint and DoEvents to no avail. > > > > TIA > > > > > > r > > > > -----Original Message----- > > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > > Of Rocky Smolin Sent: Saturday, September 03, 2016 3:54 PM To: 'Access > > Developers discussion and problem solving' Subject: Re: [AccessD] > > Record counter not working > > > > Then what triggers it to change as the code loops through its loop? > > > > r > > > > -----Original Message----- > > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > > Of Bill Benson Sent: Saturday, September 03, 2016 2:55 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Record counter not working > > > > Again, I ask why not put it in the controlsource of the textbox. > > > > On Sep 3, 2016 5:48 PM, "Stuart McLachlan" > > wrote: > > > > > Is all of the procesing code in the form's module or is it done by a > > > single call to a function/procedure in a separate module? > > > > > > (Failing code not shown!) > > > > > > > > > On 3 Sep 2016 at 11:28, Rocky Smolin wrote: > > > > > > > Dear List: > > > > > > > > > > > > > > > > I have two text boxes on a form - one shows the total number of > > > > records to be processed and the other is a counter. So that the > > > > form shows that there's something going on (i.e., Processing > > > > Record: 14 of 250). > > > > > > > > > > > > > > > > I put > > > > > > > > > > > > > > > > Me.txtRecNo = Me.txtRecNo + 1 > > > > > > > > > > > > > > > > At the top of the look but it didn't update. > > > > > > > > > > > > > > > > So I added: > > > > > > > > > > > > > > > > Me.Repaint > > > > > > > > > > > > > > > > Still no update. So I added: > > > > > > > > > > > > > > > > DoEvents > > > > > > > > > > > > > > > > Still no update. It always reads 0 of n (I initialize the text > > > > box with a zero). > > > > > > > > > > > > > > > > Any idea why I can't get this to update? I use this technique a > > > > lot to let the user know at what point in the process the program > > > > is, and it is often unreliable. I have used a long variable for > > > > the counter and just plugged the variable into the text box after > > > > it was incremented but that doesn't work in this case. > > > > > > > > > > > > > > > > Any ideas appreciated. > > > > > > > > > > > > > > > > MTIA > > > > > > > > > > > > > > > > > > > > > > > > Rocky Smolin > > > > > > > > Beach Access Software > > > > > > > > 760-683-5777 > > > > > > > > www.bchacc.com > > > > > > > > www.e-z-mrp.com > > > > > > > > Skype: rocky.smolin > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > 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 > > -- > 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 16 16:31:17 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 17 Sep 2016 07:31:17 +1000 Subject: [AccessD] How to Force the Location of a small form next to a report In-Reply-To: References: Message-ID: <57DC64A5.365.38A42DB@stuart.lexacorp.com.pg> In the forms On_Open event, put: Me.Move xtwips,ytwips. -- Stuart On 16 Sep 2016 at 21:16, Brad Marks wrote: > All, > > Recently, I was asked to develop a small form which controls the data > that appears on a related report. > > This form has six text boxes and five radio buttons. By using these > text boxes and radio buttons, our users can control the data that is > shown on the report. > > Our users have fairly wide screens. There is room to show the entire > form on the right size of the report. > > Is there a way to force the form to always appear in a specific > location? Currently, when the form is opened, it appears in the upper > left of the window. I would like to have it always appear on the > right side of the report. > > Thanks, > > Brad Marks > > -- > 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 16 16:40:48 2016 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 16 Sep 2016 14:40:48 -0700 Subject: [AccessD] How to Force the Location of a small form next to a report In-Reply-To: References: Message-ID: <05bd01d21062$fd5d5f40$f8181dc0$@bchacc.com> I think MoveSize may work IIUC what you're trying to accomplish: https://msdn.microsoft.com/en-us/library/office/ff197394.aspx rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, September 16, 2016 2:16 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to Force the Location of a small form next to a report All, Recently, I was asked to develop a small form which controls the data that appears on a related report. This form has six text boxes and five radio buttons. By using these text boxes and radio buttons, our users can control the data that is shown on the report. Our users have fairly wide screens. There is room to show the entire form on the right size of the report. Is there a way to force the form to always appear in a specific location? Currently, when the form is opened, it appears in the upper left of the window. I would like to have it always appear on the right side of the report. Thanks, Brad Marks -- 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 16 16:41:45 2016 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 16 Sep 2016 14:41:45 -0700 Subject: [AccessD] Record counter not working In-Reply-To: References: <015d01d20610$e9a78900$bcf69b00$@bchacc.com> <01af01d20636$17849050$468db0f0$@bchacc.com> <01c001d20637$76062d90$621288b0$@bchacc.com> <57CB5973.7690.57E443D@stuart.lexacorp.com.pg> <01dd01d20657$45d4efb0$d17ecf10$@bchacc.com> Message-ID: <05be01d21063$1f5497d0$5dfdc770$@bchacc.com> That's too easy. But I'll try it. :) Tsk R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 16, 2016 2:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record counter not working You left requery unstoned. Just requery the textbox. Charlotte Foust (916) 206-4336 On Sat, Sep 3, 2016 at 7:51 PM, Rocky Smolin wrote: > First one, then the other, then both, then in reverse order. I left > no tern unstoned. > > R > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Stuart McLachlan > Sent: Saturday, September 03, 2016 4:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Record counter not working > > Did you have both Me.Repaint and DoEvents or did you only try it with > each of those separately? > > > On 3 Sep 2016 at 16:04, Rocky Smolin wrote: > > > OK- here's a clue (don't know what to make of it though) > > > > I put msgbox "Stop" after the Me.txtRecNo = CLng(Nz([txtRecNo], 0)) > > + > > 1 and the text box showed as updated. Actually is also worked with > > the simple Me.txtRecNo = Me.txtRecNo + 1. > > > > > > So is it a timing thing? I tried Me.Repaint and DoEvents to no avail. > > > > TIA > > > > > > r > > > > -----Original Message----- > > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On > > Behalf Of Rocky Smolin Sent: Saturday, September 03, 2016 3:54 PM > > To: 'Access Developers discussion and problem solving' Subject: Re: > > [AccessD] Record counter not working > > > > Then what triggers it to change as the code loops through its loop? > > > > r > > > > -----Original Message----- > > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On > > Behalf Of Bill Benson Sent: Saturday, September 03, 2016 2:55 PM To: > > Access Developers discussion and problem solving Subject: Re: > > [AccessD] Record counter not working > > > > Again, I ask why not put it in the controlsource of the textbox. > > > > On Sep 3, 2016 5:48 PM, "Stuart McLachlan" > > wrote: > > > > > Is all of the procesing code in the form's module or is it done by > > > a single call to a function/procedure in a separate module? > > > > > > (Failing code not shown!) > > > > > > > > > On 3 Sep 2016 at 11:28, Rocky Smolin wrote: > > > > > > > Dear List: > > > > > > > > > > > > > > > > I have two text boxes on a form - one shows the total number of > > > > records to be processed and the other is a counter. So that the > > > > form shows that there's something going on (i.e., Processing > > > > Record: 14 of 250). > > > > > > > > > > > > > > > > I put > > > > > > > > > > > > > > > > Me.txtRecNo = Me.txtRecNo + 1 > > > > > > > > > > > > > > > > At the top of the look but it didn't update. > > > > > > > > > > > > > > > > So I added: > > > > > > > > > > > > > > > > Me.Repaint > > > > > > > > > > > > > > > > Still no update. So I added: > > > > > > > > > > > > > > > > DoEvents > > > > > > > > > > > > > > > > Still no update. It always reads 0 of n (I initialize the text > > > > box with a zero). > > > > > > > > > > > > > > > > Any idea why I can't get this to update? I use this technique a > > > > lot to let the user know at what point in the process the > > > > program is, and it is often unreliable. I have used a long > > > > variable for the counter and just plugged the variable into the > > > > text box after it was incremented but that doesn't work in this case. > > > > > > > > > > > > > > > > Any ideas appreciated. > > > > > > > > > > > > > > > > MTIA > > > > > > > > > > > > > > > > > > > > > > > > Rocky Smolin > > > > > > > > Beach Access Software > > > > > > > > 760-683-5777 > > > > > > > > www.bchacc.com > > > > > > > > www.e-z-mrp.com > > > > > > > > Skype: rocky.smolin > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > 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 > > -- > 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 16 16:58:48 2016 From: bradm at blackforestltd.com (Brad Marks) Date: Fri, 16 Sep 2016 21:58:48 +0000 Subject: [AccessD] How to Force the Location of a small form next to a report In-Reply-To: <57DC64A5.365.38A42DB@stuart.lexacorp.com.pg> References: <57DC64A5.365.38A42DB@stuart.lexacorp.com.pg> Message-ID: Stuart, Thanks. Initial tests look nice. Brad -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, September 16, 2016 4:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Force the Location of a small form next to a report In the forms On_Open event, put: Me.Move xtwips,ytwips. -- Stuart On 16 Sep 2016 at 21:16, Brad Marks wrote: > All, > > Recently, I was asked to develop a small form which controls the data > that appears on a related report. > > This form has six text boxes and five radio buttons. By using these > text boxes and radio buttons, our users can control the data that is > shown on the report. > > Our users have fairly wide screens. There is room to show the entire > form on the right size of the report. > > Is there a way to force the form to always appear in a specific > location? Currently, when the form is opened, it appears in the upper > left of the window. I would like to have it always appear on the > right side of the report. > > Thanks, > > Brad Marks > > -- > 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 16 16:59:31 2016 From: bradm at blackforestltd.com (Brad Marks) Date: Fri, 16 Sep 2016 21:59:31 +0000 Subject: [AccessD] How to Force the Location of a small form next to a report In-Reply-To: <05bd01d21062$fd5d5f40$f8181dc0$@bchacc.com> References: <05bd01d21062$fd5d5f40$f8181dc0$@bchacc.com> Message-ID: Rocky, Thanks! I will need to experiment with this. Brad -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, September 16, 2016 4:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to Force the Location of a small form next to a report I think MoveSize may work IIUC what you're trying to accomplish: https://msdn.microsoft.com/en-us/library/office/ff197394.aspx rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, September 16, 2016 2:16 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to Force the Location of a small form next to a report All, Recently, I was asked to develop a small form which controls the data that appears on a related report. This form has six text boxes and five radio buttons. By using these text boxes and radio buttons, our users can control the data that is shown on the report. Our users have fairly wide screens. There is room to show the entire form on the right size of the report. Is there a way to force the form to always appear in a specific location? Currently, when the form is opened, it appears in the upper left of the window. I would like to have it always appear on the right side of the report. Thanks, Brad Marks -- 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 16 17:02:12 2016 From: bradm at blackforestltd.com (Brad Marks) Date: Fri, 16 Sep 2016 22:02:12 +0000 Subject: [AccessD] MZ-Tools for Access 2013 In-Reply-To: References: Message-ID: Charlotte, Thanks for the info. Right now, I only need a tool for line numbering. Not sure if there is any $ in the budget for any Access add-ons. Brad -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 16, 2016 4:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MZ-Tools for Access 2013 I have the paid version that works for Access 2010 and above, and it's well worth the money. That are so many tools in MZ-Tools, that I haven't reached the end of them. Charlotte Foust (916) 206-4336 On Fri, Sep 16, 2016 at 1:34 PM, Brad Marks wrote: > All, > > For several years, I have been using the free version of MZ-Tools for > Access 2007 VBA code. The main feature that I use is the "line numbering" > feature. > > Recently, I have been given a new PC with Access 2013. > > It appears that the free version of MZ-Tools is not available for > Access 2013. > > Is this correct? > > Is there an alternative free tool for "line numbering" in VBA code? > > Thanks, > > Brad Marks > > -- > 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 jackandpat.d at gmail.com Fri Sep 16 17:53:42 2016 From: jackandpat.d at gmail.com (jack drawbridge) Date: Fri, 16 Sep 2016 18:53:42 -0400 Subject: [AccessD] MZ-Tools for Access 2013 In-Reply-To: References: Message-ID: Brad, Do you still have the older mztools as zip or exe? It may work - I'm using it with Access 2010. On Fri, Sep 16, 2016 at 6:02 PM, Brad Marks wrote: > Charlotte, > > Thanks for the info. > > Right now, I only need a tool for line numbering. > > Not sure if there is any $ in the budget for any Access add-ons. > > Brad > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: Friday, September 16, 2016 4:19 PM > To: Access Developers discussion and problem solving < > accessd at databaseadvisors.com> > Subject: Re: [AccessD] MZ-Tools for Access 2013 > > I have the paid version that works for Access 2010 and above, and it's > well worth the money. That are so many tools in MZ-Tools, that I haven't > reached the end of them. > > Charlotte Foust > (916) 206-4336 > > On Fri, Sep 16, 2016 at 1:34 PM, Brad Marks > wrote: > > > All, > > > > For several years, I have been using the free version of MZ-Tools for > > Access 2007 VBA code. The main feature that I use is the "line > numbering" > > feature. > > > > Recently, I have been given a new PC with Access 2013. > > > > It appears that the free version of MZ-Tools is not available for > > Access 2013. > > > > Is this correct? > > > > Is there an alternative free tool for "line numbering" in VBA code? > > > > Thanks, > > > > Brad Marks > > > > -- > > 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 Fri Sep 16 18:30:59 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 17 Sep 2016 09:30:59 +1000 Subject: [AccessD] How to Force the Location of a small form next to a report In-Reply-To: References: , <05bd01d21062$fd5d5f40$f8181dc0$@bchacc.com>, Message-ID: <57DC80B3.17015.3F7D694@stuart.lexacorp.com.pg> That moves the "Active Window", so I suspect it won't work until the control form is already on screen and has the focus. The Form.Move method has the advantage that it can be applied during creation but before the form is displayed. On 16 Sep 2016 at 21:59, Brad Marks wrote: > Rocky, > > Thanks! I will need to experiment with this. > > Brad > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Rocky Smolin Sent: Friday, September 16, 2016 4:41 PM To: 'Access > Developers discussion and problem solving' > Subject: Re: [AccessD] How to Force the > Location of a small form next to a report > > I think MoveSize may work IIUC what you're trying to accomplish: > > https://msdn.microsoft.com/en-us/library/office/ff197394.aspx > > rocky > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Brad Marks Sent: Friday, September 16, 2016 2:16 PM To: Access > Developers discussion and problem solving Subject: [AccessD] How to > Force the Location of a small form next to a report > > All, > > Recently, I was asked to develop a small form which controls the data > that appears on a related report. > > This form has six text boxes and five radio buttons. By using these > text boxes and radio buttons, our users can control the data that is > shown on the report. > > Our users have fairly wide screens. There is room to show the entire > form on the right size of the report. > > Is there a way to force the form to always appear in a specific > location? Currently, when the form is opened, it appears in the upper > left of the window. I would like to have it always appear on the > right side of the report. > > Thanks, > > Brad Marks > > -- > 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 jimdettman at verizon.net Fri Sep 16 19:57:50 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 16 Sep 2016 20:57:50 -0400 Subject: [AccessD] MZ-Tools for Access 2013 In-Reply-To: References: Message-ID: <91FE60A1-EE33-4271-9D9E-183A2FACDBA8@verizon.net> Note that there was an update to address a bug just before it switched from free to pay. If you have that copy, it works with later versions. If you want a current copy though, it's pay (and IMHO rightly so). Jim Sent from my iPhone > On Sep 16, 2016, at 6:53 PM, jack drawbridge wrote: > > Brad, > Do you still have the older mztools as zip or exe? > It may work - I'm using it with Access 2010. > > On Fri, Sep 16, 2016 at 6:02 PM, Brad Marks > wrote: > >> Charlotte, >> >> Thanks for the info. >> >> Right now, I only need a tool for line numbering. >> >> Not sure if there is any $ in the budget for any Access add-ons. >> >> Brad >> >> >> >> -----Original Message----- >> From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Charlotte Foust >> Sent: Friday, September 16, 2016 4:19 PM >> To: Access Developers discussion and problem solving < >> accessd at databaseadvisors.com> >> Subject: Re: [AccessD] MZ-Tools for Access 2013 >> >> I have the paid version that works for Access 2010 and above, and it's >> well worth the money. That are so many tools in MZ-Tools, that I haven't >> reached the end of them. >> >> Charlotte Foust >> (916) 206-4336 >> >> On Fri, Sep 16, 2016 at 1:34 PM, Brad Marks >> wrote: >> >>> All, >>> >>> For several years, I have been using the free version of MZ-Tools for >>> Access 2007 VBA code. The main feature that I use is the "line >> numbering" >>> feature. >>> >>> Recently, I have been given a new PC with Access 2013. >>> >>> It appears that the free version of MZ-Tools is not available for >>> Access 2013. >>> >>> Is this correct? >>> >>> Is there an alternative free tool for "line numbering" in VBA code? >>> >>> Thanks, >>> >>> Brad Marks >>> >>> -- >>> 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 Sat Sep 17 01:01:16 2016 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Fri, 16 Sep 2016 23:01:16 -0700 Subject: [AccessD] MZ-Tools for Access 2013 In-Reply-To: References: Message-ID: Invest in the paid version for VBA, which gives you much more than the free version. It's my go to tool for inserting standard error handling code, reordering procedures within a module, finding unused variables, calls to a particular method locating, and much more. The latest version works for Access 2010 - 2016. Charlotte Foust 916-206-4336 On Sep 16, 2016 1:36 PM, "Brad Marks" wrote: > All, > > For several years, I have been using the free version of MZ-Tools for > Access 2007 VBA code. The main feature that I use is the "line numbering" > feature. > > Recently, I have been given a new PC with Access 2013. > > It appears that the free version of MZ-Tools is not available for Access > 2013. > > Is this correct? > > Is there an alternative free tool for "line numbering" in VBA code? > > Thanks, > > Brad Marks > > -- > 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 18 03:47:55 2016 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 18 Sep 2016 08:47:55 +0000 Subject: [AccessD] Read the "Options, Tab Width" setting of the the VBE Options from VBA? Message-ID: Hi all Is that possible? I cannot find neither a Setting nor Options property of the VBE object. /gustav From charlotte.foust at gmail.com Sun Sep 18 13:32:36 2016 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Sun, 18 Sep 2016 11:32:36 -0700 Subject: [AccessD] Read the "Options, Tab Width" setting of the the VBE Options from VBA? In-Reply-To: References: Message-ID: I haven't worked with the VBE object itself in some years and pre-ribbon, so I have no idea. What are you trying to achieve? And which tabs? Charlotte Foust (916) 206-4336 On Sun, Sep 18, 2016 at 1:47 AM, Gustav Brock wrote: > Hi all > > Is that possible? > I cannot find neither a Setting nor Options property of the VBE object. > > /gustav > -- > 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 18 15:01:57 2016 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 18 Sep 2016 20:01:57 +0000 Subject: [AccessD] Read the "Options, Tab Width" setting of the the VBE Options from VBA? In-Reply-To: References: , Message-ID: Hi Charlotte It's the setting Tools, Options, Editor, Tab Width I wish to read. Default value is 4. /gustav ________________________________________ Fra: AccessD p? vegne af Charlotte Foust Sendt: 18. september 2016 20:32:36 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Read the "Options, Tab Width" setting of the the VBE Options from VBA? I haven't worked with the VBE object itself in some years and pre-ribbon, so I have no idea. What are you trying to achieve? And which tabs? Charlotte Foust (916) 206-4336 On Sun, Sep 18, 2016 at 1:47 AM, Gustav Brock wrote: > Hi all > > Is that possible? > I cannot find neither a Setting nor Options property of the VBE object. > > /gustav From charlotte.foust at gmail.com Sun Sep 18 16:07:44 2016 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Sun, 18 Sep 2016 14:07:44 -0700 Subject: [AccessD] Read the "Options, Tab Width" setting of the the VBE Options from VBA? In-Reply-To: References: Message-ID: Did you set a reference to the extensibility library? That's the only way I know of to deal directly with the VBIDE. I'm not sure what all is in there anymore, but it allows you to customize the VBE environment. Charlotte Foust (916) 206-4336 On Sun, Sep 18, 2016 at 1:01 PM, Gustav Brock wrote: > Hi Charlotte > > It's the setting Tools, Options, Editor, Tab Width I wish to read. Default > value is 4. > > /gustav > > ________________________________________ > Fra: AccessD p? vegne af Charlotte > Foust > Sendt: 18. september 2016 20:32:36 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Read the "Options, Tab Width" setting of the the VBE > Options from VBA? > > I haven't worked with the VBE object itself in some years and pre-ribbon, > so I have no idea. What are you trying to achieve? And which tabs? > > Charlotte Foust > (916) 206-4336 > > On Sun, Sep 18, 2016 at 1:47 AM, Gustav Brock wrote: > > > Hi all > > > > Is that possible? > > I cannot find neither a Setting nor Options property of the VBE object. > > > > /gustav > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From charlotte.foust at gmail.com Sun Sep 18 16:09:35 2016 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Sun, 18 Sep 2016 14:09:35 -0700 Subject: [AccessD] Read the "Options, Tab Width" setting of the the VBE Options from VBA? In-Reply-To: References: Message-ID: Here's a link to some code manipulating the environment. It's aimed more toward Excel, but should translate. http://www.cpearson.com/excel/vbemenus.aspx Charlotte Foust (916) 206-4336 On Sun, Sep 18, 2016 at 1:01 PM, Gustav Brock wrote: > Hi Charlotte > > It's the setting Tools, Options, Editor, Tab Width I wish to read. Default > value is 4. > > /gustav > > ________________________________________ > Fra: AccessD p? vegne af Charlotte > Foust > Sendt: 18. september 2016 20:32:36 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Read the "Options, Tab Width" setting of the the VBE > Options from VBA? > > I haven't worked with the VBE object itself in some years and pre-ribbon, > so I have no idea. What are you trying to achieve? And which tabs? > > Charlotte Foust > (916) 206-4336 > > On Sun, Sep 18, 2016 at 1:47 AM, Gustav Brock wrote: > > > Hi all > > > > Is that possible? > > I cannot find neither a Setting nor Options property of the VBE object. > > > > /gustav > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From darryl at whittleconsulting.com.au Sun Sep 18 18:49:22 2016 From: darryl at whittleconsulting.com.au (Darryl Collins) Date: Sun, 18 Sep 2016 23:49:22 +0000 Subject: [AccessD] MZ-Tools for Access 2013 In-Reply-To: References: Message-ID: The paid version of MZ tools also get automatic and regular (every few months) updates and bug fixes too. Well worth the coin. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: 17 September, 2016 8:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MZ-Tools for Access 2013 Charlotte, Thanks for the info. Right now, I only need a tool for line numbering. Not sure if there is any $ in the budget for any Access add-ons. Brad -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 16, 2016 4:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MZ-Tools for Access 2013 I have the paid version that works for Access 2010 and above, and it's well worth the money. That are so many tools in MZ-Tools, that I haven't reached the end of them. Charlotte Foust (916) 206-4336 On Fri, Sep 16, 2016 at 1:34 PM, Brad Marks wrote: > All, > > For several years, I have been using the free version of MZ-Tools for > Access 2007 VBA code. The main feature that I use is the "line numbering" > feature. > > Recently, I have been given a new PC with Access 2013. > > It appears that the free version of MZ-Tools is not available for > Access 2013. > > Is this correct? > > Is there an alternative free tool for "line numbering" in VBA code? > > Thanks, > > Brad Marks > > -- > 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 gustav at cactus.dk Mon Sep 19 00:58:57 2016 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 19 Sep 2016 05:58:57 +0000 Subject: [AccessD] Read the "Options, Tab Width" setting of the the VBE Options from VBA? Message-ID: Hi Charlotte I think that library is for other programs. The VBE object is native to Access ... just type VBE. and you'll see. But no properties or settings options to see. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Charlotte Foust Sendt: 18. september 2016 23:08 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Read the "Options, Tab Width" setting of the the VBE Options from VBA? Did you set a reference to the extensibility library? That's the only way I know of to deal directly with the VBIDE. I'm not sure what all is in there anymore, but it allows you to customize the VBE environment. Charlotte Foust (916) 206-4336 On Sun, Sep 18, 2016 at 1:01 PM, Gustav Brock wrote: > Hi Charlotte > > It's the setting Tools, Options, Editor, Tab Width I wish to read. > Default value is 4. > > /gustav > > ________________________________________ > Fra: AccessD p? vegne af > Charlotte Foust > Sendt: 18. september 2016 20:32:36 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Read the "Options, Tab Width" setting of the the > VBE Options from VBA? > > I haven't worked with the VBE object itself in some years and > pre-ribbon, so I have no idea. What are you trying to achieve? And which tabs? > > Charlotte Foust > (916) 206-4336 > > On Sun, Sep 18, 2016 at 1:47 AM, Gustav Brock wrote: > > > Hi all > > > > Is that possible? > > I cannot find neither a Setting nor Options property of the VBE object. > > > > /gustav > -- > 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 19 01:01:11 2016 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 19 Sep 2016 06:01:11 +0000 Subject: [AccessD] Read the "Options, Tab Width" setting of the the VBE Options from VBA? Message-ID: Thanks Charlotte, but that covers commandbars and so on. I just need reading the Tab Width setting. Perhaps it is hidden somewhere else. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Charlotte Foust Sendt: 18. september 2016 23:10 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Read the "Options, Tab Width" setting of the the VBE Options from VBA? Here's a link to some code manipulating the environment. It's aimed more toward Excel, but should translate. http://www.cpearson.com/excel/vbemenus.aspx Charlotte Foust (916) 206-4336 On Sun, Sep 18, 2016 at 1:01 PM, Gustav Brock wrote: > Hi Charlotte > > It's the setting Tools, Options, Editor, Tab Width I wish to read. > Default value is 4. > > /gustav > > ________________________________________ > Fra: AccessD p? vegne af > Charlotte Foust > Sendt: 18. september 2016 20:32:36 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Read the "Options, Tab Width" setting of the the > VBE Options from VBA? > > I haven't worked with the VBE object itself in some years and > pre-ribbon, so I have no idea. What are you trying to achieve? And which tabs? > > Charlotte Foust > (916) 206-4336 > > On Sun, Sep 18, 2016 at 1:47 AM, Gustav Brock wrote: > > > Hi all > > > > Is that possible? > > I cannot find neither a Setting nor Options property of the VBE object. > > > > /gustav From gustav at cactus.dk Mon Sep 19 03:16:01 2016 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 19 Sep 2016 08:16:01 +0000 Subject: [AccessD] Read the "Options, Tab Width" setting of the the VBE Options from VBA? Message-ID: Hi Charlotte et al John Tsioumpris at Experts Exchange found it for me. It's a registry setting: [HKEY_CURRENT_USER\Software\Microsoft\VBA\6.0\Common] Two things to add: - This registry entry does not exist by default. It is created first time you change the setting. - For Access 2016, the path is: ..\VBA\7.1\Common However, and strangely, property VBE.Version reports 7.01, not 7.1 so you have to find the path perhaps like this: VbeVersion = Replace(VBE.Version, "0", "") or, though doubtful, in case of an upcoming version 10: VbeVersion = Split(VBE.Version, ".")(0) & "." & CStr(Val(Split(VBE.Version, ".")(1))) /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Gustav Brock Sendt: 19. september 2016 08:01 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Read the "Options, Tab Width" setting of the the VBE Options from VBA? Thanks Charlotte, but that covers commandbars and so on. I just need reading the Tab Width setting. Perhaps it is hidden somewhere else. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Charlotte Foust Sendt: 18. september 2016 23:10 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Read the "Options, Tab Width" setting of the the VBE Options from VBA? Here's a link to some code manipulating the environment. It's aimed more toward Excel, but should translate. http://www.cpearson.com/excel/vbemenus.aspx Charlotte Foust (916) 206-4336 On Sun, Sep 18, 2016 at 1:01 PM, Gustav Brock wrote: > Hi Charlotte > > It's the setting Tools, Options, Editor, Tab Width I wish to read. > Default value is 4. > > /gustav From bradm at blackforestltd.com Thu Sep 22 08:32:11 2016 From: bradm at blackforestltd.com (Brad Marks) Date: Thu, 22 Sep 2016 13:32:11 +0000 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report Message-ID: All, We have a rather complicated Access report (Shop Work Order). Currently there is a single field near the top of this report that displays information that is entered manually into our manufacturing system. Our users control how this information appears on the report by entering the info with line breaks and tabs. This single field on the report is set up to "Grow" because the amount of data can vary widely, from 0 lines up to maybe 20-30 lines. We are now changing our processing and the information that was previously entered manually will now be coming from one or more "detail" records in the manufacturing database. I am planning to combine the data from these detail records into a single field (in a temporary table) which will be mapped to the field on the report. So far, this works nicely, except for one issue. I am not sure how to embed "line feeds" and tabs in this one single field when this field is being constructed from the detail records. Thanks, Brad Marks From John.Clark at niagaracounty.com Thu Sep 22 09:07:06 2016 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 22 Sep 2016 10:07:06 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> Message-ID: <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> I was asked a basic question today that I was a little embarrassed I did not know. I just never really needed to know because of how I develop things, but this was an end-user that uses Access and ran into a problem. As you all know (I think), the proper way to create a multi-user Access DB is to split it into a back-end DB with all the tables and such in a common spot, and then give each user or workstation a copy of the front-end with forms/queries/reports to run locally. She has created several small databases that she shares and has had no issues...except for one...and she wants to know why. I know it has to do with the lock file, and I have wondered why sometimes this works and other times it does not, but it was never really something I NEEDED to know, because my way doesn't present this issue. And I understand that her DBs are so small...in data and usage...that splitting them is sometimes more trouble than it is worth for her. So, can someone please educate me on the lock files and what I am missing...please?! As it stands I am guessing that has something to do with location of the file...perhaps user rights to that location, or maybe as simple as how/where the lock file is being placed...? Thanks ahead of time! Notice: This electronic transmission is intended for the sole use of the individual or entity to which it is addressed and may contain confidential, privileged or otherwise legally protected information. If you are not the intended recipient, or if you believe you are not the intended recipient, you are hereby notified that any use, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information, is strictly prohibited. Niagara County is not responsible for the content of any external hyperlink referenced in this email or any email. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR ELECTRONIC COPIES. Thank you for your cooperation. From jbodin at sbor.com Thu Sep 22 09:08:53 2016 From: jbodin at sbor.com (John Bodin) Date: Thu, 22 Sep 2016 14:08:53 +0000 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report In-Reply-To: References: Message-ID: Brad, if you put in vbCrLf's and Chr(9)'s when building your Single Field, does the report strip them out? So does "Hello" & vbCrLf & "World" & vbCrLf & "Hello" & chr(9) & "World" produce Hello World Hello World or simply HelloWorldHelowWorld John John Bodin sBOR Office Systems jbodin at sbor.com ________________________________ From: AccessD on behalf of Brad Marks Sent: Thursday, September 22, 2016 9:32 AM To: Access Developers discussion and problem solving Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report All, We have a rather complicated Access report (Shop Work Order). Currently there is a single field near the top of this report that displays information that is entered manually into our manufacturing system. Our users control how this information appears on the report by entering the info with line breaks and tabs. This single field on the report is set up to "Grow" because the amount of data can vary widely, from 0 lines up to maybe 20-30 lines. We are now changing our processing and the information that was previously entered manually will now be coming from one or more "detail" records in the manufacturing database. I am planning to combine the data from these detail records into a single field (in a temporary table) which will be mapped to the field on the report. So far, this works nicely, except for one issue. I am not sure how to embed "line feeds" and tabs in this one single field when this field is being constructed from the detail records. Thanks, Brad Marks -- 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 22 09:20:39 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 23 Sep 2016 00:20:39 +1000 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report In-Reply-To: References: , Message-ID: <57E3E8B7.2007.104C23CA@stuart.lexacorp.com.pg> If vbCrLf doesn't work (it only works in VBA, not in queries), use Chr$(13) & Chr$(10) in its place. On 22 Sep 2016 at 14:08, John Bodin wrote: > Brad, if you put in vbCrLf's and Chr(9)'s when building your Single > Field, does the report strip them out? > > > So does "Hello" & vbCrLf & "World" & vbCrLf & "Hello" & chr(9) & > "World" produce > > > Hello > > World > > Hello World > > > or simply > > > HelloWorldHelowWorld > > > John > > > > > > John Bodin > > sBOR Office Systems > > jbodin at sbor.com > > > > > ________________________________ > From: AccessD on behalf of Brad > Marks Sent: Thursday, September 22, 2016 > 9:32 AM To: Access Developers discussion and problem solving Subject: > [AccessD] How to Embed Line Feeds in a Single Field that Appears on a > Report > > All, > > We have a rather complicated Access report (Shop Work Order). > Currently there is a single field near the top of this report that > displays information that is entered manually into our manufacturing > system. Our users control how this information appears on the report > by entering the info with line breaks and tabs. > > This single field on the report is set up to "Grow" because the amount > of data can vary widely, from 0 lines up to maybe 20-30 lines. > > We are now changing our processing and the information that was > previously entered manually will now be coming from one or more > "detail" records in the manufacturing database. > > I am planning to combine the data from these detail records into a > single field (in a temporary table) which will be mapped to the field > on the report. So far, this works nicely, except for one issue. > > I am not sure how to embed "line feeds" and tabs in this one single > field when this field is being constructed from the detail records. > > Thanks, > > Brad Marks > > -- > 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 Thu Sep 22 09:21:51 2016 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 22 Sep 2016 09:21:51 -0500 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> Message-ID: Users need full access to the file location of the database. The lock file has to be created when the database is opened and later deleted when the database is closed and so users need creation and deletion privileges. If the the lock file can't be created then the database will be opened exclusive and nobody else can open it until it's closed. Often the network people will give only read access or read and update access and not allow creation or deletion. This would also be the case in split database situations as the backend database also has a lock file that must be created when opened and deleted when closed. Normally seeing there is a lock file will tell you that either 1) someone has the database open now. or 2) someone did not exit and close the database properly so the lock file could be deleted. GK On Thu, Sep 22, 2016 at 9:07 AM, John Clark wrote: > I was asked a basic question today that I was a little embarrassed I did not know. I just never really needed to know because of how I develop things, but this was an end-user that uses Access and ran into a problem. > > As you all know (I think), the proper way to create a multi-user Access DB is to split it into a back-end DB with all the tables and such in a common spot, and then give each user or workstation a copy of the front-end with forms/queries/reports to run locally. She has created several small databases that she shares and has had no issues...except for one...and she wants to know why. > > I know it has to do with the lock file, and I have wondered why sometimes this works and other times it does not, but it was never really something I NEEDED to know, because my way doesn't present this issue. And I understand that her DBs are so small...in data and usage...that splitting them is sometimes more trouble than it is worth for her. > > So, can someone please educate me on the lock files and what I am missing...please?! > > As it stands I am guessing that has something to do with location of the file...perhaps user rights to that location, or maybe as simple as how/where the lock file is being placed...? > > Thanks ahead of time! > > Notice: This electronic transmission is intended for the sole use of the individual or entity to which it is addressed and may contain confidential, privileged or otherwise legally protected information. If you are not the intended recipient, or if you believe you are not the intended recipient, you are hereby notified that any use, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information, is strictly prohibited. Niagara County is not responsible for the content of any external hyperlink referenced in this email or any email. > IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR ELECTRONIC COPIES. > Thank you for your cooperation. > -- > 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 stuart at lexacorp.com.pg Thu Sep 22 09:27:10 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 23 Sep 2016 00:27:10 +1000 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com>, , <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> Message-ID: <57E3EA3E.615.10521A49@stuart.lexacorp.com.pg> The lock file is created by Access in the same directory as the database when the first user opens the database, it is modified every time a user opens or closes the database. It is closed when the last user closes the database. All users need create,modify and delete rights to the directory containing the database. On 22 Sep 2016 at 10:07, John Clark wrote: > I was asked a basic question today that I was a little embarrassed I > did not know. I just never really needed to know because of how I > develop things, but this was an end-user that uses Access and ran into > a problem. > > As you all know (I think), the proper way to create a multi-user > Access DB is to split it into a back-end DB with all the tables and > such in a common spot, and then give each user or workstation a copy > of the front-end with forms/queries/reports to run locally. She has > created several small databases that she shares and has had no > issues...except for one...and she wants to know why. > > I know it has to do with the lock file, and I have wondered why > sometimes this works and other times it does not, but it was never > really something I NEEDED to know, because my way doesn't present this > issue. And I understand that her DBs are so small...in data and > usage...that splitting them is sometimes more trouble than it is worth > for her. > > So, can someone please educate me on the lock files and what I am > missing...please?! > > As it stands I am guessing that has something to do with location of > the file...perhaps user rights to that location, or maybe as simple as > how/where the lock file is being placed...? > > Thanks ahead of time! > > Notice: This electronic transmission is intended for the sole use of > the individual or entity to which it is addressed and may contain > confidential, privileged or otherwise legally protected information. > If you are not the intended recipient, or if you believe you are not > the intended recipient, you are hereby notified that any use, > disclosure, copying, distribution, or the taking of any action in > reliance on the contents of this information, is strictly prohibited. > Niagara County is not responsible for the content of any external > hyperlink referenced in this email or any email. IF YOU HAVE RECEIVED > THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY > EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR > ELECTRONIC COPIES. Thank you for your cooperation. -- 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 22 09:27:46 2016 From: delam at zyterra.com (Zyterra) Date: Thu, 22 Sep 2016 09:27:46 -0500 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> Message-ID: I had a database many years ago. It was in a directory that I had read write access to, but other users only had read access. If I opened the database first, there would be a network lock file created and everyone could get in the database without any issues. If one of the read only users got in first, then only they could use the database unless they completely logged out and I opened it. Hope this is close enough to give a clue on this situation. Debbie I cannot be perfect, but I can choose to be better than I was yesterday. Sent from my iPhone > On Sep 22, 2016, at 9:07 AM, John Clark wrote: > > I was asked a basic question today that I was a little embarrassed I did not know. I just never really needed to know because of how I develop things, but this was an end-user that uses Access and ran into a problem. > > As you all know (I think), the proper way to create a multi-user Access DB is to split it into a back-end DB with all the tables and such in a common spot, and then give each user or workstation a copy of the front-end with forms/queries/reports to run locally. She has created several small databases that she shares and has had no issues...except for one...and she wants to know why. > > I know it has to do with the lock file, and I have wondered why sometimes this works and other times it does not, but it was never really something I NEEDED to know, because my way doesn't present this issue. And I understand that her DBs are so small...in data and usage...that splitting them is sometimes more trouble than it is worth for her. > > So, can someone please educate me on the lock files and what I am missing...please?! > > As it stands I am guessing that has something to do with location of the file...perhaps user rights to that location, or maybe as simple as how/where the lock file is being placed...? > > Thanks ahead of time! > > Notice: This electronic transmission is intended for the sole use of the individual or entity to which it is addressed and may contain confidential, privileged or otherwise legally protected information. If you are not the intended recipient, or if you believe you are not the intended recipient, you are hereby notified that any use, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information, is strictly prohibited. Niagara County is not responsible for the content of any external hyperlink referenced in this email or any email. > IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR ELECTRONIC COPIES. > Thank you for your cooperation. > -- > 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 22 09:30:55 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 22 Sep 2016 10:30:55 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> Message-ID: <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> John, You don't mention exactly what the issue is that she is having. In short though, the .LDB file is used to keep track of users, and is used by MSACCESS.EXE to place locks against a DB. For this to work properly, all users need full read, write, and delete privs for the directory where the DB resides. This is for both the FE and the BE in a split app. Also on the directory that holds the workgroup file. If Access (actually JET/ACE), can't create a .LDB file, then the DB is opened exclusive despite any settings. There are other issues outside of that when sharing a DB. Creating a temp query or using a temp table. If your sharing a DB and don't take into account that multiple users are in there at one time (say sharing a single FE), then you can still have problems even though the app is "split". That's why it's always best to split into a FE and BE and have each user have their own copy of the FE. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, September 22, 2016 10:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Basic Question (Probably) that I just don't know I was asked a basic question today that I was a little embarrassed I did not know. I just never really needed to know because of how I develop things, but this was an end-user that uses Access and ran into a problem. As you all know (I think), the proper way to create a multi-user Access DB is to split it into a back-end DB with all the tables and such in a common spot, and then give each user or workstation a copy of the front-end with forms/queries/reports to run locally. She has created several small databases that she shares and has had no issues...except for one...and she wants to know why. I know it has to do with the lock file, and I have wondered why sometimes this works and other times it does not, but it was never really something I NEEDED to know, because my way doesn't present this issue. And I understand that her DBs are so small...in data and usage...that splitting them is sometimes more trouble than it is worth for her. So, can someone please educate me on the lock files and what I am missing...please?! As it stands I am guessing that has something to do with location of the file...perhaps user rights to that location, or maybe as simple as how/where the lock file is being placed...? Thanks ahead of time! Notice: This electronic transmission is intended for the sole use of the individual or entity to which it is addressed and may contain confidential, privileged or otherwise legally protected information. If you are not the intended recipient, or if you believe you are not the intended recipient, you are hereby notified that any use, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information, is strictly prohibited. Niagara County is not responsible for the content of any external hyperlink referenced in this email or any email. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR ELECTRONIC COPIES. Thank you for your cooperation. -- 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 22 09:49:39 2016 From: bradm at blackforestltd.com (Brad Marks) Date: Thu, 22 Sep 2016 14:49:39 +0000 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report In-Reply-To: <57E3E8B7.2007.104C23CA@stuart.lexacorp.com.pg> References: , <57E3E8B7.2007.104C23CA@stuart.lexacorp.com.pg> Message-ID: For testing, I built a small Access application with one table. In this table, I added three fields; Short text Long Text (Plain Text format) Long Text (Rich Text format) I then added this data to each of the three fields in the table Line1 Chr$(13) Chr$(10) Line2 I then built a small report to display these three fields. Here is what I see on the report for each of the three fields - Line1 Chr$(13) Chr$(10) Line2 I was hoping to see this Line1 Line2 Brad -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 22, 2016 9:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report If vbCrLf doesn't work (it only works in VBA, not in queries), use Chr$(13) & Chr$(10) in its place. On 22 Sep 2016 at 14:08, John Bodin wrote: > Brad, if you put in vbCrLf's and Chr(9)'s when building your Single > Field, does the report strip them out? > > > So does "Hello" & vbCrLf & "World" & vbCrLf & "Hello" & chr(9) & > "World" produce > > > Hello > > World > > Hello World > > > or simply > > > HelloWorldHelowWorld > > > John > > > > > > John Bodin > > sBOR Office Systems > > jbodin at sbor.com > > > > > ________________________________ > From: AccessD on behalf of Brad > Marks Sent: Thursday, September 22, 2016 > 9:32 AM To: Access Developers discussion and problem solving Subject: > [AccessD] How to Embed Line Feeds in a Single Field that Appears on a > Report > > All, > > We have a rather complicated Access report (Shop Work Order). > Currently there is a single field near the top of this report that > displays information that is entered manually into our manufacturing > system. Our users control how this information appears on the report > by entering the info with line breaks and tabs. > > This single field on the report is set up to "Grow" because the amount > of data can vary widely, from 0 lines up to maybe 20-30 lines. > > We are now changing our processing and the information that was > previously entered manually will now be coming from one or more > "detail" records in the manufacturing database. > > I am planning to combine the data from these detail records into a > single field (in a temporary table) which will be mapped to the field > on the report. So far, this works nicely, except for one issue. > > I am not sure how to embed "line feeds" and tabs in this one single > field when this field is being constructed from the detail records. > > Thanks, > > Brad Marks > > -- > 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 paul.hartland at googlemail.com Thu Sep 22 10:02:02 2016 From: paul.hartland at googlemail.com (Paul Hartland) Date: Thu, 22 Sep 2016 16:02:02 +0100 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report In-Reply-To: References: <57E3E8B7.2007.104C23CA@stuart.lexacorp.com.pg> Message-ID: Brad, As John was saying have you tried vbCrLf when building the final field, for example in your fields try this; Field1 (Short text) - enter 'Line 1' Field2 (Long Text (Plain Text format)) - enter 'Line 2' Field3 (Long Text (Rich Text format)) - enter 'Line 3' So you end up with three fields, now create a query and select the three fields in separate columns and in the fouth column build them altogether something like below; FinalBuild: Field1 & vbcrlf & Field2 & vbcrlf & Field3 Which should produce something like below; Field1 Field2 Field3 FinalBuild Line 1 Line 2 Line 3 Line 1 Line 2 Line 3 Paul On 22 September 2016 at 15:49, Brad Marks wrote: > For testing, I built a small Access application with one table. > > In this table, I added three fields; > Short text > Long Text (Plain Text format) > Long Text (Rich Text format) > > I then added this data to each of the three fields in the table > > Line1 Chr$(13) Chr$(10) Line2 > > I then built a small report to display these three fields. > > Here is what I see on the report for each of the three fields - > > Line1 Chr$(13) Chr$(10) Line2 > > > I was hoping to see this > > Line1 > Line2 > > > > > > Brad > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Stuart McLachlan > Sent: Thursday, September 22, 2016 9:21 AM > To: Access Developers discussion and problem solving < > accessd at databaseadvisors.com> > Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that > Appears on a Report > > If vbCrLf doesn't work (it only works in VBA, not in queries), use > Chr$(13) & Chr$(10) in its place. > > > > On 22 Sep 2016 at 14:08, John Bodin wrote: > > > Brad, if you put in vbCrLf's and Chr(9)'s when building your Single > > Field, does the report strip them out? > > > > > > So does "Hello" & vbCrLf & "World" & vbCrLf & "Hello" & chr(9) & > > "World" produce > > > > > > Hello > > > > World > > > > Hello World > > > > > > or simply > > > > > > HelloWorldHelowWorld > > > > > > John > > > > > > > > > > > > John Bodin > > > > sBOR Office Systems > > > > jbodin at sbor.com > > > > > > > > > > ________________________________ > > From: AccessD on behalf of Brad > > Marks Sent: Thursday, September 22, 2016 > > 9:32 AM To: Access Developers discussion and problem solving Subject: > > [AccessD] How to Embed Line Feeds in a Single Field that Appears on a > > Report > > > > All, > > > > We have a rather complicated Access report (Shop Work Order). > > Currently there is a single field near the top of this report that > > displays information that is entered manually into our manufacturing > > system. Our users control how this information appears on the report > > by entering the info with line breaks and tabs. > > > > This single field on the report is set up to "Grow" because the amount > > of data can vary widely, from 0 lines up to maybe 20-30 lines. > > > > We are now changing our processing and the information that was > > previously entered manually will now be coming from one or more > > "detail" records in the manufacturing database. > > > > I am planning to combine the data from these detail records into a > > single field (in a temporary table) which will be mapped to the field > > on the report. So far, this works nicely, except for one issue. > > > > I am not sure how to embed "line feeds" and tabs in this one single > > field when this field is being constructed from the detail records. > > > > Thanks, > > > > Brad Marks > > > > -- > > 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 > -- Paul Hartland paul.hartland at googlemail.com From jbodin at sbor.com Thu Sep 22 10:06:22 2016 From: jbodin at sbor.com (John Bodin) Date: Thu, 22 Sep 2016 15:06:22 +0000 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report In-Reply-To: References: , <57E3E8B7.2007.104C23CA@stuart.lexacorp.com.pg>, Message-ID: Run code to replace another field with "Line1" & vbCrLf & "Line2" and then insert that field onto your report. Does that work? And you can substitute chr(13) and Chr(10) for vbCrLf if you can't use that constant. John Bodin sBOR Office Systems jbodin at sbor.com ________________________________ From: AccessD on behalf of Brad Marks Sent: Thursday, September 22, 2016 10:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report For testing, I built a small Access application with one table. In this table, I added three fields; Short text Long Text (Plain Text format) Long Text (Rich Text format) I then added this data to each of the three fields in the table Line1 Chr$(13) Chr$(10) Line2 I then built a small report to display these three fields. Here is what I see on the report for each of the three fields - Line1 Chr$(13) Chr$(10) Line2 I was hoping to see this Line1 Line2 Brad -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 22, 2016 9:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report If vbCrLf doesn't work (it only works in VBA, not in queries), use Chr$(13) & Chr$(10) in its place. On 22 Sep 2016 at 14:08, John Bodin wrote: > Brad, if you put in vbCrLf's and Chr(9)'s when building your Single > Field, does the report strip them out? > > > So does "Hello" & vbCrLf & "World" & vbCrLf & "Hello" & chr(9) & > "World" produce > > > Hello > > World > > Hello World > > > or simply > > > HelloWorldHelowWorld > > > John > > > > > > John Bodin > > sBOR Office Systems > > jbodin at sbor.com > > > > > ________________________________ > From: AccessD on behalf of Brad > Marks Sent: Thursday, September 22, 2016 > 9:32 AM To: Access Developers discussion and problem solving Subject: > [AccessD] How to Embed Line Feeds in a Single Field that Appears on a > Report > > All, > > We have a rather complicated Access report (Shop Work Order). > Currently there is a single field near the top of this report that > displays information that is entered manually into our manufacturing > system. Our users control how this information appears on the report > by entering the info with line breaks and tabs. > > This single field on the report is set up to "Grow" because the amount > of data can vary widely, from 0 lines up to maybe 20-30 lines. > > We are now changing our processing and the information that was > previously entered manually will now be coming from one or more > "detail" records in the manufacturing database. > > I am planning to combine the data from these detail records into a > single field (in a temporary table) which will be mapped to the field > on the report. So far, this works nicely, except for one issue. > > I am not sure how to embed "line feeds" and tabs in this one single > field when this field is being constructed from the detail records. > > Thanks, > > Brad Marks > > -- > 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 jimdettman at verizon.net Thu Sep 22 10:08:47 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 22 Sep 2016 11:08:47 -0400 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report In-Reply-To: References: , <57E3E8B7.2007.104C23CA@stuart.lexacorp.com.pg> Message-ID: When you add the data, you have to do it like this: "Line1" & chr$(13) & chr$(10) & "Line2" & ...And so on. You need to do this in code as you can't type it in that way directly. If your typing into the field directly, you can use Alt/Enter Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, September 22, 2016 10:50 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report For testing, I built a small Access application with one table. In this table, I added three fields; Short text Long Text (Plain Text format) Long Text (Rich Text format) I then added this data to each of the three fields in the table Line1 Chr$(13) Chr$(10) Line2 I then built a small report to display these three fields. Here is what I see on the report for each of the three fields - Line1 Chr$(13) Chr$(10) Line2 I was hoping to see this Line1 Line2 Brad -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 22, 2016 9:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report If vbCrLf doesn't work (it only works in VBA, not in queries), use Chr$(13) & Chr$(10) in its place. On 22 Sep 2016 at 14:08, John Bodin wrote: > Brad, if you put in vbCrLf's and Chr(9)'s when building your Single > Field, does the report strip them out? > > > So does "Hello" & vbCrLf & "World" & vbCrLf & "Hello" & chr(9) & > "World" produce > > > Hello > > World > > Hello World > > > or simply > > > HelloWorldHelowWorld > > > John > > > > > > John Bodin > > sBOR Office Systems > > jbodin at sbor.com > > > > > ________________________________ > From: AccessD on behalf of Brad > Marks Sent: Thursday, September 22, 2016 > 9:32 AM To: Access Developers discussion and problem solving Subject: > [AccessD] How to Embed Line Feeds in a Single Field that Appears on a > Report > > All, > > We have a rather complicated Access report (Shop Work Order). > Currently there is a single field near the top of this report that > displays information that is entered manually into our manufacturing > system. Our users control how this information appears on the report > by entering the info with line breaks and tabs. > > This single field on the report is set up to "Grow" because the amount > of data can vary widely, from 0 lines up to maybe 20-30 lines. > > We are now changing our processing and the information that was > previously entered manually will now be coming from one or more > "detail" records in the manufacturing database. > > I am planning to combine the data from these detail records into a > single field (in a temporary table) which will be mapped to the field > on the report. So far, this works nicely, except for one issue. > > I am not sure how to embed "line feeds" and tabs in this one single > field when this field is being constructed from the detail records. > > Thanks, > > Brad Marks > > -- > 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 jimdettman at verizon.net Thu Sep 22 10:21:47 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 22 Sep 2016 11:21:47 -0400 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report In-Reply-To: References: , <57E3E8B7.2007.104C23CA@stuart.lexacorp.com.pg> Message-ID: <65C462446FA04F3BADFE3573031C839B@XPS> BTW, you can also do: Alt+013 (013 is on the numeric keypad), followed by Alt+010 Alt/Enter is a shortcut to get a carriage return/line feed pair of characters. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, September 22, 2016 11:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report When you add the data, you have to do it like this: "Line1" & chr$(13) & chr$(10) & "Line2" & ...And so on. You need to do this in code as you can't type it in that way directly. If your typing into the field directly, you can use Alt/Enter Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, September 22, 2016 10:50 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report For testing, I built a small Access application with one table. In this table, I added three fields; Short text Long Text (Plain Text format) Long Text (Rich Text format) I then added this data to each of the three fields in the table Line1 Chr$(13) Chr$(10) Line2 I then built a small report to display these three fields. Here is what I see on the report for each of the three fields - Line1 Chr$(13) Chr$(10) Line2 I was hoping to see this Line1 Line2 Brad -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 22, 2016 9:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report If vbCrLf doesn't work (it only works in VBA, not in queries), use Chr$(13) & Chr$(10) in its place. On 22 Sep 2016 at 14:08, John Bodin wrote: > Brad, if you put in vbCrLf's and Chr(9)'s when building your Single > Field, does the report strip them out? > > > So does "Hello" & vbCrLf & "World" & vbCrLf & "Hello" & chr(9) & > "World" produce > > > Hello > > World > > Hello World > > > or simply > > > HelloWorldHelowWorld > > > John > > > > > > John Bodin > > sBOR Office Systems > > jbodin at sbor.com > > > > > ________________________________ > From: AccessD on behalf of Brad > Marks Sent: Thursday, September 22, 2016 > 9:32 AM To: Access Developers discussion and problem solving Subject: > [AccessD] How to Embed Line Feeds in a Single Field that Appears on a > Report > > All, > > We have a rather complicated Access report (Shop Work Order). > Currently there is a single field near the top of this report that > displays information that is entered manually into our manufacturing > system. Our users control how this information appears on the report > by entering the info with line breaks and tabs. > > This single field on the report is set up to "Grow" because the amount > of data can vary widely, from 0 lines up to maybe 20-30 lines. > > We are now changing our processing and the information that was > previously entered manually will now be coming from one or more > "detail" records in the manufacturing database. > > I am planning to combine the data from these detail records into a > single field (in a temporary table) which will be mapped to the field > on the report. So far, this works nicely, except for one issue. > > I am not sure how to embed "line feeds" and tabs in this one single > field when this field is being constructed from the detail records. > > Thanks, > > Brad Marks > > -- > 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 John.Clark at niagaracounty.com Thu Sep 22 10:29:10 2016 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 22 Sep 2016 11:29:10 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> Message-ID: <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> *** In-Line >>> "Jim Dettman" 9/22/2016 10:30 AM >>> John, You don't mention exactly what the issue is that she is having. *** I thought I had...sorry. What is happening is that out of all her DBs (let's say she has five) all can be accessed by multiple users (we're just talking about 2 users normally...3 at most for some) except for one of them. She is inquiring why this one DB works differently. In short though, the .LDB file is used to keep track of users, and is used by MSACCESS.EXE to place locks against a DB. For this to work properly, all users need full read, write, and delete privs for the directory where the DB resides. This is for both the FE and the BE in a split app. Also on the directory that holds the workgroup file. If Access (actually JET/ACE), can't create a .LDB file, then the DB is opened exclusive despite any settings. *** This is something that I did not know...I have learned something! There are other issues outside of that when sharing a DB. Creating a temp query or using a temp table. If your sharing a DB and don't take into account that multiple users are in there at one time (say sharing a single FE), then you can still have problems even though the app is "split". That's why it's always best to split into a FE and BE and have each user have their own copy of the FE. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, September 22, 2016 10:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Basic Question (Probably) that I just don't know I was asked a basic question today that I was a little embarrassed I did not know. I just never really needed to know because of how I develop things, but this was an end-user that uses Access and ran into a problem. As you all know (I think), the proper way to create a multi-user Access DB is to split it into a back-end DB with all the tables and such in a common spot, and then give each user or workstation a copy of the front-end with forms/queries/reports to run locally. She has created several small databases that she shares and has had no issues...except for one...and she wants to know why. I know it has to do with the lock file, and I have wondered why sometimes this works and other times it does not, but it was never really something I NEEDED to know, because my way doesn't present this issue. And I understand that her DBs are so small...in data and usage...that splitting them is sometimes more trouble than it is worth for her. So, can someone please educate me on the lock files and what I am missing...please?! As it stands I am guessing that has something to do with location of the file...perhaps user rights to that location, or maybe as simple as how/where the lock file is being placed...? Thanks ahead of time! Notice: This electronic transmission is intended for the sole use of the individual or entity to which it is addressed and may contain confidential, privileged or otherwise legally protected information. If you are not the intended recipient, or if you believe you are not the intended recipient, you are hereby notified that any use, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information, is strictly prohibited. Niagara County is not responsible for the content of any external hyperlink referenced in this email or any email. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR ELECTRONIC COPIES. Thank you for your cooperation. -- 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 Notice: This electronic transmission is intended for the sole use of the individual or entity to which it is addressed and may contain confidential, privileged or otherwise legally protected information. If you are not the intended recipient, or if you believe you are not the intended recipient, you are hereby notified that any use, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information, is strictly prohibited. Niagara County is not responsible for the content of any external hyperlink referenced in this email or any email. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR ELECTRONIC COPIES. Thank you for your cooperation. From John.Clark at niagaracounty.com Thu Sep 22 10:40:41 2016 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 22 Sep 2016 11:40:41 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> Message-ID: <57E3C3390200006B00011DA8@neblnx09.niagaracounty.com> Two things Debbie... 1st...This may be a clue; I'll check out their rights. Off the top of my head it is probably not going to be the case, but it has sparked my curiosity and might at least lead me down the correct path. 2nd...I LOVE that quote you give. I am a high school football coach and I'm squirelling this quote away. One of my philosophies of coaching...more of a "methodology" I guess...is to simplify things. With the age group I work with (generally anywhere from 15-19) I like to make tasks seem attainable...I know they are, but I need them to buy in and believe in themselves. Your quote fits perfectly into this...Thank you! "I cannot be perfect, but I can choose to be better than I was yesterday. " Notice: This electronic transmission is intended for the sole use of the individual or entity to which it is addressed and may contain confidential, privileged or otherwise legally protected information. If you are not the intended recipient, or if you believe you are not the intended recipient, you are hereby notified that any use, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information, is strictly prohibited. Niagara County is not responsible for the content of any external hyperlink referenced in this email or any email. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR ELECTRONIC COPIES. Thank you for your cooperation. From Chester_Kaup at kindermorgan.com Thu Sep 22 10:43:38 2016 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 22 Sep 2016 15:43:38 +0000 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report In-Reply-To: <65C462446FA04F3BADFE3573031C839B@XPS> References: , <57E3E8B7.2007.104C23CA@stuart.lexacorp.com.pg> <65C462446FA04F3BADFE3573031C839B@XPS> Message-ID: <8E16E03987F1FD4FB0A9BEBF7CC160CB294E0046@HOUEX11.kindermorgan.com> Or maybe you could combine the data in the text box on the report. Something like this Try setting the ControlSource of the TextBox to: = ([Field1] + Chr(13) + Chr(10)) & ([Field2] + Chr(13) + Chr(10)) & ([Field3] + Chr(13) + Chr(10)) -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, September 22, 2016 10:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report BTW, you can also do: Alt+013 (013 is on the numeric keypad), followed by Alt+010 Alt/Enter is a shortcut to get a carriage return/line feed pair of characters. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, September 22, 2016 11:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report When you add the data, you have to do it like this: "Line1" & chr$(13) & chr$(10) & "Line2" & ...And so on. You need to do this in code as you can't type it in that way directly. If your typing into the field directly, you can use Alt/Enter Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, September 22, 2016 10:50 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report For testing, I built a small Access application with one table. In this table, I added three fields; Short text Long Text (Plain Text format) Long Text (Rich Text format) I then added this data to each of the three fields in the table Line1 Chr$(13) Chr$(10) Line2 I then built a small report to display these three fields. Here is what I see on the report for each of the three fields - Line1 Chr$(13) Chr$(10) Line2 I was hoping to see this Line1 Line2 Brad -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 22, 2016 9:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report If vbCrLf doesn't work (it only works in VBA, not in queries), use Chr$(13) & Chr$(10) in its place. On 22 Sep 2016 at 14:08, John Bodin wrote: > Brad, if you put in vbCrLf's and Chr(9)'s when building your Single > Field, does the report strip them out? > > > So does "Hello" & vbCrLf & "World" & vbCrLf & "Hello" & chr(9) & > "World" produce > > > Hello > > World > > Hello World > > > or simply > > > HelloWorldHelowWorld > > > John > > > > > > John Bodin > > sBOR Office Systems > > jbodin at sbor.com > > > > > ________________________________ > From: AccessD on behalf of Brad > Marks Sent: Thursday, September 22, 2016 > 9:32 AM To: Access Developers discussion and problem solving Subject: > [AccessD] How to Embed Line Feeds in a Single Field that Appears on a > Report > > All, > > We have a rather complicated Access report (Shop Work Order). > Currently there is a single field near the top of this report that > displays information that is entered manually into our manufacturing > system. Our users control how this information appears on the report > by entering the info with line breaks and tabs. > > This single field on the report is set up to "Grow" because the amount > of data can vary widely, from 0 lines up to maybe 20-30 lines. > > We are now changing our processing and the information that was > previously entered manually will now be coming from one or more > "detail" records in the manufacturing database. > > I am planning to combine the data from these detail records into a > single field (in a temporary table) which will be mapped to the field > on the report. So far, this works nicely, except for one issue. > > I am not sure how to embed "line feeds" and tabs in this one single > field when this field is being constructed from the detail records. > > Thanks, > > Brad Marks > > -- > 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 jimdettman at verizon.net Thu Sep 22 12:19:29 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 22 Sep 2016 13:19:29 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> Message-ID: <8328E08019E3462BB288758C00CF384F@XPS> John, << You don't mention exactly what the issue is that she is having. *** I thought I had...sorry. What is happening is that out of all her DBs (let's say she has five) all can be accessed by multiple users (we're just talking about 2 users normally...3 at most for some) except for one of them. She is inquiring why this one DB works differently. >> You did say that, but it wasn't clear to me if they had problems while trying to open the DB, or once they were in the DB. If more than one can't open it, then that's Access settings (Shared or exclusive) or privs on the directory. If their having a problem once their in it, then that is something along the lines of a temp query or table problem (two users trying to do the same process). That's what I was getting at. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, September 22, 2016 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Basic Question (Probably) that I just don't know *** In-Line >>> "Jim Dettman" 9/22/2016 10:30 AM >>> John, You don't mention exactly what the issue is that she is having. *** I thought I had...sorry. What is happening is that out of all her DBs (let's say she has five) all can be accessed by multiple users (we're just talking about 2 users normally...3 at most for some) except for one of them. She is inquiring why this one DB works differently. In short though, the .LDB file is used to keep track of users, and is used by MSACCESS.EXE to place locks against a DB. For this to work properly, all users need full read, write, and delete privs for the directory where the DB resides. This is for both the FE and the BE in a split app. Also on the directory that holds the workgroup file. If Access (actually JET/ACE), can't create a .LDB file, then the DB is opened exclusive despite any settings. *** This is something that I did not know...I have learned something! There are other issues outside of that when sharing a DB. Creating a temp query or using a temp table. If your sharing a DB and don't take into account that multiple users are in there at one time (say sharing a single FE), then you can still have problems even though the app is "split". That's why it's always best to split into a FE and BE and have each user have their own copy of the FE. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, September 22, 2016 10:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Basic Question (Probably) that I just don't know I was asked a basic question today that I was a little embarrassed I did not know. I just never really needed to know because of how I develop things, but this was an end-user that uses Access and ran into a problem. As you all know (I think), the proper way to create a multi-user Access DB is to split it into a back-end DB with all the tables and such in a common spot, and then give each user or workstation a copy of the front-end with forms/queries/reports to run locally. She has created several small databases that she shares and has had no issues...except for one...and she wants to know why. I know it has to do with the lock file, and I have wondered why sometimes this works and other times it does not, but it was never really something I NEEDED to know, because my way doesn't present this issue. And I understand that her DBs are so small...in data and usage...that splitting them is sometimes more trouble than it is worth for her. So, can someone please educate me on the lock files and what I am missing...please?! As it stands I am guessing that has something to do with location of the file...perhaps user rights to that location, or maybe as simple as how/where the lock file is being placed...? Thanks ahead of time! Notice: This electronic transmission is intended for the sole use of the individual or entity to which it is addressed and may contain confidential, privileged or otherwise legally protected information. If you are not the intended recipient, or if you believe you are not the intended recipient, you are hereby notified that any use, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information, is strictly prohibited. Niagara County is not responsible for the content of any external hyperlink referenced in this email or any email. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR ELECTRONIC COPIES. Thank you for your cooperation. -- 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 Notice: This electronic transmission is intended for the sole use of the individual or entity to which it is addressed and may contain confidential, privileged or otherwise legally protected information. If you are not the intended recipient, or if you believe you are not the intended recipient, you are hereby notified that any use, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information, is strictly prohibited. Niagara County is not responsible for the content of any external hyperlink referenced in this email or any email. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR ELECTRONIC COPIES. Thank you for your cooperation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Thu Sep 22 12:59:02 2016 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 22 Sep 2016 13:59:02 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <8328E08019E3462BB288758C00CF384F@XPS> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> Message-ID: <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> "If more than one can't open it, then that's Access settings (Shared or exclusive) or privs on the directory." Bingo...this is the issue. And I never really saw it as an "issue" really...just the way it is. If we needed multiple users I suggested splitting the DB, and if a user was a single access user it didn't matter. This is an amateur user and she just wanted to know why one single DB did this for her. And I was really unable to give her a concrete answer, so I'm looking to fill that gap in my knowledge. If I understand correctly, you are saying that there are settings with the DB for this? I wouldn't think she'd have done anything differently, but this would make sense. Notice: This electronic transmission is intended for the sole use of the individual or entity to which it is addressed and may contain confidential, privileged or otherwise legally protected information. If you are not the intended recipient, or if you believe you are not the intended recipient, you are hereby notified that any use, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information, is strictly prohibited. Niagara County is not responsible for the content of any external hyperlink referenced in this email or any email. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR ELECTRONIC COPIES. Thank you for your cooperation. From ssharkins at gmail.com Thu Sep 22 13:32:28 2016 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 22 Sep 2016 14:32:28 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> Message-ID: So, what was the actual problem? :) Susan H. On Thu, Sep 22, 2016 at 10:07 AM, John Clark wrote: > I was asked a basic question today that I was a little embarrassed I did > not know. I just never really needed to know because of how I develop > things, but this was an end-user that uses Access and ran into a problem. > > As you all know (I think), the proper way to create a multi-user Access DB > is to split it into a back-end DB with all the tables and such in a common > spot, and then give each user or workstation a copy of the front-end with > forms/queries/reports to run locally. She has created several small > databases that she shares and has had no issues...except for one...and she > wants to know why. > > I know it has to do with the lock file, and I have wondered why sometimes > this works and other times it does not, but it was never really something I > NEEDED to know, because my way doesn't present this issue. And I understand > that her DBs are so small...in data and usage...that splitting them is > sometimes more trouble than it is worth for her. > > So, can someone please educate me on the lock files and what I am > missing...please?! > > As it stands I am guessing that has something to do with location of the > file...perhaps user rights to that location, or maybe as simple as > how/where the lock file is being placed...? > > Thanks ahead of time! > > Notice: This electronic transmission is intended for the sole use of the > individual or entity to which it is addressed and may contain confidential, > privileged or otherwise legally protected information. If you are not the > intended recipient, or if you believe you are not the intended recipient, > you are hereby notified that any use, disclosure, copying, distribution, or > the taking of any action in reliance on the contents of this information, > is strictly prohibited. Niagara County is not responsible for the content > of any external hyperlink referenced in this email or any email. > IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER > IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER > OR ELECTRONIC COPIES. > Thank you for your cooperation. > -- > 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 22 14:03:37 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 22 Sep 2016 15:03:37 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> Message-ID: <651D2FC040234E1BB035E3A1913B1A55@XPS> <> Access settings (with a DB open, it's under File, Options, Client Settings, Default Open Mode). If one user has their settings defaulted to "exclusive", then even if the privs are right, only that person will have access to the DB if their the first in, and if not the first in, they won't be able to open it. Like wise if they have a shortcut with the /excl switch (rare - but I've seen setups for admins where they have a shortcut on the desktop with this, and then use it out of habit). Everyone should have this setting as "Shared", and have full privs for the FE/BE directories and then you shouldn't have any problems. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, September 22, 2016 01:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Basic Question (Probably) that I just don't know "If more than one can't open it, then that's Access settings (Shared or exclusive) or privs on the directory." Bingo...this is the issue. And I never really saw it as an "issue" really...just the way it is. If we needed multiple users I suggested splitting the DB, and if a user was a single access user it didn't matter. This is an amateur user and she just wanted to know why one single DB did this for her. And I was really unable to give her a concrete answer, so I'm looking to fill that gap in my knowledge. If I understand correctly, you are saying that there are settings with the DB for this? I wouldn't think she'd have done anything differently, but this would make sense. Notice: This electronic transmission is intended for the sole use of the individual or entity to which it is addressed and may contain confidential, privileged or otherwise legally protected information. If you are not the intended recipient, or if you believe you are not the intended recipient, you are hereby notified that any use, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information, is strictly prohibited. Niagara County is not responsible for the content of any external hyperlink referenced in this email or any email. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR ELECTRONIC COPIES. Thank you for your cooperation. -- 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 22 15:02:06 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 23 Sep 2016 06:02:06 +1000 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report In-Reply-To: References: , , Message-ID: <57E438BE.16873.1184BE99@stuart.lexacorp.com.pg> If your fields are called Line1, Line2 etc, this works in the Query Grid: Expr1: [Line1] & chr$(13) & chr$(10) & [Line2] On 22 Sep 2016 at 11:08, Jim Dettman wrote: > > When you add the data, you have to do it like this: > > "Line1" & chr$(13) & chr$(10) & "Line2" & ...And so on. > > You need to do this in code as you can't type it in that way > directly. > > If your typing into the field directly, you can use Alt/Enter > > Jim. > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Brad Marks Sent: Thursday, September 22, 2016 10:50 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] How > to Embed Line Feeds in a Single Field that Appears on a Report > > For testing, I built a small Access application with one table. > > In this table, I added three fields; > Short text > Long Text (Plain Text format) > Long Text (Rich Text format) > > I then added this data to each of the three fields in the table > > Line1 Chr$(13) Chr$(10) Line2 > > I then built a small report to display these three fields. > > Here is what I see on the report for each of the three fields - > > Line1 Chr$(13) Chr$(10) Line2 > > > I was hoping to see this > > Line1 > Line2 > > > > > > Brad > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Stuart McLachlan Sent: Thursday, September 22, 2016 9:21 AM To: > Access Developers discussion and problem solving > Subject: Re: [AccessD] How to Embed > Line Feeds in a Single Field that Appears on a Report > > If vbCrLf doesn't work (it only works in VBA, not in queries), use > Chr$(13) & Chr$(10) in its place. > > > > On 22 Sep 2016 at 14:08, John Bodin wrote: > > > Brad, if you put in vbCrLf's and Chr(9)'s when building your Single > > Field, does the report strip them out? > > > > > > So does "Hello" & vbCrLf & "World" & vbCrLf & "Hello" & chr(9) & > > "World" produce > > > > > > Hello > > > > World > > > > Hello World > > > > > > or simply > > > > > > HelloWorldHelowWorld > > > > > > John > > > > > > > > > > > > John Bodin > > > > sBOR Office Systems > > > > jbodin at sbor.com > > > > > > > > > > ________________________________ > > From: AccessD on behalf of > > Brad Marks Sent: Thursday, September 22, > > 2016 9:32 AM To: Access Developers discussion and problem solving > > Subject: [AccessD] How to Embed Line Feeds in a Single Field that > > Appears on a Report > > > > All, > > > > We have a rather complicated Access report (Shop Work Order). > > Currently there is a single field near the top of this report that > > displays information that is entered manually into our manufacturing > > system. Our users control how this information appears on the > > report by entering the info with line breaks and tabs. > > > > This single field on the report is set up to "Grow" because the > > amount of data can vary widely, from 0 lines up to maybe 20-30 > > lines. > > > > We are now changing our processing and the information that was > > previously entered manually will now be coming from one or more > > "detail" records in the manufacturing database. > > > > I am planning to combine the data from these detail records into a > > single field (in a temporary table) which will be mapped to the > > field on the report. So far, this works nicely, except for one > > issue. > > > > I am not sure how to embed "line feeds" and tabs in this one single > > field when this field is being constructed from the detail records. > > > > Thanks, > > > > Brad Marks > > > > -- > > 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 stuart at lexacorp.com.pg Thu Sep 22 15:02:50 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 23 Sep 2016 06:02:50 +1000 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report In-Reply-To: References: , , Message-ID: <57E438EA.11425.11856CB2@stuart.lexacorp.com.pg> vbcrlf doesn't work in the QBE grid. You have to use Chr$(13) & chr$(10) instead. On 22 Sep 2016 at 16:02, Paul Hartland via AccessD wrote: > Brad, > > As John was saying have you tried vbCrLf when building the final > field, for example in your fields try this; > > Field1 (Short text) - enter 'Line 1' > Field2 (Long Text (Plain Text format)) - enter 'Line 2' > Field3 (Long Text (Rich Text format)) - enter 'Line 3' > > So you end up with three fields, now create a query and select the > three fields in separate columns and in the fouth column build them > altogether something like below; > > FinalBuild: Field1 & vbcrlf & Field2 & vbcrlf & Field3 > > Which should produce something like below; > > Field1 Field2 Field3 FinalBuild > Line 1 Line 2 Line 3 Line 1 > Line 2 > Line 3 > > Paul > > On 22 September 2016 at 15:49, Brad Marks > wrote: > > > For testing, I built a small Access application with one table. > > > > In this table, I added three fields; > > Short text > > Long Text (Plain Text format) > > Long Text (Rich Text format) > > > > I then added this data to each of the three fields in the table > > > > Line1 Chr$(13) Chr$(10) Line2 > > > > I then built a small report to display these three fields. > > > > Here is what I see on the report for each of the three fields - > > > > Line1 Chr$(13) Chr$(10) Line2 > > > > > > I was hoping to see this > > > > Line1 > > Line2 > > > > > > > > > > > > Brad > > > > > > > > -----Original Message----- > > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On > > Behalf Of Stuart McLachlan Sent: Thursday, September 22, 2016 9:21 > > AM To: Access Developers discussion and problem solving < > > accessd at databaseadvisors.com> Subject: Re: [AccessD] How to Embed > > Line Feeds in a Single Field that Appears on a Report > > > > If vbCrLf doesn't work (it only works in VBA, not in queries), use > > Chr$(13) & Chr$(10) in its place. > > > > > > > > On 22 Sep 2016 at 14:08, John Bodin wrote: > > > > > Brad, if you put in vbCrLf's and Chr(9)'s when building your > > > Single Field, does the report strip them out? > > > > > > > > > So does "Hello" & vbCrLf & "World" & vbCrLf & "Hello" & chr(9) & > > > "World" produce > > > > > > > > > Hello > > > > > > World > > > > > > Hello World > > > > > > > > > or simply > > > > > > > > > HelloWorldHelowWorld > > > > > > > > > John > > > > > > > > > > > > > > > > > > John Bodin > > > > > > sBOR Office Systems > > > > > > jbodin at sbor.com > > > > > > > > > > > > > > > ________________________________ > > > From: AccessD on behalf of > > > Brad Marks Sent: Thursday, September > > > 22, 2016 9:32 AM To: Access Developers discussion and problem > > > solving Subject: [AccessD] How to Embed Line Feeds in a Single > > > Field that Appears on a Report > > > > > > All, > > > > > > We have a rather complicated Access report (Shop Work Order). > > > Currently there is a single field near the top of this report that > > > displays information that is entered manually into our > > > manufacturing system. Our users control how this information > > > appears on the report by entering the info with line breaks and > > > tabs. > > > > > > This single field on the report is set up to "Grow" because the > > > amount of data can vary widely, from 0 lines up to maybe 20-30 > > > lines. > > > > > > We are now changing our processing and the information that was > > > previously entered manually will now be coming from one or more > > > "detail" records in the manufacturing database. > > > > > > I am planning to combine the data from these detail records into a > > > single field (in a temporary table) which will be mapped to the > > > field on the report. So far, this works nicely, except for one > > > issue. > > > > > > I am not sure how to embed "line feeds" and tabs in this one > > > single field when this field is being constructed from the detail > > > records. > > > > > > Thanks, > > > > > > Brad Marks > > > > > > -- > > > 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 > > > > > > -- > Paul Hartland > paul.hartland at googlemail.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 22 15:06:58 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 23 Sep 2016 06:06:58 +1000 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report In-Reply-To: References: , <57E3E8B7.2007.104C23CA@stuart.lexacorp.com.pg>, Message-ID: <57E439E2.23200.11893464@stuart.lexacorp.com.pg> You can't type the Chr$() directly into the tetxt, if you do, it's still just text. When entering text manually into a field in a table. press Ctrl+Enter where you want the Line feed. That will actually put a CR and a LF character in the text. On 22 Sep 2016 at 14:49, Brad Marks wrote: > For testing, I built a small Access application with one table. > > In this table, I added three fields; > Short text > Long Text (Plain Text format) > Long Text (Rich Text format) > > I then added this data to each of the three fields in the table > > Line1 Chr$(13) Chr$(10) Line2 > > I then built a small report to display these three fields. > > Here is what I see on the report for each of the three fields - > > Line1 Chr$(13) Chr$(10) Line2 > > > I was hoping to see this > > Line1 > Line2 > > > > > > Brad > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Stuart McLachlan Sent: Thursday, September 22, 2016 9:21 AM To: > Access Developers discussion and problem solving > Subject: Re: [AccessD] How to Embed > Line Feeds in a Single Field that Appears on a Report > > If vbCrLf doesn't work (it only works in VBA, not in queries), use > Chr$(13) & Chr$(10) in its place. > > > > On 22 Sep 2016 at 14:08, John Bodin wrote: > > > Brad, if you put in vbCrLf's and Chr(9)'s when building your Single > > Field, does the report strip them out? > > > > > > So does "Hello" & vbCrLf & "World" & vbCrLf & "Hello" & chr(9) & > > "World" produce > > > > > > Hello > > > > World > > > > Hello World > > > > > > or simply > > > > > > HelloWorldHelowWorld > > > > > > John > > > > > > > > > > > > John Bodin > > > > sBOR Office Systems > > > > jbodin at sbor.com > > > > > > > > > > ________________________________ > > From: AccessD on behalf of > > Brad Marks Sent: Thursday, September 22, > > 2016 9:32 AM To: Access Developers discussion and problem solving > > Subject: [AccessD] How to Embed Line Feeds in a Single Field that > > Appears on a Report > > > > All, > > > > We have a rather complicated Access report (Shop Work Order). > > Currently there is a single field near the top of this report that > > displays information that is entered manually into our manufacturing > > system. Our users control how this information appears on the > > report by entering the info with line breaks and tabs. > > > > This single field on the report is set up to "Grow" because the > > amount of data can vary widely, from 0 lines up to maybe 20-30 > > lines. > > > > We are now changing our processing and the information that was > > previously entered manually will now be coming from one or more > > "detail" records in the manufacturing database. > > > > I am planning to combine the data from these detail records into a > > single field (in a temporary table) which will be mapped to the > > field on the report. So far, this works nicely, except for one > > issue. > > > > I am not sure how to embed "line feeds" and tabs in this one single > > field when this field is being constructed from the detail records. > > > > Thanks, > > > > Brad Marks > > > > -- > > 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 jamesbutton at blueyonder.co.uk Thu Sep 22 15:20:21 2016 From: jamesbutton at blueyonder.co.uk (James Button) Date: Thu, 22 Sep 2016 21:20:21 +0100 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report In-Reply-To: <57E439E2.23200.11893464@stuart.lexacorp.com.pg> References: , <57E3E8B7.2007.104C23CA@stuart.lexacorp.com.pg>, <57E439E2.23200.11893464@stuart.lexacorp.com.pg> Message-ID: And you should be aware that some printers do not function well if there are more linefeeds at the end of the data than will fit onto the printable height of the paper And - of course the font and it's size has a substantial impact too - unless you are using a printer that has a set line/font height and on some printers, or PC OS setups there is also the font substitution to consider JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 22, 2016 9:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report You can't type the Chr$() directly into the tetxt, if you do, it's still just text. When entering text manually into a field in a table. press Ctrl+Enter where you want the Line feed. That will actually put a CR and a LF character in the text. On 22 Sep 2016 at 14:49, Brad Marks wrote: > For testing, I built a small Access application with one table. > > In this table, I added three fields; > Short text > Long Text (Plain Text format) > Long Text (Rich Text format) > > I then added this data to each of the three fields in the table > > Line1 Chr$(13) Chr$(10) Line2 > > I then built a small report to display these three fields. > > Here is what I see on the report for each of the three fields - > > Line1 Chr$(13) Chr$(10) Line2 > > > I was hoping to see this > > Line1 > Line2 > > > > > > Brad > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Stuart McLachlan Sent: Thursday, September 22, 2016 9:21 AM To: > Access Developers discussion and problem solving > Subject: Re: [AccessD] How to Embed > Line Feeds in a Single Field that Appears on a Report > > If vbCrLf doesn't work (it only works in VBA, not in queries), use > Chr$(13) & Chr$(10) in its place. > > > > On 22 Sep 2016 at 14:08, John Bodin wrote: > > > Brad, if you put in vbCrLf's and Chr(9)'s when building your Single > > Field, does the report strip them out? > > > > > > So does "Hello" & vbCrLf & "World" & vbCrLf & "Hello" & chr(9) & > > "World" produce > > > > > > Hello > > > > World > > > > Hello World > > > > > > or simply > > > > > > HelloWorldHelowWorld > > > > > > John > > > > > > > > > > > > John Bodin > > > > sBOR Office Systems > > > > jbodin at sbor.com > > > > > > > > > > ________________________________ > > From: AccessD on behalf of > > Brad Marks Sent: Thursday, September 22, > > 2016 9:32 AM To: Access Developers discussion and problem solving > > Subject: [AccessD] How to Embed Line Feeds in a Single Field that > > Appears on a Report > > > > All, > > > > We have a rather complicated Access report (Shop Work Order). > > Currently there is a single field near the top of this report that > > displays information that is entered manually into our manufacturing > > system. Our users control how this information appears on the > > report by entering the info with line breaks and tabs. > > > > This single field on the report is set up to "Grow" because the > > amount of data can vary widely, from 0 lines up to maybe 20-30 > > lines. > > > > We are now changing our processing and the information that was > > previously entered manually will now be coming from one or more > > "detail" records in the manufacturing database. > > > > I am planning to combine the data from these detail records into a > > single field (in a temporary table) which will be mapped to the > > field on the report. So far, this works nicely, except for one > > issue. > > > > I am not sure how to embed "line feeds" and tabs in this one single > > field when this field is being constructed from the detail records. > > > > Thanks, > > > > Brad Marks > > > > -- > > 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 ewaldt at gdls.com Thu Sep 22 15:22:06 2016 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Thu, 22 Sep 2016 16:22:06 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: Message-ID: I've been automating Access and Excel for years, but never got involved in creating class modules (except the ones behind forms and reports, of course). I'm now in the process of converting one of my Excel projects over to using a class module, and I can see where it's going to be useful (very quick, too). In this case, the class basically a more capable, more flexible array, with some methods built in. I'm having trouble envisioning why they would be needed in Access, though. Obviously they ARE needed, but I don't see it. Other than the built in methods, it seems like tables and arrays would handle everything. Would anyone like to offer an example of how you would use them? Thanks in advance for any help (and patience). Tom Ewald Mass Properties General Dynamics Land Systems ---------------------------------------------------------------------- This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. && From charlotte.foust at gmail.com Thu Sep 22 18:31:54 2016 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Thu, 22 Sep 2016 16:31:54 -0700 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: Message-ID: Classes are swiss army knives in Access. You can use them for all sorts of things, not just to represent something like a table. For example a Customer class might return the customer name information, all the associated addresses from the Address table, Order history for that customer, etc. In a simple Access databases, there isn't much point, but where relational information is structured properly, they can be a quick and direct way of returning requested information from multiple tables or accepting input and writing it to the appropriate table. One of my favorite uses is to declare a clsForm and pass it the form object it should work on. That will allow binding the open form to an instance of clsForm and putting uniform behavior or procedures you want available in all forms in the class. Charlotte Foust (916) 206-4336 On Thu, Sep 22, 2016 at 1:22 PM, wrote: > I've been automating Access and Excel for years, but never got involved in > creating class modules (except the ones behind forms and reports, of > course). I'm now in the process of converting one of my Excel projects > over to using a class module, and I can see where it's going to be useful > (very quick, too). In this case, the class basically a more capable, more > flexible array, with some methods built in. I'm having trouble envisioning > why they would be needed in Access, though. Obviously they ARE needed, but > I don't see it. Other than the built in methods, it seems like tables and > arrays would handle everything. Would anyone like to offer an example of > how you would use them? > > Thanks in advance for any help (and patience). > > Tom Ewald > Mass Properties > General Dynamics Land Systems > > ---------------------------------------------------------------------- > This is an e-mail from General Dynamics Land Systems. It is for the > intended recipient only and may contain confidential and privileged > information. No one else may read, print, store, copy, forward or act in > reliance on it or its attachments. If you are not the intended recipient, > please return this message to the sender and delete the message and any > attachments from your computer. Your cooperation is appreciated. > && > -- > 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 22 16:32:02 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 23 Sep 2016 07:32:02 +1000 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: , Message-ID: <57E44DD2.19012.11D71706@stuart.lexacorp.com.pg> John Colby is the Class expert. Following is the start of a long series of posts he made back in early 2009. If he still has the full series, he may post them. If not, I've still got them archived :) "A QUICK introduction to classes and events. CLASSES: * The Code Behind Forms module in a form is a class module. * A class is a module, but a module is not a class. * A class has properties and behaviors that a module does not. * A class is actually instantiated when a set statement is executed. In other words, an INSTANCE of the class is loaded into memory, and stays in memory until it is specifically unloaded. * Like a module, a class can contain data (variables) and code. However the variables in a module can only contain ONE value at a time. * A class can be loaded into memory as many times as you want (limited only by the size of your memory) and EACH INSTANCE of a class can contain its own value in its variables. * All instances of a class SHARE code, but do not share variables. In other words, the code is only loaded into memory one time, but the variables are loaded once per class instance loaded. * The class (and every object, including forms and controls) unloads from memory when the last variable holding a pointer to the object is set to nothing. *A class has two built-in Events that fire, one as a class instance loads (Class_Initialize), and the other as the class instance unloads (Class_Terminate). Think of a class as a place to store information and code about some thing in the real world. Perhaps you have a clsPerson. That class has a bunch of variables called FirstName, LastName, SSN, ColorHair, ColorEyes, Gender, Birthdate etc. Load an INSTANCE of that class and fill in the data about John Colby, load another instance and fill in the data about Mary Colby etc. You might then have a piece of code that takes the birthdate and calculates the current age from that. The data and the code are all stored together in the class. EVENTS: Events can be thought of kind of like a radio transmission. The radio station transmits a signal, but they have no idea whether anyone is listening. In the case of events, this is called "Raising (or sourcing) and event". If someone is listening to that radio signal, then the person listening can do whatever they want with the signal they are receiving. They can do nothing at all, they can use it as a signal to launch an attack on an enemy, they can enjoy music, they can... The important thing to understand here is that what the listener does is up to the listener. In the case of events, receiving the signal is called "sinking" the event. Notice that the person broadcasting the signal doesn?t know or care whether anyone is listening, nor do they know or care what the listener (if they even exist) does with the signal. When you open a form, the form is constantly raising events. It raises OnOpen, OnClose, OnCurrent, BeforeUpdate, AfterUpdate, MouseMove etc etc. The events are raised whether or not anyone is listening. The form neither knows nor cares whether anyone is listening to (sinking) those events, it is simply raising these events so that if anyone is listening to (sinking) the events, they can do whatever they want when the events fire. When you place a control on the form, the control raises events under certain circumstances. When the control gets the focus it raises an OnFocus event, when it loses the focus it raises a LostFocus event, it raises a BeforeUpdate, AfterUpdate etc. Of course these events depend on what the user does, in other words they don?t happen unless the user manipulates the control in the correct manner, enters data for example. But notice that while the control always raises the event, it neither knows nor cares whether anyone is listening, nor does it know or care what the listener does with the event if anyone is listening (sinking the event). This is a critical thing to understand, that the object raising an event does not know nor care about the listener, nor what the listener does. The reason that this is critical is because it allows you to design an interface between objects which is totally asynchronous or disconnected. Have you ever built a subform and referenced a control on the parent form? Have you ever tried to open that subform by itself? It complains that it cannot find the control on the parent. The subform is has a "connected" interface to the parent, without the parent it cannot do its thing correctly. The event "Raise/Sink" interface eliminates that dependence. The object raising the event does not depend on having a receiver of the event in order to function correctly. The receiver of events does not depend on the broadcaster existing in order to function, although of course it cannot do whatever it would do with the events if they are not being broadcast. But each side can be loaded and code can execute without the other side being loaded, without compile errors etc. The last thing to know is that regular modules cannot sink events, but a class can. A regular module cannot RAISE an event, but a class can. Classes are modules, but modules are not classes." On 22 Sep 2016 at 16:22, ewaldt at gdls.com wrote: > I've been automating Access and Excel for years, but never got > involved in creating class modules (except the ones behind forms and > reports, of course). I'm now in the process of converting one of my > Excel projects over to using a class module, and I can see where it's > going to be useful (very quick, too). In this case, the class > basically a more capable, more flexible array, with some methods built > in. I'm having trouble envisioning why they would be needed in Access, > though. Obviously they ARE needed, but I don't see it. Other than the > built in methods, it seems like tables and arrays would handle > everything. Would anyone like to offer an example of how you would use > them? > > Thanks in advance for any help (and patience). > > Tom Ewald > Mass Properties > General Dynamics Land Systems > > ---------------------------------------------------------------------- > This is an e-mail from General Dynamics Land Systems. It is for the > intended recipient only and may contain confidential and privileged > information. No one else may read, print, store, copy, forward or act > in reliance on it or its attachments. If you are not the intended > recipient, please return this message to the sender and delete the > message and any attachments from your computer. Your cooperation is > appreciated. && -- AccessD mailing list AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd Website: > http://www.databaseadvisors.com > From carbonnb at gmail.com Thu Sep 22 18:52:18 2016 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 22 Sep 2016 19:52:18 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: <57E44DD2.19012.11D71706@stuart.lexacorp.com.pg> References: <57E44DD2.19012.11D71706@stuart.lexacorp.com.pg> Message-ID: All these lectures are in the AccessD Archive., http://databaseadvisors.com/pipermail/accessd/2009-February/thread.html#start They appear to have been posted between Feb 8 & 13, 2009. Here are the subject lines as per JC himself: 1) [AccessD] Classes and Events 2) [AccessD] CREATE CLASSES AND EVENTS DEMO DATABASE 3) [AccessD] LOAD THE FORM CLASS IN THE FORM 4) [AccessD] Get event sinks working 5) [AccessD] Building a Control Scanner 6) [AccessD] Building a control class 7) [AccessD] MODIFY THE FORM CLASS TO LOAD THE NEW COMBO CLASS. 8) [AccessD] Classes and Events - EVENTS NOT REQUIRED 9) [AccessD] BUILDING A TEXT CONTROL CLASS 10) [AccessD] The classes as they are at this instant - clsTimer 11) [AccessD] The classes as they are at this instant - clsCtlCbo 12) [AccessD] The classes as they are at this instant - clsCtlTxt 13) [AccessD] The classes as they are at this instant - clsFrm 14) [AccessD] The form 15) [AccessD] IMPORT THE FORM 16) [AccessD] SINKING EVENTS IN MULTIPLE PLACES 17) [AccessD] EMERGENCY HALT: was Re: The form for demo event sink in two places 18) [AccessD] Demo sinking events in two places 19) [AccessD] ClsMsg 20) [AccessD] CLSMSG DEMO 21) [AccessD] USING CLSMSGDEMO On Thu, Sep 22, 2016 at 5:32 PM, Stuart McLachlan wrote: > John Colby is the Class expert. Following is the start of a long series of posts he made back > in early 2009. If he still has the full series, he may post them. If not, I've still got them > archived :) -- 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 jackandpat.d at gmail.com Thu Sep 22 19:43:06 2016 From: jackandpat.d at gmail.com (jack drawbridge) Date: Thu, 22 Sep 2016 20:43:06 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: <57E44DD2.19012.11D71706@stuart.lexacorp.com.pg> Message-ID: I agree that JC is the expert on Classes and Access - a true evangelist. Haven't seen him here lately. But he has a blog http://jwcolby.blogspot.ca/ Good luck. On Thu, Sep 22, 2016 at 7:52 PM, Bryan Carbonnell wrote: > All these lectures are in the AccessD Archive., > http://databaseadvisors.com/pipermail/accessd/2009-February/ > thread.html#start > > They appear to have been posted between Feb 8 & 13, 2009. > > Here are the subject lines as per JC himself: > > 1) [AccessD] Classes and Events > 2) [AccessD] CREATE CLASSES AND EVENTS DEMO DATABASE > 3) [AccessD] LOAD THE FORM CLASS IN THE FORM > 4) [AccessD] Get event sinks working > 5) [AccessD] Building a Control Scanner > 6) [AccessD] Building a control class > 7) [AccessD] MODIFY THE FORM CLASS TO LOAD THE NEW COMBO CLASS. > 8) [AccessD] Classes and Events - EVENTS NOT REQUIRED > 9) [AccessD] BUILDING A TEXT CONTROL CLASS > 10) [AccessD] The classes as they are at this instant - clsTimer > 11) [AccessD] The classes as they are at this instant - clsCtlCbo > 12) [AccessD] The classes as they are at this instant - clsCtlTxt > 13) [AccessD] The classes as they are at this instant - clsFrm > 14) [AccessD] The form > 15) [AccessD] IMPORT THE FORM > 16) [AccessD] SINKING EVENTS IN MULTIPLE PLACES > 17) [AccessD] EMERGENCY HALT: was Re: The form for demo event sink in two > places > 18) [AccessD] Demo sinking events in two places > 19) [AccessD] ClsMsg > 20) [AccessD] CLSMSG DEMO > 21) [AccessD] USING CLSMSGDEMO > > > On Thu, Sep 22, 2016 at 5:32 PM, Stuart McLachlan > wrote: > > John Colby is the Class expert. Following is the start of a long series > of posts he made back > > in early 2009. If he still has the full series, he may post them. If > not, I've still got them > > archived :) > > > -- > 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!" > -- > 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 22 19:53:07 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 23 Sep 2016 10:53:07 +1000 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: , <57E44DD2.19012.11D71706@stuart.lexacorp.com.pg>, Message-ID: <57E47CF3.6792.128F2E51@stuart.lexacorp.com.pg> Great! Thanks for posting the link. On 22 Sep 2016 at 19:52, Bryan Carbonnell wrote: > All these lectures are in the AccessD Archive., > http://databaseadvisors.com/pipermail/accessd/2009-February/thread.htm > l#start > > They appear to have been posted between Feb 8 & 13, 2009. > > Here are the subject lines as per JC himself: > > 1) [AccessD] Classes and Events > 2) [AccessD] CREATE CLASSES AND EVENTS DEMO DATABASE > 3) [AccessD] LOAD THE FORM CLASS IN THE FORM > 4) [AccessD] Get event sinks working > 5) [AccessD] Building a Control Scanner > 6) [AccessD] Building a control class > 7) [AccessD] MODIFY THE FORM CLASS TO LOAD THE NEW COMBO CLASS. > 8) [AccessD] Classes and Events - EVENTS NOT REQUIRED > 9) [AccessD] BUILDING A TEXT CONTROL CLASS > 10) [AccessD] The classes as they are at this instant - clsTimer > 11) [AccessD] The classes as they are at this instant - clsCtlCbo 12) > [AccessD] The classes as they are at this instant - clsCtlTxt 13) > [AccessD] The classes as they are at this instant - clsFrm 14) > [AccessD] The form 15) [AccessD] IMPORT THE FORM 16) [AccessD] SINKING > EVENTS IN MULTIPLE PLACES 17) [AccessD] EMERGENCY HALT: was Re: The > form for demo event sink in two places 18) [AccessD] Demo sinking > events in two places 19) [AccessD] ClsMsg 20) [AccessD] CLSMSG DEMO > 21) [AccessD] USING CLSMSGDEMO > > > On Thu, Sep 22, 2016 at 5:32 PM, Stuart McLachlan > wrote: > > John Colby is the Class expert. Following is the start of a long > > series of posts he made back in early 2009. If he still has the > > full series, he may post them. If not, I've still got them archived > > :) > > > -- > 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!" -- AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd Website: > http://www.databaseadvisors.com > From jwcolby at gmail.com Thu Sep 22 22:58:40 2016 From: jwcolby at gmail.com (John Colby) Date: Thu, 22 Sep 2016 23:58:40 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: <57E44DD2.19012.11D71706@stuart.lexacorp.com.pg> Message-ID: <0620e7fd-0539-6cd4-f4cc-1b511f2e3e48@gmail.com> I'm still around. :) On 9/22/2016 8:43 PM, jack drawbridge wrote: > I agree that JC is the expert on Classes and Access - a true evangelist. > Haven't seen him here lately. > But he has a blog > http://jwcolby.blogspot.ca/ > > Good luck. > > On Thu, Sep 22, 2016 at 7:52 PM, Bryan Carbonnell > wrote: > >> All these lectures are in the AccessD Archive., >> http://databaseadvisors.com/pipermail/accessd/2009-February/ >> thread.html#start >> >> They appear to have been posted between Feb 8 & 13, 2009. >> >> Here are the subject lines as per JC himself: >> >> 1) [AccessD] Classes and Events >> 2) [AccessD] CREATE CLASSES AND EVENTS DEMO DATABASE >> 3) [AccessD] LOAD THE FORM CLASS IN THE FORM >> 4) [AccessD] Get event sinks working >> 5) [AccessD] Building a Control Scanner >> 6) [AccessD] Building a control class >> 7) [AccessD] MODIFY THE FORM CLASS TO LOAD THE NEW COMBO CLASS. >> 8) [AccessD] Classes and Events - EVENTS NOT REQUIRED >> 9) [AccessD] BUILDING A TEXT CONTROL CLASS >> 10) [AccessD] The classes as they are at this instant - clsTimer >> 11) [AccessD] The classes as they are at this instant - clsCtlCbo >> 12) [AccessD] The classes as they are at this instant - clsCtlTxt >> 13) [AccessD] The classes as they are at this instant - clsFrm >> 14) [AccessD] The form >> 15) [AccessD] IMPORT THE FORM >> 16) [AccessD] SINKING EVENTS IN MULTIPLE PLACES >> 17) [AccessD] EMERGENCY HALT: was Re: The form for demo event sink in two >> places >> 18) [AccessD] Demo sinking events in two places >> 19) [AccessD] ClsMsg >> 20) [AccessD] CLSMSG DEMO >> 21) [AccessD] USING CLSMSGDEMO >> >> >> On Thu, Sep 22, 2016 at 5:32 PM, Stuart McLachlan >> wrote: >>> John Colby is the Class expert. Following is the start of a long series >> of posts he made back >>> in early 2009. If he still has the full series, he may post them. If >> not, I've still got them >>> archived :) >> >> -- >> 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!" >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- John W. Colby From jimdettman at verizon.net Fri Sep 23 08:38:05 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 23 Sep 2016 09:38:05 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: Message-ID: <23050E20F5BA4D6A9759AB37A440E9A9@XPS> <> I find there are very few that bother to use them. More often then not, it's just straight code. The real power in using classes is lost in VBA because it does not have full inheritance. VBA is object based, bit not object orientated like you have in a fully compliant OOP language. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 22, 2016 07:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Example of Class Module usage needed Classes are swiss army knives in Access. You can use them for all sorts of things, not just to represent something like a table. For example a Customer class might return the customer name information, all the associated addresses from the Address table, Order history for that customer, etc. In a simple Access databases, there isn't much point, but where relational information is structured properly, they can be a quick and direct way of returning requested information from multiple tables or accepting input and writing it to the appropriate table. One of my favorite uses is to declare a clsForm and pass it the form object it should work on. That will allow binding the open form to an instance of clsForm and putting uniform behavior or procedures you want available in all forms in the class. Charlotte Foust (916) 206-4336 On Thu, Sep 22, 2016 at 1:22 PM, wrote: > I've been automating Access and Excel for years, but never got involved in > creating class modules (except the ones behind forms and reports, of > course). I'm now in the process of converting one of my Excel projects > over to using a class module, and I can see where it's going to be useful > (very quick, too). In this case, the class basically a more capable, more > flexible array, with some methods built in. I'm having trouble envisioning > why they would be needed in Access, though. Obviously they ARE needed, but > I don't see it. Other than the built in methods, it seems like tables and > arrays would handle everything. Would anyone like to offer an example of > how you would use them? > > Thanks in advance for any help (and patience). > > Tom Ewald > Mass Properties > General Dynamics Land Systems > > ---------------------------------------------------------------------- > This is an e-mail from General Dynamics Land Systems. It is for the > intended recipient only and may contain confidential and privileged > information. No one else may read, print, store, copy, forward or act in > reliance on it or its attachments. If you are not the intended recipient, > please return this message to the sender and delete the message and any > attachments from your computer. Your cooperation is appreciated. > && > -- > 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 23 10:42:30 2016 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 23 Sep 2016 11:42:30 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <651D2FC040234E1BB035E3A1913B1A55@XPS> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> Message-ID: I know it's not proper to answer a question with a question, unless a) you are a detective interrogating a suspect; b) you are a lawyer embroiled in a trial; or c) some other reason. My questions are: 1. Does Access still support replication? The reason I ask this is because many years ago I had enormous success with replication, and here is how I set it up: each user-workstation had a copy of the FE and a replica of the BE; synchronization was scheduled for every 15 minutes. The master replica did a 2-way synchronization every 15 minutes with each local replica. This eliminated trips to the server to read the BE, with the result that the app was way faster than it was when I used the traditional Local-FE+Server-BE model. The down-side was that 15-minute interval. IIRC, Access Replication Manager wouldn't let me make the interval smaller, so at any given moment, the local data might be 15 minutes our of synch, but if that event horizon is acceptable (and also that Replication is still available in Access) then that's a much better setup than the traditional one. 2. Why would a seasoned developer would choose an MDB or ACCDB back end when so many actual database servers for free (SQL Express, MySQL, MariaDB, PostGreSQL, SQLite... the list goes on), all of which totally sidestep the Access locking issues, and all of which extend the power of the BE way, way beyond what's available in the standard Access BE: stored procedures, views, Compiled Table Expressions (CTEs) -- incidentally, these have just become available in the latest release of MySQL Let me also plug a firm with which I have no affiliation, called BullZip, which makes utilities to port Access databases to any of the real server databases mentioned above. These utilities are all free and ought to be in your toolbelt; even if you don't have an immediate need for a port to MySQL or MariaDB, as a learning experience, you might want to install said db software + the appropriate BullZip utility, port your data, copy your FE and redirect the copy to point at the new BE, then do a few benchmarks. I've been then and done that and I have dramatic benchmarks to prove it, such as a performance comparison with ~80 users hitting the BE simultaneously -- and that's without converting all the queries to stored procedures. BullZip's Access to MySQL * BullZip's Access to PostGreSQL BullZip;s Access to MS-SQL * Since MariaDB is 100%+ compatible with MySQL, this utility will work with both DB servers. Each of these products works splendidly. I have tested all of them, and ported numerous databases using them. As mentioned above, a simple port of the data to a real DB server is in itself a huge gain, but in reality is only a glimmer of what's possible once you re-think your application. Before doing a port, I have a couple of recommendations that will affect your result significantly, The most important is to locate all the RecordSources and RowSources in your FE that depend upon SELECT statements, and to convert them all to Access Named Queries. (While easy, this process may be time-consuming, proportionate to the number of SELECT statements.) Why do this? Because then they become available, during the port, for conversion into Views; from there, you can convert the appropriate Views into Stored Procedures. The easiest ways to locate all the statements that demand conversion are Rick Fisher's *Find And Replace,* and *SpeedFerret*, both excellent Access add-ins. When developing database apps, I always plan for success. In practice, that means that I anticipate significant growth in both the sales and the number of users of the app. The only alternative, as I see it, is to plan for subsistence, or for failure, neither of which is acceptable (it might be to the client of interest, but it most certainly is not to me -- I want results on the Bottom Line before I feel satisfied. I've worked for a bunch of non-profits, in which the Bottom Line is a rather elastic measure, but still calculable; for instance, I did an app called Volunteer Manager, whose success is not measured in dollars but the increase in volunteers. One last thought: the port from an Access BE to a genuine server DB facilitates the move to web/mobile apps, and that is a rapidly-increasing, even dominant market segment. So Access developers have to be planning an Exit Strategy, since it is quite clear that MS has little or no interest in providing one. But one step at a time: first, get the data out of Access and into a serious DB server; second, look at the various alternatives for delivering equivalent + enhanced apps for web/mobile deployment. Just my perspective. Arthur ? From bensonforums at gmail.com Fri Sep 23 10:52:03 2016 From: bensonforums at gmail.com (Bill Benson) Date: Fri, 23 Sep 2016 11:52:03 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: <57E44DD2.19012.11D71706@stuart.lexacorp.com.pg> References: <57E44DD2.19012.11D71706@stuart.lexacorp.com.pg> Message-ID: Do you agree that a module is not a class? Isn't it a class (member) of type vbComponent? On Sep 22, 2016 7:40 PM, "Stuart McLachlan" wrote: > John Colby is the Class expert. Following is the start of a long series > of posts he made back > in early 2009. If he still has the full series, he may post them. If > not, I've still got them > archived :) > > "A QUICK introduction to classes and events. > > CLASSES: > > * The Code Behind Forms module in a form is a class module. > * A class is a module, but a module is not a class. > * A class has properties and behaviors that a module does not. > * A class is actually instantiated when a set statement is executed. In > other words, an INSTANCE of the class is loaded into memory, and stays in > memory until it is specifically unloaded. * Like a module, a class can > contain data (variables) and code. However the variables in a module can > only contain ONE value at a time. * A class can be loaded into memory as > many times as you want (limited only by the size of your memory) and EACH > INSTANCE of a class can contain its own value in its variables. * All > instances of a class SHARE code, but do not share variables. In other > words, the code is only loaded into memory one time, but the variables are > loaded once per class instance loaded. * The class (and every object, > including forms and controls) unloads from memory when the last variable > holding a pointer to the object is set to nothing. *A class has two > built-in Events that fire, one as a class instance loads > (Class_Initialize), and the other as the class instance unloads > (Class_Terminate). > > Think of a class as a place to store information and code about some thing > in the real world. Perhaps you have a clsPerson. That class has a bunch > of variables called FirstName, LastName, SSN, ColorHair, ColorEyes, > Gender, Birthdate etc. Load an INSTANCE of that class and fill in the > data about John Colby, load another instance and fill in the data about > Mary Colby etc. You might then have a piece of code that takes the > birthdate and calculates the current age from that. The data and the code > are all stored together in the class. > > EVENTS: > > Events can be thought of kind of like a radio transmission. The radio > station transmits a signal, but they have no idea whether anyone is > listening. In the case of events, this is called "Raising (or sourcing) > and event". > > If someone is listening to that radio signal, then the person listening > can do whatever they want with the signal they are receiving. They can do > nothing at all, they can use it as a signal to launch an attack on an > enemy, they can enjoy music, they can... The important thing to understand > here is that what the listener does is up to the listener. > > In the case of events, receiving the signal is called "sinking" the event. > > Notice that the person broadcasting the signal doesn?t know or care > whether anyone is listening, nor do they know or care what the listener > (if they even exist) does with the signal. > > When you open a form, the form is constantly raising events. It raises > OnOpen, OnClose, OnCurrent, BeforeUpdate, AfterUpdate, MouseMove etc etc. > The events are raised whether or not anyone is listening. The form > neither knows nor cares whether anyone is listening to (sinking) those > events, it is simply raising these events so that if anyone is listening > to (sinking) the events, they can do whatever they want when the events > fire. > > When you place a control on the form, the control raises events under > certain circumstances. When the control gets the focus it raises an > OnFocus event, when it loses the focus it raises a LostFocus event, it > raises a BeforeUpdate, AfterUpdate etc. Of course these events depend on > what the user does, in other words they don?t happen unless the user > manipulates the control in the correct manner, enters data for example. > But notice that while the control always raises the event, it neither > knows nor cares whether anyone is listening, nor does it know or care what > the listener does with the event if anyone is listening (sinking the > event). > > This is a critical thing to understand, that the object raising an event > does not know nor care about the listener, nor what the listener does. > The reason that this is critical is because it allows you to design an > interface between objects which is totally asynchronous or disconnected. > Have you ever built a subform and referenced a control on the parent form? > Have you ever tried to open that subform by itself? It complains that it > cannot find the control on the parent. The subform is has a "connected" > interface to the parent, without the parent it cannot do its thing > correctly. The event "Raise/Sink" interface eliminates that dependence. > The object raising the event does not depend on having a receiver of the > event in order to function correctly. The receiver of events does not > depend on the broadcaster existing in order to function, although of > course it cannot do whatever it would do with the events if they are not > being broadcast. But each side can be loaded and code can execute without > the other side being loaded, without compile errors etc. > > The last thing to know is that regular modules cannot sink events, but a > class can. A regular module cannot RAISE an event, but a class can. > Classes are modules, but modules are not classes." > > > > > > On 22 Sep 2016 at 16:22, ewaldt at gdls.com wrote: > > > I've been automating Access and Excel for years, but never got > > involved in creating class modules (except the ones behind forms and > > reports, of course). I'm now in the process of converting one of my > > Excel projects over to using a class module, and I can see where it's > > going to be useful (very quick, too). In this case, the class > > basically a more capable, more flexible array, with some methods built > > in. I'm having trouble envisioning why they would be needed in Access, > > though. Obviously they ARE needed, but I don't see it. Other than the > > built in methods, it seems like tables and arrays would handle > > everything. Would anyone like to offer an example of how you would use > > them? > > > > Thanks in advance for any help (and patience). > > > > Tom Ewald > > Mass Properties > > General Dynamics Land Systems > > > > ---------------------------------------------------------------------- > > This is an e-mail from General Dynamics Land Systems. It is for the > > intended recipient only and may contain confidential and privileged > > information. No one else may read, print, store, copy, forward or act > > in reliance on it or its attachments. If you are not the intended > > recipient, please return this message to the sender and delete the > > message and any attachments from your computer. Your cooperation is > > appreciated. && -- 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 23 11:50:07 2016 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Fri, 23 Sep 2016 09:50:07 -0700 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> Message-ID: Arthur, Most, if not all of the databases I work on are too small to need a "real server". And the bulk of them are user-built, not developer designed. Like you, I build databases that could be ported to a server fairly easily, but I don't assume they're going to go there. I'm under contract to a state department that has thousands of databases littering the landscape. While some of them are headed towards a shared SQL back end, most aren't. Would I prefer to work with a server back end? Sure, but that decision often rests with the IT department Server people, not with the developer. Charlotte Foust (916) 206-4336 On Fri, Sep 23, 2016 at 8:42 AM, Arthur Fuller wrote: > I know it's not proper to answer a question with a question, unless a) you > are a detective interrogating a suspect; b) you are a lawyer embroiled in a > trial; or c) some other reason. > > My questions are: > > 1. Does Access still support replication? The reason I ask this is because > many years ago I had enormous success with replication, and here is how I > set it up: each user-workstation had a copy of the FE and a replica of the > BE; synchronization was scheduled for every 15 minutes. The master replica > did a 2-way synchronization every 15 minutes with each local replica. This > eliminated trips to the server to read the BE, with the result that the app > was way faster than it was when I used the traditional Local-FE+Server-BE > model. The down-side was that 15-minute interval. IIRC, Access Replication > Manager wouldn't let me make the interval smaller, so at any given moment, > the local data might be 15 minutes our of synch, but if that event horizon > is acceptable (and also that Replication is still available in Access) then > that's a much better setup than the traditional one. > > 2. Why would a seasoned developer would choose an MDB or ACCDB back end > when so many actual database servers for free (SQL Express, MySQL, MariaDB, > PostGreSQL, SQLite... the list goes on), all of which totally sidestep the > Access locking issues, and all of which extend the power of the BE way, way > beyond what's available in the standard Access BE: stored procedures, > views, Compiled Table Expressions (CTEs) -- incidentally, these have just > become available in the latest release of MySQL > Let me also plug a firm with which I have no affiliation, called BullZip, > which makes utilities to port Access databases to any of the real server > databases mentioned above. These utilities are all free and ought to be in > your toolbelt; even if you don't have an immediate need for a port to MySQL > or MariaDB, as a learning experience, you might want to install said db > software + the appropriate BullZip utility, port your data, copy your FE > and redirect the copy to point at the new BE, then do a few benchmarks. > I've been then and done that and I have dramatic benchmarks to prove it, > such as a performance comparison with ~80 users hitting the BE > simultaneously -- and that's without converting all the queries to stored > procedures. > > BullZip's Access to MySQL * > BullZip's Access to PostGreSQL > > BullZip;s Access to MS-SQL > > * Since MariaDB is 100%+ compatible with MySQL, this utility will work with > both DB servers. > > Each of these products works splendidly. I have tested all of them, and > ported numerous databases using them. > > As mentioned above, a simple port of the data to a real DB server is in > itself a huge gain, but in reality is only a glimmer of what's possible > once you re-think your application. > > Before doing a port, I have a couple of recommendations that will affect > your result significantly, The most important is to locate all the > RecordSources and RowSources in your FE that depend upon SELECT statements, > and to convert them all to Access Named Queries. (While easy, this process > may be time-consuming, proportionate to the number of SELECT > statements.) Why do this? Because then they become available, during the > port, for conversion into Views; from there, you can convert the > appropriate Views into Stored Procedures. > > The easiest ways to locate all the statements that demand conversion are > Rick Fisher's *Find And Replace,* and *SpeedFerret*, both excellent Access > add-ins. > > When developing database apps, I always plan for success. In practice, that > means that I anticipate significant growth in both the sales and the number > of users of the app. The only alternative, as I see it, is to plan for > subsistence, or for failure, neither of which is acceptable (it might be to > the client of interest, but it most certainly is not to me -- I want > results on the Bottom Line before I feel satisfied. I've worked for a bunch > of non-profits, in which the Bottom Line is a rather elastic measure, but > still calculable; for instance, I did an app called Volunteer Manager, > whose success is not measured in dollars but the increase in volunteers. > > One last thought: the port from an Access BE to a genuine server DB > facilitates the move to web/mobile apps, and that is a rapidly-increasing, > even dominant market segment. So Access developers have to be planning an > Exit Strategy, since it is quite clear that MS has little or no interest in > providing one. But one step at a time: first, get the data out of Access > and into a serious DB server; second, look at the various alternatives for > delivering equivalent + enhanced apps for web/mobile deployment. > > Just my perspective. > > Arthur > ? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jackandpat.d at gmail.com Fri Sep 23 12:03:16 2016 From: jackandpat.d at gmail.com (jack drawbridge) Date: Fri, 23 Sep 2016 13:03:16 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> Message-ID: Thanks Arthur, always good info. On Fri, Sep 23, 2016 at 11:42 AM, Arthur Fuller wrote: > I know it's not proper to answer a question with a question, unless a) you > are a detective interrogating a suspect; b) you are a lawyer embroiled in a > trial; or c) some other reason. > > My questions are: > > 1. Does Access still support replication? The reason I ask this is because > many years ago I had enormous success with replication, and here is how I > set it up: each user-workstation had a copy of the FE and a replica of the > BE; synchronization was scheduled for every 15 minutes. The master replica > did a 2-way synchronization every 15 minutes with each local replica. This > eliminated trips to the server to read the BE, with the result that the app > was way faster than it was when I used the traditional Local-FE+Server-BE > model. The down-side was that 15-minute interval. IIRC, Access Replication > Manager wouldn't let me make the interval smaller, so at any given moment, > the local data might be 15 minutes our of synch, but if that event horizon > is acceptable (and also that Replication is still available in Access) then > that's a much better setup than the traditional one. > > 2. Why would a seasoned developer would choose an MDB or ACCDB back end > when so many actual database servers for free (SQL Express, MySQL, MariaDB, > PostGreSQL, SQLite... the list goes on), all of which totally sidestep the > Access locking issues, and all of which extend the power of the BE way, way > beyond what's available in the standard Access BE: stored procedures, > views, Compiled Table Expressions (CTEs) -- incidentally, these have just > become available in the latest release of MySQL > Let me also plug a firm with which I have no affiliation, called BullZip, > which makes utilities to port Access databases to any of the real server > databases mentioned above. These utilities are all free and ought to be in > your toolbelt; even if you don't have an immediate need for a port to MySQL > or MariaDB, as a learning experience, you might want to install said db > software + the appropriate BullZip utility, port your data, copy your FE > and redirect the copy to point at the new BE, then do a few benchmarks. > I've been then and done that and I have dramatic benchmarks to prove it, > such as a performance comparison with ~80 users hitting the BE > simultaneously -- and that's without converting all the queries to stored > procedures. > > BullZip's Access to MySQL * > BullZip's Access to PostGreSQL > > BullZip;s Access to MS-SQL > > * Since MariaDB is 100%+ compatible with MySQL, this utility will work with > both DB servers. > > Each of these products works splendidly. I have tested all of them, and > ported numerous databases using them. > > As mentioned above, a simple port of the data to a real DB server is in > itself a huge gain, but in reality is only a glimmer of what's possible > once you re-think your application. > > Before doing a port, I have a couple of recommendations that will affect > your result significantly, The most important is to locate all the > RecordSources and RowSources in your FE that depend upon SELECT statements, > and to convert them all to Access Named Queries. (While easy, this process > may be time-consuming, proportionate to the number of SELECT > statements.) Why do this? Because then they become available, during the > port, for conversion into Views; from there, you can convert the > appropriate Views into Stored Procedures. > > The easiest ways to locate all the statements that demand conversion are > Rick Fisher's *Find And Replace,* and *SpeedFerret*, both excellent Access > add-ins. > > When developing database apps, I always plan for success. In practice, that > means that I anticipate significant growth in both the sales and the number > of users of the app. The only alternative, as I see it, is to plan for > subsistence, or for failure, neither of which is acceptable (it might be to > the client of interest, but it most certainly is not to me -- I want > results on the Bottom Line before I feel satisfied. I've worked for a bunch > of non-profits, in which the Bottom Line is a rather elastic measure, but > still calculable; for instance, I did an app called Volunteer Manager, > whose success is not measured in dollars but the increase in volunteers. > > One last thought: the port from an Access BE to a genuine server DB > facilitates the move to web/mobile apps, and that is a rapidly-increasing, > even dominant market segment. So Access developers have to be planning an > Exit Strategy, since it is quite clear that MS has little or no interest in > providing one. But one step at a time: first, get the data out of Access > and into a serious DB server; second, look at the various alternatives for > delivering equivalent + enhanced apps for web/mobile deployment. > > Just my perspective. > > 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 23 13:39:18 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 23 Sep 2016 14:39:18 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> Message-ID: <4CD740BF672F462FAAD027CE24E23D01@XPS> << 1. Does Access still support replication? >> Starting with A2013, no. A2010 was the last "full feature" version of Access. Replication was dropped along with ADP's. << 2. Why would a seasoned developer would choose an MDB or ACCDB back end when so many actual database servers for free (SQL Express, MySQL, MariaDB, PostGreSQL, SQLite... the list goes on), >> A seasoned developer probably would not. Only thing I could think of is if someone wanted to take advantage of something in ACE which is not in any other DB (say the attachment data type), which is being driven by a customer requirement. The other reasons might be data type incompatibility (i.e. the fun you can have with floating point and bit fields), and last but not least, just ease of use. Even today, there is still a niche (now very small though) where a ACE DB BE might make sense. Someone with no real IT staff, small databases, and small number of users. But more often that not, some other BE is the way to go as you say. << One last thought: the port from an Access BE to a genuine server DB facilitates the move to web/mobile apps, and that is a rapidly-increasing, even dominant market segment. So Access developers have to be planning an Exit Strategy, since it is quite clear that MS has little or no interest in providing one. >> I can't say much on that front other than to say pay attention to what is being asked for on Access user voice: https://access.uservoice.com You'll find that what most are looking for is improvements in the desktop and I think Microsoft is listening to that. While some people are looking for a web product, most seem to want enhancements in the desktop product. Web apps are certainly gaining ground, in many businesses it's still a more traditional approach to applications for back office work. Jim. From bensonforums at gmail.com Fri Sep 23 13:54:38 2016 From: bensonforums at gmail.com (Bill Benson) Date: Fri, 23 Sep 2016 14:54:38 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <651D2FC040234E1BB035E3A1913B1A55@XPS> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> Message-ID: Why would it matter that the front end is opened exclusively? It's the backend that matters, right? Don't you give all users their own front end? (I do). I don't have a front end sitting in a shared folder that everyone accesses (no pun intended, but I like it). On Sep 22, 2016 3:04 PM, "Jim Dettman" wrote: > < the DB for this? I wouldn't think she'd have done anything differently, but > this would make sense.>> > > Access settings (with a DB open, it's under File, Options, Client > Settings, Default Open Mode). If one user has their settings defaulted to > "exclusive", then even if the privs are right, only that person will have > access to the DB if their the first in, and if not the first in, they won't > be able to open it. > > Like wise if they have a shortcut with the /excl switch (rare - but I've > seen setups for admins where they have a shortcut on the desktop with this, > and then use it out of habit). > > Everyone should have this setting as "Shared", and have full privs for the > FE/BE directories and then you shouldn't have any problems. > > Jim. > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John Clark > Sent: Thursday, September 22, 2016 01:59 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Basic Question (Probably) that I just don't know > > > "If more than one can't open it, then that's Access settings (Shared or > exclusive) or privs on the directory." > Bingo...this is the issue. And I never really saw it as an "issue" > really...just the way it is. If we needed multiple users I suggested > splitting the DB, and if a user was a single access user it didn't matter. > > This is an amateur user and she just wanted to know why one single DB did > this for her. And I was really unable to give her a concrete answer, so I'm > looking to fill that gap in my knowledge. > > If I understand correctly, you are saying that there are settings with the > DB for this? I wouldn't think she'd have done anything differently, but > this > would make sense. > > > > > Notice: This electronic transmission is intended for the sole use of the > individual or entity to which it is addressed and may contain confidential, > privileged or otherwise legally protected information. If you are not the > intended recipient, or if you believe you are not the intended recipient, > you are hereby notified that any use, disclosure, copying, distribution, or > the taking of any action in reliance on the contents of this information, > is > strictly prohibited. Niagara County is not responsible for the content of > any external hyperlink referenced in this email or any email. > IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER > IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER > OR > ELECTRONIC COPIES. > Thank you for your cooperation. > -- > 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 Fri Sep 23 14:11:04 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 23 Sep 2016 15:11:04 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> Message-ID: On the FE it doesn't matter, unless it is shared as you said, which some do. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Friday, September 23, 2016 02:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Basic Question (Probably) that I just don't know Why would it matter that the front end is opened exclusively? It's the backend that matters, right? Don't you give all users their own front end? (I do). I don't have a front end sitting in a shared folder that everyone accesses (no pun intended, but I like it). On Sep 22, 2016 3:04 PM, "Jim Dettman" wrote: > < the DB for this? I wouldn't think she'd have done anything differently, but > this would make sense.>> > > Access settings (with a DB open, it's under File, Options, Client > Settings, Default Open Mode). If one user has their settings defaulted to > "exclusive", then even if the privs are right, only that person will have > access to the DB if their the first in, and if not the first in, they won't > be able to open it. > > Like wise if they have a shortcut with the /excl switch (rare - but I've > seen setups for admins where they have a shortcut on the desktop with this, > and then use it out of habit). > > Everyone should have this setting as "Shared", and have full privs for the > FE/BE directories and then you shouldn't have any problems. > > Jim. > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John Clark > Sent: Thursday, September 22, 2016 01:59 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Basic Question (Probably) that I just don't know > > > "If more than one can't open it, then that's Access settings (Shared or > exclusive) or privs on the directory." > Bingo...this is the issue. And I never really saw it as an "issue" > really...just the way it is. If we needed multiple users I suggested > splitting the DB, and if a user was a single access user it didn't matter. > > This is an amateur user and she just wanted to know why one single DB did > this for her. And I was really unable to give her a concrete answer, so I'm > looking to fill that gap in my knowledge. > > If I understand correctly, you are saying that there are settings with the > DB for this? I wouldn't think she'd have done anything differently, but > this > would make sense. > > > > > Notice: This electronic transmission is intended for the sole use of the > individual or entity to which it is addressed and may contain confidential, > privileged or otherwise legally protected information. If you are not the > intended recipient, or if you believe you are not the intended recipient, > you are hereby notified that any use, disclosure, copying, distribution, or > the taking of any action in reliance on the contents of this information, > is > strictly prohibited. Niagara County is not responsible for the content of > any external hyperlink referenced in this email or any email. > IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER > IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER > OR > ELECTRONIC COPIES. > Thank you for your cooperation. > -- > 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 23 14:18:29 2016 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 23 Sep 2016 12:18:29 -0700 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <4CD740BF672F462FAAD027CE24E23D01@XPS> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> <4CD740BF672F462FAAD027CE24E23D01@XPS> Message-ID: Jim, I think you meant to say: A2010 was the last good version of Access. Actually: A2003 was the last good version of Access. ;) I miss ADPs. On Fri, Sep 23, 2016 at 11:39 AM, Jim Dettman wrote: > << > 1. Does Access still support replication? > >> > > Starting with A2013, no. A2010 was the last "full feature" version of > Access. Replication was dropped along with ADP's. > > << > 2. Why would a seasoned developer would choose an MDB or ACCDB back end > when so many actual database servers for free (SQL Express, MySQL, MariaDB, > PostGreSQL, SQLite... the list goes on), > >> > > A seasoned developer probably would not. > > Only thing I could think of is if someone wanted to take advantage of > something in ACE which is not in any other DB (say the attachment data > type), which is being driven by a customer requirement. > > The other reasons might be data type incompatibility (i.e. the fun you can > have with floating point and bit fields), and last but not least, just ease > of use. Even today, there is still a niche (now very small though) where > a > ACE DB BE might make sense. Someone with no real IT staff, small > databases, > and small number of users. > > But more often that not, some other BE is the way to go as you say. > > << > One last thought: the port from an Access BE to a genuine server DB > facilitates the move to web/mobile apps, and that is a rapidly-increasing, > even dominant market segment. So Access developers have to be planning an > Exit Strategy, since it is quite clear that MS has little or no interest in > providing one. > >> > > I can't say much on that front other than to say pay attention to what is > being asked for on Access user voice: > > https://access.uservoice.com > > > You'll find that what most are looking for is improvements in the desktop > and I think Microsoft is listening to that. While some people are looking > for a web product, most seem to want enhancements in the desktop product. > > Web apps are certainly gaining ground, in many businesses it's still a > more > traditional approach to applications for back office work. > > Jim. > > > > -- > 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 23 14:22:36 2016 From: bradm at blackforestltd.com (Brad Marks) Date: Fri, 23 Sep 2016 19:22:36 +0000 Subject: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report In-Reply-To: References: , <57E3E8B7.2007.104C23CA@stuart.lexacorp.com.pg>, <57E439E2.23200.11893464@stuart.lexacorp.com.pg> Message-ID: All, A big "Thanks!" to everyone who help me with this. With your assistance, I now have the changes to this key report almost complete. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of James Button Sent: Thursday, September 22, 2016 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report And you should be aware that some printers do not function well if there are more linefeeds at the end of the data than will fit onto the printable height of the paper And - of course the font and it's size has a substantial impact too - unless you are using a printer that has a set line/font height and on some printers, or PC OS setups there is also the font substitution to consider JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 22, 2016 9:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Embed Line Feeds in a Single Field that Appears on a Report You can't type the Chr$() directly into the tetxt, if you do, it's still just text. When entering text manually into a field in a table. press Ctrl+Enter where you want the Line feed. That will actually put a CR and a LF character in the text. On 22 Sep 2016 at 14:49, Brad Marks wrote: > For testing, I built a small Access application with one table. > > In this table, I added three fields; > Short text > Long Text (Plain Text format) > Long Text (Rich Text format) > > I then added this data to each of the three fields in the table > > Line1 Chr$(13) Chr$(10) Line2 > > I then built a small report to display these three fields. > > Here is what I see on the report for each of the three fields - > > Line1 Chr$(13) Chr$(10) Line2 > > > I was hoping to see this > > Line1 > Line2 > > > > > > Brad > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Stuart McLachlan Sent: Thursday, September 22, 2016 9:21 AM To: > Access Developers discussion and problem solving > Subject: Re: [AccessD] How to Embed > Line Feeds in a Single Field that Appears on a Report > > If vbCrLf doesn't work (it only works in VBA, not in queries), use > Chr$(13) & Chr$(10) in its place. > > > > On 22 Sep 2016 at 14:08, John Bodin wrote: > > > Brad, if you put in vbCrLf's and Chr(9)'s when building your Single > > Field, does the report strip them out? > > > > > > So does "Hello" & vbCrLf & "World" & vbCrLf & "Hello" & chr(9) & > > "World" produce > > > > > > Hello > > > > World > > > > Hello World > > > > > > or simply > > > > > > HelloWorldHelowWorld > > > > > > John > > > > > > > > > > > > John Bodin > > > > sBOR Office Systems > > > > jbodin at sbor.com > > > > > > > > > > ________________________________ > > From: AccessD on behalf of > > Brad Marks Sent: Thursday, September 22, > > 2016 9:32 AM To: Access Developers discussion and problem solving > > Subject: [AccessD] How to Embed Line Feeds in a Single Field that > > Appears on a Report > > > > All, > > > > We have a rather complicated Access report (Shop Work Order). > > Currently there is a single field near the top of this report that > > displays information that is entered manually into our manufacturing > > system. Our users control how this information appears on the > > report by entering the info with line breaks and tabs. > > > > This single field on the report is set up to "Grow" because the > > amount of data can vary widely, from 0 lines up to maybe 20-30 > > lines. > > > > We are now changing our processing and the information that was > > previously entered manually will now be coming from one or more > > "detail" records in the manufacturing database. > > > > I am planning to combine the data from these detail records into a > > single field (in a temporary table) which will be mapped to the > > field on the report. So far, this works nicely, except for one > > issue. > > > > I am not sure how to embed "line feeds" and tabs in this one single > > field when this field is being constructed from the detail records. > > > > Thanks, > > > > Brad Marks > > > > -- > > 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 accessd at shaw.ca Fri Sep 23 15:53:37 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 23 Sep 2016 14:53:37 -0600 (MDT) Subject: [AccessD] History In-Reply-To: Message-ID: <933707366.90168842.1474664017383.JavaMail.root@shaw.ca> I have not worked with MS Access for almost ten years but a client decided to upgrade their old website that runs on Server2003, IIS6, ASP classic and uses Access MBD as the database. You don't have to say it; "What are you doing working with that old crap?" No good deed ever goes unpunished and the owner is so desperate that he is even offering money. I have said to just abandon that site and do a complete re-write but he's not offering that much and now that he has retired his wife would go ballistic if he even suggested a re-write. His site originally cost him somewhere around 20 to 30K. To that end I have run up a virtual drive running Server2003, with IIS6 and now am trying to get the old site running on this test server. The Access MDB database is working fine... When running the follow piece of code: Set UploadProgress = Server.CreateObject("Persits.UploadProgress") ...which results in the error: Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed To the best of my knowledge the website needs a DLL from Persits: http://www.aspupload.com/object_progress.html Does anyone have the appropriate DLL so it can be registered on the test server? regsvr32 c: \ downloads \ WhatEvertheNameoftheUploadDriver.dll MTIA Jim From accessd at shaw.ca Fri Sep 23 16:00:27 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 23 Sep 2016 15:00:27 -0600 (MDT) Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: Message-ID: <444508003.90174100.1474664427100.JavaMail.root@shaw.ca> Just a WAG. You are the only one with read-write-create-file access to the MDB directory. A lock-file is created when a user with create-file capabilities accesses the database. As none of the users, other than yourself, have such create rights to the DB directory, no one, other than yourself, can create the lock file. I would suspect as soon as the other users will be given create rights to the directory everything should work fine. HTH Jim ----- Original Message ----- From: "Zyterra" To: "Access Developers discussion and problem solving" Sent: Thursday, September 22, 2016 7:27:46 AM Subject: Re: [AccessD] Basic Question (Probably) that I just don't know I had a database many years ago. It was in a directory that I had read write access to, but other users only had read access. If I opened the database first, there would be a network lock file created and everyone could get in the database without any issues. If one of the read only users got in first, then only they could use the database unless they completely logged out and I opened it. Hope this is close enough to give a clue on this situation. Debbie I cannot be perfect, but I can choose to be better than I was yesterday. Sent from my iPhone > On Sep 22, 2016, at 9:07 AM, John Clark wrote: > > I was asked a basic question today that I was a little embarrassed I did not know. I just never really needed to know because of how I develop things, but this was an end-user that uses Access and ran into a problem. > > As you all know (I think), the proper way to create a multi-user Access DB is to split it into a back-end DB with all the tables and such in a common spot, and then give each user or workstation a copy of the front-end with forms/queries/reports to run locally. She has created several small databases that she shares and has had no issues...except for one...and she wants to know why. > > I know it has to do with the lock file, and I have wondered why sometimes this works and other times it does not, but it was never really something I NEEDED to know, because my way doesn't present this issue. And I understand that her DBs are so small...in data and usage...that splitting them is sometimes more trouble than it is worth for her. > > So, can someone please educate me on the lock files and what I am missing...please?! > > As it stands I am guessing that has something to do with location of the file...perhaps user rights to that location, or maybe as simple as how/where the lock file is being placed...? > > Thanks ahead of time! > > Notice: This electronic transmission is intended for the sole use of the individual or entity to which it is addressed and may contain confidential, privileged or otherwise legally protected information. If you are not the intended recipient, or if you believe you are not the intended recipient, you are hereby notified that any use, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information, is strictly prohibited. Niagara County is not responsible for the content of any external hyperlink referenced in this email or any email. > IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR ELECTRONIC COPIES. > Thank you for your cooperation. > -- > 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 Fri Sep 23 17:46:41 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 23 Sep 2016 16:46:41 -0600 (MDT) Subject: [AccessD] Overview of the election In-Reply-To: <933707366.90168842.1474664017383.JavaMail.root@shaw.ca> Message-ID: <1230340671.90265207.1474670801222.JavaMail.root@shaw.ca> http://www.bbc.co.uk/news/election-us-2016-37423550 Jim From carbonnb at gmail.com Fri Sep 23 17:59:46 2016 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 23 Sep 2016 18:59:46 -0400 Subject: [AccessD] Overview of the election In-Reply-To: <1230340671.90265207.1474670801222.JavaMail.root@shaw.ca> References: <933707366.90168842.1474664017383.JavaMail.root@shaw.ca> <1230340671.90265207.1474670801222.JavaMail.root@shaw.ca> Message-ID: Do not reply to this on AccessD. Take it over to DBA-OT. B On Fri, Sep 23, 2016 at 6:46 PM, Jim Lawrence wrote: > http://www.bbc.co.uk/news/election-us-2016-37423550 > > Jim > -- > 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 stuart at lexacorp.com.pg Fri Sep 23 18:02:30 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 24 Sep 2016 09:02:30 +1000 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: , <57E44DD2.19012.11D71706@stuart.lexacorp.com.pg>, Message-ID: <57E5B486.598.175045EF@stuart.lexacorp.com.pg> > Do you agree that a module is not a class? Short answer, Yes. Long answer: JC and I had many discussions about modules, objects, classes, events and Access back in the day :) Suffice it to say that he oversimplified things in his statement. Modules are just convenient compilable blocks of code. A Class is closer to a Function that it is to a Module. Classes are definitions of Objects. An object is a pre-defined set of data (variables), neatly packaged with a group of subroutines (code) which manipulate the data and provide any other functionality you need. When your application instructs the compiler to create an object, it uses the definitions found in the class to do so. It allocates memory for the variables, establishes pointers to the subroutines, and makes this new object available to your program. In other programming environments, you can intersperse CLASS...END CLASS blocks with FUNCTION...END FUNCTION blocks of code. Not so in Access. You can have multiple functions in a single module. But because of the way the compiler works, each class must be defined in a single separate module and it must be designated as a class module There is actually a lot of additional code involved in a class definition which the Access compiler puts in such as INHERITS and INTERFACE code. That's why Access classes are so limited. Real OOP allows the developer to define the code for these essential Object components. Bottom line a Class is defined in a Class Module. Other code is defined in a standard Module. -- Stuart On 23 Sep 2016 at 11:52, Bill Benson wrote: > Do you agree that a module is not a class? Isn't it a class (member) > of type vbComponent? On Sep 22, 2016 7:40 PM, "Stuart McLachlan" > wrote: > > > John Colby is the Class expert. Following is the start of a long > > series of posts he made back in early 2009. If he still has the > > full series, he may post them. If not, I've still got them archived > > :) > > > > "A QUICK introduction to classes and events. > > > > CLASSES: > > > > * The Code Behind Forms module in a form is a class module. > > * A class is a module, but a module is not a class. > > * A class has properties and behaviors that a module does not. > > * A class is actually instantiated when a set statement is executed. > > In other words, an INSTANCE of the class is loaded into memory, and > > stays in memory until it is specifically unloaded. * Like a module, > > a class can contain data (variables) and code. However the > > variables in a module can only contain ONE value at a time. * A > > class can be loaded into memory as many times as you want (limited > > only by the size of your memory) and EACH INSTANCE of a class can > > contain its own value in its variables. * All instances of a class > > SHARE code, but do not share variables. In other words, the code is > > only loaded into memory one time, but the variables are loaded once > > per class instance loaded. * The class (and every object, including > > forms and controls) unloads from memory when the last variable > > holding a pointer to the object is set to nothing. *A class has two > > built-in Events that fire, one as a class instance loads > > (Class_Initialize), and the other as the class instance unloads > > (Class_Terminate). > > > > Think of a class as a place to store information and code about some > > thing in the real world. Perhaps you have a clsPerson. That class > > has a bunch of variables called FirstName, LastName, SSN, ColorHair, > > ColorEyes, Gender, Birthdate etc. Load an INSTANCE of that class > > and fill in the data about John Colby, load another instance and > > fill in the data about Mary Colby etc. You might then have a piece > > of code that takes the birthdate and calculates the current age from > > that. The data and the code are all stored together in the class. > > > > EVENTS: > > > > Events can be thought of kind of like a radio transmission. The > > radio station transmits a signal, but they have no idea whether > > anyone is listening. In the case of events, this is called "Raising > > (or sourcing) and event". > > > > If someone is listening to that radio signal, then the person > > listening can do whatever they want with the signal they are > > receiving. They can do nothing at all, they can use it as a signal > > to launch an attack on an enemy, they can enjoy music, they can... > > The important thing to understand here is that what the listener > > does is up to the listener. > > > > In the case of events, receiving the signal is called "sinking" the > > event. > > > > Notice that the person broadcasting the signal doesn?t know or care > > whether anyone is listening, nor do they know or care what the > > listener (if they even exist) does with the signal. > > > > When you open a form, the form is constantly raising events. It > > raises OnOpen, OnClose, OnCurrent, BeforeUpdate, AfterUpdate, > > MouseMove etc etc. The events are raised whether or not anyone is > > listening. The form neither knows nor cares whether anyone is > > listening to (sinking) those events, it is simply raising these > > events so that if anyone is listening to (sinking) the events, they > > can do whatever they want when the events fire. > > > > When you place a control on the form, the control raises events > > under certain circumstances. When the control gets the focus it > > raises an OnFocus event, when it loses the focus it raises a > > LostFocus event, it raises a BeforeUpdate, AfterUpdate etc. Of > > course these events depend on what the user does, in other words > > they don?t happen unless the user manipulates the control in the > > correct manner, enters data for example. But notice that while the > > control always raises the event, it neither knows nor cares whether > > anyone is listening, nor does it know or care what the listener does > > with the event if anyone is listening (sinking the event). > > > > This is a critical thing to understand, that the object raising an > > event does not know nor care about the listener, nor what the > > listener does. The reason that this is critical is because it allows > > you to design an interface between objects which is totally > > asynchronous or disconnected. Have you ever built a subform and > > referenced a control on the parent form? > > Have you ever tried to open that subform by itself? It complains > > that it > > cannot find the control on the parent. The subform is has a > > "connected" interface to the parent, without the parent it cannot do > > its thing correctly. The event "Raise/Sink" interface eliminates > > that dependence. The object raising the event does not depend on > > having a receiver of the event in order to function correctly. The > > receiver of events does not depend on the broadcaster existing in > > order to function, although of course it cannot do whatever it would > > do with the events if they are not being broadcast. But each side > > can be loaded and code can execute without the other side being > > loaded, without compile errors etc. > > > > The last thing to know is that regular modules cannot sink events, > > but a class can. A regular module cannot RAISE an event, but a > > class can. Classes are modules, but modules are not classes." > > > > > > > > > > > > On 22 Sep 2016 at 16:22, ewaldt at gdls.com wrote: > > > > > I've been automating Access and Excel for years, but never got > > > involved in creating class modules (except the ones behind forms > > > and reports, of course). I'm now in the process of converting one > > > of my Excel projects over to using a class module, and I can see > > > where it's going to be useful (very quick, too). In this case, the > > > class basically a more capable, more flexible array, with some > > > methods built in. I'm having trouble envisioning why they would be > > > needed in Access, though. Obviously they ARE needed, but I don't > > > see it. Other than the built in methods, it seems like tables and > > > arrays would handle everything. Would anyone like to offer an > > > example of how you would use them? > > > > > > Thanks in advance for any help (and patience). > > > > > > Tom Ewald > > > Mass Properties > > > General Dynamics Land Systems > > > > > > ------------------------------------------------------------------ > > > ---- This is an e-mail from General Dynamics Land Systems. It is > > > for the intended recipient only and may contain confidential and > > > privileged information. No one else may read, print, store, copy, > > > forward or act in reliance on it or its attachments. If you are > > > not the intended recipient, please return this message to the > > > sender and delete the message and any attachments from your > > > computer. Your cooperation is appreciated. && -- 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 Fri Sep 23 18:05:53 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 24 Sep 2016 09:05:53 +1000 Subject: [AccessD] History In-Reply-To: <933707366.90168842.1474664017383.JavaMail.root@shaw.ca> References: , <933707366.90168842.1474664017383.JavaMail.root@shaw.ca> Message-ID: <57E5B551.17306.17535F49@stuart.lexacorp.com.pg> For the test server, can you use the free 30 day trial version? http://www.aspupload.com/download.html On 23 Sep 2016 at 14:53, Jim Lawrence wrote: > I have not worked with MS Access for almost ten years but a client > decided to upgrade their old website that runs on Server2003, IIS6, > ASP classic and uses Access MBD as the database. You don't have to say > it; "What are you doing working with that old crap?" > > No good deed ever goes unpunished and the owner is so desperate that > he is even offering money. I have said to just abandon that site and > do a complete re-write but he's not offering that much and now that he > has retired his wife would go ballistic if he even suggested a > re-write. His site originally cost him somewhere around 20 to 30K. > > To that end I have run up a virtual drive running Server2003, with > IIS6 and now am trying to get the old site running on this test > server. The Access MDB database is working fine... > > When running the follow piece of code: > Set UploadProgress = Server.CreateObject("Persits.UploadProgress") > > ...which results in the error: > > Server object error 'ASP 0177 : 800401f3' > Server.CreateObject Failed > > To the best of my knowledge the website needs a DLL from Persits: > > http://www.aspupload.com/object_progress.html > > Does anyone have the appropriate DLL so it can be registered on the > test server? regsvr32 c: \ downloads \ > WhatEvertheNameoftheUploadDriver.dll > > MTIA > > Jim > -- > 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 23 18:06:23 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 24 Sep 2016 09:06:23 +1000 Subject: [AccessD] Overview of the election In-Reply-To: <1230340671.90265207.1474670801222.JavaMail.root@shaw.ca> References: <933707366.90168842.1474664017383.JavaMail.root@shaw.ca>, <1230340671.90265207.1474670801222.JavaMail.root@shaw.ca> Message-ID: <57E5B56F.21390.1753D18B@stuart.lexacorp.com.pg> Should have gone to OT? On 23 Sep 2016 at 16:46, Jim Lawrence wrote: > http://www.bbc.co.uk/news/election-us-2016-37423550 > > Jim > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bensonforums at gmail.com Fri Sep 23 20:22:26 2016 From: bensonforums at gmail.com (Bill Benson) Date: Fri, 23 Sep 2016 21:22:26 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: <57E44DD2.19012.11D71706@stuart.lexacorp.com.pg> <57E5B486.598.175045EF@stuart.lexacorp.com.pg> Message-ID: On Sep 23, 2016 9:18 PM, "Bill Benson" wrote: > > Thank you Stuart for the explanation. I am hardly even a layman when it comes to real understanding of OOP. > > On Sep 23, 2016 7:03 PM, "Stuart McLachlan" wrote: >> >> > Do you agree that a module is not a class? >> >> Short answer, Yes. >> >> Long answer: >> >> JC and I had many discussions about modules, objects, classes, events and Access back in >> the day :) >> >> From stuart at lexacorp.com.pg Fri Sep 23 21:15:45 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 24 Sep 2016 12:15:45 +1000 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: , , Message-ID: <57E5E1D1.27687.180131D7@stuart.lexacorp.com.pg> A good, simple primer: http://www.codeproject.com/Tips/679615/OOP-Explained-in-Seconds On 23 Sep 2016 at 21:22, Bill Benson wrote: > On Sep 23, 2016 9:18 PM, "Bill Benson" wrote: > > > Thank you Stuart for the explanation. I am hardly even a layman > when it comes to real understanding of OOP. > > On Sep 23, 2016 7:03 > PM, "Stuart McLachlan" wrote: >> >> > Do you > agree that a module is not a class? >> >> Short answer, Yes. >> >> > Long answer: >> >> JC and I had many discussions about modules, > objects, classes, events and Access back in >> the day :) >> >> -- > 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 24 03:35:01 2016 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 24 Sep 2016 08:35:01 +0000 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS>, Message-ID: Hi Arthur I can't add much to the comments already posted, except for one thing: SQLite is certainly not an alternative for an accdb or any other decent database as SQLite is severely limited regarding data types. In fact, I think why so many use it, is only because they just don't know better. /gustav ________________________________________ Fra: AccessD p? vegne af Arthur Fuller Sendt: 23. september 2016 17:42:30 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Basic Question (Probably) that I just don't know I know it's not proper to answer a question with a question, unless a) you are a detective interrogating a suspect; b) you are a lawyer embroiled in a trial; or c) some other reason. My questions are: 1. Does Access still support replication? The reason I ask this is because many years ago I had enormous success with replication, and here is how I set it up: each user-workstation had a copy of the FE and a replica of the BE; synchronization was scheduled for every 15 minutes. The master replica did a 2-way synchronization every 15 minutes with each local replica. This eliminated trips to the server to read the BE, with the result that the app was way faster than it was when I used the traditional Local-FE+Server-BE model. The down-side was that 15-minute interval. IIRC, Access Replication Manager wouldn't let me make the interval smaller, so at any given moment, the local data might be 15 minutes our of synch, but if that event horizon is acceptable (and also that Replication is still available in Access) then that's a much better setup than the traditional one. 2. Why would a seasoned developer would choose an MDB or ACCDB back end when so many actual database servers for free (SQL Express, MySQL, MariaDB, PostGreSQL, SQLite... the list goes on), all of which totally sidestep the Access locking issues, and all of which extend the power of the BE way, way beyond what's available in the standard Access BE: stored procedures, views, Compiled Table Expressions (CTEs) -- incidentally, these have just become available in the latest release of MySQL Let me also plug a firm with which I have no affiliation, called BullZip, which makes utilities to port Access databases to any of the real server databases mentioned above. These utilities are all free and ought to be in your toolbelt; even if you don't have an immediate need for a port to MySQL or MariaDB, as a learning experience, you might want to install said db software + the appropriate BullZip utility, port your data, copy your FE and redirect the copy to point at the new BE, then do a few benchmarks. I've been then and done that and I have dramatic benchmarks to prove it, such as a performance comparison with ~80 users hitting the BE simultaneously -- and that's without converting all the queries to stored procedures. BullZip's Access to MySQL * BullZip's Access to PostGreSQL BullZip;s Access to MS-SQL * Since MariaDB is 100%+ compatible with MySQL, this utility will work with both DB servers. Each of these products works splendidly. I have tested all of them, and ported numerous databases using them. As mentioned above, a simple port of the data to a real DB server is in itself a huge gain, but in reality is only a glimmer of what's possible once you re-think your application. Before doing a port, I have a couple of recommendations that will affect your result significantly, The most important is to locate all the RecordSources and RowSources in your FE that depend upon SELECT statements, and to convert them all to Access Named Queries. (While easy, this process may be time-consuming, proportionate to the number of SELECT statements.) Why do this? Because then they become available, during the port, for conversion into Views; from there, you can convert the appropriate Views into Stored Procedures. The easiest ways to locate all the statements that demand conversion are Rick Fisher's *Find And Replace,* and *SpeedFerret*, both excellent Access add-ins. When developing database apps, I always plan for success. In practice, that means that I anticipate significant growth in both the sales and the number of users of the app. The only alternative, as I see it, is to plan for subsistence, or for failure, neither of which is acceptable (it might be to the client of interest, but it most certainly is not to me -- I want results on the Bottom Line before I feel satisfied. I've worked for a bunch of non-profits, in which the Bottom Line is a rather elastic measure, but still calculable; for instance, I did an app called Volunteer Manager, whose success is not measured in dollars but the increase in volunteers. One last thought: the port from an Access BE to a genuine server DB facilitates the move to web/mobile apps, and that is a rapidly-increasing, even dominant market segment. So Access developers have to be planning an Exit Strategy, since it is quite clear that MS has little or no interest in providing one. But one step at a time: first, get the data out of Access and into a serious DB server; second, look at the various alternatives for delivering equivalent + enhanced apps for web/mobile deployment. Just my perspective. Arthur From stuart at lexacorp.com.pg Sat Sep 24 06:38:11 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 24 Sep 2016 21:38:11 +1000 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com>, , Message-ID: <57E665A3.22556.1A041DC5@stuart.lexacorp.com.pg> I agree it's not a good alternative for multi user systems, but SQLite is an excellent solution for single user applications. There are reasons why it is so ubiquitous. It's free. :) The same database file is usable on many platforms including Windows, Linux,Android and iOS. It's fast, lightweight and versatile. For Windows, it's just one native 500KB DLL and no dependencies. While it doesn't have a huge range of dataypes, there's not much that you can't do with a 8 bytes integers and floats (twice the size that Access offers) and a default maximum size for text of 1 billion characters (try indexinga field of more than 255 characters in Access), and the same size of BLOBs. There are plenty of built in functions for Date manipulation that make the use of a dedicated Date/Time datatypes unnecessary including UnixTime (which is a real PITA to handle in Access). You're right that many (including me) use it because we "don't know any better". That's because in its niche, there is no better. :) On 24 Sep 2016 at 8:35, Gustav Brock wrote: > Hi Arthur > > I can't add much to the comments already posted, except for one thing: > SQLite is certainly not an alternative for an accdb or any other > decent database as SQLite is severely limited regarding data types. In > fact, I think why so many use it, is only because they just don't know > better. > From stuart at lexacorp.com.pg Sat Sep 24 06:43:13 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 24 Sep 2016 21:43:13 +1000 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E665A3.22556.1A041DC5@stuart.lexacorp.com.pg> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com>, , <57E665A3.22556.1A041DC5@stuart.lexacorp.com.pg> Message-ID: <57E666D1.31030.1A08B8EB@stuart.lexacorp.com.pg> Oh yes, I forgot to mention triggers and in-memory databases :) On 24 Sep 2016 at 21:38, Stuart McLachlan wrote: > I agree it's not a good alternative for multi user systems, but SQLite > is an excellent solution for single user applications. There are > reasons why it is so ubiquitous. > > It's free. :) > > The same database file is usable on many platforms including Windows, > Linux,Android and iOS. > > It's fast, lightweight and versatile. > > For Windows, it's just one native 500KB DLL and no dependencies. > > While it doesn't have a huge range of dataypes, there's not much that > you can't do with a 8 bytes integers and floats (twice the size that > Access offers) and a default maximum size for text of 1 billion > characters (try indexinga field of more than 255 characters in > Access), and the same size of BLOBs. There are plenty of built in > functions for Date manipulation that make the use of a dedicated > Date/Time datatypes unnecessary including UnixTime (which is a real > PITA to handle in Access). > > You're right that many (including me) use it because we "don't know > any better". That's because in its niche, there is no better. > > :) > > > > On 24 Sep 2016 at 8:35, Gustav Brock wrote: > > > Hi Arthur > > > > I can't add much to the comments already posted, except for one > > thing: SQLite is certainly not an alternative for an accdb or any > > other decent database as SQLite is severely limited regarding data > > types. In fact, I think why so many use it, is only because they > > just don't know better. > > > > -- > 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 24 08:54:15 2016 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 24 Sep 2016 13:54:15 +0000 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E665A3.22556.1A041DC5@stuart.lexacorp.com.pg> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com>, , , <57E665A3.22556.1A041DC5@stuart.lexacorp.com.pg> Message-ID: Hi Stuart I see your points. And I can see, browsing the documentation, that SQLite certainly has its niche. What struck me was, that Arthur wrote: > SQL Express, MySQL, MariaDB, PostGreSQL, SQLite... the list goes on and I didn't see SQLite fit in here. It has its own category. Thank you for the clarification. /gustav ________________________________________ Fra: AccessD p? vegne af Stuart McLachlan Sendt: 24. september 2016 13:38:11 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Basic Question (Probably) that I just don't know I agree it's not a good alternative for multi user systems, but SQLite is an excellent solution for single user applications. There are reasons why it is so ubiquitous. It's free. :) The same database file is usable on many platforms including Windows, Linux,Android and iOS. It's fast, lightweight and versatile. For Windows, it's just one native 500KB DLL and no dependencies. While it doesn't have a huge range of dataypes, there's not much that you can't do with a 8 bytes integers and floats (twice the size that Access offers) and a default maximum size for text of 1 billion characters (try indexinga field of more than 255 characters in Access), and the same size of BLOBs. There are plenty of built in functions for Date manipulation that make the use of a dedicated Date/Time datatypes unnecessary including UnixTime (which is a real PITA to handle in Access). You're right that many (including me) use it because we "don't know any better". That's because in its niche, there is no better. :) On 24 Sep 2016 at 8:35, Gustav Brock wrote: > Hi Arthur > > I can't add much to the comments already posted, except for one thing: > SQLite is certainly not an alternative for an accdb or any other > decent database as SQLite is severely limited regarding data types. In > fact, I think why so many use it, is only because they just don't know > better. From jimdettman at verizon.net Sat Sep 24 09:23:46 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Sat, 24 Sep 2016 10:23:46 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> <4CD740BF672F462FAAD027CE24E23D01@XPS> Message-ID: <9E6898197033432196E0C00666AF8AFF@XPS> David, Not sure if you consider A2010 "good" or not, but A2010 was the last version that had support for ADP's, replication, .DBF's, and JET 3.x. Here's the list of everything that was dropped starting with A2013: https://support.office.com/en-us/article/Discontinued-features-and-modified- functionality-in-Access-2013-BC006FC3-5B48-499E-8C7D-9A2DFEF68E2F and FWIW, A2010 is pretty solid on the desktop side as long as you moving forward. Most of the issues with it were related to folks using 2010 and then trying to drop back to 2007. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Friday, September 23, 2016 03:18 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Basic Question (Probably) that I just don't know Jim, I think you meant to say: A2010 was the last good version of Access. Actually: A2003 was the last good version of Access. ;) I miss ADPs. On Fri, Sep 23, 2016 at 11:39 AM, Jim Dettman wrote: > << > 1. Does Access still support replication? > >> > > Starting with A2013, no. A2010 was the last "full feature" version of > Access. Replication was dropped along with ADP's. > > << > 2. Why would a seasoned developer would choose an MDB or ACCDB back end > when so many actual database servers for free (SQL Express, MySQL, MariaDB, > PostGreSQL, SQLite... the list goes on), > >> > > A seasoned developer probably would not. > > Only thing I could think of is if someone wanted to take advantage of > something in ACE which is not in any other DB (say the attachment data > type), which is being driven by a customer requirement. > > The other reasons might be data type incompatibility (i.e. the fun you can > have with floating point and bit fields), and last but not least, just ease > of use. Even today, there is still a niche (now very small though) where > a > ACE DB BE might make sense. Someone with no real IT staff, small > databases, > and small number of users. > > But more often that not, some other BE is the way to go as you say. > > << > One last thought: the port from an Access BE to a genuine server DB > facilitates the move to web/mobile apps, and that is a rapidly-increasing, > even dominant market segment. So Access developers have to be planning an > Exit Strategy, since it is quite clear that MS has little or no interest in > providing one. > >> > > I can't say much on that front other than to say pay attention to what is > being asked for on Access user voice: > > https://access.uservoice.com > > > You'll find that what most are looking for is improvements in the desktop > and I think Microsoft is listening to that. While some people are looking > for a web product, most seem to want enhancements in the desktop product. > > Web apps are certainly gaining ground, in many businesses it's still a > more > traditional approach to applications for back office work. > > Jim. > > > > -- > 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 Sat Sep 24 10:20:55 2016 From: marksimms at verizon.net (Mark Simms) Date: Sat, 24 Sep 2016 11:20:55 -0400 Subject: [AccessD] A2003 was the last good version of Access In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> <4CD740BF672F462FAAD027CE24E23D01@XPS> Message-ID: <01f301d21677$3f6cf430$be46dc90$@net> Really ? For me, it was 2010. Once I discovered the intricacies of split-forms....My entire approach to Access dev changed. No more list boxes....and all of that VBA to support them. And my clients love the split forms....for the filtering and the sorting features. I created an entire framework to support the naming and persistence of split-form filters and sorts. How cool is that ? Of course it was not easy because of all of the quirks created by our "friends" at MSFT. > Jim, I think you meant to say: > A2010 was the last good version of Access. > > Actually: > A2003 was the last good version of Access. ;) From jackandpat.d at gmail.com Sat Sep 24 10:54:21 2016 From: jackandpat.d at gmail.com (jack drawbridge) Date: Sat, 24 Sep 2016 11:54:21 -0400 Subject: [AccessD] A2003 was the last good version of Access In-Reply-To: <01f301d21677$3f6cf430$be46dc90$@net> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> <4CD740BF672F462FAAD027CE24E23D01@XPS> <01f301d21677$3f6cf430$be46dc90$@net> Message-ID: Mark, Any info and examples re your split form framework would be appreciated. jack On Sat, Sep 24, 2016 at 11:20 AM, Mark Simms wrote: > Really ? For me, it was 2010. > Once I discovered the intricacies of split-forms....My entire approach to > Access dev changed. > No more list boxes....and all of that VBA to support them. > And my clients love the split forms....for the filtering and the sorting > features. > I created an entire framework to support the naming and persistence of > split-form filters and sorts. > How cool is that ? > Of course it was not easy because of all of the quirks created by our > "friends" at MSFT. > > > > Jim, I think you meant to say: > > A2010 was the last good version of Access. > > > > Actually: > > A2003 was the last good version of Access. ;) > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bradm at blackforestltd.com Sat Sep 24 11:40:30 2016 From: bradm at blackforestltd.com (Brad Marks) Date: Sat, 24 Sep 2016 16:40:30 +0000 Subject: [AccessD] A2003 was the last good version of Access In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> <4CD740BF672F462FAAD027CE24E23D01@XPS> <01f301d21677$3f6cf430$be46dc90$@net>, Message-ID: Mark, I am interested in the Split Form also. What is the primary purpose? I have an Access application that uses a small form that pops up on the right side of a key company report. Our users can control the info shown on the report by using the Radio Buttons and Text Boxes on the form. Is the use of the Split Form along these lines? Brad ________________________________ From: AccessD on behalf of jack drawbridge Sent: Saturday, September 24, 2016 10:54:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003 was the last good version of Access Mark, Any info and examples re your split form framework would be appreciated. jack On Sat, Sep 24, 2016 at 11:20 AM, Mark Simms wrote: > Really ? For me, it was 2010. > Once I discovered the intricacies of split-forms....My entire approach to > Access dev changed. > No more list boxes....and all of that VBA to support them. > And my clients love the split forms....for the filtering and the sorting > features. > I created an entire framework to support the naming and persistence of > split-form filters and sorts. > How cool is that ? > Of course it was not easy because of all of the quirks created by our > "friends" at MSFT. > > > > Jim, I think you meant to say: > > A2010 was the last good version of Access. > > > > Actually: > > A2003 was the last good version of Access. ;) > > > -- > 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 bensonforums at gmail.com Sat Sep 24 14:09:30 2016 From: bensonforums at gmail.com (Bill Benson) Date: Sat, 24 Sep 2016 15:09:30 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <9E6898197033432196E0C00666AF8AFF@XPS> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> <4CD740BF672F462FAAD027CE24E23D01@XPS> <9E6898197033432196E0C00666AF8AFF@XPS> Message-ID: RE: " using 2010 and then trying to drop back to 2007." Who in their right mind does that??! On Sat, Sep 24, 2016 at 10:23 AM, Jim Dettman wrote: > David, > > Not sure if you consider A2010 "good" or not, but A2010 was the last > version that had support for ADP's, replication, .DBF's, and JET 3.x. > Here's the list of everything that was dropped starting with A2013: > > https://support.office.com/en-us/article/Discontinued- > features-and-modified- > functionality-in-Access-2013-BC006FC3-5B48-499E-8C7D-9A2DFEF68E2F > > and FWIW, A2010 is pretty solid on the desktop side as long as you moving > forward. Most of the issues with it were related to folks using 2010 and > then trying to drop back to 2007. > > Jim. > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > David McAfee > Sent: Friday, September 23, 2016 03:18 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Basic Question (Probably) that I just don't know > > Jim, I think you meant to say: > A2010 was the last good version of Access. > > Actually: > A2003 was the last good version of Access. ;) > > I miss ADPs. > > > On Fri, Sep 23, 2016 at 11:39 AM, Jim Dettman > wrote: > > > << > > 1. Does Access still support replication? > > >> > > > > Starting with A2013, no. A2010 was the last "full feature" version of > > Access. Replication was dropped along with ADP's. > > > > << > > 2. Why would a seasoned developer would choose an MDB or ACCDB back end > > when so many actual database servers for free (SQL Express, MySQL, > MariaDB, > > PostGreSQL, SQLite... the list goes on), > > >> > > > > A seasoned developer probably would not. > > > > Only thing I could think of is if someone wanted to take advantage of > > something in ACE which is not in any other DB (say the attachment data > > type), which is being driven by a customer requirement. > > > > The other reasons might be data type incompatibility (i.e. the fun you > can > > have with floating point and bit fields), and last but not least, just > ease > > of use. Even today, there is still a niche (now very small though) > where > > a > > ACE DB BE might make sense. Someone with no real IT staff, small > > databases, > > and small number of users. > > > > But more often that not, some other BE is the way to go as you say. > > > > << > > One last thought: the port from an Access BE to a genuine server DB > > facilitates the move to web/mobile apps, and that is a > rapidly-increasing, > > even dominant market segment. So Access developers have to be planning an > > Exit Strategy, since it is quite clear that MS has little or no interest > in > > providing one. > > >> > > > > I can't say much on that front other than to say pay attention to what > is > > being asked for on Access user voice: > > > > https://access.uservoice.com > > > > > > You'll find that what most are looking for is improvements in the > desktop > > and I think Microsoft is listening to that. While some people are > looking > > for a web product, most seem to want enhancements in the desktop product. > > > > Web apps are certainly gaining ground, in many businesses it's still a > > more > > traditional approach to applications for back office work. > > > > Jim. > > > > > > > > -- > > 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 Sat Sep 24 15:47:41 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 25 Sep 2016 06:47:41 +1000 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com>, <9E6898197033432196E0C00666AF8AFF@XPS>, Message-ID: <57E6E66D.32085.1BFB318D@stuart.lexacorp.com.pg> Me (don't know about the right mind!) :( Developed in 2010 for one organisation and then when we deployed it I discovered that some people still only had Office 2007 installed :-( We ended up rolling out the 2010 runtime on thos work stations - they didn't want the expense of upgrading all of their office installations - "2007 is working fine!". :-) On 24 Sep 2016 at 15:09, Bill Benson wrote: > RE: " using 2010 and > then trying to drop back to 2007." > > Who in their right mind does that??! > > On Sat, Sep 24, 2016 at 10:23 AM, Jim Dettman > wrote: > > > David, > > > > Not sure if you consider A2010 "good" or not, but A2010 was the > > last > > version that had support for ADP's, replication, .DBF's, and JET > > 3.x. Here's the list of everything that was dropped starting with > > A2013: > > > > https://support.office.com/en-us/article/Discontinued- > > features-and-modified- > > functionality-in-Access-2013-BC006FC3-5B48-499E-8C7D-9A2DFEF68E2F > > > > and FWIW, A2010 is pretty solid on the desktop side as long as you > > moving > > forward. Most of the issues with it were related to folks using > > 2010 and then trying to drop back to 2007. > > > > Jim. > > -----Original Message----- > > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On > > Behalf Of David McAfee Sent: Friday, September 23, 2016 03:18 PM To: > > Access Developers discussion and problem solving Subject: Re: > > [AccessD] Basic Question (Probably) that I just don't know > > > > Jim, I think you meant to say: > > A2010 was the last good version of Access. > > > > Actually: > > A2003 was the last good version of Access. ;) > > > > I miss ADPs. > > > > > > On Fri, Sep 23, 2016 at 11:39 AM, Jim Dettman > > wrote: > > > > > << > > > 1. Does Access still support replication? > > > >> > > > > > > Starting with A2013, no. A2010 was the last "full feature" > > > version of > > > Access. Replication was dropped along with ADP's. > > > > > > << > > > 2. Why would a seasoned developer would choose an MDB or ACCDB > > > back end when so many actual database servers for free (SQL > > > Express, MySQL, > > MariaDB, > > > PostGreSQL, SQLite... the list goes on), > > > >> > > > > > > A seasoned developer probably would not. > > > > > > Only thing I could think of is if someone wanted to take > > > advantage of > > > something in ACE which is not in any other DB (say the attachment > > > data type), which is being driven by a customer requirement. > > > > > > The other reasons might be data type incompatibility (i.e. the > > > fun you > > can > > > have with floating point and bit fields), and last but not least, > > > just > > ease > > > of use. Even today, there is still a niche (now very small > > > though) > > where > > > a > > > ACE DB BE might make sense. Someone with no real IT staff, small > > > databases, and small number of users. > > > > > > But more often that not, some other BE is the way to go as you > > > say. > > > > > > << > > > One last thought: the port from an Access BE to a genuine server > > > DB facilitates the move to web/mobile apps, and that is a > > rapidly-increasing, > > > even dominant market segment. So Access developers have to be > > > planning an Exit Strategy, since it is quite clear that MS has > > > little or no interest > > in > > > providing one. > > > >> > > > > > > I can't say much on that front other than to say pay attention to > > > what > > is > > > being asked for on Access user voice: > > > > > > https://access.uservoice.com > > > > > > > > > You'll find that what most are looking for is improvements in the > > desktop > > > and I think Microsoft is listening to that. While some people are > > looking > > > for a web product, most seem to want enhancements in the desktop > > > product. > > > > > > Web apps are certainly gaining ground, in many businesses it's > > > still a > > > more > > > traditional approach to applications for back office work. > > > > > > Jim. > > > > > > > > > > > > -- > > > 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 gmail.com Sat Sep 24 19:59:44 2016 From: jwcolby at gmail.com (John Colby) Date: Sat, 24 Sep 2016 20:59:44 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: <57E44DD2.19012.11D71706@stuart.lexacorp.com.pg> Message-ID: Holy cannoli man, I wrote that? :) On 9/23/2016 11:52 AM, Bill Benson wrote: > Do you agree that a module is not a class? Isn't it a class (member) of > type vbComponent? > On Sep 22, 2016 7:40 PM, "Stuart McLachlan" wrote: > >> John Colby is the Class expert. Following is the start of a long series >> of posts he made back >> in early 2009. If he still has the full series, he may post them. If >> not, I've still got them >> archived :) >> >> "A QUICK introduction to classes and events. >> >> CLASSES: >> >> * The Code Behind Forms module in a form is a class module. >> * A class is a module, but a module is not a class. >> * A class has properties and behaviors that a module does not. >> * A class is actually instantiated when a set statement is executed. In >> other words, an INSTANCE of the class is loaded into memory, and stays in >> memory until it is specifically unloaded. * Like a module, a class can >> contain data (variables) and code. However the variables in a module can >> only contain ONE value at a time. * A class can be loaded into memory as >> many times as you want (limited only by the size of your memory) and EACH >> INSTANCE of a class can contain its own value in its variables. * All >> instances of a class SHARE code, but do not share variables. In other >> words, the code is only loaded into memory one time, but the variables are >> loaded once per class instance loaded. * The class (and every object, >> including forms and controls) unloads from memory when the last variable >> holding a pointer to the object is set to nothing. *A class has two >> built-in Events that fire, one as a class instance loads >> (Class_Initialize), and the other as the class instance unloads >> (Class_Terminate). >> >> Think of a class as a place to store information and code about some thing >> in the real world. Perhaps you have a clsPerson. That class has a bunch >> of variables called FirstName, LastName, SSN, ColorHair, ColorEyes, >> Gender, Birthdate etc. Load an INSTANCE of that class and fill in the >> data about John Colby, load another instance and fill in the data about >> Mary Colby etc. You might then have a piece of code that takes the >> birthdate and calculates the current age from that. The data and the code >> are all stored together in the class. >> >> EVENTS: >> >> Events can be thought of kind of like a radio transmission. The radio >> station transmits a signal, but they have no idea whether anyone is >> listening. In the case of events, this is called "Raising (or sourcing) >> and event". >> >> If someone is listening to that radio signal, then the person listening >> can do whatever they want with the signal they are receiving. They can do >> nothing at all, they can use it as a signal to launch an attack on an >> enemy, they can enjoy music, they can... The important thing to understand >> here is that what the listener does is up to the listener. >> >> In the case of events, receiving the signal is called "sinking" the event. >> >> Notice that the person broadcasting the signal doesn?t know or care >> whether anyone is listening, nor do they know or care what the listener >> (if they even exist) does with the signal. >> >> When you open a form, the form is constantly raising events. It raises >> OnOpen, OnClose, OnCurrent, BeforeUpdate, AfterUpdate, MouseMove etc etc. >> The events are raised whether or not anyone is listening. The form >> neither knows nor cares whether anyone is listening to (sinking) those >> events, it is simply raising these events so that if anyone is listening >> to (sinking) the events, they can do whatever they want when the events >> fire. >> >> When you place a control on the form, the control raises events under >> certain circumstances. When the control gets the focus it raises an >> OnFocus event, when it loses the focus it raises a LostFocus event, it >> raises a BeforeUpdate, AfterUpdate etc. Of course these events depend on >> what the user does, in other words they don?t happen unless the user >> manipulates the control in the correct manner, enters data for example. >> But notice that while the control always raises the event, it neither >> knows nor cares whether anyone is listening, nor does it know or care what >> the listener does with the event if anyone is listening (sinking the >> event). >> >> This is a critical thing to understand, that the object raising an event >> does not know nor care about the listener, nor what the listener does. >> The reason that this is critical is because it allows you to design an >> interface between objects which is totally asynchronous or disconnected. >> Have you ever built a subform and referenced a control on the parent form? >> Have you ever tried to open that subform by itself? It complains that it >> cannot find the control on the parent. The subform is has a "connected" >> interface to the parent, without the parent it cannot do its thing >> correctly. The event "Raise/Sink" interface eliminates that dependence. >> The object raising the event does not depend on having a receiver of the >> event in order to function correctly. The receiver of events does not >> depend on the broadcaster existing in order to function, although of >> course it cannot do whatever it would do with the events if they are not >> being broadcast. But each side can be loaded and code can execute without >> the other side being loaded, without compile errors etc. >> >> The last thing to know is that regular modules cannot sink events, but a >> class can. A regular module cannot RAISE an event, but a class can. >> Classes are modules, but modules are not classes." >> >> >> >> >> >> On 22 Sep 2016 at 16:22, ewaldt at gdls.com wrote: >> >>> I've been automating Access and Excel for years, but never got >>> involved in creating class modules (except the ones behind forms and >>> reports, of course). I'm now in the process of converting one of my >>> Excel projects over to using a class module, and I can see where it's >>> going to be useful (very quick, too). In this case, the class >>> basically a more capable, more flexible array, with some methods built >>> in. I'm having trouble envisioning why they would be needed in Access, >>> though. Obviously they ARE needed, but I don't see it. Other than the >>> built in methods, it seems like tables and arrays would handle >>> everything. Would anyone like to offer an example of how you would use >>> them? >>> >>> Thanks in advance for any help (and patience). >>> >>> Tom Ewald >>> Mass Properties >>> General Dynamics Land Systems >>> >>> ---------------------------------------------------------------------- >>> This is an e-mail from General Dynamics Land Systems. It is for the >>> intended recipient only and may contain confidential and privileged >>> information. No one else may read, print, store, copy, forward or act >>> in reliance on it or its attachments. If you are not the intended >>> recipient, please return this message to the sender and delete the >>> message and any attachments from your computer. Your cooperation is >>> appreciated. && -- 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 >> -- John W. Colby From jwcolby at gmail.com Sat Sep 24 20:02:57 2016 From: jwcolby at gmail.com (John Colby) Date: Sat, 24 Sep 2016 21:02:57 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: <23050E20F5BA4D6A9759AB37A440E9A9@XPS> References: <23050E20F5BA4D6A9759AB37A440E9A9@XPS> Message-ID: <3030c76f-8acb-f82f-9bbd-b26ac790cb45@gmail.com> I would not code in Access without them. :) On 9/23/2016 9:38 AM, Jim Dettman wrote: > <> > > I find there are very few that bother to use them. > > More often then not, it's just straight code. The real power in using > classes is lost in VBA because it does not have full inheritance. VBA is > object based, bit not object orientated like you have in a fully compliant > OOP language. > > Jim. > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: Thursday, September 22, 2016 07:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Example of Class Module usage needed > > Classes are swiss army knives in Access. You can use them for all sorts of > things, not just to represent something like a table. For example a > Customer class might return the customer name information, all the > associated addresses from the Address table, Order history for that > customer, etc. In a simple Access databases, there isn't much point, but > where relational information is structured properly, they can be a quick > and direct way of returning requested information from multiple tables or > accepting input and writing it to the appropriate table. > > One of my favorite uses is to declare a clsForm and pass it the form object > it should work on. That will allow binding the open form to an instance of > clsForm and putting uniform behavior or procedures you want available in > all forms in the class. > > Charlotte Foust > (916) 206-4336 > > On Thu, Sep 22, 2016 at 1:22 PM, wrote: > >> I've been automating Access and Excel for years, but never got involved in >> creating class modules (except the ones behind forms and reports, of >> course). I'm now in the process of converting one of my Excel projects >> over to using a class module, and I can see where it's going to be useful >> (very quick, too). In this case, the class basically a more capable, more >> flexible array, with some methods built in. I'm having trouble envisioning >> why they would be needed in Access, though. Obviously they ARE needed, but >> I don't see it. Other than the built in methods, it seems like tables and >> arrays would handle everything. Would anyone like to offer an example of >> how you would use them? >> >> Thanks in advance for any help (and patience). >> >> Tom Ewald >> Mass Properties >> General Dynamics Land Systems >> >> ---------------------------------------------------------------------- >> This is an e-mail from General Dynamics Land Systems. It is for the >> intended recipient only and may contain confidential and privileged >> information. No one else may read, print, store, copy, forward or act in >> reliance on it or its attachments. If you are not the intended recipient, >> please return this message to the sender and delete the message and any >> attachments from your computer. Your cooperation is appreciated. >> && >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- John W. Colby From bensonforums at gmail.com Sat Sep 24 20:03:21 2016 From: bensonforums at gmail.com (Bill Benson) Date: Sat, 24 Sep 2016 21:03:21 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E6E66D.32085.1BFB318D@stuart.lexacorp.com.pg> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <9E6898197033432196E0C00666AF8AFF@XPS> <57E6E66D.32085.1BFB318D@stuart.lexacorp.com.pg> Message-ID: Doesn't seem like it was your choice and... doesn't seem like they were in their right mind. You just gave the people what they want and that's a concession we have all had to make as we try to earn a living. On Sep 24, 2016 4:49 PM, "Stuart McLachlan" wrote: > Me (don't know about the right mind!) :( > > Developed in 2010 for one organisation and then when we deployed it I > discovered that > some people still only had Office 2007 installed :-( > > We ended up rolling out the 2010 runtime on thos work stations - they > didn't want the > expense of upgrading all of their office installations - "2007 is working > fine!". > > :-) > > > > On 24 Sep 2016 at 15:09, Bill Benson wrote: > > > RE: " using 2010 and > > then trying to drop back to 2007." > > > > Who in their right mind does that??! > > > > On Sat, Sep 24, 2016 at 10:23 AM, Jim Dettman > > wrote: > > > > > David, > > > > > > Not sure if you consider A2010 "good" or not, but A2010 was the > > > last > > > version that had support for ADP's, replication, .DBF's, and JET > > > 3.x. Here's the list of everything that was dropped starting with > > > A2013: > > > > > > https://support.office.com/en-us/article/Discontinued- > > > features-and-modified- > > > functionality-in-Access-2013-BC006FC3-5B48-499E-8C7D-9A2DFEF68E2F > > > > > > and FWIW, A2010 is pretty solid on the desktop side as long as you > > > moving > > > forward. Most of the issues with it were related to folks using > > > 2010 and then trying to drop back to 2007. > > > > > > Jim. > > > -----Original Message----- > > > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On > > > Behalf Of David McAfee Sent: Friday, September 23, 2016 03:18 PM To: > > > Access Developers discussion and problem solving Subject: Re: > > > [AccessD] Basic Question (Probably) that I just don't know > > > > > > Jim, I think you meant to say: > > > A2010 was the last good version of Access. > > > > > > Actually: > > > A2003 was the last good version of Access. ;) > > > > > > I miss ADPs. > > > > > > > > > On Fri, Sep 23, 2016 at 11:39 AM, Jim Dettman > > > wrote: > > > > > > > << > > > > 1. Does Access still support replication? > > > > >> > > > > > > > > Starting with A2013, no. A2010 was the last "full feature" > > > > version of > > > > Access. Replication was dropped along with ADP's. > > > > > > > > << > > > > 2. Why would a seasoned developer would choose an MDB or ACCDB > > > > back end when so many actual database servers for free (SQL > > > > Express, MySQL, > > > MariaDB, > > > > PostGreSQL, SQLite... the list goes on), > > > > >> > > > > > > > > A seasoned developer probably would not. > > > > > > > > Only thing I could think of is if someone wanted to take > > > > advantage of > > > > something in ACE which is not in any other DB (say the attachment > > > > data type), which is being driven by a customer requirement. > > > > > > > > The other reasons might be data type incompatibility (i.e. the > > > > fun you > > > can > > > > have with floating point and bit fields), and last but not least, > > > > just > > > ease > > > > of use. Even today, there is still a niche (now very small > > > > though) > > > where > > > > a > > > > ACE DB BE might make sense. Someone with no real IT staff, small > > > > databases, and small number of users. > > > > > > > > But more often that not, some other BE is the way to go as you > > > > say. > > > > > > > > << > > > > One last thought: the port from an Access BE to a genuine server > > > > DB facilitates the move to web/mobile apps, and that is a > > > rapidly-increasing, > > > > even dominant market segment. So Access developers have to be > > > > planning an Exit Strategy, since it is quite clear that MS has > > > > little or no interest > > > in > > > > providing one. > > > > >> > > > > > > > > I can't say much on that front other than to say pay attention to > > > > what > > > is > > > > being asked for on Access user voice: > > > > > > > > https://access.uservoice.com > > > > > > > > > > > > You'll find that what most are looking for is improvements in the > > > desktop > > > > and I think Microsoft is listening to that. While some people are > > > looking > > > > for a web product, most seem to want enhancements in the desktop > > > > product. > > > > > > > > Web apps are certainly gaining ground, in many businesses it's > > > > still a > > > > more > > > > traditional approach to applications for back office work. > > > > > > > > Jim. > > > > > > > > > > > > > > > > -- > > > > 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 jwcolby at gmail.com Sat Sep 24 22:41:13 2016 From: jwcolby at gmail.com (John Colby) Date: Sat, 24 Sep 2016 23:41:13 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: <57E44DD2.19012.11D71706@stuart.lexacorp.com.pg> References: <57E44DD2.19012.11D71706@stuart.lexacorp.com.pg> Message-ID: Tom, I just found this in my personal archives. It is one of a series of articles I wrote long ago for this list. Classes and Events - EVENTS NOT REQUIRED To this point the classes we have looked at were specifically designed to allow you to ?wrap? an object that generates events and add code and variables to process those events. This lecture will demonstrate that classes have other uses and do not have to wrap other objects. The class introduced today will be clsTimer, a means of timing events (things happening) in your code. The class is perhaps the simplest class I have ever written, and perhaps the simplest class you will ever see. ? Click Insert / Class ? Save immediately as clsTimer ? Insert the following code into the class: Private Declare Function apiGetTime Lib "winmm.dll" _ Alias "timeGetTime" () As Long Private lngStartTime As Long Private Sub Class_Initialize() StartTimer End Sub Function EndTimer() EndTimer = apiGetTime() - lngStartTime End Function Sub StartTimer() lngStartTime = apiGetTime() End Sub ? Compile and save the class. Notice that in the header of the class we have a function definition apiGetTime that calls out to Windows. This function gets the windows tick timer and has a resolution of 1 millisecond, or one thousandth of a second. This simply means that we can?t time anything that takes less than one thousandth of a second without resorting to timing it several times. It returns a long integer that is simply an absolute number of ?ticks?. Since when? It doesn?t matter, it is just ?this is the tick count RIGHT NOW?. To compute a ?time? (and we aren?t really doing that, we are calculating a time since the first time), you get the tick count and store it, then later you get another tick and compare it to the first tick. The difference is the number of 1000ths of a second since the first tick count. Notice that we have no mInit() method in this class. Notice also that the Class_Initialize calls the StartTimer() function. As you know now, the Class_Initialize is a class event that fires as the class loads, so this tells the class to load the first tick time as soon as the class instance loads. In the header of the class we dimensioned a long variable lngStartTime. This will be used to store the starting tick count. StartTimer() simply calls out to Windows, gets the current tick count from Windows, and stores that count to lngStartTime. EndTimer() simply calls out to Windows again to get the current tick count, subtracts the current count to the previous count stored in lngStartTime and returns that count to you the programmer. That?s it folks! This class has in the header a function definition to call Windows and a place to store the count. In the body of the class it then has two methods to start the ?timer? and to return the ticks since the timer started. You are not going to see many classes simpler than that. So let?s discuss why we need to encapsulate this in a class. You might be saying that you can do the same thing without the class but a class allows you to create as many of these timers as you want. Let?s build some test code to see how this thing works and why we might need several. ? In the tools menu click Insert / MODULE. We are building a normal module this time, NOT a class module. ? Immediately save the module as basTimerTest ? Into this new module insert the following code: Function TmrTest() Dim lngCtr1 As Long Dim lngCtr2 As Long Dim clsTmr1 As clsTimer Dim clsTmr2 As clsTimer Set clsTmr1 = New clsTimer For lngCtr1 = 1 To 5 Set clsTmr2 = New clsTimer For lngCtr2 = 1 To 100000 Pi Next lngCtr2 Debug.Print clsTmr2.EndTimer Next lngCtr1 Debug.Print clsTmr1.EndTimer End Function Function Pi() As Double Dim dblPi As Double dblPi = 4 * Atn(1) Pi = dblPi End Function Notice that we dim two timers, then we SET the timers on the outside of their respective loops. As you know, the SET statement loads the class, at which point the Class_Initialize fires which grabs the first timer tick from windows. The Debug.Print statement simply calls the .EndTimer method of the class and prints it to the debug window. Voila, a timer, with a resolution of one thousandth of a second. TmrTest simulates a real world code where you have two loops, and inner loop and an outer loop. The inner loop times how long it takes to calculate Pi. Notice that modern computers are so fast that I have to do it a hundred thousand times in order to get enough ?tick counts? (thousandths of a second) to even get a number to use. The outer loop simply times how long it takes to run the inner loop 5 times. I have intentionally kept this thing simple, but your outer loop might time how long it takes to read a thousand records and the inner loop might be replaced with timing how long it takes to ? transform a string from comma delimited to pipe delimited or something like that. In this lecture we have demonstrated that a class encapsulates all of the code required to perform its function, plus the variables required to store its data. It also demonstrates that you can use as many instances of the class as you need. If you need one or a hundred timers, you just dim and SET the variables and you are off to the races so to speak. Classes are used to encapsulate code and data required to implement a system. You?re your imagination is the only limit to what that system can be. >> I've been automating Access and Excel for years, but never got >> involved in creating class modules (except the ones behind forms and >> reports, of course). I'm now in the process of converting one of my >> Excel projects over to using a class module, and I can see where it's >> going to be useful (very quick, too). In this case, the class >> basically a more capable, more flexible array, with some methods built >> in. I'm having trouble envisioning why they would be needed in Access, >> though. Obviously they ARE needed, but I don't see it. Other than the >> built in methods, it seems like tables and arrays would handle >> everything. Would anyone like to offer an example of how you would use >> them? >> >> Thanks in advance for any help (and patience). >> >> Tom Ewald >> Mass Properties >> General Dynamics Land Systems >> >> -- John W. Colby From marksimms at verizon.net Sun Sep 25 07:58:21 2016 From: marksimms at verizon.net (Mark Simms) Date: Sun, 25 Sep 2016 08:58:21 -0400 Subject: [AccessD] A2003 was the last good version of Access In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> <4CD740BF672F462FAAD027CE24E23D01@XPS> <01f301d21677$3f6cf430$be46dc90$@net>, Message-ID: <009401d2172c$7f1f6710$7d5e3530$@net> Re:"What is the primary purpose?" To avoid having to create the below....controls, list boxes, etc. and all of that VBA. About the only thing the split form cannot do is filter using "OR" condition on separate columns. i.e. customer status = "Active" OR customer orders > 100 > > > I have an Access application that uses a small form that pops up on the > right side of a key company report. Our users can control the info > shown on the report by using the Radio Buttons and Text Boxes on the > form. Is the use of the Split Form along these lines? > From jimdettman at verizon.net Sun Sep 25 14:21:17 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 25 Sep 2016 15:21:17 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: <3030c76f-8acb-f82f-9bbd-b26ac790cb45@gmail.com> References: <23050E20F5BA4D6A9759AB37A440E9A9@XPS> <3030c76f-8acb-f82f-9bbd-b26ac790cb45@gmail.com> Message-ID: <52789BA3-B2C5-46C4-8600-06AEEB135D73@verizon.net> You one of the very few that does. Jim Sent from my iPhone > On Sep 24, 2016, at 9:02 PM, John Colby wrote: > > I would not code in Access without them. :) > > >> On 9/23/2016 9:38 AM, Jim Dettman wrote: >> <> >> >> I find there are very few that bother to use them. >> >> More often then not, it's just straight code. The real power in using >> classes is lost in VBA because it does not have full inheritance. VBA is >> object based, bit not object orientated like you have in a fully compliant >> OOP language. >> >> Jim. >> >> -----Original Message----- >> From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Charlotte Foust >> Sent: Thursday, September 22, 2016 07:32 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Example of Class Module usage needed >> >> Classes are swiss army knives in Access. You can use them for all sorts of >> things, not just to represent something like a table. For example a >> Customer class might return the customer name information, all the >> associated addresses from the Address table, Order history for that >> customer, etc. In a simple Access databases, there isn't much point, but >> where relational information is structured properly, they can be a quick >> and direct way of returning requested information from multiple tables or >> accepting input and writing it to the appropriate table. >> >> One of my favorite uses is to declare a clsForm and pass it the form object >> it should work on. That will allow binding the open form to an instance of >> clsForm and putting uniform behavior or procedures you want available in >> all forms in the class. >> >> Charlotte Foust >> (916) 206-4336 >> >>> On Thu, Sep 22, 2016 at 1:22 PM, wrote: >>> >>> I've been automating Access and Excel for years, but never got involved in >>> creating class modules (except the ones behind forms and reports, of >>> course). I'm now in the process of converting one of my Excel projects >>> over to using a class module, and I can see where it's going to be useful >>> (very quick, too). In this case, the class basically a more capable, more >>> flexible array, with some methods built in. I'm having trouble envisioning >>> why they would be needed in Access, though. Obviously they ARE needed, but >>> I don't see it. Other than the built in methods, it seems like tables and >>> arrays would handle everything. Would anyone like to offer an example of >>> how you would use them? >>> >>> Thanks in advance for any help (and patience). >>> >>> Tom Ewald >>> Mass Properties >>> General Dynamics Land Systems >>> >>> ---------------------------------------------------------------------- >>> This is an e-mail from General Dynamics Land Systems. It is for the >>> intended recipient only and may contain confidential and privileged >>> information. No one else may read, print, store, copy, forward or act in >>> reliance on it or its attachments. If you are not the intended recipient, >>> please return this message to the sender and delete the message and any >>> attachments from your computer. Your cooperation is appreciated. >>> && >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at gmail.com Sun Sep 25 15:14:43 2016 From: jwcolby at gmail.com (John Colby) Date: Sun, 25 Sep 2016 16:14:43 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: <52789BA3-B2C5-46C4-8600-06AEEB135D73@verizon.net> References: <23050E20F5BA4D6A9759AB37A440E9A9@XPS> <3030c76f-8acb-f82f-9bbd-b26ac790cb45@gmail.com> <52789BA3-B2C5-46C4-8600-06AEEB135D73@verizon.net> Message-ID: You are of course correct, but then I am one of the few that understands them. ;-) On 9/25/2016 3:21 PM, Jim Dettman wrote: > You one of the very few that does. > > Jim > > Sent from my iPhone > >> On Sep 24, 2016, at 9:02 PM, John Colby wrote: >> >> I would not code in Access without them. :) >> >> >>> On 9/23/2016 9:38 AM, Jim Dettman wrote: >>> <> >>> >>> I find there are very few that bother to use them. >>> >>> More often then not, it's just straight code. The real power in using >>> classes is lost in VBA because it does not have full inheritance. VBA is >>> object based, bit not object orientated like you have in a fully compliant >>> OOP language. >>> >>> Jim. >>> >>> -----Original Message----- >>> From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>> Charlotte Foust >>> Sent: Thursday, September 22, 2016 07:32 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Example of Class Module usage needed >>> >>> Classes are swiss army knives in Access. You can use them for all sorts of >>> things, not just to represent something like a table. For example a >>> Customer class might return the customer name information, all the >>> associated addresses from the Address table, Order history for that >>> customer, etc. In a simple Access databases, there isn't much point, but >>> where relational information is structured properly, they can be a quick >>> and direct way of returning requested information from multiple tables or >>> accepting input and writing it to the appropriate table. >>> >>> One of my favorite uses is to declare a clsForm and pass it the form object >>> it should work on. That will allow binding the open form to an instance of >>> clsForm and putting uniform behavior or procedures you want available in >>> all forms in the class. >>> >>> Charlotte Foust >>> (916) 206-4336 >>> >>>> On Thu, Sep 22, 2016 at 1:22 PM, wrote: >>>> >>>> I've been automating Access and Excel for years, but never got involved in >>>> creating class modules (except the ones behind forms and reports, of >>>> course). I'm now in the process of converting one of my Excel projects >>>> over to using a class module, and I can see where it's going to be useful >>>> (very quick, too). In this case, the class basically a more capable, more >>>> flexible array, with some methods built in. I'm having trouble envisioning >>>> why they would be needed in Access, though. Obviously they ARE needed, but >>>> I don't see it. Other than the built in methods, it seems like tables and >>>> arrays would handle everything. Would anyone like to offer an example of >>>> how you would use them? >>>> >>>> Thanks in advance for any help (and patience). >>>> >>>> Tom Ewald >>>> Mass Properties >>>> General Dynamics Land Systems >>>> >>>> ---------------------------------------------------------------------- >>>> This is an e-mail from General Dynamics Land Systems. It is for the >>>> intended recipient only and may contain confidential and privileged >>>> information. No one else may read, print, store, copy, forward or act in >>>> reliance on it or its attachments. If you are not the intended recipient, >>>> please return this message to the sender and delete the message and any >>>> attachments from your computer. Your cooperation is appreciated. >>>> && >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >> -- >> John W. Colby >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > -- John W. Colby From dbdoug at gmail.com Mon Sep 26 00:10:14 2016 From: dbdoug at gmail.com (Doug Steele) Date: Sun, 25 Sep 2016 22:10:14 -0700 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E666D1.31030.1A08B8EB@stuart.lexacorp.com.pg> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <57E665A3.22556.1A041DC5@stuart.lexacorp.com.pg> <57E666D1.31030.1A08B8EB@stuart.lexacorp.com.pg> Message-ID: By coincidence, this just came up on HackerNews: https://sqlite.org/whentouse.html Doug On Sat, Sep 24, 2016 at 4:43 AM, Stuart McLachlan wrote: > Oh yes, I forgot to mention triggers and in-memory databases :) > > > On 24 Sep 2016 at 21:38, Stuart McLachlan wrote: > > > I agree it's not a good alternative for multi user systems, but SQLite > > is an excellent solution for single user applications. There are > > reasons why it is so ubiquitous. > > > > It's free. :) > > > > The same database file is usable on many platforms including Windows, > > Linux,Android and iOS. > > > > It's fast, lightweight and versatile. > > > > For Windows, it's just one native 500KB DLL and no dependencies. > > > > While it doesn't have a huge range of dataypes, there's not much that > > you can't do with a 8 bytes integers and floats (twice the size that > > Access offers) and a default maximum size for text of 1 billion > > characters (try indexinga field of more than 255 characters in > > Access), and the same size of BLOBs. There are plenty of built in > > functions for Date manipulation that make the use of a dedicated > > Date/Time datatypes unnecessary including UnixTime (which is a real > > PITA to handle in Access). > > > > You're right that many (including me) use it because we "don't know > > any better". That's because in its niche, there is no better. > > > > :) > > > > > > > > On 24 Sep 2016 at 8:35, Gustav Brock wrote: > > > > > Hi Arthur > > > > > > I can't add much to the comments already posted, except for one > > > thing: SQLite is certainly not an alternative for an accdb or any > > > other decent database as SQLite is severely limited regarding data > > > types. In fact, I think why so many use it, is only because they > > > just don't know better. > > > > > > > -- > > 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 26 00:28:11 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 26 Sep 2016 15:28:11 +1000 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com>, <57E666D1.31030.1A08B8EB@stuart.lexacorp.com.pg>, Message-ID: <57E8B1EB.30300.22FDF270@stuart.lexacorp.com.pg> The relevant part in this context ( we were discussing a website database) is this part: SQLite works great as the database engine for most low to medium traffic websites (which is to say, most websites). The amount of web traffic that SQLite can handle depends on how heavily the website uses its database. Generally speaking, any site that gets fewer than 100K hits/day should work fine with SQLite. The 100K hits/day figure is a conservative estimate, not a hard upper bound. SQLite has been demonstrated to work with 10 times that amount of traffic. The SQLite website (https://www.sqlite.org/) uses SQLite itself, of course, and as of this writing (2015) it handles about 400K to 500K HTTP requests per day, about 15-20% of which are dynamic pages touching the database. Each dynamic page does roughly 200 SQL statements. This setup runs on a single VM that shares a physical server with 23 others and yet still keeps the load average below 0.1 most of the time. On 25 Sep 2016 at 22:10, Doug Steele wrote: > By coincidence, this just came up on HackerNews: > > https://sqlite.org/whentouse.html > > Doug > > On Sat, Sep 24, 2016 at 4:43 AM, Stuart McLachlan > wrote: > > > Oh yes, I forgot to mention triggers and in-memory databases :) > > > > > > On 24 Sep 2016 at 21:38, Stuart McLachlan wrote: > > > > > I agree it's not a good alternative for multi user systems, but > > > SQLite is an excellent solution for single user applications. > > > There are reasons why it is so ubiquitous. > > > > > > It's free. :) > > > > > > The same database file is usable on many platforms including > > > Windows, Linux,Android and iOS. > > > > > > It's fast, lightweight and versatile. > > > > > > For Windows, it's just one native 500KB DLL and no dependencies. > > > > > > While it doesn't have a huge range of dataypes, there's not much > > > that you can't do with a 8 bytes integers and floats (twice the > > > size that Access offers) and a default maximum size for text of > > > 1 billion characters (try indexinga field of more than 255 > > > characters in Access), and the same size of BLOBs. There are > > > plenty of built in functions for Date manipulation that make the > > > use of a dedicated Date/Time datatypes unnecessary including > > > UnixTime (which is a real PITA to handle in Access). > > > > > > You're right that many (including me) use it because we "don't > > > know any better". That's because in its niche, there is no > > > better. > > > > > > :) > > > > > > > > > > > > On 24 Sep 2016 at 8:35, Gustav Brock wrote: > > > > > > > Hi Arthur > > > > > > > > I can't add much to the comments already posted, except for one > > > > thing: SQLite is certainly not an alternative for an accdb or > > > > any other decent database as SQLite is severely limited > > > > regarding data types. In fact, I think why so many use it, is > > > > only because they just don't know better. > > > > > > > > > > -- > > > 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 26 00:37:56 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 26 Sep 2016 15:37:56 +1000 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com>, <57E665A3.22556.1A041DC5@stuart.lexacorp.com.pg>, Message-ID: <57E8B434.973.2306DFAC@stuart.lexacorp.com.pg> If you want to play with SQLite, I hihgly recommend the SQLite manager Firefox extension: https://github.com/lazierthanthou/sqlite-manager That's what I use for all of my SQLite database management. -- Stuart On 24 Sep 2016 at 13:54, Gustav Brock wrote: > Hi Stuart > > I see your points. And I can see, browsing the documentation, that > SQLite certainly has its niche. > > What struck me was, that Arthur wrote: > > > SQL Express, MySQL, MariaDB, PostGreSQL, SQLite... the list goes on > > and I didn't see SQLite fit in here. It has its own category. > > Thank you for the clarification. > > /gustav > From stuart at lexacorp.com.pg Mon Sep 26 00:39:19 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 26 Sep 2016 15:39:19 +1000 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com>, <57E666D1.31030.1A08B8EB@stuart.lexacorp.com.pg>, Message-ID: <57E8B487.1348.23082311@stuart.lexacorp.com.pg> That sums it up very well. It does have a lot of uses. On 25 Sep 2016 at 22:10, Doug Steele wrote: > By coincidence, this just came up on HackerNews: > > https://sqlite.org/whentouse.html > > Doug > > On Sat, Sep 24, 2016 at 4:43 AM, Stuart McLachlan > wrote: > > > Oh yes, I forgot to mention triggers and in-memory databases :) > > > > > > On 24 Sep 2016 at 21:38, Stuart McLachlan wrote: > > > > > I agree it's not a good alternative for multi user systems, but > > > SQLite is an excellent solution for single user applications. > > > There are reasons why it is so ubiquitous. > > > > > > It's free. :) > > > > > > The same database file is usable on many platforms including > > > Windows, Linux,Android and iOS. > > > > > > It's fast, lightweight and versatile. > > > > > > For Windows, it's just one native 500KB DLL and no dependencies. > > > > > > While it doesn't have a huge range of dataypes, there's not much > > > that you can't do with a 8 bytes integers and floats (twice the > > > size that Access offers) and a default maximum size for text of > > > 1 billion characters (try indexinga field of more than 255 > > > characters in Access), and the same size of BLOBs. There are > > > plenty of built in functions for Date manipulation that make the > > > use of a dedicated Date/Time datatypes unnecessary including > > > UnixTime (which is a real PITA to handle in Access). > > > > > > You're right that many (including me) use it because we "don't > > > know any better". That's because in its niche, there is no > > > better. > > > > > > :) > > > > > > > > > > > > On 24 Sep 2016 at 8:35, Gustav Brock wrote: > > > > > > > Hi Arthur > > > > > > > > I can't add much to the comments already posted, except for one > > > > thing: SQLite is certainly not an alternative for an accdb or > > > > any other decent database as SQLite is severely limited > > > > regarding data types. In fact, I think why so many use it, is > > > > only because they just don't know better. > > > > > > > > > > -- > > > 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 Mon Sep 26 00:58:37 2016 From: dbdoug at gmail.com (Doug Steele) Date: Sun, 25 Sep 2016 22:58:37 -0700 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E8B487.1348.23082311@stuart.lexacorp.com.pg> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <57E666D1.31030.1A08B8EB@stuart.lexacorp.com.pg> <57E8B487.1348.23082311@stuart.lexacorp.com.pg> Message-ID: Hi Stuart: I was under the impression that SQLite couldn't be used as the BE for multi-user applications, but that web page just says it shouldn't be used for 'high concurrency' applications. None of my MS Access client usage could ever be considered high concurrency (one or two people entering orders while talking on the phone...). Have you any experience with SQLite multi-user BEs? Doug On Sun, Sep 25, 2016 at 10:39 PM, Stuart McLachlan wrote: > That sums it up very well. It does have a lot of uses. > > On 25 Sep 2016 at 22:10, Doug Steele wrote: > > > By coincidence, this just came up on HackerNews: > > > > https://sqlite.org/whentouse.html > > > > Doug > > > > On Sat, Sep 24, 2016 at 4:43 AM, Stuart McLachlan > > wrote: > > > > > Oh yes, I forgot to mention triggers and in-memory databases :) > > > > > > > > > On 24 Sep 2016 at 21:38, Stuart McLachlan wrote: > > > > > > > I agree it's not a good alternative for multi user systems, but > > > > SQLite is an excellent solution for single user applications. > > > > There are reasons why it is so ubiquitous. > > > > > > > > It's free. :) > > > > > > > > The same database file is usable on many platforms including > > > > Windows, Linux,Android and iOS. > > > > > > > > It's fast, lightweight and versatile. > > > > > > > > For Windows, it's just one native 500KB DLL and no dependencies. > > > > > > > > While it doesn't have a huge range of dataypes, there's not much > > > > that you can't do with a 8 bytes integers and floats (twice the > > > > size that Access offers) and a default maximum size for text of > > > > 1 billion characters (try indexinga field of more than 255 > > > > characters in Access), and the same size of BLOBs. There are > > > > plenty of built in functions for Date manipulation that make the > > > > use of a dedicated Date/Time datatypes unnecessary including > > > > UnixTime (which is a real PITA to handle in Access). > > > > > > > > You're right that many (including me) use it because we "don't > > > > know any better". That's because in its niche, there is no > > > > better. > > > > > > > > :) > > > > > > > > > > > > > > > > On 24 Sep 2016 at 8:35, Gustav Brock wrote: > > > > > > > > > Hi Arthur > > > > > > > > > > I can't add much to the comments already posted, except for one > > > > > thing: SQLite is certainly not an alternative for an accdb or > > > > > any other decent database as SQLite is severely limited > > > > > regarding data types. In fact, I think why so many use it, is > > > > > only because they just don't know better. > > > > > > > > > > > > > -- > > > > 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 Mon Sep 26 01:04:01 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 26 Sep 2016 16:04:01 +1000 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E8B1EB.30300.22FDF270@stuart.lexacorp.com.pg> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com>, , <57E8B1EB.30300.22FDF270@stuart.lexacorp.com.pg> Message-ID: <57E8BA51.6559.231EBEB5@stuart.lexacorp.com.pg> For websites, it's worth noting that: The SQLite3 extension is enabled by default as of PHP 5.3.0. Windows users must enable php_sqlite3.dll in order to use this extension. This DLL is included with Windows distributions of PHP as of PHP 5.3.0. -- Stuart On 26 Sep 2016 at 15:28, Stuart McLachlan wrote: > The relevant part in this context ( we were discussing a website > database) is this part: > > SQLite works great as the database engine for most low to medium > traffic websites (which is to say, most websites). The amount of web > traffic that SQLite can handle depends on how heavily the website uses > its database. Generally speaking, any site that gets fewer than 100K > hits/day should work fine with SQLite. The 100K hits/day figure is a > conservative estimate, not a hard upper bound. SQLite has been > demonstrated to work with 10 times that amount of traffic. > > The SQLite website (https://www.sqlite.org/) uses SQLite itself, of > course, and as of this writing (2015) it handles about 400K to 500K > HTTP requests per day, about 15-20% of which are dynamic pages > touching the database. Each dynamic page does roughly 200 SQL > statements. This setup runs on a single VM that shares a physical > server with 23 others and yet still keeps the load average below 0.1 > most of the time. > > > On 25 Sep 2016 at 22:10, Doug Steele wrote: > > > By coincidence, this just came up on HackerNews: > > > > https://sqlite.org/whentouse.html > > > > Doug > > > > On Sat, Sep 24, 2016 at 4:43 AM, Stuart McLachlan > > wrote: > > > > > Oh yes, I forgot to mention triggers and in-memory databases :) > > > > > > > > > On 24 Sep 2016 at 21:38, Stuart McLachlan wrote: > > > > > > > I agree it's not a good alternative for multi user systems, but > > > > SQLite is an excellent solution for single user applications. > > > > There are reasons why it is so ubiquitous. > > > > > > > > It's free. :) > > > > > > > > The same database file is usable on many platforms including > > > > Windows, Linux,Android and iOS. > > > > > > > > It's fast, lightweight and versatile. > > > > > > > > For Windows, it's just one native 500KB DLL and no dependencies. > > > > > > > > While it doesn't have a huge range of dataypes, there's not much > > > > that you can't do with a 8 bytes integers and floats (twice the > > > > size that Access offers) and a default maximum size for text > > > > of 1 billion characters (try indexinga field of more than 255 > > > > characters in Access), and the same size of BLOBs. There are > > > > plenty of built in functions for Date manipulation that make the > > > > use of a dedicated Date/Time datatypes unnecessary including > > > > UnixTime (which is a real PITA to handle in Access). > > > > > > > > You're right that many (including me) use it because we "don't > > > > know any better". That's because in its niche, there is no > > > > better. > > > > > > > > :) > > > > > > > > > > > > > > > > On 24 Sep 2016 at 8:35, Gustav Brock wrote: > > > > > > > > > Hi Arthur > > > > > > > > > > I can't add much to the comments already posted, except for > > > > > one thing: SQLite is certainly not an alternative for an accdb > > > > > or any other decent database as SQLite is severely limited > > > > > regarding data types. In fact, I think why so many use it, is > > > > > only because they just don't know better. > > > > > > > > > > > > > -- > > > > 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 Mon Sep 26 01:42:47 2016 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 26 Sep 2016 16:42:47 +1000 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com>, <57E8B487.1348.23082311@stuart.lexacorp.com.pg>, Message-ID: <57E8C367.16956.23423F1B@stuart.lexacorp.com.pg> Hi Doug, "High concurrency" here means multiple threads or processes on the same machine accessing the datafile. See the bits on that page that metion client/server for multi-user considerations. Not optimal. So no, I've never developed a multi-user SQLite application and have no intention of ever doing so.' But if you really want or need to work with SQLite data files in client/server mode, you could check out SQLitening (developed by some very good PowerBASIC programmers) SQLitening Database System SQLitening is a client/server implementation of the very popular SQLite database. SQLitening is a programmer's library in standard Win32 DLL form. It is installed as a standard Windows Service. In addition to client/server mode, the library allows the programmer to also access SQLite databases in local mode. In either mode (local or client/server), the database is extremely fast and robust. Installation is a breeze - you simply copy a couple of DLL's to the folder where your application resides. If you work in client/server mode, you create a folder on your server and start the SQLitening Windows Service from the Administration program. You may need to modify the standard configuration text file to set permissions and port numbers/host names. Simple. Download via the sqlitening support site. Check it out at: http://www.sqlitening.com On 25 Sep 2016 at 22:58, Doug Steele wrote: > Hi Stuart: > > I was under the impression that SQLite couldn't be used as the BE for > multi-user applications, but that web page just says it shouldn't be > used for 'high concurrency' applications. None of my MS Access client > usage could ever be considered high concurrency (one or two people > entering orders while talking on the phone...). Have you any > experience with SQLite multi-user BEs? > > Doug > > On Sun, Sep 25, 2016 at 10:39 PM, Stuart McLachlan > wrote: > > > That sums it up very well. It does have a lot of uses. > > > > On 25 Sep 2016 at 22:10, Doug Steele wrote: > > > > > By coincidence, this just came up on HackerNews: > > > > > > https://sqlite.org/whentouse.html > > > > > > Doug > > > > > > On Sat, Sep 24, 2016 at 4:43 AM, Stuart McLachlan > > > wrote: > > > > > > > Oh yes, I forgot to mention triggers and in-memory databases :) > > > > > > > > > > > > On 24 Sep 2016 at 21:38, Stuart McLachlan wrote: > > > > > > > > > I agree it's not a good alternative for multi user systems, > > > > > but SQLite is an excellent solution for single user > > > > > applications. There are reasons why it is so ubiquitous. > > > > > > > > > > It's free. :) > > > > > > > > > > The same database file is usable on many platforms including > > > > > Windows, Linux,Android and iOS. > > > > > > > > > > It's fast, lightweight and versatile. > > > > > > > > > > For Windows, it's just one native 500KB DLL and no > > > > > dependencies. > > > > > > > > > > While it doesn't have a huge range of dataypes, there's not > > > > > much that you can't do with a 8 bytes integers and floats > > > > > (twice the size that Access offers) and a default maximum > > > > > size for text of 1 billion characters (try indexinga field of > > > > > more than 255 characters in Access), and the same size of > > > > > BLOBs. There are plenty of built in functions for Date > > > > > manipulation that make the use of a dedicated Date/Time > > > > > datatypes unnecessary including UnixTime (which is a real > > > > > PITA to handle in Access). > > > > > > > > > > You're right that many (including me) use it because we "don't > > > > > know any better". That's because in its niche, there is no > > > > > better. > > > > > > > > > > :) > > > > > > > > > > > > > > > > > > > > On 24 Sep 2016 at 8:35, Gustav Brock wrote: > > > > > > > > > > > Hi Arthur > > > > > > > > > > > > I can't add much to the comments already posted, except for > > > > > > one thing: SQLite is certainly not an alternative for an > > > > > > accdb or any other decent database as SQLite is severely > > > > > > limited regarding data types. In fact, I think why so many > > > > > > use it, is only because they just don't know better. > > > > > > > > > > > > > > > > -- > > > > > 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 jimdettman at verizon.net Mon Sep 26 06:33:31 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 26 Sep 2016 07:33:31 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: <23050E20F5BA4D6A9759AB37A440E9A9@XPS> <3030c76f-8acb-f82f-9bbd-b26ac790cb45@gmail.com> <52789BA3-B2C5-46C4-8600-06AEEB135D73@verizon.net> Message-ID: Among developers who only do VBA, yes. But anyone who does something like VFP or .Net certainly understand classes. I think if VBA was more object orientated, we'd be talking about an entirely different situation when looking at Access code. While there are places where you can use classes and use them well, without inheritance at least, your stuck doing things along the lines of traditional linear programming. One example; you create a text box class that handles dates. First, you need to create it from scratch. You simply can't subclass off a text control. Then, you need to hook it up yourself on every form instead of simply dropping it on a form at design time. Another example; If I want to change the text control behavior (say the font) of all text controls, I need to modify every class I've created rather than changing the text class itself. But if you had this for a hierarchy: Base control Text control Framework text control App specific text control My date text control Then I would just have to change it once on any one of the levels besides the last and be done with it. And that's where VBA looses out when it comes to using classes. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Sunday, September 25, 2016 04:15 PM To: Access Developers discussion and problem solving; Access Developers discussion and problem solving Subject: Re: [AccessD] Example of Class Module usage needed You are of course correct, but then I am one of the few that understands them. ;-) On 9/25/2016 3:21 PM, Jim Dettman wrote: > You one of the very few that does. > > Jim > > Sent from my iPhone > >> On Sep 24, 2016, at 9:02 PM, John Colby wrote: >> >> I would not code in Access without them. :) >> >> >>> On 9/23/2016 9:38 AM, Jim Dettman wrote: >>> <> >>> >>> I find there are very few that bother to use them. >>> >>> More often then not, it's just straight code. The real power in using >>> classes is lost in VBA because it does not have full inheritance. VBA is >>> object based, bit not object orientated like you have in a fully compliant >>> OOP language. >>> >>> Jim. >>> >>> -----Original Message----- >>> From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>> Charlotte Foust >>> Sent: Thursday, September 22, 2016 07:32 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Example of Class Module usage needed >>> >>> Classes are swiss army knives in Access. You can use them for all sorts of >>> things, not just to represent something like a table. For example a >>> Customer class might return the customer name information, all the >>> associated addresses from the Address table, Order history for that >>> customer, etc. In a simple Access databases, there isn't much point, but >>> where relational information is structured properly, they can be a quick >>> and direct way of returning requested information from multiple tables or >>> accepting input and writing it to the appropriate table. >>> >>> One of my favorite uses is to declare a clsForm and pass it the form object >>> it should work on. That will allow binding the open form to an instance of >>> clsForm and putting uniform behavior or procedures you want available in >>> all forms in the class. >>> >>> Charlotte Foust >>> (916) 206-4336 >>> >>>> On Thu, Sep 22, 2016 at 1:22 PM, wrote: >>>> >>>> I've been automating Access and Excel for years, but never got involved in >>>> creating class modules (except the ones behind forms and reports, of >>>> course). I'm now in the process of converting one of my Excel projects >>>> over to using a class module, and I can see where it's going to be useful >>>> (very quick, too). In this case, the class basically a more capable, more >>>> flexible array, with some methods built in. I'm having trouble envisioning >>>> why they would be needed in Access, though. Obviously they ARE needed, but >>>> I don't see it. Other than the built in methods, it seems like tables and >>>> arrays would handle everything. Would anyone like to offer an example of >>>> how you would use them? >>>> >>>> Thanks in advance for any help (and patience). >>>> >>>> Tom Ewald >>>> Mass Properties >>>> General Dynamics Land Systems >>>> >>>> ---------------------------------------------------------------------- >>>> This is an e-mail from General Dynamics Land Systems. It is for the >>>> intended recipient only and may contain confidential and privileged >>>> information. No one else may read, print, store, copy, forward or act in >>>> reliance on it or its attachments. If you are not the intended recipient, >>>> please return this message to the sender and delete the message and any >>>> attachments from your computer. Your cooperation is appreciated. >>>> && >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >> -- >> John W. Colby >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > -- John W. Colby -- 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 26 06:33:31 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 26 Sep 2016 07:33:31 -0400 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> <4CD740BF672F462FAAD027CE24E23D01@XPS> <9E6898197033432196E0C00666AF8AFF@XPS> Message-ID: <7ECF50014607447795A65B8567E5BCCE@XPS> Bill, A lot of people who use Access simply didn't know any better. Most assumed that because the DB was the same file format, then could use any version on it and get the same results. That's never been true of course, but the features in A2010 that were specific to it were easy to fall into using without realizing it. So when you went back to A2007, it was more of an issue than in the past. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Saturday, September 24, 2016 03:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Basic Question (Probably) that I just don't know RE: " using 2010 and then trying to drop back to 2007." Who in their right mind does that??! On Sat, Sep 24, 2016 at 10:23 AM, Jim Dettman wrote: > David, > > Not sure if you consider A2010 "good" or not, but A2010 was the last > version that had support for ADP's, replication, .DBF's, and JET 3.x. > Here's the list of everything that was dropped starting with A2013: > > https://support.office.com/en-us/article/Discontinued- > features-and-modified- > functionality-in-Access-2013-BC006FC3-5B48-499E-8C7D-9A2DFEF68E2F > > and FWIW, A2010 is pretty solid on the desktop side as long as you moving > forward. Most of the issues with it were related to folks using 2010 and > then trying to drop back to 2007. > > Jim. > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > David McAfee > Sent: Friday, September 23, 2016 03:18 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Basic Question (Probably) that I just don't know > > Jim, I think you meant to say: > A2010 was the last good version of Access. > > Actually: > A2003 was the last good version of Access. ;) > > I miss ADPs. > > > On Fri, Sep 23, 2016 at 11:39 AM, Jim Dettman > wrote: > > > << > > 1. Does Access still support replication? > > >> > > > > Starting with A2013, no. A2010 was the last "full feature" version of > > Access. Replication was dropped along with ADP's. > > > > << > > 2. Why would a seasoned developer would choose an MDB or ACCDB back end > > when so many actual database servers for free (SQL Express, MySQL, > MariaDB, > > PostGreSQL, SQLite... the list goes on), > > >> > > > > A seasoned developer probably would not. > > > > Only thing I could think of is if someone wanted to take advantage of > > something in ACE which is not in any other DB (say the attachment data > > type), which is being driven by a customer requirement. > > > > The other reasons might be data type incompatibility (i.e. the fun you > can > > have with floating point and bit fields), and last but not least, just > ease > > of use. Even today, there is still a niche (now very small though) > where > > a > > ACE DB BE might make sense. Someone with no real IT staff, small > > databases, > > and small number of users. > > > > But more often that not, some other BE is the way to go as you say. > > > > << > > One last thought: the port from an Access BE to a genuine server DB > > facilitates the move to web/mobile apps, and that is a > rapidly-increasing, > > even dominant market segment. So Access developers have to be planning an > > Exit Strategy, since it is quite clear that MS has little or no interest > in > > providing one. > > >> > > > > I can't say much on that front other than to say pay attention to what > is > > being asked for on Access user voice: > > > > https://access.uservoice.com > > > > > > You'll find that what most are looking for is improvements in the > desktop > > and I think Microsoft is listening to that. While some people are > looking > > for a web product, most seem to want enhancements in the desktop product. > > > > Web apps are certainly gaining ground, in many businesses it's still a > > more > > traditional approach to applications for back office work. > > > > Jim. > > > > > > > > -- > > 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 ewaldt at gdls.com Mon Sep 26 07:52:54 2016 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Mon, 26 Sep 2016 08:52:54 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: Message-ID: Wow! I knew this was a great group, but that was a LOT of responses! Thanks, everyone, especially (the expert) John Colby. I'll look through it and probably come up with more questions. Thanks, again! Tom Ewald Mass Properties General Dynamics Land Systems ---------------------------------------------------------------------- This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. && From fuller.artful at gmail.com Mon Sep 26 08:31:49 2016 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 26 Sep 2016 09:31:49 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: Message-ID: Jim et. al. There is a funny thing about classes and inheritance. In the history of evolutionary thought, species and phyla were created (discovered) in a bottom-up fashion; only by comparing apparently different species did Darwin and the rest of us in his wake realize that they shared a common ancestor. In addition, there have been many cases wherein a given species was originally thought to belong to one ancestral line, and only later was discovered to belong to another. This has even applied to assignment to a phylum (c.f. Stephen J. Gould's *The Burgess Shale*). The current top-down orientation of O-O development is radically different than what happened in the biological world. The O-O model embodies a God-like perspective (the ultimate case of top-down design). What does this have to do with O-O? Simply this: there ought to be a way to promote attributes and methods, rather than or in addition to inheritance. In practice, this would mean something like this: I design two classes, apparently quite different, but as I play with them I begin to realize that they share some subtle things in common that I hadn't realized when designing them as separate classes. So now I design a superclass, and promote the attributes and methods they share upward, then modify the original two classes to inherit from the superclass. Of course this can be done manually, by creating the superclass and then visiting each of the original classes and adding the *Inherits* keyword to each definition. But I was thinking of a more graphic view of the hierarchy, with Drag and Drop, so that I could accomplish this visually: just Drag an attribute or method from one of the "lower" classes up the chain to the superclass. That would be really cool. Early on in the history of O-O, there was the concept of multiple inheritance (that is, class C inherits from both class A and B). I think that this came to be seen as a bad idea, and was abandoned by most or all the languages that supported it. I don't if any language still supports it. Do you? Arthur ? From fuller.artful at gmail.com Mon Sep 26 08:33:58 2016 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 26 Sep 2016 09:33:58 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: Message-ID: Oh yes, I forgot another question I have. One of the first books I read about O-O was by Bertrand Meyer, who created the Eiffel language. Is it still in use? And if so, is its use confined to or favoured by some particular application domain? A. ? From jimdettman at verizon.net Mon Sep 26 10:22:38 2016 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 26 Sep 2016 11:22:38 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: Message-ID: Arthur, <> Wasn't Eiffel like that (and for your other question, don't know if it's still in use or not)? Don't remember off-hand....that was a long, long time ago. I would agree too that top down has some fundamental problems. That's why OOP and Classes are not all their cracked up to be either. You really can get into some messy situations and end up with a lot of work as a result in re-designing a hierarchy. Interesting thought on promoting attributes...there are a lot of nuances to OOP that you really can't appreciate until you do it. I've been away from it for a bit now (back to Access!), but it was fun to dig into it at the time. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, September 26, 2016 09:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Example of Class Module usage needed Jim et. al. There is a funny thing about classes and inheritance. In the history of evolutionary thought, species and phyla were created (discovered) in a bottom-up fashion; only by comparing apparently different species did Darwin and the rest of us in his wake realize that they shared a common ancestor. In addition, there have been many cases wherein a given species was originally thought to belong to one ancestral line, and only later was discovered to belong to another. This has even applied to assignment to a phylum (c.f. Stephen J. Gould's *The Burgess Shale*). The current top-down orientation of O-O development is radically different than what happened in the biological world. The O-O model embodies a God-like perspective (the ultimate case of top-down design). What does this have to do with O-O? Simply this: there ought to be a way to promote attributes and methods, rather than or in addition to inheritance. In practice, this would mean something like this: I design two classes, apparently quite different, but as I play with them I begin to realize that they share some subtle things in common that I hadn't realized when designing them as separate classes. So now I design a superclass, and promote the attributes and methods they share upward, then modify the original two classes to inherit from the superclass. Of course this can be done manually, by creating the superclass and then visiting each of the original classes and adding the *Inherits* keyword to each definition. But I was thinking of a more graphic view of the hierarchy, with Drag and Drop, so that I could accomplish this visually: just Drag an attribute or method from one of the "lower" classes up the chain to the superclass. That would be really cool. Early on in the history of O-O, there was the concept of multiple inheritance (that is, class C inherits from both class A and B). I think that this came to be seen as a bad idea, and was abandoned by most or all the languages that supported it. I don't if any language still supports it. Do you? Arthur ? -- 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 26 13:13:53 2016 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 26 Sep 2016 11:13:53 -0700 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <9E6898197033432196E0C00666AF8AFF@XPS> References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> <4CD740BF672F462FAAD027CE24E23D01@XPS> <9E6898197033432196E0C00666AF8AFF@XPS> Message-ID: I prefer 2010 over 2007, but prefer the layout of 2003 and earlier versions. I really don't do too much in Access these days, more SQL Server. I'm trying to convert the rest of my co-workers over to SQL Server Management Studio, but I can't get them to get away from the Access QBE / GUI. They love linked tables/views and doing everything from Access. :( On Sat, Sep 24, 2016 at 7:23 AM, Jim Dettman wrote: > David, > > Not sure if you consider A2010 "good" or not, but A2010 was the last > version that had support for ADP's, replication, .DBF's, and JET 3.x. > Here's the list of everything that was dropped starting with A2013: > > https://support.office.com/en-us/article/Discontinued- > features-and-modified- > functionality-in-Access-2013-BC006FC3-5B48-499E-8C7D-9A2DFEF68E2F > > and FWIW, A2010 is pretty solid on the desktop side as long as you moving > forward. Most of the issues with it were related to folks using 2010 and > then trying to drop back to 2007. > > Jim. > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > David McAfee > Sent: Friday, September 23, 2016 03:18 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Basic Question (Probably) that I just don't know > > Jim, I think you meant to say: > A2010 was the last good version of Access. > > Actually: > A2003 was the last good version of Access. ;) > > I miss ADPs. > > > On Fri, Sep 23, 2016 at 11:39 AM, Jim Dettman > wrote: > > > << > > 1. Does Access still support replication? > > >> > > > > Starting with A2013, no. A2010 was the last "full feature" version of > > Access. Replication was dropped along with ADP's. > > > > << > > 2. Why would a seasoned developer would choose an MDB or ACCDB back end > > when so many actual database servers for free (SQL Express, MySQL, > MariaDB, > > PostGreSQL, SQLite... the list goes on), > > >> > > > > A seasoned developer probably would not. > > > > Only thing I could think of is if someone wanted to take advantage of > > something in ACE which is not in any other DB (say the attachment data > > type), which is being driven by a customer requirement. > > > > The other reasons might be data type incompatibility (i.e. the fun you > can > > have with floating point and bit fields), and last but not least, just > ease > > of use. Even today, there is still a niche (now very small though) > where > > a > > ACE DB BE might make sense. Someone with no real IT staff, small > > databases, > > and small number of users. > > > > But more often that not, some other BE is the way to go as you say. > > > > << > > One last thought: the port from an Access BE to a genuine server DB > > facilitates the move to web/mobile apps, and that is a > rapidly-increasing, > > even dominant market segment. So Access developers have to be planning an > > Exit Strategy, since it is quite clear that MS has little or no interest > in > > providing one. > > >> > > > > I can't say much on that front other than to say pay attention to what > is > > being asked for on Access user voice: > > > > https://access.uservoice.com > > > > > > You'll find that what most are looking for is improvements in the > desktop > > and I think Microsoft is listening to that. While some people are > looking > > for a web product, most seem to want enhancements in the desktop product. > > > > Web apps are certainly gaining ground, in many businesses it's still a > > more > > traditional approach to applications for back office work. > > > > Jim. > > > > > > > > -- > > 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 fuller.artful at gmail.com Mon Sep 26 14:26:53 2016 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 26 Sep 2016 15:26:53 -0400 Subject: [AccessD] Example of Class Module usage needed In-Reply-To: References: Message-ID: Jim, My first actual experience with O-O was Actor, which at the time was pretty slick. I don't know whether it's still around either. Over the years I've toyed with a bunch of various O-O languages, and become expert at none. But it remains fun. My thought on promotion applies to both attributes and methods, and by extension to abstract classes as well. For example, if both class B and C have an add method, which concatenates in class B and sums in class C, then a promotion to the abstract class A would imply and demand an implementation of add() in any descendant -- which in this case is trivial, since both B and C already have the method. (This implies that in the GUI there would be the usual difference between Drag-Drop and Drag-Copy; perhaps the latter would want CTRL+Drag, or something.) Do any of the O-O IDEs present a view of the hierarchy in a similar graphical form as the one I'm suggesting? A. ? From accessd at shaw.ca Mon Sep 26 16:59:38 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 26 Sep 2016 15:59:38 -0600 (MDT) Subject: [AccessD] History In-Reply-To: <57E5B551.17306.17535F49@stuart.lexacorp.com.pg> Message-ID: <447729716.92495774.1474927178215.JavaMail.root@shaw.ca> Thanks Stuart. I was thinking of that and then hoping the client would either get the copy he has paid for, from the hosting company or buy a new copy, so I could set it up on a more permanent bases. Jim ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Friday, September 23, 2016 4:05:53 PM Subject: Re: [AccessD] History For the test server, can you use the free 30 day trial version? http://www.aspupload.com/download.html On 23 Sep 2016 at 14:53, Jim Lawrence wrote: > I have not worked with MS Access for almost ten years but a client > decided to upgrade their old website that runs on Server2003, IIS6, > ASP classic and uses Access MBD as the database. You don't have to say > it; "What are you doing working with that old crap?" > > No good deed ever goes unpunished and the owner is so desperate that > he is even offering money. I have said to just abandon that site and > do a complete re-write but he's not offering that much and now that he > has retired his wife would go ballistic if he even suggested a > re-write. His site originally cost him somewhere around 20 to 30K. > > To that end I have run up a virtual drive running Server2003, with > IIS6 and now am trying to get the old site running on this test > server. The Access MDB database is working fine... > > When running the follow piece of code: > Set UploadProgress = Server.CreateObject("Persits.UploadProgress") > > ...which results in the error: > > Server object error 'ASP 0177 : 800401f3' > Server.CreateObject Failed > > To the best of my knowledge the website needs a DLL from Persits: > > http://www.aspupload.com/object_progress.html > > Does anyone have the appropriate DLL so it can be registered on the > test server? regsvr32 c: \ downloads \ > WhatEvertheNameoftheUploadDriver.dll > > MTIA > > Jim > -- > 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 Mon Sep 26 17:00:00 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 26 Sep 2016 16:00:00 -0600 (MDT) Subject: [AccessD] Overview of the election In-Reply-To: <57E5B56F.21390.1753D18B@stuart.lexacorp.com.pg> Message-ID: <92131399.92496031.1474927200283.JavaMail.root@shaw.ca> Obviously. Jim ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Friday, September 23, 2016 4:06:23 PM Subject: Re: [AccessD] Overview of the election Should have gone to OT? On 23 Sep 2016 at 16:46, Jim Lawrence wrote: > http://www.bbc.co.uk/news/election-us-2016-37423550 > > Jim > -- > 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 Mon Sep 26 17:09:15 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 26 Sep 2016 16:09:15 -0600 (MDT) Subject: [AccessD] Example of Class Module usage needed In-Reply-To: <57E5E1D1.27687.180131D7@stuart.lexacorp.com.pg> Message-ID: <980251792.92504056.1474927755232.JavaMail.root@shaw.ca> Good one. Jim ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Friday, September 23, 2016 7:15:45 PM Subject: Re: [AccessD] Example of Class Module usage needed A good, simple primer: http://www.codeproject.com/Tips/679615/OOP-Explained-in-Seconds On 23 Sep 2016 at 21:22, Bill Benson wrote: > On Sep 23, 2016 9:18 PM, "Bill Benson" wrote: > > > Thank you Stuart for the explanation. I am hardly even a layman > when it comes to real understanding of OOP. > > On Sep 23, 2016 7:03 > PM, "Stuart McLachlan" wrote: >> >> > Do you > agree that a module is not a class? >> >> Short answer, Yes. >> >> > Long answer: >> >> JC and I had many discussions about modules, > objects, classes, events and Access back in >> the day :) >> >> -- > 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 Mon Sep 26 21:22:22 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 26 Sep 2016 20:22:22 -0600 (MDT) Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: Message-ID: <1605471052.92695265.1474942942431.JavaMail.root@shaw.ca> Good link. Jim ----- Original Message ----- From: "Doug Steele" To: "Access Developers discussion and problem solving" Sent: Sunday, September 25, 2016 10:10:14 PM Subject: Re: [AccessD] Basic Question (Probably) that I just don't know By coincidence, this just came up on HackerNews: https://sqlite.org/whentouse.html Doug On Sat, Sep 24, 2016 at 4:43 AM, Stuart McLachlan wrote: > Oh yes, I forgot to mention triggers and in-memory databases :) > > > On 24 Sep 2016 at 21:38, Stuart McLachlan wrote: > > > I agree it's not a good alternative for multi user systems, but SQLite > > is an excellent solution for single user applications. There are > > reasons why it is so ubiquitous. > > > > It's free. :) > > > > The same database file is usable on many platforms including Windows, > > Linux,Android and iOS. > > > > It's fast, lightweight and versatile. > > > > For Windows, it's just one native 500KB DLL and no dependencies. > > > > While it doesn't have a huge range of dataypes, there's not much that > > you can't do with a 8 bytes integers and floats (twice the size that > > Access offers) and a default maximum size for text of 1 billion > > characters (try indexinga field of more than 255 characters in > > Access), and the same size of BLOBs. There are plenty of built in > > functions for Date manipulation that make the use of a dedicated > > Date/Time datatypes unnecessary including UnixTime (which is a real > > PITA to handle in Access). > > > > You're right that many (including me) use it because we "don't know > > any better". That's because in its niche, there is no better. > > > > :) > > > > > > > > On 24 Sep 2016 at 8:35, Gustav Brock wrote: > > > > > Hi Arthur > > > > > > I can't add much to the comments already posted, except for one > > > thing: SQLite is certainly not an alternative for an accdb or any > > > other decent database as SQLite is severely limited regarding data > > > types. In fact, I think why so many use it, is only because they > > > just don't know better. > > > > > > > -- > > 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 Mon Sep 26 21:24:11 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 26 Sep 2016 20:24:11 -0600 (MDT) Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E8B1EB.30300.22FDF270@stuart.lexacorp.com.pg> Message-ID: <608028740.92700677.1474943051764.JavaMail.root@shaw.ca> Might even look at it seriously for the clients of which I am now working for. (small website.) Jim ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Sunday, September 25, 2016 10:28:11 PM Subject: Re: [AccessD] Basic Question (Probably) that I just don't know The relevant part in this context ( we were discussing a website database) is this part: SQLite works great as the database engine for most low to medium traffic websites (which is to say, most websites). The amount of web traffic that SQLite can handle depends on how heavily the website uses its database. Generally speaking, any site that gets fewer than 100K hits/day should work fine with SQLite. The 100K hits/day figure is a conservative estimate, not a hard upper bound. SQLite has been demonstrated to work with 10 times that amount of traffic. The SQLite website (https://www.sqlite.org/) uses SQLite itself, of course, and as of this writing (2015) it handles about 400K to 500K HTTP requests per day, about 15-20% of which are dynamic pages touching the database. Each dynamic page does roughly 200 SQL statements. This setup runs on a single VM that shares a physical server with 23 others and yet still keeps the load average below 0.1 most of the time. On 25 Sep 2016 at 22:10, Doug Steele wrote: > By coincidence, this just came up on HackerNews: > > https://sqlite.org/whentouse.html > > Doug > > On Sat, Sep 24, 2016 at 4:43 AM, Stuart McLachlan > wrote: > > > Oh yes, I forgot to mention triggers and in-memory databases :) > > > > > > On 24 Sep 2016 at 21:38, Stuart McLachlan wrote: > > > > > I agree it's not a good alternative for multi user systems, but > > > SQLite is an excellent solution for single user applications. > > > There are reasons why it is so ubiquitous. > > > > > > It's free. :) > > > > > > The same database file is usable on many platforms including > > > Windows, Linux,Android and iOS. > > > > > > It's fast, lightweight and versatile. > > > > > > For Windows, it's just one native 500KB DLL and no dependencies. > > > > > > While it doesn't have a huge range of dataypes, there's not much > > > that you can't do with a 8 bytes integers and floats (twice the > > > size that Access offers) and a default maximum size for text of > > > 1 billion characters (try indexinga field of more than 255 > > > characters in Access), and the same size of BLOBs. There are > > > plenty of built in functions for Date manipulation that make the > > > use of a dedicated Date/Time datatypes unnecessary including > > > UnixTime (which is a real PITA to handle in Access). > > > > > > You're right that many (including me) use it because we "don't > > > know any better". That's because in its niche, there is no > > > better. > > > > > > :) > > > > > > > > > > > > On 24 Sep 2016 at 8:35, Gustav Brock wrote: > > > > > > > Hi Arthur > > > > > > > > I can't add much to the comments already posted, except for one > > > > thing: SQLite is certainly not an alternative for an accdb or > > > > any other decent database as SQLite is severely limited > > > > regarding data types. In fact, I think why so many use it, is > > > > only because they just don't know better. > > > > > > > > > > -- > > > 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 Mon Sep 26 21:26:18 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 26 Sep 2016 20:26:18 -0600 (MDT) Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E8B434.973.2306DFAC@stuart.lexacorp.com.pg> Message-ID: <729651003.92701878.1474943178723.JavaMail.root@shaw.ca> I might have to ask you some questions on the product as you are the apparent expert here. Jim ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Sunday, September 25, 2016 10:37:56 PM Subject: Re: [AccessD] Basic Question (Probably) that I just don't know If you want to play with SQLite, I hihgly recommend the SQLite manager Firefox extension: https://github.com/lazierthanthou/sqlite-manager That's what I use for all of my SQLite database management. -- Stuart On 24 Sep 2016 at 13:54, Gustav Brock wrote: > Hi Stuart > > I see your points. And I can see, browsing the documentation, that > SQLite certainly has its niche. > > What struck me was, that Arthur wrote: > > > SQL Express, MySQL, MariaDB, PostGreSQL, SQLite... the list goes on > > and I didn't see SQLite fit in here. It has its own category. > > Thank you for the clarification. > > /gustav > -- 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 26 23:30:26 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 26 Sep 2016 22:30:26 -0600 (MDT) Subject: [AccessD] Example of Class Module usage needed In-Reply-To: Message-ID: <2037121426.92764770.1474950626182.JavaMail.root@shaw.ca> I have a friend who has been using Eiffel for years...and he can not say enough good about it. We managed to talk a Eiffel rep into coming to UVic to give a talk on the program and its features. Impressive and so tidy. A beautifully clean language. Unfortunately, we could not get the university systems people along with the Neptune project to deviate off Java. :-( This is going back more than 10 years now. Now everything is JavaScript, PHP and Python along with a myriad of scaffolding tools, Linux apps and githb code for modern webapps. BEs are more often than not MySQL and if you are government, Oracle is still clinging on. Jim ----- Original Message ----- From: "Arthur Fuller" To: "Access Developers discussion and problem solving" Sent: Monday, September 26, 2016 6:33:58 AM Subject: Re: [AccessD] Example of Class Module usage needed Oh yes, I forgot another question I have. One of the first books I read about O-O was by Bertrand Meyer, who created the Eiffel language. Is it still in use? And if so, is its use confined to or favoured by some particular application domain? A. ? -- 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 26 23:57:25 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 26 Sep 2016 22:57:25 -0600 (MDT) Subject: [AccessD] Very busy In-Reply-To: Message-ID: <703775024.92776113.1474952245023.JavaMail.root@shaw.ca> We have been very pre-occupied as of late. First it was family from Vancouver and Kitimat and then some foreigners from England and Ottawa...luckily they didn't stay too long. Jim From darren at activebilling.com.au Tue Sep 27 21:20:48 2016 From: darren at activebilling.com.au (Darren - Active Billing) Date: Wed, 28 Sep 2016 12:20:48 +1000 Subject: [AccessD] How to Force the Location of a small form next to a report In-Reply-To: <57DC80B3.17015.3F7D694@stuart.lexacorp.com.pg> References: <05bd01d21062$fd5d5f40$f8181dc0$@bchacc.com> <57DC80B3.17015.3F7D694@stuart.lexacorp.com.pg> Message-ID: <579BD4C6-009E-421C-A322-85263F9514EE@activebilling.com.au> Howdy, Coming into this one a bit late. I have also written (Way back in the day) a companion form that needed to ?follow? a main form, if the main form was moved. I achieved a nice little ?snap to? feature by having code set the position of a trailing form relative to the position of a main form. Added that code to the timer on the ?trailing? form. Worked well for that application Dunno if that helps ? Just thought I?d post J Have fun Darren From: AccessD on behalf of Stuart McLachlan Organization: Lexacorp Reply-To: Access Developers discussion and problem solving Date: Saturday, 17 September 2016 9:30 am To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Force the Location of a small form next to a report That moves the "Active Window", so I suspect it won't work until the control form is already on screen and has the focus. The Form.Move method has the advantage that it can be applied during creation but before the form is displayed. On 16 Sep 2016 at 21:59, Brad Marks wrote: Rocky, Thanks! I will need to experiment with this. Brad -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, September 16, 2016 4:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to Force the Location of a small form next to a report I think MoveSize may work IIUC what you're trying to accomplish: https://msdn.microsoft.com/en-us/library/office/ff197394.aspx rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, September 16, 2016 2:16 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to Force the Location of a small form next to a report All, Recently, I was asked to develop a small form which controls the data that appears on a related report. This form has six text boxes and five radio buttons. By using these text boxes and radio buttons, our users can control the data that is shown on the report. Our users have fairly wide screens. There is room to show the entire form on the right size of the report. Is there a way to force the form to always appear in a specific location? Currently, when the form is opened, it appears in the upper left of the window. I would like to have it always appear on the right side of the report. Thanks, Brad Marks -- 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 28 23:16:51 2016 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 28 Sep 2016 22:16:51 -0600 (MDT) Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: <57E8C367.16956.23423F1B@stuart.lexacorp.com.pg> Message-ID: <835992333.94672413.1475122611496.JavaMail.root@shaw.ca> Of course we can always use PostgreSQL. It may be a bit like bringing a bulldozer to a job that can be done with a shovel but the price is right https://www.postgresql.org/download/windows/ Jim ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Sunday, September 25, 2016 11:42:47 PM Subject: Re: [AccessD] Basic Question (Probably) that I just don't know Hi Doug, "High concurrency" here means multiple threads or processes on the same machine accessing the datafile. See the bits on that page that metion client/server for multi-user considerations. Not optimal. So no, I've never developed a multi-user SQLite application and have no intention of ever doing so.' But if you really want or need to work with SQLite data files in client/server mode, you could check out SQLitening (developed by some very good PowerBASIC programmers) SQLitening Database System SQLitening is a client/server implementation of the very popular SQLite database. SQLitening is a programmer's library in standard Win32 DLL form. It is installed as a standard Windows Service. In addition to client/server mode, the library allows the programmer to also access SQLite databases in local mode. In either mode (local or client/server), the database is extremely fast and robust. Installation is a breeze - you simply copy a couple of DLL's to the folder where your application resides. If you work in client/server mode, you create a folder on your server and start the SQLitening Windows Service from the Administration program. You may need to modify the standard configuration text file to set permissions and port numbers/host names. Simple. Download via the sqlitening support site. Check it out at: http://www.sqlitening.com On 25 Sep 2016 at 22:58, Doug Steele wrote: > Hi Stuart: > > I was under the impression that SQLite couldn't be used as the BE for > multi-user applications, but that web page just says it shouldn't be > used for 'high concurrency' applications. None of my MS Access client > usage could ever be considered high concurrency (one or two people > entering orders while talking on the phone...). Have you any > experience with SQLite multi-user BEs? > > Doug > > On Sun, Sep 25, 2016 at 10:39 PM, Stuart McLachlan > wrote: > > > That sums it up very well. It does have a lot of uses. > > > > On 25 Sep 2016 at 22:10, Doug Steele wrote: > > > > > By coincidence, this just came up on HackerNews: > > > > > > https://sqlite.org/whentouse.html > > > > > > Doug > > > > > > On Sat, Sep 24, 2016 at 4:43 AM, Stuart McLachlan > > > wrote: > > > > > > > Oh yes, I forgot to mention triggers and in-memory databases :) > > > > > > > > > > > > On 24 Sep 2016 at 21:38, Stuart McLachlan wrote: > > > > > > > > > I agree it's not a good alternative for multi user systems, > > > > > but SQLite is an excellent solution for single user > > > > > applications. There are reasons why it is so ubiquitous. > > > > > > > > > > It's free. :) > > > > > > > > > > The same database file is usable on many platforms including > > > > > Windows, Linux,Android and iOS. > > > > > > > > > > It's fast, lightweight and versatile. > > > > > > > > > > For Windows, it's just one native 500KB DLL and no > > > > > dependencies. > > > > > > > > > > While it doesn't have a huge range of dataypes, there's not > > > > > much that you can't do with a 8 bytes integers and floats > > > > > (twice the size that Access offers) and a default maximum > > > > > size for text of 1 billion characters (try indexinga field of > > > > > more than 255 characters in Access), and the same size of > > > > > BLOBs. There are plenty of built in functions for Date > > > > > manipulation that make the use of a dedicated Date/Time > > > > > datatypes unnecessary including UnixTime (which is a real > > > > > PITA to handle in Access). > > > > > > > > > > You're right that many (including me) use it because we "don't > > > > > know any better". That's because in its niche, there is no > > > > > better. > > > > > > > > > > :) > > > > > > > > > > > > > > > > > > > > On 24 Sep 2016 at 8:35, Gustav Brock wrote: > > > > > > > > > > > Hi Arthur > > > > > > > > > > > > I can't add much to the comments already posted, except for > > > > > > one thing: SQLite is certainly not an alternative for an > > > > > > accdb or any other decent database as SQLite is severely > > > > > > limited regarding data types. In fact, I think why so many > > > > > > use it, is only because they just don't know better. > > > > > > > > > > > > > > > > -- > > > > > 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 darryl at whittleconsulting.com.au Thu Sep 29 17:33:36 2016 From: darryl at whittleconsulting.com.au (Darryl Collins) Date: Thu, 29 Sep 2016 22:33:36 +0000 Subject: [AccessD] Basic Question (Probably) that I just don't know In-Reply-To: References: <58f56102-a12c-c6ba-188d-60734c27662f@gmail.com> <100512585.79125530.1473561041881.JavaMail.root@shaw.ca> <57E3AD4A0200006B00011D92@neblnx09.niagaracounty.com> <5F2A2D5E5E7B489A8FA0E366BD268F26@XPS> <57E3C0860200006B00011DA3@neblnx09.niagaracounty.com> <8328E08019E3462BB288758C00CF384F@XPS> <57E3E3A60200006B00011DC9@neblnx09.niagaracounty.com> <651D2FC040234E1BB035E3A1913B1A55@XPS> <4CD740BF672F462FAAD027CE24E23D01@XPS> <9E6898197033432196E0C00666AF8AFF@XPS> Message-ID: Re: SQL Server. Have a similar issue. The drivers that I have found help push folks into SQL Server MS are thing like: - can run other processes whist running a query in SQL Server (can't do that in Access) - Search and replace in the SQL text editor within the UI - Faster to run queries (usually). Anyway.... There are others, but am in a hurry. Cheers Darryl. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Tuesday, 27 September 2016 4:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Basic Question (Probably) that I just don't know I prefer 2010 over 2007, but prefer the layout of 2003 and earlier versions. I really don't do too much in Access these days, more SQL Server. I'm trying to convert the rest of my co-workers over to SQL Server Management Studio, but I can't get them to get away from the Access QBE / GUI. They love linked tables/views and doing everything from Access. :( On Sat, Sep 24, 2016 at 7:23 AM, Jim Dettman wrote: > David, > > Not sure if you consider A2010 "good" or not, but A2010 was the last > version that had support for ADP's, replication, .DBF's, and JET 3.x. > Here's the list of everything that was dropped starting with A2013: > > https://support.office.com/en-us/article/Discontinued- > features-and-modified- > functionality-in-Access-2013-BC006FC3-5B48-499E-8C7D-9A2DFEF68E2F > > and FWIW, A2010 is pretty solid on the desktop side as long as you > moving forward. Most of the issues with it were related to folks > using 2010 and then trying to drop back to 2007. > > Jim. > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of David McAfee > Sent: Friday, September 23, 2016 03:18 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Basic Question (Probably) that I just don't > know > > Jim, I think you meant to say: > A2010 was the last good version of Access. > > Actually: > A2003 was the last good version of Access. ;) > > I miss ADPs. > > > On Fri, Sep 23, 2016 at 11:39 AM, Jim Dettman > wrote: > > > << > > 1. Does Access still support replication? > > >> > > > > Starting with A2013, no. A2010 was the last "full feature" version > > of Access. Replication was dropped along with ADP's. > > > > << > > 2. Why would a seasoned developer would choose an MDB or ACCDB back > > end when so many actual database servers for free (SQL Express, > > MySQL, > MariaDB, > > PostGreSQL, SQLite... the list goes on), > > >> > > > > A seasoned developer probably would not. > > > > Only thing I could think of is if someone wanted to take advantage > > of something in ACE which is not in any other DB (say the attachment > > data type), which is being driven by a customer requirement. > > > > The other reasons might be data type incompatibility (i.e. the fun > > you > can > > have with floating point and bit fields), and last but not least, > > just > ease > > of use. Even today, there is still a niche (now very small though) > where > > a > > ACE DB BE might make sense. Someone with no real IT staff, small > > databases, and small number of users. > > > > But more often that not, some other BE is the way to go as you say. > > > > << > > One last thought: the port from an Access BE to a genuine server DB > > facilitates the move to web/mobile apps, and that is a > rapidly-increasing, > > even dominant market segment. So Access developers have to be > > planning an Exit Strategy, since it is quite clear that MS has > > little or no interest > in > > providing one. > > >> > > > > I can't say much on that front other than to say pay attention to > > what > is > > being asked for on Access user voice: > > > > https://access.uservoice.com > > > > > > You'll find that what most are looking for is improvements in the > desktop > > and I think Microsoft is listening to that. While some people are > looking > > for a web product, most seem to want enhancements in the desktop product. > > > > Web apps are certainly gaining ground, in many businesses it's > > still a more traditional approach to applications for back office > > work. > > > > Jim. > > > > > > > > -- > > 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