From accessd666 at yahoo.com Fri Jul 1 00:38:29 2005 From: accessd666 at yahoo.com (Sad Der) Date: Thu, 30 Jun 2005 22:38:29 -0700 (PDT) Subject: [AccessD] Check date-time problem In-Reply-To: <42C44811.6050000@shaw.ca> Message-ID: <20050701053829.34085.qmail@web31608.mail.mud.yahoo.com> Example: current time=21:37 StartPauzeAt=21:00 EndPauzeAt=3:00 The following statement checks if current time is between startpauze and endpauze: If (dtmCurrentTime > dtmStartPauze) And (dtmCurrentTime < dtmEndPauze) Then (dtmCurrentTime > dtmStartPauze) = TRUE 21:37 > 21:00 = TRUE (dtmCurrentTime < dtmEndPauze) = FALSE 21:37 < 3:00 = FALSE!! So the problem is that I'm missing a day factor here. How can I implement this. The StartPauzeAt and EndPauzeAt are flexibel and can be changed at any time. So what I need is: If dtmCrntDateTime > dtmStartPauze AND dtmCrntDateTime < dtmStartPauze then IF 1-jun-2005 21:37 > 1-jun-2005 21:00 AND 1-jun-2005 21:37 < 2-jun-2005 3:00 Hope this makes sence. SD --- MartyConnelly wrote: > So what is the problem, are you running more than 24 > hours? > > Sad Der wrote: > > >Hi group, > > > >I've got an ini file with the following values: > >[PauzeScheduling] > >StartPauzeAt=21:00 > >EndPauzeAt=3:00 > > > >I've got a 'service' that checks if the > Currenttime: > >dtmCurrentTime = CDate(Format(Time(), "hh:mm")) > > > >Is between these values. > > > >It worked fine. Settings used to be within a day. > >Somebody has got to have dealt with this problem > >before. > >What is a (very) solid way to handle this problem? > >Keep in mind that this is a long running schedule > >(e.g. forever?!) > > > >Thnx. > >SD > > > >Here's my code: > > > >'========================================================================================= > >' Function Name : PauzeScheduling > >' Parameters : dtmCurrentTime => Current > >Time' Return value : (Boolean) True: > >CurrentTime between scheduled times > >' Purpose : Check if current time is > >within the scheduled times of the ini file > >' Assumptions : --- > >' Uses : --- > >' Created : 2005-Jun-03 08:55, SaDe > >' Modifications : > >'========================================================================================= > >Public Function PauzeScheduling(dtmCurrentTime As > >Date) As Boolean > > Dim dtmStartPauze As Date > > Dim dtmEndPauze As Date > > > > On Error GoTo PauzeScheduling_Error > > > > dtmStartPauze = > >CDate(Format(g_oGenSet.GetValue("PauzeScheduling", > >"StartPauzeAt"), "HH:mm")) > > dtmEndPauze = > >CDate(Format(g_oGenSet.GetValue("PauzeScheduling", > >"EndPauzeAt"), "hh:mm")) > > > > > > If (dtmCurrentTime > dtmStartPauze) And > >(dtmCurrentTime < dtmEndPauze) Then > > PauzeScheduling = True > > Else > > PauzeScheduling = False > > End If > > > >PauzeScheduling_Exit: > > ' Collect your garbage here > > Exit Function > >PauzeScheduling_Error: > > ' Collect your garbage here > > Call > >g_oGenErr.Throw("PauzeScheduling.PauzeScheduling", > >"PauzeScheduling") > >End Function > > > > > >__________________________________________________ > >Do You Yahoo!? > >Tired of spam? Yahoo! Mail has the best spam > protection around > >http://mail.yahoo.com > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com From stuart at lexacorp.com.pg Fri Jul 1 01:51:22 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 01 Jul 2005 16:51:22 +1000 Subject: [AccessD] Check date-time problem In-Reply-To: <20050701053829.34085.qmail@web31608.mail.mud.yahoo.com> References: <42C44811.6050000@shaw.ca> Message-ID: <42C5748A.23305.AE32B@stuart.lexacorp.com.pg> On 30 Jun 2005 at 22:38, Sad Der wrote: > Example: > > current time=21:37 > StartPauzeAt=21:00 > EndPauzeAt=3:00 > Is StartPauzeAt always later than EndPauzeAt? If not you need two different conditions. If StartPauzeAt > EndPauseAt then 'wraps at midnight If currenttime > StartPauzeAt or currenttime < EndPauzeAt then ..... 'Pauze end If Else ' all in the same day If current currenttime > StartPauzeAt and currenttime < EndPauzeAt then .... 'Pause End If End If -- Stuart From Gustav at cactus.dk Fri Jul 1 04:10:11 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 01 Jul 2005 11:10:11 +0200 Subject: [AccessD] Check date-time problem Message-ID: Hi SD This should work for you: Public Function IsTimeBetween( _ ByVal dteTimeFrom As Date, _ ByVal dteTimeTo As Date, _ ByVal dteTimeToCompare As Date, _ Optional ByVal booTimeToCompareIsNextDay As Boolean) _ As Boolean ' Returns True if dteTimeToCompare falls between dteTimeFrom and dteTimeTo. ' ' 2002-04-06. Cactus Data ApS, CPH. Dim booTimeIsBetween As Boolean If DateDiff("s", dteTimeTo, dteTimeFrom) > 0 Then dteTimeTo = DateAdd("d", 1, dteTimeTo) End If If booTimeToCompareIsNextDay = True Then dteTimeToCompare = DateAdd("d", 1, dteTimeToCompare) End If If DateDiff("s", dteTimeFrom, dteTimeToCompare) >= 0 And _ DateDiff("s", dteTimeToCompare, dteTimeTo) >= 0 Then booTimeIsBetween = True End If IsTimeBetween = booTimeIsBetween End Function /gustav >>> accessd666 at yahoo.com 07/01 7:38 am >>> Example: current time=21:37 StartPauzeAt=21:00 EndPauzeAt=3:00 The following statement checks if current time is between startpauze and endpauze: If (dtmCurrentTime > dtmStartPauze) And (dtmCurrentTime < dtmEndPauze) Then (dtmCurrentTime > dtmStartPauze) = TRUE 21:37 > 21:00 = TRUE (dtmCurrentTime < dtmEndPauze) = FALSE 21:37 < 3:00 = FALSE!! So the problem is that I'm missing a day factor here. How can I implement this. The StartPauzeAt and EndPauzeAt are flexibel and can be changed at any time. So what I need is: If dtmCrntDateTime > dtmStartPauze AND dtmCrntDateTime < dtmStartPauze then IF 1-jun-2005 21:37 > 1-jun-2005 21:00 AND 1-jun-2005 21:37 < 2-jun-2005 3:00 Hope this makes sence. SD --- MartyConnelly wrote: > So what is the problem, are you running more than 24 > hours? > > Sad Der wrote: > > >Hi group, > > > >I've got an ini file with the following values: > >[PauzeScheduling] > >StartPauzeAt=21:00 > >EndPauzeAt=3:00 > > > >I've got a 'service' that checks if the > Currenttime: > >dtmCurrentTime = CDate(Format(Time(), "hh:mm")) > > > >Is between these values. > > > >It worked fine. Settings used to be within a day. > >Somebody has got to have dealt with this problem > >before. > >What is a (very) solid way to handle this problem? > >Keep in mind that this is a long running schedule > >(e.g. forever?!) > > > >Thnx. > >SD > > > >Here's my code: > > > >'========================================================================================= > >' Function Name : PauzeScheduling > >' Parameters : dtmCurrentTime => Current > >Time' Return value : (Boolean) True: > >CurrentTime between scheduled times > >' Purpose : Check if current time is > >within the scheduled times of the ini file > >' Assumptions : --- > >' Uses : --- > >' Created : 2005-Jun-03 08:55, SaDe > >' Modifications : > >'========================================================================================= > >Public Function PauzeScheduling(dtmCurrentTime As > >Date) As Boolean > > Dim dtmStartPauze As Date > > Dim dtmEndPauze As Date > > > > On Error GoTo PauzeScheduling_Error > > > > dtmStartPauze = > >CDate(Format(g_oGenSet.GetValue("PauzeScheduling", > >"StartPauzeAt"), "HH:mm")) > > dtmEndPauze = > >CDate(Format(g_oGenSet.GetValue("PauzeScheduling", > >"EndPauzeAt"), "hh:mm")) > > > > > > If (dtmCurrentTime > dtmStartPauze) And > >(dtmCurrentTime < dtmEndPauze) Then > > PauzeScheduling = True > > Else > > PauzeScheduling = False > > End If > > > >PauzeScheduling_Exit: > > ' Collect your garbage here > > Exit Function > >PauzeScheduling_Error: > > ' Collect your garbage here > > Call > >g_oGenErr.Throw("PauzeScheduling.PauzeScheduling", > >"PauzeScheduling") > >End Function > > > > > >__________________________________________________ > >Do You Yahoo!? > >Tired of spam? Yahoo! Mail has the best spam > protection around > >http://mail.yahoo.com > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Jul 1 10:01:50 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 01 Jul 2005 17:01:50 +0200 Subject: [AccessD] OT: Friday inspiration Message-ID: Hi all What a boring Friday afternoon. Much more fun to study the flash site on the Turning Torso, a masterpiece in sculptural architecture under construction at Malm?, the Swedish town 25 km east of Copenhagen, with a height of 190 m: http://www.turningtorso.com/ Note the Menu top right. Have fun! /gustav From jwcolby at colbyconsulting.com Fri Jul 1 10:27:57 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 01 Jul 2005 11:27:57 -0400 Subject: [AccessD] OT: Friday inspiration In-Reply-To: Message-ID: <001401c57e51$758924a0$6c7aa8c0@ColbyM6805> Is it a windmill by any chance? Cool looking structure. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 01, 2005 11:02 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Friday inspiration Hi all What a boring Friday afternoon. Much more fun to study the flash site on the Turning Torso, a masterpiece in sculptural architecture under construction at Malm?, the Swedish town 25 km east of Copenhagen, with a height of 190 m: http://www.turningtorso.com/ Note the Menu top right. Have fun! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Jul 1 10:42:43 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 01 Jul 2005 17:42:43 +0200 Subject: [AccessD] OT: Friday inspiration Message-ID: Hi John Many ways to look at this. Notice the pictures of the interior. No window is rectangular. /gustav >>> jwcolby at colbyconsulting.com 07/01 5:27 pm >>> Is it a windmill by any chance? Cool looking structure. From cfoust at infostatsystems.com Fri Jul 1 10:57:22 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 1 Jul 2005 08:57:22 -0700 Subject: [AccessD] OT: Friday inspiration Message-ID: Makes it hard to find window shades! Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, July 01, 2005 8:43 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT: Friday inspiration Hi John Many ways to look at this. Notice the pictures of the interior. No window is rectangular. /gustav >>> jwcolby at colbyconsulting.com 07/01 5:27 pm >>> Is it a windmill by any chance? Cool looking structure. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Fri Jul 1 11:13:54 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 1 Jul 2005 11:13:54 -0500 Subject: [AccessD] Storing variable names in a table Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723376B3@corp-es01.fleetpride.com> Sad, Thank you for the reply. I'm experimenting with your suggestion. I'll let you know how it goes. Jim Hale -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Thursday, June 30, 2005 12:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Storing variable names in a table Jim, I'm probably missing the big picture here but i'll give it a try. Suppose you have a table with the following fields: Query (Text) Parameter (Text) ParameterType (Text) It has the values: Query Parameter ParameterType A strareacode String A intCo Integer A "AreaActSummaryACT" String A "dept1" String A .Worksheets(y).Range("a11") Range You could add all parameters and there types in an array Something like this: intCntr = Select count(*) from ParameterTable where Query = "A" dim avarParameter() as variant redim avarparameter(1,intCntr) So now you now how to convert the parameter types. for lngArrayCntr = 0 to UBOUND(avarparameter) ConvertDataType(avarparameter(1,lngArrayCntr) next lngArrayCntr Did I mis it completely? :-) HTH SD --- "Hale, Jim" wrote: > In a class I have created a method that reads query > names from a table and > opens the appropriate record sets. There may be any > number of queries that > are run by a single method call. For parameter > queries life is more > complicated. I created a method which loads the > variables into a ParmArray > and then sets the query parameters to the correct > variable. The problem with > this is I can only run one parameter query at a time > from my method. a > typical call looks like: > > 'set parameter values > Call Xcel.QryParmValues(strareacode, intCo, > "AreaActSummaryACT", "dept1", > .Worksheets(y).Range("a11")) > ' read query names from table and open the > recorsets. > Xcel.MultiplePasteExcel (119) > > 119 is the case number so the method knows which the > query names to pull > from a table. Ideally I would like to store all the > parameters for all the > queries in a table and extract them as needed. > "AreaActSummaryACT", and > "dept1" are no problem since they are strings. What > I don't know how to do > is store variable names such as strareacode, intCo > as strings in a table and > then assign them the correct value from the > procedure all this is running > in. Worksheets(y).Range("a11")) will also be a > challenge to store in a table > (it picks up the parameter value from an Excel > worksheet) but I may be able > use eval() to create the correct value. If I can > solve these problems I will > be able to populate Excel workbooks with one method > call since all the info > needed to create recordsets with data to paste into > worksheets will reside > in a table. If I can't store the variable names in a > table I quess I could > expand the QryParmValues method to handle a multi > dimensional array but I > am not at all sure how to do this either. Any help > will be appreciated. > > Jim Hale > > > > *********************************************************************** > The information transmitted is intended solely for > the individual or > entity to which it is addressed and may contain > confidential and/or > privileged material. Any review, retransmission, > dissemination or > other use of or taking action in reliance upon this > information by > persons or entities other than the intended > recipient is prohibited. > If you have received this email in error please > contact the sender and > delete the material from any computer. As a > recipient of this email, > you are responsible for screening its contents and > the contents of any > attachments for the presence of viruses. No > liability is accepted for > any damages caused by any virus transmitted by this email.> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From carbonnb at sympatico.ca Fri Jul 1 11:56:47 2005 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 01 Jul 2005 12:56:47 -0400 Subject: [AccessD] OT: Friday inspiration In-Reply-To: Message-ID: On 1 Jul 2005 at 17:01, Gustav Brock wrote: > What a boring Friday afternoon. Much more fun to study the flash site > on the Turning Torso, a masterpiece in sculptural architecture under > construction at Malm?, the Swedish town 25 km east of Copenhagen, with > a height of 190 m: > > http://www.turningtorso.com/ It is a cool building. I was actually watching a program on Discovery Channel Canada last night about this. 7 days to build 1 floor. For those that get Discovery Canada and want to see it, it's on again today (July 1) at 4pm ET and again on July 3rd at 8am ET. It was one of the Extreme Engeneering episodes if you want to try and find it on a local channel. -- Bryan Carbonnell - carbonnb at sympatico.ca Blessed are they who can laugh at themselves, for they shall never cease to be amused. From martyconnelly at shaw.ca Fri Jul 1 15:59:56 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 01 Jul 2005 13:59:56 -0700 Subject: [AccessD] OT: Hockey Stick programs and global warming on Canada Day References: Message-ID: <42C5AECC.7040803@shaw.ca> Does your code measure up to this standard. This is just a quick peek at the code and the stats used. Not a argument for or against each position. This is part of the analysis, that forms the basis for billions of dollars being spent on Global Warming. Golub's CSVD routine is kind of old and if I remember right machine dependant. SVD routines (Singular Value Decomposition) are a method of solving linear least squares problems. The argument http://en.wikipedia.org/wiki/Temperature_record_of_the_past_1000_years Ok, now here is some of the original code from Mann's site, about 400 lines of text. Note the use of goto's and other achronisms. This isn't a plug for use of IDL language. ftp://holocene.evsc.virginia.edu/pub/MBH98/TREE/ITRDB/NOAMER/pca-noamer.f what routine does remove the 1902-1980 mean calc the SD over this period divide the whole series by this SD, point by point remove the linear trend from the new 1902-1980 series compute the SD again for 1902-1980 of the detrended data divide the whole series by this SD. Be aware that not all the software code and data has been fully released so their is much bickering involved. More info: William Connolley's view Anatartic Climate Modeler http://groups-beta.google.com/group/sci.environment/msg/9a3673c6a0d64c1f?hl=en&lr=&c2coff=1&rnum=5 Answer to natures rejection of McKitrick and McIntyre rejection of Mann's data and Analysis http://www.uoguelph.ca/~rmckitri/research/fallupdate04/update.fall04.html Another blog http://www.j-bradford-delong.net/movable_type/2004-2_archives/000406.html C SVD routines from "Numerical Recipes in C" book online can be had here http://www.library.cornell.edu/nr/cbookcpdf.html C SVD routines from "Numerical Recipes in C" book online can be had here http://www.library.cornell.edu/nr/cbookcpdf.html -- Marty Connelly Victoria, B.C. Canada From fhtapia at gmail.com Fri Jul 1 16:14:39 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 1 Jul 2005 14:14:39 -0700 Subject: [AccessD] I have a webservice... now what? Message-ID: Ok, so I have a webservices that returns an XML reocordset. I'd like to save that recordset w/ ado to an XML file... anybody have any samples? -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From martyconnelly at shaw.ca Fri Jul 1 18:35:06 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 01 Jul 2005 16:35:06 -0700 Subject: [AccessD] I have a webservice... now what? References: Message-ID: <42C5D32A.7060106@shaw.ca> Ok, here is some code to get you started it reads a northwind table and outputs three types of files XML Flat file format just elements plus initial XML PI XML ADTG format ( the type with zRows schema) suitable to be read directly back into an mdb CSV file Where you want to change this code is where I load the northwind SQL recordset. Replace it by what you have returned from XMLHTTP by oDOM.loadXML (objXMLHTTP.responseXML.xml) What you are getting returned in response object is just one long xml string. Application.ExportXML won't work here as it has to be an Access Object to be output. You might also want to use .validateonparse method to error check the xml you are getting initally. If you wanted to once you have your returned xml in the dom you could use Xpath to grab specific fields. Sub readmdb() Dim sSQL As String Dim iNumRecords As Integer Dim oConnection As ADODB.Connection Dim oRecordset As ADODB.Recordset Dim rstSchema As ADODB.Recordset Dim sConnStr As String 'sConnStr = "Provider=SQLOLEDB;Data Source=MySrvr;" & _ "Initial Catalog=Northwind;User Id=MyId;Password=123aBc;" ' Connection "Provider=Microsoft.Jet.OLEDB.3.51;Data Source=D:\DataBases\Northwind.mdb" 'Access 97 version Jet 3.51 ' sConnStr = "Provider=Microsoft.Jet.OLEDB.3.51;" & _ "Data Source=C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb;" & _ "User Id=admin;" & "Password=" 'Access XP Jet 4 sConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb;" & _ "User Id=admin;" & "Password=" 'On Error GoTo GetDataError ' Create and Open the Connection object. Set oConnection = New ADODB.Connection oConnection.CursorLocation = adUseClient oConnection.Open sConnStr sSQL = "SELECT ProductID, ProductName, CategoryID, UnitPrice " & _ "FROM Products" ' Create and Open the Recordset object. Set oRecordset = New ADODB.Recordset oRecordset.Open sSQL, oConnection, adOpenStatic, _ adLockBatchOptimistic, adCmdText With oRecordset Debug.Print .RecordCount Dim i As Long Dim strOut As String strOut = "" .MoveFirst For i = 0 To .RecordCount - 1 strOut = strOut & !ProductName strOut = strOut & "," & !CategoryID strOut = strOut & "," & !UnitPrice strOut = strOut & vbCrLf .MoveNext Next i End With 'Save as Access csv file WriteFile "C:\Access files\xmlfiles\strout" & Format(Now, "yyyymmddhhmmss") & ".xml", strOut Dim oDOM As MSXML2.DOMDocument Dim oXML As MSXML2.DOMDocument Dim oXSL As MSXML2.DOMDocument Dim strHTML As String Dim strTransform As String Set oDOM = CreateObject("MSXML2.DOMDocument") oDOM.async = False 'Load the XML DOM 'Put recordset into XML Dom ' Here you would load your xml string ' read from whatever is returned by xmlhttp or xnlhttpserver into the XML DOM ' I forget if it is objXMLHTTP.responseXML.xml or objXMLHTTP.responseXML ' Set objXMLHTTP = New MSXML2.XMLHTTP ' Debug.Print "returned=" & objXMLHTTP.responseXML.xml ' oDOM.loadXML (objXMLHTTP.responseXML.xml) ' in place of line below oRecordset.Save oDOM, adPersistXML '1 magic number Set oXSL = CreateObject("MSXML2.DOMDocument") oXSL.async = False oXSL.Load "C:\Access files\xmlfiles\ADOGeneric.xsl" 'your XSLT stylesheet save as unicode not ansii 'note encoding as european language encoding need for swedish characters 'you could scan the the string and convert to unicode escape characters like ' strTransform = oDOM.transformNode(oXSL) strHTML = "" & vbCrLf & _ "" & strTransform & "" 'Save as flat xml file WriteFile "C:\Access files\xmlfiles\ADOGenericProduct" & Format(Now, "yyyymmddhhmmss") & ".xml", strHTML ' 'the above XSLT transform with xsl file converts this to a flat XML format without rowset schema 'this will save to an XML file with ADTG MS Format suitable to dump back into table or recordset oRecordset.Save "C:\Access files\xmlfiles\ADOGenericProductADG.xml", adPersistXML Set oDOM = Nothing Set oXML = Nothing Set oXSL = Nothing Set oConnection = Nothing Set oRecordset = Nothing End Sub Public Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) ' Dump XML String to File for debugging Dim fhFile As Integer fhFile = FreeFile ' Debug.Print "Length of string=" & Len(sContents) Open sFileName For Output As #fhFile Print #fhFile, sContents; Close #fhFile Debug.Print "Out File" & sFileName End Sub ADOgeneric.xsl file cut and paste and save in notepad as Unicode not Ansi This is XSLT file that strips all the extraneous rowset schema from ADTG formated xml file to create flat xml <row> < > </ > </row> Francisco Tapia wrote: >Ok, so I have a webservices that returns an XML reocordset. I'd like >to save that recordset w/ ado to an XML file... anybody have any >samples? > > > > > -- Marty Connelly Victoria, B.C. Canada From fhtapia at gmail.com Fri Jul 1 18:58:15 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 1 Jul 2005 16:58:15 -0700 Subject: [AccessD] I have a webservice... now what? In-Reply-To: <42C5D32A.7060106@shaw.ca> References: <42C5D32A.7060106@shaw.ca> Message-ID: Very COOL, Thanks for the FAST response! :) On 7/1/05, MartyConnelly wrote: > Ok, here is some code to get you started it reads a northwind table > and outputs three types of files > XML Flat file format just elements plus initial XML PI > XML ADTG format ( the type with zRows schema) suitable to be read > directly back into an mdb > CSV file > > Where you want to change this code is where I load the northwind SQL > recordset. > Replace it by what you have returned from XMLHTTP by oDOM.loadXML > (objXMLHTTP.responseXML.xml) > What you are getting returned in response object is just one long xml > string. > > Application.ExportXML won't work here as it has to be an Access Object > to be output. > You might also want to use .validateonparse method to error check the > xml you are getting initally. > > If you wanted to once you have your returned xml in the dom you could > use Xpath > to grab specific fields. > > Sub readmdb() > > Dim sSQL As String > Dim iNumRecords As Integer > > Dim oConnection As ADODB.Connection > Dim oRecordset As ADODB.Recordset > Dim rstSchema As ADODB.Recordset > Dim sConnStr As String > > 'sConnStr = "Provider=SQLOLEDB;Data Source=MySrvr;" & _ > "Initial Catalog=Northwind;User Id=MyId;Password=123aBc;" > ' Connection "Provider=Microsoft.Jet.OLEDB.3.51;Data > Source=D:\DataBases\Northwind.mdb" > > 'Access 97 version Jet 3.51 > ' sConnStr = "Provider=Microsoft.Jet.OLEDB.3.51;" & _ > "Data Source=C:\Program Files\Microsoft > Office\Office\Samples\Northwind.mdb;" & _ > "User Id=admin;" & "Password=" > 'Access XP Jet 4 > sConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ > "Data Source=C:\Program Files\Microsoft > Office\Office\Samples\Northwind.mdb;" & _ > "User Id=admin;" & "Password=" > > 'On Error GoTo GetDataError > > ' Create and Open the Connection object. > Set oConnection = New ADODB.Connection > oConnection.CursorLocation = adUseClient > oConnection.Open sConnStr > > sSQL = "SELECT ProductID, ProductName, CategoryID, UnitPrice " & _ > "FROM Products" > > ' Create and Open the Recordset object. > Set oRecordset = New ADODB.Recordset > oRecordset.Open sSQL, oConnection, adOpenStatic, _ > adLockBatchOptimistic, adCmdText > With oRecordset > Debug.Print .RecordCount > Dim i As Long > Dim strOut As String > strOut = "" > .MoveFirst > For i = 0 To .RecordCount - 1 > strOut = strOut & !ProductName > strOut = strOut & "," & !CategoryID > strOut = strOut & "," & !UnitPrice > strOut = strOut & vbCrLf > .MoveNext > Next i > End With > 'Save as Access csv file > WriteFile "C:\Access files\xmlfiles\strout" & Format(Now, > "yyyymmddhhmmss") & ".xml", strOut > > Dim oDOM As MSXML2.DOMDocument > Dim oXML As MSXML2.DOMDocument > Dim oXSL As MSXML2.DOMDocument > Dim strHTML As String > Dim strTransform As String > > Set oDOM = CreateObject("MSXML2.DOMDocument") > oDOM.async = False > 'Load the XML DOM > 'Put recordset into XML Dom > ' Here you would load your xml string > ' read from whatever is returned by xmlhttp or xnlhttpserver into the > XML DOM > ' I forget if it is objXMLHTTP.responseXML.xml or objXMLHTTP.responseXML > ' Set objXMLHTTP = New MSXML2.XMLHTTP > ' Debug.Print "returned=" & objXMLHTTP.responseXML.xml > ' oDOM.loadXML (objXMLHTTP.responseXML.xml) > ' in place of line below > oRecordset.Save oDOM, adPersistXML '1 magic number > > Set oXSL = CreateObject("MSXML2.DOMDocument") > oXSL.async = False > oXSL.Load "C:\Access files\xmlfiles\ADOGeneric.xsl" 'your XSLT > stylesheet save as unicode not ansii > 'note encoding as european language encoding need for swedish characters > 'you could scan the the string and convert to unicode escape characters > like ' > strTransform = oDOM.transformNode(oXSL) > strHTML = "" & vbCrLf & _ > "" & strTransform & "" > 'Save as flat xml file > WriteFile "C:\Access files\xmlfiles\ADOGenericProduct" & Format(Now, > "yyyymmddhhmmss") & ".xml", strHTML > ' > 'the above XSLT transform with xsl file converts this to a flat XML > format without rowset schema > > 'this will save to an XML file with ADTG MS Format suitable to dump > back into table or recordset > oRecordset.Save "C:\Access files\xmlfiles\ADOGenericProductADG.xml", > adPersistXML > > Set oDOM = Nothing > Set oXML = Nothing > Set oXSL = Nothing > Set oConnection = Nothing > Set oRecordset = Nothing > End Sub > Public Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) > ' Dump XML String to File for debugging > Dim fhFile As Integer > fhFile = FreeFile > ' Debug.Print "Length of string=" & Len(sContents) > Open sFileName For Output As #fhFile > Print #fhFile, sContents; > Close #fhFile > Debug.Print "Out File" & sFileName > End Sub > > ADOgeneric.xsl file cut and paste and save in notepad as Unicode not Ansi > This is XSLT file that strips all the extraneous rowset schema from ADTG > formated xml file to create flat xml > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:z="#RowsetSchema"> > > > > > > > > <row> > > < > > > > > </ > > > > > </row> > > > > > Francisco Tapia wrote: > > >Ok, so I have a webservices that returns an XML reocordset. I'd like > >to save that recordset w/ ado to an XML file... anybody have any > >samples? > > > > > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From artful at rogers.com Sat Jul 2 12:18:45 2005 From: artful at rogers.com (Arthur Fuller) Date: Sat, 2 Jul 2005 13:18:45 -0400 Subject: [AccessD] Puzzling Form hebaviour Access 2003 In-Reply-To: Message-ID: <200507021718.j62HImR18194@databaseadvisors.com> I'm working on an inherited app which contains one huge table with numerous fields, distributed in groups across about 6 tabs. There are no subforms -- the whole form displays just one row -- 20 controls on the first tab page, 20 on the second, etc. Whenever I move the mouse over the form, most or all of the controls on the displayed tab page sort of jiggle or shimmer. They don't change values, and it happens too quickly to think they are re-querying, but nevertheless it is annoying. I've checked such event controls as keydown, onCurrent etc. and nothing looks as if it's causing this annoying behaviour. Is it possibly just because there are so many controls? Incidentally, I plan to normalise this table and that may make this problem of multiple nested tables inside one go away, but in the interim I'm wondering about this. Any clues where to look? TIA, Arthur From Gustav at cactus.dk Sat Jul 2 12:57:55 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 02 Jul 2005 19:57:55 +0200 Subject: [AccessD] Puzzling Form hebaviour Access 2003 Message-ID: Hi Arthur Could it be the same issue that Erwin and Marty dealt with 2004-11-30: Form flickers like hell in A2K3 /gustav >>> artful at rogers.com 07/02 7:18 pm >>> I'm working on an inherited app which contains one huge table with numerous fields, distributed in groups across about 6 tabs. There are no subforms -- the whole form displays just one row -- 20 controls on the first tab page, 20 on the second, etc. Whenever I move the mouse over the form, most or all of the controls on the displayed tab page sort of jiggle or shimmer. They don't change values, and it happens too quickly to think they are re-querying, but nevertheless it is annoying. I've checked such event controls as keydown, onCurrent etc. and nothing looks as if it's causing this annoying behaviour. Is it possibly just because there are so many controls? Incidentally, I plan to normalise this table and that may make this problem of multiple nested tables inside one go away, but in the interim I'm wondering about this. Any clues where to look? TIA, Arthur From artful at rogers.com Sat Jul 2 23:53:50 2005 From: artful at rogers.com (Arthur Fuller) Date: Sun, 3 Jul 2005 00:53:50 -0400 Subject: [AccessD] Puzzling Form hebaviour Access 2003 In-Reply-To: Message-ID: <200507030453.j634rkR21571@databaseadvisors.com> I don't know about that, but will try to follow up that lead. What I do know is that there are LOTS of controls on this form, all stemming from a single table (it's more than 100, but I'm not sure of the exact count). Nuts table structure, I readily admit, but that's not the point. I think I'm going to try making the tabs invisible one by one and see at what point the problem goes away. Also, I have added a bunch of other forms to this app, some relatively complex (i.e. a listbox that serves as a finder, to the left of a bunch of columns copied from an autoform, and after that an embedded form/subform) and these forms do not suffer from this flicker issue. I'm guessing at this point that hiding one or more tabs on the form is going to make the flicker go away. If correct, I will then reveal one more form and start hiding individual controls to see at which number the flicker appears. I will report results as soon as I have some. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: July 2, 2005 1:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Puzzling Form hebaviour Access 2003 Hi Arthur Could it be the same issue that Erwin and Marty dealt with 2004-11-30: Form flickers like hell in A2K3 /gustav From artful at rogers.com Sat Jul 2 23:59:26 2005 From: artful at rogers.com (Arthur Fuller) Date: Sun, 3 Jul 2005 00:59:26 -0400 Subject: [AccessD] Puzzling Form hebaviour Access 2003 In-Reply-To: <200507030453.j634rkR21571@databaseadvisors.com> Message-ID: <200507030459.j634xLR25256@databaseadvisors.com> More on this... I have just hidden all but two of the heavily populated tab pages, and I still have the flicker. This is so strange it is beginning to interest me, rather than being just an annoying problem. I'm going to rebuild this form from scratch, page by page, and see where the flicker begins to happen. Many unbillable hours, but at least I will know! A. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: July 3, 2005 12:54 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 I don't know about that, but will try to follow up that lead. What I do know is that there are LOTS of controls on this form, all stemming from a single table (it's more than 100, but I'm not sure of the exact count). Nuts table structure, I readily admit, but that's not the point. I think I'm going to try making the tabs invisible one by one and see at what point the problem goes away. Also, I have added a bunch of other forms to this app, some relatively complex (i.e. a listbox that serves as a finder, to the left of a bunch of columns copied from an autoform, and after that an embedded form/subform) and these forms do not suffer from this flicker issue. I'm guessing at this point that hiding one or more tabs on the form is going to make the flicker go away. If correct, I will then reveal one more form and start hiding individual controls to see at which number the flicker appears. I will report results as soon as I have some. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: July 2, 2005 1:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Puzzling Form hebaviour Access 2003 Hi Arthur Could it be the same issue that Erwin and Marty dealt with 2004-11-30: Form flickers like hell in A2K3 /gustav From bchacc at san.rr.com Sun Jul 3 08:48:34 2005 From: bchacc at san.rr.com (bchacc at san.rr.com) Date: Sun, 3 Jul 2005 09:48:34 -0400 Subject: [AccessD] Puzzling Form hebaviour Access 2003 Message-ID: <97460-22005703134834456@M2W103.mail2web.com> Arthur: Check the archives. I had this problem in an app and fixed it but can't remember how at the moment. I'm on vacation this week and I'm not supposed to work but if I get a chance later I'll look at that app and see if I can remember what the tweak was. IIRC it was somerthing pretty simple. Rocky Original Message: ----------------- From: Arthur Fuller artful at rogers.com Date: Sun, 03 Jul 2005 00:59:26 -0400 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 More on this... I have just hidden all but two of the heavily populated tab pages, and I still have the flicker. This is so strange it is beginning to interest me, rather than being just an annoying problem. I'm going to rebuild this form from scratch, page by page, and see where the flicker begins to happen. Many unbillable hours, but at least I will know! A. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: July 3, 2005 12:54 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 I don't know about that, but will try to follow up that lead. What I do know is that there are LOTS of controls on this form, all stemming from a single table (it's more than 100, but I'm not sure of the exact count). Nuts table structure, I readily admit, but that's not the point. I think I'm going to try making the tabs invisible one by one and see at what point the problem goes away. Also, I have added a bunch of other forms to this app, some relatively complex (i.e. a listbox that serves as a finder, to the left of a bunch of columns copied from an autoform, and after that an embedded form/subform) and these forms do not suffer from this flicker issue. I'm guessing at this point that hiding one or more tabs on the form is going to make the flicker go away. If correct, I will then reveal one more form and start hiding individual controls to see at which number the flicker appears. I will report results as soon as I have some. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: July 2, 2005 1:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Puzzling Form hebaviour Access 2003 Hi Arthur Could it be the same issue that Erwin and Marty dealt with 2004-11-30: Form flickers like hell in A2K3 /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From martyconnelly at shaw.ca Sun Jul 3 11:05:29 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 03 Jul 2005 09:05:29 -0700 Subject: [AccessD] Puzzling Form hebaviour Access 2003 References: <97460-22005703134834456@M2W103.mail2web.com> Message-ID: <42C80CC9.2060204@shaw.ca> I'll repost since I just got asked this on another list last week, A more common problem than I thought on subforms with tab and label flicker. You ain't gonna believe this but if running WinXP change your theme by right-clicking your Windows XP desktop, choosing Properties, and setting the Theme to "Windows Classic". If you cannot solve it by deselecting Use Windows Themed Controls on Forms under Tools | Options | Forms/Reports in Access 2003 The flickering or flutter goes away on my machine using Win XP Theme Classic and Access 2003 and by deselecting above option The flickering is triggered by unattached labels on the page of a tab control. The workaround is to convert these labels to text boxes. For non english speakers I found this by google searching on Screen Flutter rather than Flicker. For full explanation. and code to correct all forms if above tools option method doesn't work http://members.iinet.net.au/~allenbrowne/ser-46.html bchacc at san.rr.com wrote: >Arthur: > >Check the archives. I had this problem in an app and fixed it but can't >remember how at the moment. I'm on vacation this week and I'm not supposed >to work but if I get a chance later I'll look at that app and see if I can >remember what the tweak was. IIRC it was somerthing pretty simple. > >Rocky > >Original Message: >----------------- >From: Arthur Fuller artful at rogers.com >Date: Sun, 03 Jul 2005 00:59:26 -0400 >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 > > >More on this... > >I have just hidden all but two of the heavily populated tab pages, and I >still have the flicker. This is so strange it is beginning to interest me, >rather than being just an annoying problem. I'm going to rebuild this form >from scratch, page by page, and see where the flicker begins to happen. Many >unbillable hours, but at least I will know! > >A. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller >Sent: July 3, 2005 12:54 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 > >I don't know about that, but will try to follow up that lead. What I do know >is that there are LOTS of controls on this form, all stemming from a single >table (it's more than 100, but I'm not sure of the exact count). Nuts table >structure, I readily admit, but that's not the point. > >I think I'm going to try making the tabs invisible one by one and see at >what point the problem goes away. > >Also, I have added a bunch of other forms to this app, some relatively >complex (i.e. a listbox that serves as a finder, to the left of a bunch of >columns copied from an autoform, and after that an embedded form/subform) >and these forms do not suffer from this flicker issue. > >I'm guessing at this point that hiding one or more tabs on the form is going >to make the flicker go away. If correct, I will then reveal one more form >and start hiding individual controls to see at which number the flicker >appears. > >I will report results as soon as I have some. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: July 2, 2005 1:58 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Puzzling Form hebaviour Access 2003 > >Hi Arthur > >Could it be the same issue that Erwin and Marty dealt with 2004-11-30: > > Form flickers like hell in A2K3 > >/gustav > > > > -- Marty Connelly Victoria, B.C. Canada From R.Griffiths at bury.gov.uk Tue Jul 5 02:58:58 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 5 Jul 2005 08:58:58 +0100 Subject: [AccessD] A2K and .Net Message-ID: <200507050750.j657nwr23701@smarthost.yourcomms.net> Hi I am developing a VB.net app with A2K BE. I will deploy .net framework which provides all the data access to the mdb file. My question is this....Can I use in my Access queries code such as left, mid or specifically dateadd. Am I right in thinking these functions are part of VBA (which I do not intend to deploy) and so on a clean machine ie. without any MS Access that queries using these functions will bomb out - or will ADO.net/.net handle accordingly? TIA Richard From dejpolsys at hotmail.com Tue Jul 5 07:44:53 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 5 Jul 2005 08:44:53 -0400 Subject: [AccessD] A2K and .Net References: <200507050750.j657nwr23701@smarthost.yourcomms.net> Message-ID: VB.net and the Net framework include their own functionality, albeit at some speed penalty in the case of the framework ...rather than dateadd, you could use the TimeSpan parameter in VB.net's .Add() method. William ----- Original Message ----- From: "Griffiths, Richard" To: "AccessD" Sent: Tuesday, July 05, 2005 3:58 AM Subject: [AccessD] A2K and .Net Hi I am developing a VB.net app with A2K BE. I will deploy .net framework which provides all the data access to the mdb file. My question is this....Can I use in my Access queries code such as left, mid or specifically dateadd. Am I right in thinking these functions are part of VBA (which I do not intend to deploy) and so on a clean machine ie. without any MS Access that queries using these functions will bomb out - or will ADO.net/.net handle accordingly? TIA Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Jul 5 08:21:20 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 5 Jul 2005 14:21:20 +0100 Subject: [AccessD] A2K and .Net Message-ID: <200507051312.j65DCLr17648@smarthost.yourcomms.net> Do you know if my queries (stored procedures) that use say dateadd (ie hard coded into the query) will fail? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: 05 July 2005 13:45 To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K and .Net VB.net and the Net framework include their own functionality, albeit at some speed penalty in the case of the framework ...rather than dateadd, you could use the TimeSpan parameter in VB.net's .Add() method. William ----- Original Message ----- From: "Griffiths, Richard" To: "AccessD" Sent: Tuesday, July 05, 2005 3:58 AM Subject: [AccessD] A2K and .Net Hi I am developing a VB.net app with A2K BE. I will deploy .net framework which provides all the data access to the mdb file. My question is this....Can I use in my Access queries code such as left, mid or specifically dateadd. Am I right in thinking these functions are part of VBA (which I do not intend to deploy) and so on a clean machine ie. without any MS Access that queries using these functions will bomb out - or will ADO.net/.net handle accordingly? TIA Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Jul 5 10:59:54 2005 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 5 Jul 2005 10:59:54 -0500 Subject: [AccessD] Puzzling Form hebaviour Access 2003 Message-ID: <123701F54509D9119A4F00D0B747349016D871@main2.marlow.com> Does the form have a MouseMove event? I know in Access 97, a mouse move event will cause that sort of 'effect'. Drew -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Saturday, July 02, 2005 12:19 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Puzzling Form hebaviour Access 2003 I'm working on an inherited app which contains one huge table with numerous fields, distributed in groups across about 6 tabs. There are no subforms -- the whole form displays just one row -- 20 controls on the first tab page, 20 on the second, etc. Whenever I move the mouse over the form, most or all of the controls on the displayed tab page sort of jiggle or shimmer. They don't change values, and it happens too quickly to think they are re-querying, but nevertheless it is annoying. I've checked such event controls as keydown, onCurrent etc. and nothing looks as if it's causing this annoying behaviour. Is it possibly just because there are so many controls? Incidentally, I plan to normalise this table and that may make this problem of multiple nested tables inside one go away, but in the interim I'm wondering about this. Any clues where to look? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Jul 5 11:37:43 2005 From: artful at rogers.com (Arthur Fuller) Date: Tue, 5 Jul 2005 12:37:43 -0400 Subject: [AccessD] Puzzling Form hebaviour Access 2003 In-Reply-To: <123701F54509D9119A4F00D0B747349016D871@main2.marlow.com> Message-ID: <200507051637.j65GblR30070@databaseadvisors.com> No mousemove event either. Sorry. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: July 5, 2005 12:00 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 Does the form have a MouseMove event? I know in Access 97, a mouse move event will cause that sort of 'effect'. Drew -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Saturday, July 02, 2005 12:19 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Puzzling Form hebaviour Access 2003 I'm working on an inherited app which contains one huge table with numerous fields, distributed in groups across about 6 tabs. There are no subforms -- the whole form displays just one row -- 20 controls on the first tab page, 20 on the second, etc. Whenever I move the mouse over the form, most or all of the controls on the displayed tab page sort of jiggle or shimmer. They don't change values, and it happens too quickly to think they are re-querying, but nevertheless it is annoying. I've checked such event controls as keydown, onCurrent etc. and nothing looks as if it's causing this annoying behaviour. Is it possibly just because there are so many controls? Incidentally, I plan to normalise this table and that may make this problem of multiple nested tables inside one go away, but in the interim I'm wondering about this. Any clues where to look? TIA, Arthur From papparuff at comcast.net Tue Jul 5 11:44:20 2005 From: papparuff at comcast.net (papparuff at comcast.net) Date: Tue, 05 Jul 2005 16:44:20 +0000 Subject: [AccessD] Puzzling Form hebaviour Access 2003 Message-ID: <070520051644.5299.42CAB8E40007B608000014B3220074567200009A9D0E9F9F0E9F@comcast.net> Do you have a form header and/or form footer. If so, also check their mousemove events. -- John V. Ruff ? The Eternal Optimist :-) -------------- Original message -------------- > No mousemove event either. Sorry. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com > Sent: July 5, 2005 12:00 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 > > Does the form have a MouseMove event? I know in Access 97, a mouse move > event will cause that sort of 'effect'. > > Drew > > > -----Original Message----- > From: Arthur Fuller [mailto:artful at rogers.com] > Sent: Saturday, July 02, 2005 12:19 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Puzzling Form hebaviour Access 2003 > > > I'm working on an inherited app which contains one huge table with numerous > fields, distributed in groups across about 6 tabs. There are no subforms -- > the whole form displays just one row -- 20 controls on the first tab page, > 20 on the second, etc. > > Whenever I move the mouse over the form, most or all of the controls on the > displayed tab page sort of jiggle or shimmer. They don't change values, and > it happens too quickly to think they are re-querying, but nevertheless it is > annoying. I've checked such event controls as keydown, onCurrent etc. and > nothing looks as if it's causing this annoying behaviour. Is it possibly > just because there are so many controls? > > Incidentally, I plan to normalise this table and that may make this problem > of multiple nested tables inside one go away, but in the interim I'm > wondering about this. > > Any clues where to look? > > TIA, > Arthur > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From KIsmert at texassystems.com Tue Jul 5 12:38:16 2005 From: KIsmert at texassystems.com (Ken Ismert) Date: Tue, 5 Jul 2005 12:38:16 -0500 Subject: [AccessD] A2K and .Net Message-ID: Yes, they will fail. This is not unique to .NET. Simply put, if you open a Jet database using DAO, ADO, or ADO.NET, any queries that reference VBA functions like DateAdd will fail. Your earlier thinking was correct: to get DateAdd to work in a query, you would need Access installed on the machine, and would have to open it via automation. The Access application instance would then provide the VBA environment required to make sense of VBA function calls. .NET won't interpret the function calls, nor can you substitute .NET functions. This is because your ADO calls are going to a separate Jet server instance, which has no knowledge of the context in which it is called. In short, you are limited to native Jet SQL for your queries. This includes the aggregate functions like Sum and Avg, mathematical operators and string concatenation, and the expressions Between, In and Like. You may also be able to extend your reach by using the ODBC Scalar functions, although I haven't tried this. -Ken -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, July 05, 2005 8:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Do you know if my queries (stored procedures) that use say dateadd (ie hard coded into the query) will fail? From Jim.Hale at FleetPride.com Tue Jul 5 13:08:22 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 5 Jul 2005 13:08:22 -0500 Subject: [AccessD] A2K and .Net Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723376C0@corp-es01.fleetpride.com> Sub queries are another solution that can provide criteria for queries in cases where functions won't work. For example, I use a sub query to fetch current month and year from a period table. Jim Hale -----Original Message----- From: Ken Ismert [mailto:KIsmert at texassystems.com] Sent: Tuesday, July 05, 2005 12:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Yes, they will fail. This is not unique to .NET. Simply put, if you open a Jet database using DAO, ADO, or ADO.NET, any queries that reference VBA functions like DateAdd will fail. Your earlier thinking was correct: to get DateAdd to work in a query, you would need Access installed on the machine, and would have to open it via automation. The Access application instance would then provide the VBA environment required to make sense of VBA function calls. .NET won't interpret the function calls, nor can you substitute .NET functions. This is because your ADO calls are going to a separate Jet server instance, which has no knowledge of the context in which it is called. In short, you are limited to native Jet SQL for your queries. This includes the aggregate functions like Sum and Avg, mathematical operators and string concatenation, and the expressions Between, In and Like. You may also be able to extend your reach by using the ODBC Scalar functions, although I haven't tried this. -Ken -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, July 05, 2005 8:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Do you know if my queries (stored procedures) that use say dateadd (ie hard coded into the query) will fail? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From fhtapia at gmail.com Tue Jul 5 15:48:16 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 5 Jul 2005 13:48:16 -0700 Subject: [AccessD] Fwd: Saving string > 256 chars in field In-Reply-To: References: <6.2.1.2.0.20050706065840.02ad84e0@mail.dalyn.co.nz> Message-ID: Access 2000? I seem to remember you need to have SR1a installed... Additionally because you're trying to make it a bound form, I think I converted the field from nvarchar to ntext. The Front End will then handle it correctly for what it's worth moving up to A2003 makes this whole point moot. On 7/5/05, David Emerson wrote: > I have tried the archives but cant find anything. Francisco - can you > remember what the subject was? > > David > > At 28/06/2005, you wrote: > >This is a known issue. If you search the archives for Francisco Tapia name > >you might find the right answer. > > > >But if I remember correctly, you have to do your final select with that > >field cast as a Text, so Access (trying to be too smart) will not truncate > >what it considers a text field and then assumes it is a memo field. > > > >David > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David Emerson > >Sent: Monday, June 27, 2005 7:08 PM > >To: Access Developers discussion and problem solving > >Subject: RE: [AccessD] Saving string > 256 chars in field > > > > > >Yes - Access XP adp, SQL2000. > > > >David > > > >At 28/06/2005, you wrote: > > >Are you working in an .adp? > > > > > >Susan H. > > > > > >Yes it is bound, however the field is a nvarchar(1000). I can manually > >type > > >in more than 256 characters and they save ok. It is just when I use VB. > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From newsgrps at dalyn.co.nz Tue Jul 5 15:58:54 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 06 Jul 2005 08:58:54 +1200 Subject: [AccessD] Saving string > 256 chars in field In-Reply-To: References: <6.2.1.2.0.20050706065840.02ad84e0@mail.dalyn.co.nz> Message-ID: <6.2.1.2.0.20050706085357.02affac0@mail.dalyn.co.nz> Thanks Francisco. It is actually Access XP and it is an ADP. I do have the service packs installed. I changed the field to ntext and it works! Thanks. At 6/07/2005, you wrote: >Access 2000? I seem to remember you need to have SR1a installed... >Additionally because you're trying to make it a bound form, I think I >converted the field from nvarchar to ntext. The Front End will then >handle it correctly for what it's worth moving up to A2003 makes this >whole point moot. > > > >On 7/5/05, David Emerson wrote: > > I have tried the archives but cant find anything. Francisco - can you > > remember what the subject was? > > > > David > > > > At 28/06/2005, you wrote: > > >This is a known issue. If you search the archives for Francisco Tapia name > > >you might find the right answer. > > > > > >But if I remember correctly, you have to do your final select with that > > >field cast as a Text, so Access (trying to be too smart) will not truncate > > >what it considers a text field and then assumes it is a memo field. > > > > > >David > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David Emerson > > >Sent: Monday, June 27, 2005 7:08 PM > > >To: Access Developers discussion and problem solving > > >Subject: RE: [AccessD] Saving string > 256 chars in field > > > > > > > > >Yes - Access XP adp, SQL2000. > > > > > >David > > > > > >At 28/06/2005, you wrote: > > > >Are you working in an .adp? > > > > > > > >Susan H. > > > > > > > >Yes it is bound, however the field is a nvarchar(1000). I can manually > > >type > > > >in more than 256 characters and they save ok. It is just when I use VB. > > > >-- >-Francisco >http://pcthis.blogspot.com |PC news with out the jargon! >http://sqlthis.blogspot.com | Tsql and More... From D.Dick at uws.edu.au Tue Jul 5 19:03:29 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Wed, 6 Jul 2005 10:03:29 +1000 Subject: [AccessD] Puzzling Form hebaviour Access 2003 Message-ID: <2FDE83AF1A69C84796CBD13788DDA883534D08@BONHAM.AD.UWS.EDU.AU> This is caused by the new "feature" of non associated controls When controls such as labels are 'orphaned' i.e. have no parent control like a TextBox etc You get this shimmer/flicker effect when your mouse moves over them It's a real PITA Anyway... In design view select one of them (An unassociated controls like a label) A small yellow warning icon will appear to the left or right of the 'orphaned' control alerting you to the fact it is an orphaned control. :-)) Click on that icon and a menu list will appear. Choose associate (if you want) or ignore error. That should get rid of the flicker in run time. If you don't see these little yellow warning icons when you click on a control in design view Go to TOOLS|OPTIONS|ERROR CHECKING And put a check in each of the boxes. Close and start the app again. Then go back into design view. You should see the Yellow warning icon I speak of. Hope this is the solution See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, July 06, 2005 2:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 No mousemove event either. Sorry. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: July 5, 2005 12:00 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 Does the form have a MouseMove event? I know in Access 97, a mouse move event will cause that sort of 'effect'. Drew -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Saturday, July 02, 2005 12:19 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Puzzling Form hebaviour Access 2003 I'm working on an inherited app which contains one huge table with numerous fields, distributed in groups across about 6 tabs. There are no subforms -- the whole form displays just one row -- 20 controls on the first tab page, 20 on the second, etc. Whenever I move the mouse over the form, most or all of the controls on the displayed tab page sort of jiggle or shimmer. They don't change values, and it happens too quickly to think they are re-querying, but nevertheless it is annoying. I've checked such event controls as keydown, onCurrent etc. and nothing looks as if it's causing this annoying behaviour. Is it possibly just because there are so many controls? Incidentally, I plan to normalise this table and that may make this problem of multiple nested tables inside one go away, but in the interim I'm wondering about this. Any clues where to look? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From D.Dick at uws.edu.au Tue Jul 5 21:00:03 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Wed, 6 Jul 2005 12:00:03 +1000 Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address Message-ID: <2FDE83AF1A69C84796CBD13788DDA883534DB9@BONHAM.AD.UWS.EDU.AU> Hi Guys Way OT, but I wanna code it into an app. On some WebPages we are forced to logon to a web site using the standard Web version of a logon box comes up asking for the User Name and password for that site. (These are NOT sites I or we have designed) It's the generic one See a screen dump at http://tripledee.com.au/accessd/Generic_Logon.jpg Anyway...my question is this I can pass credentials to an ftp session by doing something like this ftp://UserName:Password at someServer.com.au Cool When I try the same syntax using http://UserName:Password at someServer.com.au In an attempt to bypass the screen in the screen dump it fails. Does anyone know a way to do it? Many thanks Darren From Erwin.Craps at ithelps.be Wed Jul 6 02:40:44 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 6 Jul 2005 09:40:44 +0200 Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5D20@stekelbes.ithelps.local> When using the url format you are sending username and password in plain text format (un-encrypted). The special dialogbox to enter your username/password is there to send you password encrypted over the internet. Probably your webserver refuses un-encrypted passwords, which is a good thing. I'm not aware of a technique to workaround this... I think that just the point of not beeing able to do this for security reasons. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Wednesday, July 06, 2005 4:00 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address Hi Guys Way OT, but I wanna code it into an app. On some WebPages we are forced to logon to a web site using the standard Web version of a logon box comes up asking for the User Name and password for that site. (These are NOT sites I or we have designed) It's the generic one See a screen dump at http://tripledee.com.au/accessd/Generic_Logon.jpg Anyway...my question is this I can pass credentials to an ftp session by doing something like this ftp://UserName:Password at someServer.com.au Cool When I try the same syntax using http://UserName:Password at someServer.com.au In an attempt to bypass the screen in the screen dump it fails. Does anyone know a way to do it? Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Wed Jul 6 04:06:21 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Wed, 6 Jul 2005 10:06:21 +0100 Subject: [AccessD] A2K and .Net Message-ID: <200507060857.j668vJr19891@smarthost.yourcomms.net> Ken thanks, as I thought. I accept that you would need to install all the VBA dlls, but are you sure that you would need to instantiate an Access session. I'm sure most apps would use left, mid etc in queries and this would mean say for all the many 1000's of VB apps that have an Access BE they would need to install Access (runtime or full) and load an instance each time a query was used. Have you tried this? I have tried to use native JetSQL but for this query have struggled , maybe someone can offer a solution....... I have two datetime fields UnavailableFrom and UnavailableTo (e.g. 01/01/2005 08:30 and 01/01/2005 18:30) Can anyone suggest any SQL (and also native JetSQL without function calls [or with permitted function calls]) to find whether a date falls between these two datetimes - so a parameter of say 01/01/2005 would return this record. Thanks Richard ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Ken Ismert Sent: Tue 05/07/2005 18:38 To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Yes, they will fail. This is not unique to .NET. Simply put, if you open a Jet database using DAO, ADO, or ADO.NET, any queries that reference VBA functions like DateAdd will fail. Your earlier thinking was correct: to get DateAdd to work in a query, you would need Access installed on the machine, and would have to open it via automation. The Access application instance would then provide the VBA environment required to make sense of VBA function calls. .NET won't interpret the function calls, nor can you substitute .NET functions. This is because your ADO calls are going to a separate Jet server instance, which has no knowledge of the context in which it is called. In short, you are limited to native Jet SQL for your queries. This includes the aggregate functions like Sum and Avg, mathematical operators and string concatenation, and the expressions Between, In and Like. You may also be able to extend your reach by using the ODBC Scalar functions, although I haven't tried this. -Ken -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, July 05, 2005 8:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Do you know if my queries (stored procedures) that use say dateadd (ie hard coded into the query) will fail? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Jul 6 10:33:08 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 6 Jul 2005 08:33:08 -0700 Subject: [AccessD] A2K and .Net Message-ID: If you want to use Access functions, you need to be *in* Access. However, if the environment doesn't support those functions, they won't work anyhow. Left, Mid, etc., are VBA functions, not Access functions, and trying to use VBA functions in managed code in .Net can give you entirely unexpected results even when you don't get an outright error. Is there a reason you are reluctant to change the queries? Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Wednesday, July 06, 2005 2:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Ken thanks, as I thought. I accept that you would need to install all the VBA dlls, but are you sure that you would need to instantiate an Access session. I'm sure most apps would use left, mid etc in queries and this would mean say for all the many 1000's of VB apps that have an Access BE they would need to install Access (runtime or full) and load an instance each time a query was used. Have you tried this? I have tried to use native JetSQL but for this query have struggled , maybe someone can offer a solution....... I have two datetime fields UnavailableFrom and UnavailableTo (e.g. 01/01/2005 08:30 and 01/01/2005 18:30) Can anyone suggest any SQL (and also native JetSQL without function calls [or with permitted function calls]) to find whether a date falls between these two datetimes - so a parameter of say 01/01/2005 would return this record. Thanks Richard ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Ken Ismert Sent: Tue 05/07/2005 18:38 To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Yes, they will fail. This is not unique to .NET. Simply put, if you open a Jet database using DAO, ADO, or ADO.NET, any queries that reference VBA functions like DateAdd will fail. Your earlier thinking was correct: to get DateAdd to work in a query, you would need Access installed on the machine, and would have to open it via automation. The Access application instance would then provide the VBA environment required to make sense of VBA function calls. .NET won't interpret the function calls, nor can you substitute .NET functions. This is because your ADO calls are going to a separate Jet server instance, which has no knowledge of the context in which it is called. In short, you are limited to native Jet SQL for your queries. This includes the aggregate functions like Sum and Avg, mathematical operators and string concatenation, and the expressions Between, In and Like. You may also be able to extend your reach by using the ODBC Scalar functions, although I haven't tried this. -Ken -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, July 05, 2005 8:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Do you know if my queries (stored procedures) that use say dateadd (ie hard coded into the query) will fail? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Wed Jul 6 13:10:42 2005 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 06 Jul 2005 13:10:42 -0500 Subject: [AccessD] Re: A2K and .Net In-Reply-To: <200507061700.j66H0CR13813@databaseadvisors.com> References: <200507061700.j66H0CR13813@databaseadvisors.com> Message-ID: <6.2.1.2.2.20050706130915.022756d0@pop3.highstream.net> YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the VBA >dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function calls >[or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard From martyconnelly at shaw.ca Wed Jul 6 18:13:20 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 06 Jul 2005 16:13:20 -0700 Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address References: <2FDE83AF1A69C84796CBD13788DDA883534DB9@BONHAM.AD.UWS.EDU.AU> Message-ID: <42CC6590.3090507@shaw.ca> Cannot Log On to Web Site Requiring Case-Sensitive User Name http://support.microsoft.com/default.aspx?scid=kb;en-us;228914 However it is more likely bet, that this is the cause if the the below IE security patch installed. I think these series of patches went in last year. http://support.microsoft.com/kb/832894/ Look under technical details of this IE patch http://www.microsoft.com/technet/security/bulletin/MS04-004.mspx The following URL syntax is no longer supported in Internet Explorer or Windows Explorer after you install this software update: http(s)://username:password at server/resource.ext Details of workarounds for coding via WinInet or UrlMon is available below or how to do a registry hack to disable uid password suppresion. A security update is available that modifies the default behavior of Internet Explorer for handling user information in HTTP and in HTTPS URLs http://support.microsoft.com/default.aspx?scid=kb;en-us;834489 I think you can also put the uid and password in an encrypted http header and use winhhtp or xmlhttp. Darren Dick wrote: >Hi Guys >Way OT, but I wanna code it into an app. >On some WebPages we are forced to logon to a web site using >the standard Web version of a logon box comes up asking for the >User Name and password for that site. (These are NOT sites I or we have >designed) > >It's the generic one >See a screen dump at >http://tripledee.com.au/accessd/Generic_Logon.jpg > >Anyway...my question is this >I can pass credentials to an ftp session by doing something like this > >ftp://UserName:Password at someServer.com.au > >Cool > >When I try the same syntax using >http://UserName:Password at someServer.com.au >In an attempt to bypass the screen in the screen dump it fails. > >Does anyone know a way to do it? > >Many thanks > >Darren > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Wed Jul 6 18:30:25 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 06 Jul 2005 16:30:25 -0700 Subject: [AccessD] A2K and .Net References: Message-ID: <42CC6991.1050205@shaw.ca> This is just a maybe grasping at straws here but if you install Office 2003 Update: Redistributable Primary Interop Assemblies and If you are coming from dotNet and use these PIA's just maybe you can do it. Shamil has used these. http://support.microsoft.com/?scid=kb;en-us;897646&spid=2509&sid=global And from these classes Microsoft.Vbe.Interop.dll Microsoft.Office.Interop.Access.dll dao.dll http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/OfficePrimaryInteropAssembliesFAQ.asp Charlotte Foust wrote: >If you want to use Access functions, you need to be *in* Access. >However, if the environment doesn't support those functions, they won't >work anyhow. Left, Mid, etc., are VBA functions, not Access functions, >and trying to use VBA functions in managed code in .Net can give you >entirely unexpected results even when you don't get an outright error. >Is there a reason you are reluctant to change the queries? > >Charlotte Foust > > >-----Original Message----- >From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] >Sent: Wednesday, July 06, 2005 2:06 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K and .Net > > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls [or with permitted function calls]) to find whether a date falls >between these two datetimes - so a parameter of say 01/01/2005 would >return this record. > >Thanks >Richard > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Ken Ismert >Sent: Tue 05/07/2005 18:38 >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K and .Net > > > >Yes, they will fail. This is not unique to .NET. Simply put, if you open >a Jet database using DAO, ADO, or ADO.NET, any queries that reference >VBA functions like DateAdd will fail. > >Your earlier thinking was correct: to get DateAdd to work in a query, >you would need Access installed on the machine, and would have to open >it via automation. The Access application instance would then provide >the VBA environment required to make sense of VBA function calls. > >.NET won't interpret the function calls, nor can you substitute .NET >functions. This is because your ADO calls are going to a separate Jet >server instance, which has no knowledge of the context in which it is >called. > >In short, you are limited to native Jet SQL for your queries. This >includes the aggregate functions like Sum and Avg, mathematical >operators and string concatenation, and the expressions Between, In and >Like. You may also be able to extend your reach by using the ODBC Scalar >functions, although I haven't tried this. > >-Ken > > >-----Original Message----- >From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] >Sent: Tuesday, July 05, 2005 8:21 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K and .Net > >Do you know if my queries (stored procedures) that use say dateadd (ie >hard coded into the query) will fail? > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > -- Marty Connelly Victoria, B.C. Canada From D.Dick at uws.edu.au Wed Jul 6 19:05:19 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Thu, 7 Jul 2005 10:05:19 +1000 Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address Message-ID: <2FDE83AF1A69C84796CBD13788DDA883535058@BONHAM.AD.UWS.EDU.AU> Thanks to all who responded Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, July 07, 2005 9:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Putting a Password and Logon name to an HTTP address Cannot Log On to Web Site Requiring Case-Sensitive User Name http://support.microsoft.com/default.aspx?scid=kb;en-us;228914 However it is more likely bet, that this is the cause if the the below IE security patch installed. I think these series of patches went in last year. http://support.microsoft.com/kb/832894/ Look under technical details of this IE patch http://www.microsoft.com/technet/security/bulletin/MS04-004.mspx The following URL syntax is no longer supported in Internet Explorer or Windows Explorer after you install this software update: http(s)://username:password at server/resource.ext Details of workarounds for coding via WinInet or UrlMon is available below or how to do a registry hack to disable uid password suppresion. A security update is available that modifies the default behavior of Internet Explorer for handling user information in HTTP and in HTTPS URLs http://support.microsoft.com/default.aspx?scid=kb;en-us;834489 I think you can also put the uid and password in an encrypted http header and use winhhtp or xmlhttp. Darren Dick wrote: >Hi Guys >Way OT, but I wanna code it into an app. >On some WebPages we are forced to logon to a web site using >the standard Web version of a logon box comes up asking for the >User Name and password for that site. (These are NOT sites I or we have >designed) > >It's the generic one >See a screen dump at >http://tripledee.com.au/accessd/Generic_Logon.jpg > >Anyway...my question is this >I can pass credentials to an ftp session by doing something like this > >ftp://UserName:Password at someServer.com.au > >Cool > >When I try the same syntax using >http://UserName:Password at someServer.com.au >In an attempt to bypass the screen in the screen dump it fails. > >Does anyone know a way to do it? > >Many thanks > >Darren > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stephen at bondsoftware.co.nz Wed Jul 6 22:04:26 2005 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Thu, 07 Jul 2005 15:04:26 +1200 Subject: [AccessD] OT - MS Query Message-ID: <70F3D727890C784291D8433E9C418F29088B1E@server.bondsoftware.co.nz> A question from a local client - he uses MS Query. I have a defined range that I'm querying. One column contains mainly numeric data but also some characters. When I query this column it returns all rows that contain only numerals and blank rows that contain any characters. The number format for this column is 'general'. Why doesn't MSQuery show the rows with characters in this column yet the next column is mainly characters and this one displays correctly? Tried some other things and it seem that MS Query will return data from a column that contains both character or numerical entries but not both. If you have more entries with any numerals then these cells with be displayed and no cells that have characters will be displayed. It seems that query looks at what data is in the cells and displays one type or the other but not both. I my case it's a list of product codes, an example of which is below. In this example only the rows that had a character in it will be displayed. What gives? Product Code 517 0517bro 0517bsa 0517buf 0517cre 0517pwh 0517whi 1001 1001bu 1002 1002BUF 1003 1003buf 1005 1005BUF 1012 1017bsa 1017buf 1017bufr 1017cre 1017gsl 1017whi 1019 1030 1099PMC Stephen Bond From accessd at shaw.ca Thu Jul 7 02:47:12 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Jul 2005 00:47:12 -0700 Subject: [AccessD] OT Lost shares In-Reply-To: <42CC6991.1050205@shaw.ca> Message-ID: <0IJ800ADTYYRW1@l-daemon> OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. Jim From R.Griffiths at bury.gov.uk Thu Jul 7 03:13:07 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 7 Jul 2005 09:13:07 +0100 Subject: [AccessD] Re: A2K and .Net Message-ID: <200507070804.j67844r04045@smarthost.yourcomms.net> Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA >dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls >[or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Jul 7 03:15:38 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 7 Jul 2005 09:15:38 +0100 Subject: [AccessD] A2K and .Net Message-ID: <200507070806.j6786Zr04264@smarthost.yourcomms.net> Hi No, just I was struggling to get the correct SQL criteria to work without using DateAdd function or format function Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 06 July 2005 16:33 To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net If you want to use Access functions, you need to be *in* Access. However, if the environment doesn't support those functions, they won't work anyhow. Left, Mid, etc., are VBA functions, not Access functions, and trying to use VBA functions in managed code in .Net can give you entirely unexpected results even when you don't get an outright error. Is there a reason you are reluctant to change the queries? Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Wednesday, July 06, 2005 2:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Ken thanks, as I thought. I accept that you would need to install all the VBA dlls, but are you sure that you would need to instantiate an Access session. I'm sure most apps would use left, mid etc in queries and this would mean say for all the many 1000's of VB apps that have an Access BE they would need to install Access (runtime or full) and load an instance each time a query was used. Have you tried this? I have tried to use native JetSQL but for this query have struggled , maybe someone can offer a solution....... I have two datetime fields UnavailableFrom and UnavailableTo (e.g. 01/01/2005 08:30 and 01/01/2005 18:30) Can anyone suggest any SQL (and also native JetSQL without function calls [or with permitted function calls]) to find whether a date falls between these two datetimes - so a parameter of say 01/01/2005 would return this record. Thanks Richard ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Ken Ismert Sent: Tue 05/07/2005 18:38 To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Yes, they will fail. This is not unique to .NET. Simply put, if you open a Jet database using DAO, ADO, or ADO.NET, any queries that reference VBA functions like DateAdd will fail. Your earlier thinking was correct: to get DateAdd to work in a query, you would need Access installed on the machine, and would have to open it via automation. The Access application instance would then provide the VBA environment required to make sense of VBA function calls. .NET won't interpret the function calls, nor can you substitute .NET functions. This is because your ADO calls are going to a separate Jet server instance, which has no knowledge of the context in which it is called. In short, you are limited to native Jet SQL for your queries. This includes the aggregate functions like Sum and Avg, mathematical operators and string concatenation, and the expressions Between, In and Like. You may also be able to extend your reach by using the ODBC Scalar functions, although I haven't tried this. -Ken -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, July 05, 2005 8:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Do you know if my queries (stored procedures) that use say dateadd (ie hard coded into the query) will fail? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Erwin.Craps at ithelps.be Thu Jul 7 03:23:56 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 7 Jul 2005 10:23:56 +0200 Subject: [AccessD] OT Lost shares Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5D28@stekelbes.ithelps.local> It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Paul.Rogers at SummitMedia.co.uk Thu Jul 7 04:03:49 2005 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Thu, 7 Jul 2005 10:03:49 +0100 Subject: [AccessD] Dishonest crosstab query Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F75D@s003.wolds.summitmedia.co.uk> This crosstab query should arrive with 10 columns, but it makes 15. And some of the fictitious columns have totals, so it isn't a matter of simply deleting the unwanted columns. I think the fault lies in my join arrangement - but I can't spot it. TRANSFORM Count(qryEmployees.Roots) AS Ethnicity SELECT qryEmpWorkers.DailyGrind AS Work FROM qryEmpWorkers INNER JOIN qryEmployees ON qryEmpWorkers.EmployeeIDFK = qryEmployees.EmployeeID GROUP BY qryEmpWorkers.DailyGrind PIVOT qryEmployees.Roots; Be grateful for guidance. Cheers paul -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.10/43 - Release Date: 06/07/2005 From R.Griffiths at bury.gov.uk Thu Jul 7 07:08:30 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 7 Jul 2005 13:08:30 +0100 Subject: [AccessD] Access queries to SQL Message-ID: <200507071248.j67CmAr23317@smarthost.yourcomms.net> Hi Is there a way of exporting Access queries into SQL (the import from SQL seems to over look the queries - is this correct?) _ I have a system that has many queries and I preferable wish to avoid cut and paste. I used to have a program (downloaded from somewhere) that would having specified an mdb produce code that created/recreated the completed db (tables etc) - can't find this - anyone else come across this? Thanks Richard From mikedorism at verizon.net Thu Jul 7 08:28:31 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Thu, 07 Jul 2005 09:28:31 -0400 Subject: [AccessD] Access queries to SQL In-Reply-To: <200507071248.j67CmAr23317@smarthost.yourcomms.net> Message-ID: <000601c582f7$c55ebb20$2f01a8c0@hargrove.internal> You can upsize the database to SQL and then use the upsize report results to review all the queries that didn't make it. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Thursday, July 07, 2005 8:09 AM To: AccessD Subject: [AccessD] Access queries to SQL Hi Is there a way of exporting Access queries into SQL (the import from SQL seems to over look the queries - is this correct?) _ I have a system that has many queries and I preferable wish to avoid cut and paste. I used to have a program (downloaded from somewhere) that would having specified an mdb produce code that created/recreated the completed db (tables etc) - can't find this - anyone else come across this? Thanks Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Jul 7 09:04:00 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Jul 2005 07:04:00 -0700 Subject: [AccessD] OT Lost shares In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B5D28@stekelbes.ithelps.local> Message-ID: <0IJ900N16GEP1K@l-daemon> Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 Lambert.Heenan at AIG.com Thu Jul 7 09:49:43 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 7 Jul 2005 10:49:43 -0400 Subject: [AccessD] OT Lost shares Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1279CC4F@xlivmbx21.aig.com> I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 R.Griffiths at bury.gov.uk Thu Jul 7 09:53:00 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 7 Jul 2005 15:53:00 +0100 Subject: [AccessD] Access queries to SQL Message-ID: <200507071443.j67Ehur01837@smarthost.yourcomms.net> Thanks but only 3/4 out of 40+ of my procs/queries where copied -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: 07 July 2005 14:29 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access queries to SQL You can upsize the database to SQL and then use the upsize report results to review all the queries that didn't make it. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Thursday, July 07, 2005 8:09 AM To: AccessD Subject: [AccessD] Access queries to SQL Hi Is there a way of exporting Access queries into SQL (the import from SQL seems to over look the queries - is this correct?) _ I have a system that has many queries and I preferable wish to avoid cut and paste. I used to have a program (downloaded from somewhere) that would having specified an mdb produce code that created/recreated the completed db (tables etc) - can't find this - anyone else come across this? Thanks Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Thu Jul 7 10:22:48 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 7 Jul 2005 08:22:48 -0700 Subject: [AccessD] Re: A2K and .Net Message-ID: No, it wouldn't be. YourDate is the equivalent of 07/07/2005 00:00, since dates always have a time component and the default is midnight. So YourDate would be less than UnavailableFrom. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 1:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA >dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls >[or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 R.Griffiths at bury.gov.uk Thu Jul 7 10:38:16 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 7 Jul 2005 16:38:16 +0100 Subject: [AccessD] Re: A2K and .Net Message-ID: <200507071529.j67FTCr05237@smarthost.yourcomms.net> I have now managed (I think) to get the correct SQL. If D1 is the date to check then I need to supply D2 as a parameter as well with D2= D1 + 1 day (so we get 07/07/2005 00:00 and 08/07/2005 00:00 for D1,D2) So we check if (UnavailableFrom between D1 and D2) or (UnavailableTo between D1 and D2) or (UnavailableFrom<=D1<= UnavailableTo) If any is true then we know the date (D1) falls between the date range UnavailableFrom and UnavailableTo Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 07 July 2005 16:23 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net No, it wouldn't be. YourDate is the equivalent of 07/07/2005 00:00, since dates always have a time component and the default is midnight. So YourDate would be less than UnavailableFrom. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 1:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls [or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 mikedorism at verizon.net Thu Jul 7 10:56:55 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Thu, 07 Jul 2005 11:56:55 -0400 Subject: [AccessD] Access queries to SQL In-Reply-To: <200507071443.j67Ehur01837@smarthost.yourcomms.net> Message-ID: <002701c5830c$80703290$2f01a8c0@hargrove.internal> For those that weren't copied, you will have to cut/paste or manually create them because you need to examine why they didn't port over. In most of my cases, it boiled down to a parameter issue between how Access does things and how SQL does them. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Thursday, July 07, 2005 10:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access queries to SQL Thanks but only 3/4 out of 40+ of my procs/queries where copied -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: 07 July 2005 14:29 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access queries to SQL You can upsize the database to SQL and then use the upsize report results to review all the queries that didn't make it. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Thursday, July 07, 2005 8:09 AM To: AccessD Subject: [AccessD] Access queries to SQL Hi Is there a way of exporting Access queries into SQL (the import from SQL seems to over look the queries - is this correct?) _ I have a system that has many queries and I preferable wish to avoid cut and paste. I used to have a program (downloaded from somewhere) that would having specified an mdb produce code that created/recreated the completed db (tables etc) - can't find this - anyone else come across this? Thanks Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 mikedorism at verizon.net Thu Jul 7 10:59:25 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Thu, 07 Jul 2005 11:59:25 -0400 Subject: [AccessD] Re: A2K and .Net In-Reply-To: <200507071529.j67FTCr05237@smarthost.yourcomms.net> Message-ID: <002801c5830c$d9807d90$2f01a8c0@hargrove.internal> You don't need to supply D2 as a parameter, you could let the sproc calculate it for you. DECLARE D2 datetime SET D2 = DateAdd(d, 1, D1) Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Thursday, July 07, 2005 11:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net I have now managed (I think) to get the correct SQL. If D1 is the date to check then I need to supply D2 as a parameter as well with D2= D1 + 1 day (so we get 07/07/2005 00:00 and 08/07/2005 00:00 for D1,D2) So we check if (UnavailableFrom between D1 and D2) or (UnavailableTo between D1 and D2) or (UnavailableFrom<=D1<= UnavailableTo) If any is true then we know the date (D1) falls between the date range UnavailableFrom and UnavailableTo Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 07 July 2005 16:23 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net No, it wouldn't be. YourDate is the equivalent of 07/07/2005 00:00, since dates always have a time component and the default is midnight. So YourDate would be less than UnavailableFrom. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 1:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls [or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 JRojas at tnco-inc.com Thu Jul 7 11:02:45 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Thu, 7 Jul 2005 12:02:45 -0400 Subject: [AccessD] E-Signatures and Audit Trails Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3A4@mercury.tnco-inc.com> Hi All, 2 of the Access 2000 database systems that we use here are currently being reviewed to determine if they need to be compliant to the FDA regulation 21 CFR Part 11 (Electronic Records; Electronic Signatures). My prediction is that the answer will be yes. With that said, I need to find a way to incorporate e-signatures and audit trails into our systems. I would hate to reinvent the wheel if someone has already tackled this problem and is willing to share. :) Does anyone have a solution for this that I could incorporate into our existing system that they would be will to share/sell? Or does anyone know of a site that shares/sells this kind of solution? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From john at winhaven.net Thu Jul 7 11:03:14 2005 From: john at winhaven.net (John Bartow) Date: Thu, 7 Jul 2005 11:03:14 -0500 Subject: [AccessD] OT Lost shares In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1279CC4F@xlivmbx21.aig.com> Message-ID: <200507071603.j67G3HVL100342@pimout1-ext.prodigy.net> I agree. I think its because of the way w98 announces and caches P2P computers and shares. If you remove the share from the troublesome PCs and then add a new share it will probably show up. You can sometimes force it to refresh better if you go through the Netwrok places | Entire Network | Workgroup avenue with explorer. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 cfoust at infostatsystems.com Thu Jul 7 11:04:38 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 7 Jul 2005 09:04:38 -0700 Subject: [AccessD] Re: A2K and .Net Message-ID: So you're checking a single day to see if a given date (unavailableFrom or UnavailableTo) falls within that day? Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net I have now managed (I think) to get the correct SQL. If D1 is the date to check then I need to supply D2 as a parameter as well with D2= D1 + 1 day (so we get 07/07/2005 00:00 and 08/07/2005 00:00 for D1,D2) So we check if (UnavailableFrom between D1 and D2) or (UnavailableTo between D1 and D2) or (UnavailableFrom<=D1<= UnavailableTo) If any is true then we know the date (D1) falls between the date range UnavailableFrom and UnavailableTo Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 07 July 2005 16:23 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net No, it wouldn't be. YourDate is the equivalent of 07/07/2005 00:00, since dates always have a time component and the default is midnight. So YourDate would be less than UnavailableFrom. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 1:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls [or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 earthlink.net Thu Jul 7 12:20:10 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 7 Jul 2005 13:20:10 -0400 Subject: [AccessD] OT Lost shares In-Reply-To: <200507071603.j67G3HVL100342@pimout1-ext.prodigy.net> Message-ID: <> A better way to refresh is to drop to the DOS prompt and do: NBTSTAT -R You can also use NBTSTAT to see what's going on (use it with no switch to see all the options). NBTSTAT lets you look at each machines name cache table. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Bartow Sent: Thursday, July 07, 2005 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I agree. I think its because of the way w98 announces and caches P2P computers and shares. If you remove the share from the troublesome PCs and then add a new share it will probably show up. You can sometimes force it to refresh better if you go through the Netwrok places | Entire Network | Workgroup avenue with explorer. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 DElam at jenkens.com Thu Jul 7 13:26:32 2005 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 7 Jul 2005 13:26:32 -0500 Subject: [AccessD] World Series of Poker online diary Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0492CAAE@natexch.jenkens.com> I did not want Alan to be deprived of another poker story. This should have a new entry daily for about a week. http://www.slate.com/id/2122188/entry/0/ Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From john at winhaven.net Thu Jul 7 14:09:07 2005 From: john at winhaven.net (John Bartow) Date: Thu, 7 Jul 2005 14:09:07 -0500 Subject: [AccessD] World Series of Poker online diary In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C0492CAAE@natexch.jenkens.com> Message-ID: <200507071909.j67J9AIK159960@pimout4-ext.prodigy.net> Wrong list Debbie :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, July 07, 2005 1:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] World Series of Poker online diary I did not want Alan to be deprived of another poker story. This should have a new entry daily for about a week. http://www.slate.com/id/2122188/entry/0/ Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darsant at gmail.com Thu Jul 7 14:12:18 2005 From: darsant at gmail.com (Josh McFarlane) Date: Thu, 7 Jul 2005 14:12:18 -0500 Subject: [AccessD] E-Signatures and Audit Trails In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3A4@mercury.tnco-inc.com> References: <0CC84C9461AE6445AD5A602001C41C4B05A3A4@mercury.tnco-inc.com> Message-ID: <53c8e05a05070712125c5cd808@mail.gmail.com> On 7/7/05, Joe Rojas wrote: > Hi All, > > 2 of the Access 2000 database systems that we use here are currently being > reviewed to determine if they need to be compliant to the FDA regulation 21 > CFR Part 11 (Electronic Records; Electronic Signatures). > My prediction is that the answer will be yes. > > With that said, I need to find a way to incorporate e-signatures and audit > trails into our systems. > I would hate to reinvent the wheel if someone has already tackled this > problem and is willing to share. :) > > Does anyone have a solution for this that I could incorporate into our > existing system that they would be will to share/sell? > Or does anyone know of a site that shares/sells this kind of solution? > > Thanks! > JR Depends on how you want to do it, and how picky they are. We set up a generic table with timestamp and a few other fields, then made a function that could be put before any common database updates (order processing, payments, etc) that added a record to the transaction table via the function. We made a more specialized one for inventory tracking and billing changes. Only downside is you've got to add it anywhere you touch the data you want to track. It's not the most secure thing, as someone could still go into the audit table and mess with the entries, but it helped us when we had something die on the code side and had to reconstruct the previous data. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From bheid at appdevgrp.com Thu Jul 7 14:23:48 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 7 Jul 2005 15:23:48 -0400 Subject: [AccessD] Querydef weirdness Message-ID: <916187228923D311A6FE00A0CC3FAA30ABECAC@ADGSERVER> Ok, one of my classic stupid Access issues. I'm using Access XP. The scenario is I have a form that has a combo box with projects in it. I use a union query to add '(All)' to the top of the list. When the user selects (All), we want the output to contain all of the projects. Otherwise only the project the user has selected. For this one report, I have this in the where part of the query: Iif([forms]![FormData]![ProjectID]=0,[project].[projectid],[forms]![FormData ]![ProjectID]) This basically comes out as 'where projectid=projectid' if the Formdata!ProjectID is 0 and 'where projectid=[forms]![FormData]![ProjectID]' if the Formdata!ProjectID is not 0 . This works fine when running the query by itself or from the report. Well the user wanted the sum of the data on the chooser form when a project (or '(All)' is selected. So I run the query via a querydef and I get the infamous 'expected 1 parameters' error message. If I remove the where part of the query, it runs fine from the querydef. I talked to a co-worker and he has had problems accessing forms from a query in a querydef too. Has anyone else run into this? Anyone have a work-a-round? Thanks, Bobby From DElam at jenkens.com Thu Jul 7 14:33:30 2005 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 7 Jul 2005 14:33:30 -0500 Subject: [AccessD] World Series of Poker online diary Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0492CAB2@natexch.jenkens.com> Sorry! I thought I was sending to OT. Guess I did not pay attention to the address since they are together. Debbie -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Thursday, July 07, 2005 2:09 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] World Series of Poker online diary Wrong list Debbie :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, July 07, 2005 1:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] World Series of Poker online diary I did not want Alan to be deprived of another poker story. This should have a new entry daily for about a week. http://www.slate.com/id/2122188/entry/0/ Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From accessd at shaw.ca Thu Jul 7 14:33:56 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Jul 2005 12:33:56 -0700 Subject: [AccessD] OT Lost shares In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1279CC4F@xlivmbx21.aig.com> Message-ID: <0IJ900M12VOMFU@l-daemon> Hi Lambert: After renaming the computers we could not get the machines to recognize each other on the network. We had turn-off and on each system a couple of times. This morning when I can in the computers were now communicating.... Anyway the system is now working just fine and I am not sure why it was not, before but it now is. Must be from living right. Thanks for the message and help. Now I feel a little silly. Have a good day. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 7:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 accessd at shaw.ca Thu Jul 7 14:42:09 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Jul 2005 12:42:09 -0700 Subject: [AccessD] OT Lost shares In-Reply-To: <200507071603.j67G3HVL100342@pimout1-ext.prodigy.net> Message-ID: <0IJ90030CW2C44@l-daemon> Hi John: Problem seems to have resolved it's self. See previous email for details. Maybe it is a Win98 thing. Thanks for your help and suggestions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, July 07, 2005 9:03 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I agree. I think its because of the way w98 announces and caches P2P computers and shares. If you remove the share from the troublesome PCs and then add a new share it will probably show up. You can sometimes force it to refresh better if you go through the Netwrok places | Entire Network | Workgroup avenue with explorer. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 stuart at lexacorp.com.pg Thu Jul 7 14:44:22 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 08 Jul 2005 05:44:22 +1000 Subject: [AccessD] Querydef weirdness In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABECAC@ADGSERVER> Message-ID: <42CE12B6.22139.6DF5027@stuart.lexacorp.com.pg> On 7 Jul 2005 at 15:23, Bobby Heid wrote: > This works fine when running the query by itself or from the report. Well > the user wanted the sum of the data on the chooser form when a project (or > '(All)' is selected. So I run the query via a querydef and I get the > infamous 'expected 1 parameters' error message. If I remove the where part > of the query, it runs fine from the querydef. > > I talked to a co-worker and he has had problems accessing forms from a query > in a querydef too. Has anyone else run into this? Frequently :-( > Anyone have a work-a-round? > I use a static function to hold the value from the control which I set immediately before calling the query. Something like Static Function TempStore(Optional varInput As Variant) As Variant Dim varStore As Variant 'Initialise the variant if the function is called 'the first time with no Input If varStore = Empty Then varStore = Null 'Update the store if the Input is present If Not IsMissing(varInput) Then varStore = varInput 'return the stored value TempStore = varStore End Function Replace [forms]![FormData]![ProjectID] with TempStore() in the query and use "TempStore [ProjectID]" just before you call the query. -- Stuart From john at winhaven.net Thu Jul 7 14:45:31 2005 From: john at winhaven.net (John Bartow) Date: Thu, 7 Jul 2005 14:45:31 -0500 Subject: [AccessD] World Series of Poker online diary In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C0492CAB2@natexch.jenkens.com> Message-ID: <200507071945.j67JjYpM157966@pimout1-ext.prodigy.net> I figured, that's OK. Making a little slip-up on AccessD is better than making one over on OT! ;-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, July 07, 2005 2:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] World Series of Poker online diary Sorry! I thought I was sending to OT. Guess I did not pay attention to the address since they are together. Debbie From accessd at shaw.ca Thu Jul 7 14:58:22 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Jul 2005 12:58:22 -0700 Subject: [AccessD] OT Lost shares In-Reply-To: Message-ID: <0IJ900926WTDVN@l-daemon> Thanks for that Jim. That was the item that I could just not remember. The site starting working after it sat on over-night so the system must refresh it's after a certain amount of time passes. The nbstat -R command would do the same instantly. I will not forget it for another few years. Thanks again Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, July 07, 2005 10:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares <> A better way to refresh is to drop to the DOS prompt and do: NBTSTAT -R You can also use NBTSTAT to see what's going on (use it with no switch to see all the options). NBTSTAT lets you look at each machines name cache table. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Bartow Sent: Thursday, July 07, 2005 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I agree. I think its because of the way w98 announces and caches P2P computers and shares. If you remove the share from the troublesome PCs and then add a new share it will probably show up. You can sometimes force it to refresh better if you go through the Netwrok places | Entire Network | Workgroup avenue with explorer. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Thu Jul 7 15:18:16 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 7 Jul 2005 14:18:16 -0600 Subject: [AccessD] Capturing the Drop Changes/Copy to Clipboard error message? Message-ID: We may have discussed this in years past, I don't recall. A client with a mission-critical but shoddily-written Access app ( a situation we're all far, far too familiar with) is having a problem with users stepping on one another's changes and getting that error message that says: "This record has been changed by another user since you started editing it. If you save the record, you will overwrite the changes the other user made. Copying the changes to the clipboard will let you look at the values the other user entered, and then paste your changes back in if you decide to make the changes. " There's GOT to be a way to capture this message and either handle the conflict programmatically, or swap out a friendlier message, or both.? Even if it involves hooking into an API somewhere, there's GOT to be a way. Has anyone done it, or know someone who has, or know where to find pointers on how to do it, or anything? -C- From Lambert.Heenan at AIG.com Thu Jul 7 15:40:10 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 7 Jul 2005 16:40:10 -0400 Subject: [AccessD] OT Lost shares Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1279CE4B@xlivmbx21.aig.com> I suspect that the reason was that Windows does not automatically refresh the list of computers on the LAN. There's some time interval that it waits before rebroadcasting them (if that's the right term), something around 30 minutes I think. So when you powered them all up the next day the network found all the new computer names. Something like that anyway. Jim might have a better explanation. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 3:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Lambert: After renaming the computers we could not get the machines to recognize each other on the network. We had turn-off and on each system a couple of times. This morning when I can in the computers were now communicating.... Anyway the system is now working just fine and I am not sure why it was not, before but it now is. Must be from living right. Thanks for the message and help. Now I feel a little silly. Have a good day. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 7:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 dwaters at usinternet.com Thu Jul 7 15:50:37 2005 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 7 Jul 2005 15:50:37 -0500 Subject: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? In-Reply-To: <13657529.1120768134626.JavaMail.root@sniper23> Message-ID: <000001c58335$8c270540$0200a8c0@danwaters> Christopher, If you set the database to Edited Record, then users can't step on each other's toes. When one user begins to edit a record, all others are prevented from beginning to make any changes until the first user's changes are saved to the table. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Thursday, July 07, 2005 3:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? We may have discussed this in years past, I don't recall. A client with a mission-critical but shoddily-written Access app ( a situation we're all far, far too familiar with) is having a problem with users stepping on one another's changes and getting that error message that says: "This record has been changed by another user since you started editing it. If you save the record, you will overwrite the changes the other user made. Copying the changes to the clipboard will let you look at the values the other user entered, and then paste your changes back in if you decide to make the changes. " There's GOT to be a way to capture this message and either handle the conflict programmatically, or swap out a friendlier message, or both.? Even if it involves hooking into an API somewhere, there's GOT to be a way. Has anyone done it, or know someone who has, or know where to find pointers on how to do it, or anything? -C- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Jul 7 15:58:59 2005 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 7 Jul 2005 15:58:59 -0500 Subject: [AccessD] E-Signatures and Audit Trails In-Reply-To: <11043080.1120763740299.JavaMail.root@sniper14> Message-ID: <000101c58336$b640a650$0200a8c0@danwaters> Joe, The FDA has CFR 21 Part 11 under review. You should read this as it is now, and also work with the Regulatory Manager to find out if he/she has a sense of where the regulation is going to end up. Sometimes they can get early information. Also review with the Reg Manager to see what they will need for documented validation of the system. This could be the lion's share of the work you'll need to do. Best of Luck! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Thursday, July 07, 2005 2:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] E-Signatures and Audit Trails On 7/7/05, Joe Rojas wrote: > Hi All, > > 2 of the Access 2000 database systems that we use here are currently being > reviewed to determine if they need to be compliant to the FDA regulation 21 > CFR Part 11 (Electronic Records; Electronic Signatures). > My prediction is that the answer will be yes. > > With that said, I need to find a way to incorporate e-signatures and audit > trails into our systems. > I would hate to reinvent the wheel if someone has already tackled this > problem and is willing to share. :) > > Does anyone have a solution for this that I could incorporate into our > existing system that they would be will to share/sell? > Or does anyone know of a site that shares/sells this kind of solution? > > Thanks! > JR Depends on how you want to do it, and how picky they are. We set up a generic table with timestamp and a few other fields, then made a function that could be put before any common database updates (order processing, payments, etc) that added a record to the transaction table via the function. We made a more specialized one for inventory tracking and billing changes. Only downside is you've got to add it anywhere you touch the data you want to track. It's not the most secure thing, as someone could still go into the audit table and mess with the entries, but it helped us when we had something die on the code side and had to reconstruct the previous data. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Thu Jul 7 18:01:25 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 7 Jul 2005 19:01:25 -0400 Subject: [AccessD] OT Lost shares In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1279CE4B@xlivmbx21.aig.com> Message-ID: Lambert, Yeah that's about it. When a machine boots up, one of the first things it does is try to discover if there is a Master Browser on the subnet. If no, it elects itself. If yes, then an arbitration process occurs to determine which would be the better one. The Master Browser keeps the "official" list of what's on the subnet. This is what you see when you browse network neighborhood. So if the master browser is out of date or non-existent, you've got problems. The NBTSTAT -R clears the local table and requeries the master browser for a new list. This whole thing reminds me once again how good Microsoft is at taking old technology and making it "new". The P2P built into Windows is actually the old LAN Manager product LOL. That's when we went from Win 3.1 to 3.11 (Windows for Workgroups). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 4:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I suspect that the reason was that Windows does not automatically refresh the list of computers on the LAN. There's some time interval that it waits before rebroadcasting them (if that's the right term), something around 30 minutes I think. So when you powered them all up the next day the network found all the new computer names. Something like that anyway. Jim might have a better explanation. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 3:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Lambert: After renaming the computers we could not get the machines to recognize each other on the network. We had turn-off and on each system a couple of times. This morning when I can in the computers were now communicating.... Anyway the system is now working just fine and I am not sure why it was not, before but it now is. Must be from living right. Thanks for the message and help. Now I feel a little silly. Have a good day. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 7:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Jul 7 18:07:37 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 07 Jul 2005 16:07:37 -0700 Subject: [AccessD] E-Signatures and Audit Trails References: <0CC84C9461AE6445AD5A602001C41C4B05A3A4@mercury.tnco-inc.com> Message-ID: <42CDB5B9.2010709@shaw.ca> Couple of thoughts which may or may not be useful. You might want to check through the ARMA site for general info http://www.arma.org Download a free 200 page e-book copy from Microsoft needs mail registration Keeping Your Business Safe from Attack: Passwords and Permissions is a prescriptive guide to implementing security best practices in a Windows network environment. Covers auditing and DRM http://list.windowsitpro.com/t?ctl=DEBF:29783 I have seen this method used to sign PDF forms with a key chain USB token which probably could be adapted to Access, the USB contains a digital certificate. http://www.formrouter.com/digital-signature/index.html By e-signatures do you mean something like a PGP key, digital certificate or a physical signature image Here is a partial method to start capturing signature images, yo may need a tablet or some other input device. Follow these steps to enable handwriting capabilities to Access. 1. Download and install the TabletPC SDK from MS. This will register the InkEdit and InkPicture controls. 2. Open Access and go to a form 3. Select the Additonal Controls icon and Select the Microsoft InkEdit or Microsoft InkPicture 4. Drop the control on the form , right click and select all. All the properties and methods will be exposed. The InkEdit control is a superset of the RichText control. The InkEdit control is designed to provide an easy way to capture, display, and recognize ink. InkEd.dll How did you initially install the control by the Office XP Tablet PC Pack or by the Ink SDK? 1. Download and install the TabletPC SDK. This will register the InkEdit and InkPicture controls. 2. Open Access and go to a form 3. Select the Additonal Controls icon and Select the Microsoft InkEdit or Microsoft InkPicture 4. Drop the control on the form , right click and select all. All the properties and methods will be exposed. Maybe you can set a reference to "Microsoft InkEdit Control" There should be a registry key set on non tablet pc's the SDK installer sets the DWORD \HKEY_LOCAL_MACHINE\SOFTWARE\M?icrosoft\TabletPC\Controls\Ena?bleInkCollectionOnNonTablets to be equal to 1. If you are redistributing the mdb, this has to be set manually by your installer. >Hi All, > >2 of the Access 2000 database systems that we use here are currently being >reviewed to determine if they need to be compliant to the FDA regulation 21 >CFR Part 11 (Electronic Records; Electronic Signatures). >My prediction is that the answer will be yes. > >With that said, I need to find a way to incorporate e-signatures and audit >trails into our systems. >I would hate to reinvent the wheel if someone has already tackled this >problem and is willing to share. :) > >Does anyone have a solution for this that I could incorporate into our >existing system that they would be will to share/sell? >Or does anyone know of a site that shares/sells this kind of solution? > >Thanks! >JR > > > > -- Marty Connelly Victoria, B.C. Canada From clh at christopherhawkins.com Thu Jul 7 18:17:19 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 7 Jul 2005 17:17:19 -0600 Subject: SPAM-LOW: RE: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? Message-ID: <3120136ca7004a75a1fb171854b88b58@christopherhawkins.com> Yes, I know about Edited Record.? The problem is that the creator didn't use it when the app was originally built, ?and due to the way this kludgey thing has evolved over the years, changing it to Edited Record now causes errors. Hence my need for a way to hook into that error. Surely someone at some point must have done this? -C- ---------------------------------------- From: "Dan Waters" Sent: Thursday, July 07, 2005 2:52 PM To: "'Access Developers discussion and problem solving'" Subject: SPAM-LOW: RE: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? Christopher, If you set the database to Edited Record, then users can't step on each other's toes. When one user begins to edit a record, all others are prevented from beginning to make any changes until the first user's changes are saved to the table. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Thursday, July 07, 2005 3:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? We may have discussed this in years past, I don't recall. A client with a mission-critical but shoddily-written Access app ( a situation we're all far, far too familiar with) is having a problem with users stepping on one another's changes and getting that error message that says: "This record has been changed by another user since you started editing it. If you save the record, you will overwrite the changes the other user made. Copying the changes to the clipboard will let you look at the values the other user entered, and then paste your changes back in if you decide to make the changes. " There's GOT to be a way to capture this message and either handle the conflict programmatically, or swap out a friendlier message, or both.? Even if it involves hooking into an API somewhere, there's GOT to be a way. Has anyone done it, or know someone who has, or know where to find pointers on how to do it, or anything? -C- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Jul 7 20:53:59 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Jul 2005 18:53:59 -0700 Subject: SPAM-LOW: RE: [AccessD] Capturing the Drop Changes/Copy toClipboard errormessage? In-Reply-To: <3120136ca7004a75a1fb171854b88b58@christopherhawkins.com> Message-ID: <0IJA00MNVDA215@l-daemon> Hi Christopher: Have you checked out the Forms events like Form_AfterUpdate, Form_AfterInsert or Form_Error to see if you can catch the errors there? HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Thursday, July 07, 2005 4:17 PM To: accessd at databaseadvisors.com Subject: re: SPAM-LOW: RE: [AccessD] Capturing the Drop Changes/Copy toClipboard errormessage? Yes, I know about Edited Record.? The problem is that the creator didn't use it when the app was originally built, ?and due to the way this kludgey thing has evolved over the years, changing it to Edited Record now causes errors. Hence my need for a way to hook into that error. Surely someone at some point must have done this? -C- ---------------------------------------- From: "Dan Waters" Sent: Thursday, July 07, 2005 2:52 PM To: "'Access Developers discussion and problem solving'" Subject: SPAM-LOW: RE: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? Christopher, If you set the database to Edited Record, then users can't step on each other's toes. When one user begins to edit a record, all others are prevented from beginning to make any changes until the first user's changes are saved to the table. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Thursday, July 07, 2005 3:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? We may have discussed this in years past, I don't recall. A client with a mission-critical but shoddily-written Access app ( a situation we're all far, far too familiar with) is having a problem with users stepping on one another's changes and getting that error message that says: "This record has been changed by another user since you started editing it. If you save the record, you will overwrite the changes the other user made. Copying the changes to the clipboard will let you look at the values the other user entered, and then paste your changes back in if you decide to make the changes. " There's GOT to be a way to capture this message and either handle the conflict programmatically, or swap out a friendlier message, or both.? Even if it involves hooking into an API somewhere, there's GOT to be a way. Has anyone done it, or know someone who has, or know where to find pointers on how to do it, or anything? -C- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 R.Griffiths at bury.gov.uk Fri Jul 8 04:47:40 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 8 Jul 2005 10:47:40 +0100 Subject: [AccessD] Re: A2K and .Net Message-ID: <200507080938.j689car26789@smarthost.yourcomms.net> Doris As per intial email, I can't use DateAdd as this is a VBA function and my vb.net FE/A2K BE will bomb out (not havinf MS Access/VBA etc installed) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: 07 July 2005 16:59 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: A2K and .Net You don't need to supply D2 as a parameter, you could let the sproc calculate it for you. DECLARE D2 datetime SET D2 = DateAdd(d, 1, D1) Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Thursday, July 07, 2005 11:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net I have now managed (I think) to get the correct SQL. If D1 is the date to check then I need to supply D2 as a parameter as well with D2= D1 + 1 day (so we get 07/07/2005 00:00 and 08/07/2005 00:00 for D1,D2) So we check if (UnavailableFrom between D1 and D2) or (UnavailableTo between D1 and D2) or (UnavailableFrom<=D1<= UnavailableTo) If any is true then we know the date (D1) falls between the date range UnavailableFrom and UnavailableTo Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 07 July 2005 16:23 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net No, it wouldn't be. YourDate is the equivalent of 07/07/2005 00:00, since dates always have a time component and the default is midnight. So YourDate would be less than UnavailableFrom. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 1:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls [or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 R.Griffiths at bury.gov.uk Fri Jul 8 04:49:21 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 8 Jul 2005 10:49:21 +0100 Subject: [AccessD] Re: A2K and .Net Message-ID: <200507080940.j689eHr26925@smarthost.yourcomms.net> Yes, simply people are booked away for dates/times and I wish to highlight those people so they are not selected to carry out a job, which takes place on a specific day. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 07 July 2005 17:05 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net So you're checking a single day to see if a given date (unavailableFrom or UnavailableTo) falls within that day? Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net I have now managed (I think) to get the correct SQL. If D1 is the date to check then I need to supply D2 as a parameter as well with D2= D1 + 1 day (so we get 07/07/2005 00:00 and 08/07/2005 00:00 for D1,D2) So we check if (UnavailableFrom between D1 and D2) or (UnavailableTo between D1 and D2) or (UnavailableFrom<=D1<= UnavailableTo) If any is true then we know the date (D1) falls between the date range UnavailableFrom and UnavailableTo Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 07 July 2005 16:23 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net No, it wouldn't be. YourDate is the equivalent of 07/07/2005 00:00, since dates always have a time component and the default is midnight. So YourDate would be less than UnavailableFrom. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 1:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls [or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 bheid at appdevgrp.com Fri Jul 8 06:41:51 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 8 Jul 2005 07:41:51 -0400 Subject: [AccessD] Querydef weirdness In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C149DE@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABECAE@ADGSERVER> Stuart, Thanks for the idea! Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, July 07, 2005 3:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Querydef weirdness On 7 Jul 2005 at 15:23, Bobby Heid wrote: > This works fine when running the query by itself or from the report. > Well the user wanted the sum of the data on the chooser form when a > project (or '(All)' is selected. So I run the query via a querydef > and I get the infamous 'expected 1 parameters' error message. If I > remove the where part of the query, it runs fine from the querydef. > > I talked to a co-worker and he has had problems accessing forms from a > query in a querydef too. Has anyone else run into this? Frequently :-( > Anyone have a work-a-round? > I use a static function to hold the value from the control which I set immediately before calling the query. Something like Static Function TempStore(Optional varInput As Variant) As Variant Dim varStore As Variant 'Initialise the variant if the function is called 'the first time with no Input If varStore = Empty Then varStore = Null 'Update the store if the Input is present If Not IsMissing(varInput) Then varStore = varInput 'return the stored value TempStore = varStore End Function Replace [forms]![FormData]![ProjectID] with TempStore() in the query and use "TempStore [ProjectID]" just before you call the query. -- Stuart From John.Clark at niagaracounty.com Fri Jul 8 08:20:17 2005 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 08 Jul 2005 09:20:17 -0400 Subject: [AccessD] "Like" operator help Message-ID: This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark From John.Clark at niagaracounty.com Fri Jul 8 08:24:37 2005 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 08 Jul 2005 09:24:37 -0400 Subject: [AccessD] "Like" operator help Message-ID: I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Fri Jul 8 08:30:00 2005 From: pharold at proftesting.com (Perry L Harold) Date: Fri, 8 Jul 2005 09:30:00 -0400 Subject: [AccessD] "Like" operator help Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD03D0D0@EXCHANGE.ptiorl.local> Try LIKE "Tylenol*" Like "T*" In the criteria area. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:20 AM To: accessd at databaseadvisors.com Subject: [AccessD] "Like" operator help This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Fri Jul 8 08:32:56 2005 From: pharold at proftesting.com (Perry L Harold) Date: Fri, 8 Jul 2005 09:32:56 -0400 Subject: [AccessD] "Like" operator help Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD03D0D1@EXCHANGE.ptiorl.local> Append the global "*" to whatever is the value entered (as a string) with the "&" character and then submit to the query. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 isharp.co.uk Fri Jul 8 08:37:51 2005 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Fri, 8 Jul 2005 14:37:51 +0100 Subject: [AccessD] "Like" operator help In-Reply-To: Message-ID: If I remember rightly I think it's something like Like '" & [YourField] & "*'" Like SingleQuoteDoubleQuote & [YourField] & DoubleQuote*SingleQuoteDoubleQuote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: 08 July 2005 14:25 To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 JHewson at karta.com Fri Jul 8 08:38:11 2005 From: JHewson at karta.com (Jim Hewson) Date: Fri, 8 Jul 2005 08:38:11 -0500 Subject: [AccessD] "Like" operator help Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C03629B3D@karta-exc-int.Karta.com> In the criteria of the query try this: Like forms!frmFormName!ControlName & "*" Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 8:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Fri Jul 8 08:39:24 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 8 Jul 2005 09:39:24 -0400 Subject: [AccessD] "Like" operator help Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1279CF2D@xlivmbx21.aig.com> You could put a criteria like this in your query design Like [Initial Letters] & "*" Then when the query runs the user will get a dialog asking for the initial letters and the "*" gets tacked on the end to give you the result you want. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:20 AM To: accessd at databaseadvisors.com Subject: [AccessD] "Like" operator help This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Fri Jul 8 08:47:36 2005 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 08 Jul 2005 09:47:36 -0400 Subject: [AccessD] "Like" operator help Message-ID: I really didn't want to use a form...this is just a simple table (i.e. not a whole program) that our nursing department will use...they get an update monthly (I think it is) and just want to quickly access any given drug. But, I did think a form may be the answer, so I whipped up a quick litte one. One the form I've got a text box (Text0) and a label (Text2)...I'm just playing right now, so the names are defaults. On the "On Change" property of Text0, I've got a statment that says Text2.Caption = "Like '" & Text0.Text & "*'" This is working fine in the label, as it is showing up the way I want it...although I just noticed that I only have single quotes...hmmmm. I bet if I can get double quote in there it works. Right now, if I put "t" into Text0, I see: Like 't*' in Text2, and in the query I have [Forms]![enterfrm]![Text2] in the criteria section. This little bugger is turning out to be...well...a little bugger ;( >>> pharold at proftesting.com 7/8/2005 9:32 AM >>> Append the global "*" to whatever is the value entered (as a string) with the "&" character and then submit to the query. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Fri Jul 8 08:50:11 2005 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 08 Jul 2005 09:50:11 -0400 Subject: [AccessD] "Like" operator help Message-ID: OK! This worked...thank you! But, I thought I had already tried this...I must have done a typo before. >>> Lambert.Heenan at aig.com 7/8/2005 9:39 AM >>> You could put a criteria like this in your query design Like [Initial Letters] & "*" Then when the query runs the user will get a dialog asking for the initial letters and the "*" gets tacked on the end to give you the result you want. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:20 AM To: accessd at databaseadvisors.com Subject: [AccessD] "Like" operator help This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Jul 8 11:18:19 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 08 Jul 2005 18:18:19 +0200 Subject: [AccessD] OT Lost shares Message-ID: Hi Jim This is standard behaviour of a Windows Network (peer-to-peer). /gustav >>> accessd at shaw.ca 07/07 9:58 pm >>> Thanks for that Jim. That was the item that I could just not remember. The site starting working after it sat on over-night so the system must refresh it's after a certain amount of time passes. The nbstat -R command would do the same instantly. I will not forget it for another few years. Thanks again Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, July 07, 2005 10:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares <> A better way to refresh is to drop to the DOS prompt and do: NBTSTAT -R You can also use NBTSTAT to see what's going on (use it with no switch to see all the options). NBTSTAT lets you look at each machines name cache table. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Bartow Sent: Thursday, July 07, 2005 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I agree. I think its because of the way w98 announces and caches P2P computers and shares. If you remove the share from the troublesome PCs and then add a new share it will probably show up. You can sometimes force it to refresh better if you go through the Netwrok places | Entire Network | Workgroup avenue with explorer. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Fri Jul 8 14:45:08 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 8 Jul 2005 15:45:08 -0400 Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address In-Reply-To: <42CC6590.3090507@shaw.ca> Message-ID: <200507081945.j68Jj9R15088@databaseadvisors.com> I am not sure whether to send this to this group or to dba-Tech but here is the issue... I was looking at the code supplied by Helen Fedemma for interfacing Access to Outlook, and on my boxes (two are relevant) nothing runs! I want to load her code and then talk to it via Access and I cannot make anything work. Has anyone made her code work successfully... TIA, Arthur From artful at rogers.com Fri Jul 8 14:47:11 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 8 Jul 2005 15:47:11 -0400 Subject: [AccessD] OT Lost shares In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1279CC4F@xlivmbx21.aig.com> Message-ID: <200507081947.j68JlDR15771@databaseadvisors.com> IMO, sadly, renaming a computer breaks numerous things. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: July 7, 2005 10:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 artful at rogers.com Fri Jul 8 14:52:14 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 8 Jul 2005 15:52:14 -0400 Subject: [AccessD] Read the contents of a file into a memvar In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3A4@mercury.tnco-inc.com> Message-ID: <200507081952.j68JqIR16860@databaseadvisors.com> I need to do what the subject says. The file might possibly be 1000 chars but more likely fewer. What I would ideally like to do is this: Dim myText as string Dim strSourceFile as string strSourceFile = xxxx myText = ReadFile( strSourceFile ) And then, once I am done, post said text to a Word bookmark... but that part is easy. TIA, Arthur From Lambert.Heenan at AIG.com Fri Jul 8 15:39:54 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 8 Jul 2005 16:39:54 -0400 Subject: [AccessD] Read the contents of a file into a memvar Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F12CDBA30@xlivmbx21.aig.com> Try this... Function ReadFile(strFilePath As String) As String Dim strFileName As String Dim nLength As Long Dim fh As Long strFileName = Dir(strFilePath) If strFileName & "" = "" Then ReadFile = "" Else nLength = FileLen(strFilePath) fh = FreeFile Open strFilePath For Input As #fh ReadFile = Input(nLength, #fh) Close #fh End If End Function Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, July 08, 2005 3:52 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Read the contents of a file into a memvar I need to do what the subject says. The file might possibly be 1000 chars but more likely fewer. What I would ideally like to do is this: Dim myText as string Dim strSourceFile as string strSourceFile = xxxx myText = ReadFile( strSourceFile ) And then, once I am done, post said text to a Word bookmark... but that part is easy. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Fri Jul 8 15:41:38 2005 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Fri, 8 Jul 2005 15:41:38 -0500 Subject: [AccessD] Read the contents of a file into a memvar Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F804E@cpixchng-1.cpiqpc.net> Arthur, If the file you're reading is just a simple text file, then the following should work: Function ImportTextFileIntoVar() Dim strTextLine Dim strFileText As String Dim strFileName As String strFileName = "i:\test.txt" Open strFileName For Input As #1 Do While Not EOF(1) Line Input #1, strTextLine strFileText = strFileText & vbCrLf & strTextLine Loop Close 1 End Function Rusty -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, July 08, 2005 2:52 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Read the contents of a file into a memvar I need to do what the subject says. The file might possibly be 1000 chars but more likely fewer. What I would ideally like to do is this: Dim myText as string Dim strSourceFile as string strSourceFile = xxxx myText = ReadFile( strSourceFile ) And then, once I am done, post said text to a Word bookmark... but that part is easy. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From Lambert.Heenan at AIG.com Fri Jul 8 15:50:35 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 8 Jul 2005 16:50:35 -0400 Subject: [AccessD] Read the contents of a file into a memvar Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F12CDBA39@xlivmbx21.aig.com> This code will not work because you do not assign the value of strFileText to the name of the function (which is how you make a function return something). Also you did not declare the function return type, so it will default to a Variant. Not that that would prevent the function for working. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Friday, July 08, 2005 4:42 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Read the contents of a file into a memvar Arthur, If the file you're reading is just a simple text file, then the following should work: Function ImportTextFileIntoVar() Dim strTextLine Dim strFileText As String Dim strFileName As String strFileName = "i:\test.txt" Open strFileName For Input As #1 Do While Not EOF(1) Line Input #1, strTextLine strFileText = strFileText & vbCrLf & strTextLine Loop Close 1 End Function Rusty -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, July 08, 2005 2:52 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Read the contents of a file into a memvar I need to do what the subject says. The file might possibly be 1000 chars but more likely fewer. What I would ideally like to do is this: Dim myText as string Dim strSourceFile as string strSourceFile = xxxx myText = ReadFile( strSourceFile ) And then, once I am done, post said text to a Word bookmark... but that part is easy. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Fri Jul 8 15:59:25 2005 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Fri, 8 Jul 2005 15:59:25 -0500 Subject: [AccessD] Read the contents of a file into a memvar Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F804F@cpixchng-1.cpiqpc.net> Can't disagree with you there. I just got in an hurry and focused on the code to get the file text into a variable. Should have spent an extra minute or two on it. thanks -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Friday, July 08, 2005 3:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Read the contents of a file into a memvar This code will not work because you do not assign the value of strFileText to the name of the function (which is how you make a function return something). Also you did not declare the function return type, so it will default to a Variant. Not that that would prevent the function for working. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Friday, July 08, 2005 4:42 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Read the contents of a file into a memvar Arthur, If the file you're reading is just a simple text file, then the following should work: Function ImportTextFileIntoVar() Dim strTextLine Dim strFileText As String Dim strFileName As String strFileName = "i:\test.txt" Open strFileName For Input As #1 Do While Not EOF(1) Line Input #1, strTextLine strFileText = strFileText & vbCrLf & strTextLine Loop Close 1 End Function Rusty -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, July 08, 2005 2:52 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Read the contents of a file into a memvar I need to do what the subject says. The file might possibly be 1000 chars but more likely fewer. What I would ideally like to do is this: Dim myText as string Dim strSourceFile as string strSourceFile = xxxx myText = ReadFile( strSourceFile ) And then, once I am done, post said text to a Word bookmark... but that part is easy. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From stuart at lexacorp.com.pg Fri Jul 8 18:46:07 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 09 Jul 2005 09:46:07 +1000 Subject: [AccessD] Read the contents of a file into a memvar In-Reply-To: <200507081952.j68JqIR16860@databaseadvisors.com> References: <0CC84C9461AE6445AD5A602001C41C4B05A3A4@mercury.tnco-inc.com> Message-ID: <42CF9CDF.22181.459CF9E@stuart.lexacorp.com.pg> On 8 Jul 2005 at 15:52, Arthur Fuller wrote: > I need to do what the subject says. The file might possibly be 1000 chars > but more likely fewer. What I would ideally like to do is this: > > Dim myText as string > Dim strSourceFile as string > strSourceFile = xxxx > myText = ReadFile( strSourceFile ) > > And then, once I am done, post said text to a Word bookmark... but that part > is easy. > Function Readfile(SourceFile As String) As String Dim strBuffer As String 'Make the Buffer the full size of the file strBuffer = Space$(FileLen(SourceFile)) 'Allow for concurrent multi user access Open SourceFile For Binary Access Read Shared As #1 Get #1, , strBuffer Close #1 Readfile = strBuffer End Function -- Stuart From Gustav at cactus.dk Sat Jul 9 06:21:19 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 09 Jul 2005 13:21:19 +0200 Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address Message-ID: Hi Arthur Some hints may be found here: http://www.outlookcode.com/d/database.htm By the way, Helen's code is sometimes heavily non-internationalised (read: extremely US specific) which may be what is causing you problems. /gustav >>> artful at rogers.com 07/08 9:45 pm >>> I am not sure whether to send this to this group or to dba-Tech but here is the issue... I was looking at the code supplied by Helen Fedemma for interfacing Access to Outlook, and on my boxes (two are relevant) nothing runs! I want to load her code and then talk to it via Access and I cannot make anything work. Has anyone made her code work successfully... TIA, Arthur From artful at rogers.com Sat Jul 9 14:35:28 2005 From: artful at rogers.com (Arthur Fuller) Date: Sat, 9 Jul 2005 15:35:28 -0400 Subject: [AccessD] Access to Word interface In-Reply-To: Message-ID: <200507091935.j69JZTR14051@databaseadvisors.com> Thanks for the heads-up Gustav! More specifically, the issue is this. I've got a Word doc (template) that I populate with a bunch of data extracted from a query. I use bookmarks and all that works nicely. The doc (dot) also contains two bookmarks which represent where subtables should appear. (For simplicity think of the query as bank-customer info and the two tables as deposits and withdrawals. That's not the actual case but it suffices as an example.) Because I couldn't make Helen's code run satisfactorily, I have been groping for alternative solutions. But before painting myself into a corner, I'll describe the problem itself... and maybe someone has a more elegant approach. Query1: delivers a bunch of columns from several related tables in one row. I use this to populate the bookmarks in the dot/doc. ST1: (subtable 1) here I need to present the rows returned from a query (deposits, say, sticking to the aforementioned example). ST2: (subtable 2) here I need to present the rows returned from a query (withdrawals, say, again sticking to the aforementioned example). My original concept was to create both tables in the dot file, having a header row and nothing else, then dynamically add as many rows as I need. Let's assume that Query 1 returns 5 rows, and the table has 4 columns. I don't understand how to fill said table with exactly 5 new rows, planting each column into its matching table-column. Since I couldn't figure out how to do that (Helen's code looked promising but I couldn't get even her examples using Northwind to work), I opted instead for placing two bookmarks in the dot file and generating a pair of HTML files, one for each table, then reading the contents of said two files into memory and plonking their data into the two bookmarks representing table 1 and table 2. Perhaps this is a completely asinine way to go about it, but I've never had to populate a table within a Word doc before, so I'm blindly groping around for a way that works. The code that populates the bookmarks is solid. Basically, I create a new Word document object and then assign values to each bookmark from the recordset that I open. All this works splendidly. But now I come to the two sub-tables. What I'm doing at the moment works but doesn't result in exquisite layout... and besides, I'm sure there is a way hipper method of accomplishing the task. During generation of the data, I write the two sub-tables' queries to a pair of HTM files whose name is known. Then I open the Word doc, populate the bookmarks and then deal with the two embedded sub-tables. I use code supplied earlier on this thread to inhale the two HTM files, then bang their contents into the bookmarks Table1 and Table2. It works, sort of. What I would much rather do, if possible, is comprehend how to dynamically expand Table1 to accommodate the X rows that it receives on this call (and the Y rows it might receive on the next call). And ditto with Table2. I.e. Dear , Here is your bank statement for last month. Deposits: Date Amount Withdrawals: Date Amount I could create an additional row for each table and leave it blank, then start populating there and add additional rows as needed. Or each table could consist only of the header row. Or I could add N rows to each table, populate them as I go and delete the unrequired rows. What I don't understand is how to take the N rows returned from Qst 1 and bang each row's values into table T1, column by column, then next row. I have the vague feeling that Range may play a role here, but I don't know where to go with this notion. So let's ignore Q1 (which just goes into the single bookmarks)... no problem there. Now let's say Q2 returns 5 rows and Q3 returns 7 rows. How would I go about populating T1 with the 5 rows returned by Q1? Before writing this, I have invested some time reading the "help"... alas, to no avail. Any advice, guidance or free pain-killers gratefully accepted! Arthur From artful at rogers.com Sat Jul 9 14:45:56 2005 From: artful at rogers.com (Arthur Fuller) Date: Sat, 9 Jul 2005 15:45:56 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: Message-ID: <200507091945.j69JjvR16424@databaseadvisors.com> I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur From jwcolby at colbyconsulting.com Sat Jul 9 15:40:43 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 09 Jul 2005 16:40:43 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <200507091945.j69JjvR16424@databaseadvisors.com> Message-ID: <000401c584c6$7a4db070$6c7aa8c0@ColbyM6805> Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jul 9 15:50:47 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 09 Jul 2005 16:50:47 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <000401c584c6$7a4db070$6c7aa8c0@ColbyM6805> Message-ID: <000601c584c7$e509f300$6c7aa8c0@ColbyM6805> Sorry, I missed the part about wanting only specific types of controls. Function TestCtlType() Dim ctl As Control ctl.ControlType End Function Place your click on the .ControlType and hit F1. Help on ControlType will come up showing a list fo constants for all control types. You code will now look something like: Sub DumpRowSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls '<--- this is the important part 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jul 9 16:17:47 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 09 Jul 2005 17:17:47 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <000601c584c7$e509f300$6c7aa8c0@ColbyM6805> Message-ID: <000701c584cb$a7c43b50$6c7aa8c0@ColbyM6805> BTW, this is exactly how my framework's form class instantiates a class for each control found on the form. Using a big case statement I instantiate a class specific to the control type, then pass in the control to the class instance, and save a pointer to each control class in a collection in the form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sorry, I missed the part about wanting only specific types of controls. Function TestCtlType() Dim ctl As Control ctl.ControlType End Function Place your click on the .ControlType and hit F1. Help on ControlType will come up showing a list fo constants for all control types. You code will now look something like: Sub DumpRowSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls '<--- this is the important part 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sun Jul 10 03:52:03 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 10 Jul 2005 10:52:03 +0200 Subject: [AccessD] Access to Word interface Message-ID: Hi Arthur I don't work much with Word - in fact as little as possible - neither with Word tables, but this works for me: Sub AddRows(ByVal lngRowsAdd As Long) Dim tbl As Table Dim lngCount As Long Dim lngRow As Long Set tbl = ActiveDocument.Tables(1) lngRow = tbl.Rows.Count For lngCount = 1 To lngRowsAdd tbl.Rows(lngRow).Range.Rows.Add Next Set tbl = Nothing End Sub /gustav >>> artful at rogers.com 07/09 9:35 pm >>> Thanks for the heads-up Gustav! More specifically, the issue is this. I've got a Word doc (template) that I populate with a bunch of data extracted from a query. I use bookmarks and all that works nicely. The doc (dot) also contains two bookmarks which represent where subtables should appear. (For simplicity think of the query as bank-customer info and the two tables as deposits and withdrawals. That's not the actual case but it suffices as an example.) Because I couldn't make Helen's code run satisfactorily, I have been groping for alternative solutions. But before painting myself into a corner, I'll describe the problem itself... and maybe someone has a more elegant approach. Query1: delivers a bunch of columns from several related tables in one row. I use this to populate the bookmarks in the dot/doc. ST1: (subtable 1) here I need to present the rows returned from a query (deposits, say, sticking to the aforementioned example). ST2: (subtable 2) here I need to present the rows returned from a query (withdrawals, say, again sticking to the aforementioned example). My original concept was to create both tables in the dot file, having a header row and nothing else, then dynamically add as many rows as I need. Let's assume that Query 1 returns 5 rows, and the table has 4 columns. I don't understand how to fill said table with exactly 5 new rows, planting each column into its matching table-column. Since I couldn't figure out how to do that (Helen's code looked promising but I couldn't get even her examples using Northwind to work), I opted instead for placing two bookmarks in the dot file and generating a pair of HTML files, one for each table, then reading the contents of said two files into memory and plonking their data into the two bookmarks representing table 1 and table 2. Perhaps this is a completely asinine way to go about it, but I've never had to populate a table within a Word doc before, so I'm blindly groping around for a way that works. The code that populates the bookmarks is solid. Basically, I create a new Word document object and then assign values to each bookmark from the recordset that I open. All this works splendidly. But now I come to the two sub-tables. What I'm doing at the moment works but doesn't result in exquisite layout... and besides, I'm sure there is a way hipper method of accomplishing the task. During generation of the data, I write the two sub-tables' queries to a pair of HTM files whose name is known. Then I open the Word doc, populate the bookmarks and then deal with the two embedded sub-tables. I use code supplied earlier on this thread to inhale the two HTM files, then bang their contents into the bookmarks Table1 and Table2. It works, sort of. What I would much rather do, if possible, is comprehend how to dynamically expand Table1 to accommodate the X rows that it receives on this call (and the Y rows it might receive on the next call). And ditto with Table2. I.e. Dear , Here is your bank statement for last month. Deposits: Date Amount Withdrawals: Date Amount I could create an additional row for each table and leave it blank, then start populating there and add additional rows as needed. Or each table could consist only of the header row. Or I could add N rows to each table, populate them as I go and delete the unrequired rows. What I don't understand is how to take the N rows returned from Qst 1 and bang each row's values into table T1, column by column, then next row. I have the vague feeling that Range may play a role here, but I don't know where to go with this notion. So let's ignore Q1 (which just goes into the single bookmarks)... no problem there. Now let's say Q2 returns 5 rows and Q3 returns 7 rows. How would I go about populating T1 with the 5 rows returned by Q1? Before writing this, I have invested some time reading the "help"... alas, to no avail. Any advice, guidance or free pain-killers gratefully accepted! Arthur From jwcolby at colbyconsulting.com Sun Jul 10 07:07:16 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 10 Jul 2005 08:07:16 -0400 Subject: [AccessD] Access developer workbench Message-ID: <002201c58547$ee7f2790$6c7aa8c0@ColbyM6805> I just found the following utility which I have NOT tried yet but I thought looked interesting, particularly for you developers managing multiple applications and Access versions. Main Feature List >>> The software will * show you the computer and Access user name of all connections to a database. More.. * allow you to compact/repair or backup a database as soon as everyone logs off. * open the correct version of Access for you. More.. * let you keep a list of favorites along with the Access version that you want to open it, the relevant workgroup file and the minimum size to schedule a compaction. More.. * let you send messages to users and shutdown the database. More.. * allow you to compile for increased performance and decompile a database to remove compilation junk. More.. * allow you to setup reminders relevant to your database. http://www.vb123.com/workbench/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From artful at rogers.com Sun Jul 10 09:07:46 2005 From: artful at rogers.com (Arthur Fuller) Date: Sun, 10 Jul 2005 10:07:46 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <000701c584cb$a7c43b50$6c7aa8c0@ColbyM6805> Message-ID: <200507101407.j6AE7pR22822@databaseadvisors.com> I'm still doing something wrong, clearly. It doesn't seem to like the declaration (perhaps because in the outer function I'm dimming frm as an object not a form?) '--------------------------------------------------------------------------- ------------ ' Procedure : ListFormDataSources ' DateTime : 31/05/2005 09:37 ' Author : Arthur Fuller ' Purpose : list all the data sources from the forms in the current database '--------------------------------------------------------------------------- ------------ ' Sub ListFormDataSources() Dim frm As AccessObject ' changing this to object or form doesn't work Dim db As CurrentProject Dim i As Integer On Error GoTo ListFormDataSources_Error Set db = CurrentProject Application.Echo False 'Check form recordsource For Each frm In db.AllForms DoCmd.OpenForm frm.Name, acDesign If Forms(frm.Name).RecordSource <> "" Then Debug.Print i, frm.Name & ": " Debug.Print Forms(frm.Name).RecordSource End If ListRowDataSources (frm) DoCmd.Close acForm, frm.Name i = i + 1 Next frm Application.Echo True Set frm = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ListFormDataSources_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure ListFormDataSources of Module aa_Listers" End Sub 'and then your code... Sub ListRowDataSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: July 9, 2005 5:18 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form BTW, this is exactly how my framework's form class instantiates a class for each control found on the form. Using a big case statement I instantiate a class specific to the control type, then pass in the control to the class instance, and save a pointer to each control class in a collection in the form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sorry, I missed the part about wanting only specific types of controls. Function TestCtlType() Dim ctl As Control ctl.ControlType End Function Place your click on the .ControlType and hit F1. Help on ControlType will come up showing a list fo constants for all control types. You code will now look something like: Sub DumpRowSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls '<--- this is the important part 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Sun Jul 10 12:11:03 2005 From: artful at rogers.com (Arthur Fuller) Date: Sun, 10 Jul 2005 13:11:03 -0400 Subject: [AccessD] Opening a log and keeping it open (cross-posted to dba-sql) In-Reply-To: <200507101407.j6AE7pR22822@databaseadvisors.com> Message-ID: <200507101711.j6AHB6R30338@databaseadvisors.com> I've got a procedure called ExecuteCommand (which perhaps ought to have been named ExecuteSQLCommand, but anyway). It encapsulates a bunch of stuff like the current project connection and such, and contains debug code that prints the SQL it is attempting to execute, and also an error handler that reports "Problem executing " + the SQL code it received. This is all very nice and works splendidly. However, the debug window has decided limitations, so I've been thinking that I should write all this information to a sort of transaction log. Basically, take what I now print to the debug window and re-direct it to an ASCII file of a known name, etc. I have worked with reading and writing ASCII text files so I'm not a complete na?f in this regard, but I do have a question. Suppose that I revise the code such that the first time ExcuteCommand is called it opens the file, creating it if necessary, and leaves it open. Every subsequent visit to Execute Command finds the file open and simply appends its SQL statement, just as it would to the debug window... but with the advantage that I could have several hours' worth of statements recorded to the file, rather than merely the last N lines of the debug buffer. 1. Would the app suffer in terms of performance if I did this? 2. Assuming that I opened the file in the usual way (as #1 or whatever), and assuming that somewhere in the app I also open another text file, should I protect myself by opening it as #98765 or somesuch, so that if you drop said module into one of your apps, it would be guaranteed to work even if your app opens a dozen other text files at various points? 3. Presumably the code would also need a "close the file" chunk, but in the ideal world I wouldn't want you to have to code any special thing into your "close app" procedure. So perhaps this might be better dealt with as a class? But I seem to recall from Shamil's writing on classes that there is an issue regarding the proper termination and garbage disposal of a class. Any suggestions, anyone? Arthur From clh at christopherhawkins.com Sun Jul 10 13:31:00 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Sun, 10 Jul 2005 12:31:00 -0600 Subject: [AccessD] Access developer workbench Message-ID: <1a227ac00c254eb6a37076ee063bc3c4@christopherhawkins.com> Interesting.? The author appears to have taken the best Access utilities scattered around the web an re-written them into an integrated package. That's almost cool enough to make me wish I still did a lot of Access work.? Almost.? ;)? -C- ---------------------------------------- From: "John W. Colby" Sent: Sunday, July 10, 2005 6:08 AM To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Access developer workbench I just found the following utility which I have NOT tried yet but I thought looked interesting, particularly for you developers managing multiple applications and Access versions. Main Feature List >>> The software will * show you the computer and Access user name of all connections to a database. More.. * allow you to compact/repair or backup a database as soon as everyone logs off. * open the correct version of Access for you. More.. * let you keep a list of favorites along with the Access version that you want to open it, the relevant workgroup file and the minimum size to schedule a compaction. More.. * let you send messages to users and shutdown the database. More.. * allow you to compile for increased performance and decompile a database to remove compilation junk. More.. * allow you to setup reminders relevant to your database. http://www.vb123.com/workbench/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Jul 10 14:24:46 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 11 Jul 2005 05:24:46 +1000 Subject: [AccessD] Re: [dba-SQLServer] Opening a log and keeping it open (cross-posted to dba-sql) In-Reply-To: <200507101711.j6AHB6R30337@databaseadvisors.com> References: <200507101407.j6AE7pR22822@databaseadvisors.com> Message-ID: <42D2029E.4819.DB72EEA@stuart.lexacorp.com.pg> On 10 Jul 2005 at 13:11, Arthur Fuller wrote: > Suppose that I > revise the code such that the first time ExcuteCommand is called it opens > the file, creating it if necessary, and leaves it open. Every subsequent > visit to Execute Command finds the file open and simply appends its SQL > statement, just as it would to the debug window... but with the advantage > that I could have several hours' worth of statements recorded to the file, > rather than merely the last N lines of the debug buffer. The problem with leaving the file open is that the OS is likely to keep a lock on it if your app crashes. Keeping it open may also prevent you from accessing the log info while your app is running. Depending on how frequently you will be logging, try opening the file, appending the log entry and then closing it again. Although slightly slower, it is much safer. > > 1. Would the app suffer in terms of performance if I did this? Writing out to a text file is pretty fast. It all depends on how often you are expecting ExecuteCommand to Execute. I wouldn't expect any noticable performance drop in normal circumstances. > 2. Assuming that I opened the file in the usual way (as #1 or whatever), and > assuming that somewhere in the app I also open another text file, should I > protect myself by opening it as #98765 or somesuch, You have to use file numbers in the range 1?255, inclusive for files not accessible to other applications or file numbers in the range 256?511 for files accessible from other applications. > so that if you drop said > module into one of your apps, it would be guaranteed to work even if your > app opens a dozen other text files at various points? Use FreeFile or FreeFile(0) to get the next available handle in the range 1 - 255 or FreeFile(1) to get the next available handle in the range 256 - a511. > 3. Presumably the code would also need a "close the file" chunk, but in the > ideal world I wouldn't want you to have to code any special thing into your > "close app" procedure. So perhaps this might be better dealt with as a > class? But I seem to recall from Shamil's writing on classes that there is > an issue regarding the proper termination and garbage disposal of a class. > > Any suggestions, anyone? Here's a simple shell for the above ideas without an error handling Function Log(strLogInfo as String) Dim intLogFileNunber as Integer Dim strLogFile as String strLogFile = "Logfile.txt" intLogFileNumber = Freefile Open strLogFile For Append As #intLogFileNumber Print#1, strLogInfo Close $intLogFileNumber End Function -- Stuart From jwcolby at colbyconsulting.com Sun Jul 10 14:31:05 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 10 Jul 2005 15:31:05 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <200507101407.j6AE7pR22822@databaseadvisors.com> Message-ID: <003801c58585$ea5cc4e0$6c7aa8c0@ColbyM6805> Yes, you cannot pass an object in as a form John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Sunday, July 10, 2005 10:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form I'm still doing something wrong, clearly. It doesn't seem to like the declaration (perhaps because in the outer function I'm dimming frm as an object not a form?) '--------------------------------------------------------------------------- ------------ ' Procedure : ListFormDataSources ' DateTime : 31/05/2005 09:37 ' Author : Arthur Fuller ' Purpose : list all the data sources from the forms in the current database '--------------------------------------------------------------------------- ------------ ' Sub ListFormDataSources() Dim frm As AccessObject ' changing this to object or form doesn't work Dim db As CurrentProject Dim i As Integer On Error GoTo ListFormDataSources_Error Set db = CurrentProject Application.Echo False 'Check form recordsource For Each frm In db.AllForms DoCmd.OpenForm frm.Name, acDesign If Forms(frm.Name).RecordSource <> "" Then Debug.Print i, frm.Name & ": " Debug.Print Forms(frm.Name).RecordSource End If ListRowDataSources (frm) DoCmd.Close acForm, frm.Name i = i + 1 Next frm Application.Echo True Set frm = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ListFormDataSources_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure ListFormDataSources of Module aa_Listers" End Sub 'and then your code... Sub ListRowDataSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: July 9, 2005 5:18 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form BTW, this is exactly how my framework's form class instantiates a class for each control found on the form. Using a big case statement I instantiate a class specific to the control type, then pass in the control to the class instance, and save a pointer to each control class in a collection in the form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sorry, I missed the part about wanting only specific types of controls. Function TestCtlType() Dim ctl As Control ctl.ControlType End Function Place your click on the .ControlType and hit F1. Help on ControlType will come up showing a list fo constants for all control types. You code will now look something like: Sub DumpRowSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls '<--- this is the important part 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 clh at christopherhawkins.com Sun Jul 10 15:08:18 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Sun, 10 Jul 2005 14:08:18 -0600 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? Message-ID: This message should be a fun one, as there is a technical issue and a business issue.? Feel free to comment on whichever one you want.? ;) First, the technical: This is related to my recent inquiry into whether or not there is a way to capture the write conflict error when it happens.? I noticed that the client with the home-brewed Access app had their DB-level Default Record Locking set to No Locks.? I'm talking about the option you find at Tools > Options > Advanced > Default Record Locking.? So, I went ahead and set that to Edited Record. However, as I've mentioned before, the actual forms are all set to No Locks.? The first thing I tried was changing all these forms to Edited Record, but there is a bunch of creaky state-management code that causes errors to be thrown when this setting is in place. I'm testing the system, but to be frank I've never been able to duplicate the write conflict, although my client's employees seem to do it all the time.? Sadly, they can't do it in my presence or tell me the exact steps to reproduce.? They do manage to send me the screenshots, though.? ;)? I really want to get these folks squared away, but they just can't communicate to me what they're doing, so I've got ot figure it out on my own. Here is what I am curious about:? in a case where the DB-level settings specify Edited Record locks and the forms themselves specify No Locks, which setting wins?? I've been poring over support.microsoft.com but have found no answers to this question so far. Now, the business question: As you may or may not know,?my?business?specializes in remediation work - that is to say, most of my clients come to me with projects in-crisis because they tried to go the do-it-yourself route, or because they tried to pinch pennies by hiring some amateur, and they've ended up with poorly-working or even outright broken systems.? Most of the time, I manage to get the systems in workable shape.? Of course, there is only so much you can do with a badly-written codebase once it gets to a certain level of depth, but over the years I have developed a pretty good track record of bringing out the good in bad systems. Here is an interesting twist - the client with the Access db in the technical example above wants me to offer a warranty on the whole application.? Bear in mind that I did not write this application - I am only fixing specific problems and adding a few features.? I always warrant my own work when it is ground-up, but how can one possibly give a warranty on a codebase that is 85% written by someone else?? In particular, we're taliking about a deep and poorly-written codebase;?since I'm positioned as an expert on rescuing at-risk projects, nobody comes to me when their projects are going well? ;).? Even with decent testing (that most clients are reluctant to pay for, ironically), I find it is?diffucult to predict?when real-world usage will cause some rarely-used subroutine to rise from the depths and do something that breaks my sparkly, new, well-designed code.? I notice that this expectation is becoming more and more frequent, and I am of the opinion that it is just not reasonable.? Of course, at the same time I want to be as useful as possible to my clients.? I am highly empathetic to the fact that people who lack a foundation in software cratsmanship/engineering?probably don't understand that hiring your 19-year old nephew who "knows computers" to build an?enterprise ERP system for $15/hour is 99% guaranteed to be a disaster.? Is anyone else struggling with the issue of being expected to offer a warranty on the entirety of?an existing codebase once you've made a few changes to it?? If so, how are you handling it? -C- From stuart at lexacorp.com.pg Sun Jul 10 15:24:46 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 11 Jul 2005 06:24:46 +1000 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? In-Reply-To: charset=iso-8859-1 Message-ID: <42D210AE.22730.DEE174F@stuart.lexacorp.com.pg> On 10 Jul 2005 at 14:08, Christopher Hawkins wrote: > First, the technical: > > Tools > Options > Advanced > Default Record Locking.? So, I went ahead and set that to Edited > ...... > Here is what I am curious about:? in a case where the DB-level settings specify Edited Record > locks and the forms themselves specify No Locks, which setting wins?? I've been poring over > support.microsoft.com but have found no answers to this question so far. Note the word "Default" under Tools-Options.... it's just that - a default so that you don't have to set it on every object if you generally want the same setting. The actual setting on an object will override this. What you specify on the Form is what you get. -- Stuart From stuart at lexacorp.com.pg Sun Jul 10 15:28:58 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 11 Jul 2005 06:28:58 +1000 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? In-Reply-To: charset=iso-8859-1 Message-ID: <42D211AA.12818.DF1F0C9@stuart.lexacorp.com.pg> On 10 Jul 2005 at 14:08, Christopher Hawkins wrote: > Is anyone else struggling with the issue of being expected to offer a warranty on the entirety > of?an existing codebase once you've made a few changes to it?? If so, how are you handling it? As JC said a couple of weaks ago when I said that I was remediating a similar system: "And of course the last developer to touch the db is responsible for ALL problems." No way do you warrant anything unless you built it yourself. That way lies ruin. -- Stuart From bheygood at abestsystems.com Sun Jul 10 15:51:36 2005 From: bheygood at abestsystems.com (Bob Heygood) Date: Sun, 10 Jul 2005 13:51:36 -0700 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <1a227ac00c254eb6a37076ee063bc3c4@christopherhawkins.com> Message-ID: Hello to the list, I want to change the Caption property of a report from a form via code. Can anyone help me? thanks,, bob From dwaters at usinternet.com Sun Jul 10 16:26:51 2005 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 10 Jul 2005 16:26:51 -0500 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <24778749.1121028183485.JavaMail.root@sniper21> Message-ID: <000001c58596$18aff320$0300a8c0@danwaters> Bob, Programmatically, you'll need to open the report in Design mode, then change the caption, then close and save the report. I suspect this will only work if your database is an .mdb. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, July 10, 2005 3:52 PM To: Access Developers discussion and problem solving Subject: [AccessD] Change Reports Caption From Code Hello to the list, I want to change the Caption property of a report from a form via code. Can anyone help me? thanks,, bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Sun Jul 10 22:01:26 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Sun, 10 Jul 2005 21:01:26 -0600 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? Message-ID: <1a121a6f40a0412b85336fd0069ba425@christopherhawkins.com> "The actual setting on an object will override this. What you specify on the Form is what you get." I had a feeling.? ;) -C- ---------------------------------------- From: "Stuart McLachlan" Sent: Sunday, July 10, 2005 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? On 10 Jul 2005 at 14:08, Christopher Hawkins wrote: > First, the technical: > > Tools > Options > Advanced > Default Record Locking.? So, I went ahead and set that to Edited > ...... > Here is what I am curious about:? in a case where the DB-level settings specify Edited Record > locks and the forms themselves specify No Locks, which setting wins?? I've been poring over > support.microsoft.com but have found no answers to this question so far. Note the word "Default" under Tools-Options.... it's just that - a default so that you don't have to set it on every object if you generally want the same setting. The actual setting on an object will override this. What you specify on the Form is what you get. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Sun Jul 10 22:01:43 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Sun, 10 Jul 2005 21:01:43 -0600 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? Message-ID: <743f743200314db39d203a3176af62f8@christopherhawkins.com> That's what I'm thinking. -C- ---------------------------------------- From: "Stuart McLachlan" Sent: Sunday, July 10, 2005 2:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? On 10 Jul 2005 at 14:08, Christopher Hawkins wrote: > Is anyone else struggling with the issue of being expected to offer a warranty on the entirety > of?an existing codebase once you've made a few changes to it?? If so, how are you handling it? As JC said a couple of weaks ago when I said that I was remediating a similar system: "And of course the last developer to touch the db is responsible for ALL problems." No way do you warrant anything unless you built it yourself. That way lies ruin. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sun Jul 10 23:03:49 2005 From: john at winhaven.net (John Bartow) Date: Sun, 10 Jul 2005 23:03:49 -0500 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: Message-ID: <200507110404.j6B43sj5081082@pimout2-ext.prodigy.net> Bob, Some basic code below for doing this. Private Sub cmdCaptionTest_Click() DoCmd.OpenReport "rptCaptionTest", acPreview Application.Reports.rptCaptionTest.Caption = "TestCaptionSimple" Exit Sub End Sub This is A97 so it should work in newer versions although I haven't tested it. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, July 10, 2005 3:52 PM To: Access Developers discussion and problem solving Subject: [AccessD] Change Reports Caption From Code Hello to the list, I want to change the Caption property of a report from a form via code. Can anyone help me? thanks,, bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sun Jul 10 23:57:41 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 10 Jul 2005 21:57:41 -0700 Subject: [AccessD] Access developer workbench References: <1a227ac00c254eb6a37076ee063bc3c4@christopherhawkins.com> Message-ID: <042f01c585d5$11bdd930$6701a8c0@HAL9004> Didn't see a price on that. Do you know? Rocky ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Sunday, July 10, 2005 11:31 AM Subject: re: [AccessD] Access developer workbench Interesting. The author appears to have taken the best Access utilities scattered around the web an re-written them into an integrated package. That's almost cool enough to make me wish I still did a lot of Access work. Almost. ;) -C- ---------------------------------------- From: "John W. Colby" Sent: Sunday, July 10, 2005 6:08 AM To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Access developer workbench I just found the following utility which I have NOT tried yet but I thought looked interesting, particularly for you developers managing multiple applications and Access versions. Main Feature List >>> The software will * show you the computer and Access user name of all connections to a database. More.. * allow you to compact/repair or backup a database as soon as everyone logs off. * open the correct version of Access for you. More.. * let you keep a list of favorites along with the Access version that you want to open it, the relevant workgroup file and the minimum size to schedule a compaction. More.. * let you send messages to users and shutdown the database. More.. * allow you to compile for increased performance and decompile a database to remove compilation junk. More.. * allow you to setup reminders relevant to your database. http://www.vb123.com/workbench/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 11 01:49:45 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 11 Jul 2005 16:49:45 +1000 Subject: [AccessD] Access developer workbench In-Reply-To: <042f01c585d5$11bdd930$6701a8c0@HAL9004> Message-ID: <42D2A329.158.102A4779@stuart.lexacorp.com.pg> On 10 Jul 2005 at 21:57, Rocky Smolin - Beach Access S wrote: > Didn't see a price on that. Do you know? > On their on-line order page - USD89.95 But Darren, Bruce, Connie etc can probably get it in AUD since they are a Sydney based company :-) -- Stuart From jwcolby at colbyconsulting.com Mon Jul 11 06:23:39 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 11 Jul 2005 07:23:39 -0400 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - whowins? In-Reply-To: <1a121a6f40a0412b85336fd0069ba425@christopherhawkins.com> Message-ID: <000a01c5860b$00a765e0$6c7aa8c0@ColbyM6805> Default usually means that as you start to desing an object, that is what that property will start as. If you change it during design, then it ends up different. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Sunday, July 10, 2005 11:01 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] DB-level Edited Record vs. Form-level No Lock - whowins? "The actual setting on an object will override this. What you specify on the Form is what you get." I had a feeling.? ;) -C- ---------------------------------------- From: "Stuart McLachlan" Sent: Sunday, July 10, 2005 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? On 10 Jul 2005 at 14:08, Christopher Hawkins wrote: > First, the technical: > > Tools > Options > Advanced > Default Record Locking.? So, I went ahead > and set that to Edited > ...... > Here is what I am curious about:? in a case where the DB-level > settings specify Edited Record locks and the forms themselves specify > No Locks, which setting wins?? I've been poring over > support.microsoft.com but have found no answers to this question so > far. Note the word "Default" under Tools-Options.... it's just that - a default so that you don't have to set it on every object if you generally want the same setting. The actual setting on an object will override this. What you specify on the Form is what you get. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 11 10:27:29 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 11 Jul 2005 08:27:29 -0700 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <003801c58585$ea5cc4e0$6c7aa8c0@ColbyM6805> Message-ID: <0IJG001AMYXQYD@l-daemon> ...but this would work. Dim frm as Form Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, July 10, 2005 12:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Yes, you cannot pass an object in as a form John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Sunday, July 10, 2005 10:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form I'm still doing something wrong, clearly. It doesn't seem to like the declaration (perhaps because in the outer function I'm dimming frm as an object not a form?) '--------------------------------------------------------------------------- ------------ ' Procedure : ListFormDataSources ' DateTime : 31/05/2005 09:37 ' Author : Arthur Fuller ' Purpose : list all the data sources from the forms in the current database '--------------------------------------------------------------------------- ------------ ' Sub ListFormDataSources() Dim frm As AccessObject ' changing this to object or form doesn't work Dim db As CurrentProject Dim i As Integer On Error GoTo ListFormDataSources_Error Set db = CurrentProject Application.Echo False 'Check form recordsource For Each frm In db.AllForms DoCmd.OpenForm frm.Name, acDesign If Forms(frm.Name).RecordSource <> "" Then Debug.Print i, frm.Name & ": " Debug.Print Forms(frm.Name).RecordSource End If ListRowDataSources (frm) DoCmd.Close acForm, frm.Name i = i + 1 Next frm Application.Echo True Set frm = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ListFormDataSources_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure ListFormDataSources of Module aa_Listers" End Sub 'and then your code... Sub ListRowDataSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: July 9, 2005 5:18 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form BTW, this is exactly how my framework's form class instantiates a class for each control found on the form. Using a big case statement I instantiate a class specific to the control type, then pass in the control to the class instance, and save a pointer to each control class in a collection in the form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sorry, I missed the part about wanting only specific types of controls. Function TestCtlType() Dim ctl As Control ctl.ControlType End Function Place your click on the .ControlType and hit F1. Help on ControlType will come up showing a list fo constants for all control types. You code will now look something like: Sub DumpRowSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls '<--- this is the important part 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jul 11 10:38:11 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 11 Jul 2005 11:38:11 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <0IJG001AMYXQYD@l-daemon> Message-ID: <000301c5862e$8b7d4ef0$6c7aa8c0@ColbyM6805> We need to see the code that calls this function and where it resides. If it is being called from the form itself, then there is no need to dim anything, just call the function passing in "me". John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, July 11, 2005 11:27 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form ...but this would work. Dim frm as Form Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, July 10, 2005 12:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Yes, you cannot pass an object in as a form John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Sunday, July 10, 2005 10:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form I'm still doing something wrong, clearly. It doesn't seem to like the declaration (perhaps because in the outer function I'm dimming frm as an object not a form?) '--------------------------------------------------------------------------- ------------ ' Procedure : ListFormDataSources ' DateTime : 31/05/2005 09:37 ' Author : Arthur Fuller ' Purpose : list all the data sources from the forms in the current database '--------------------------------------------------------------------------- ------------ ' Sub ListFormDataSources() Dim frm As AccessObject ' changing this to object or form doesn't work Dim db As CurrentProject Dim i As Integer On Error GoTo ListFormDataSources_Error Set db = CurrentProject Application.Echo False 'Check form recordsource For Each frm In db.AllForms DoCmd.OpenForm frm.Name, acDesign If Forms(frm.Name).RecordSource <> "" Then Debug.Print i, frm.Name & ": " Debug.Print Forms(frm.Name).RecordSource End If ListRowDataSources (frm) DoCmd.Close acForm, frm.Name i = i + 1 Next frm Application.Echo True Set frm = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ListFormDataSources_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure ListFormDataSources of Module aa_Listers" End Sub 'and then your code... Sub ListRowDataSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: July 9, 2005 5:18 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form BTW, this is exactly how my framework's form class instantiates a class for each control found on the form. Using a big case statement I instantiate a class specific to the control type, then pass in the control to the class instance, and save a pointer to each control class in a collection in the form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sorry, I missed the part about wanting only specific types of controls. Function TestCtlType() Dim ctl As Control ctl.ControlType End Function Place your click on the .ControlType and hit F1. Help on ControlType will come up showing a list fo constants for all control types. You code will now look something like: Sub DumpRowSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls '<--- this is the important part 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 11 10:50:50 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 11 Jul 2005 08:50:50 -0700 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? In-Reply-To: Message-ID: <0IJH00J0M00P9E@l-daemon> Hi Christopher: I have run into similar issues in the past. It was with a number of clients so I started applying a month charge and described that charge as an insurance policy. It did not guarantee that there would not be an error just those errors would be fixed at a flat fee. Sometimes issues came up and I ended up working for $10.00 an hour but when the yearly rate was tallied up it was always more than profitable. The clients liked it as there were no surprises. When they wanted a major upgrade or new module that fell into the category of special projects and they were billed separately. You can also set up a system where you slowly upgrade the whole project drawing from a banked pool of money that the client and you have set up. Working for a number of government agencies here, there is a policy that any amounts tended or required for a specific project over ten thousand dollars must go to bid, under that amount there no such constraints. The worked capital pool would be replenished as long as the project portion was marked as completed. This method worked for years. Those are a few creative accounting ideas that you may find interesting. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Sunday, July 10, 2005 1:08 PM To: accessd at databaseadvisors.com Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? This message should be a fun one, as there is a technical issue and a business issue.? Feel free to comment on whichever one you want.? ;) First, the technical: This is related to my recent inquiry into whether or not there is a way to capture the write conflict error when it happens.? I noticed that the client with the home-brewed Access app had their DB-level Default Record Locking set to No Locks.? I'm talking about the option you find at Tools > Options > Advanced > Default Record Locking.? So, I went ahead and set that to Edited Record. However, as I've mentioned before, the actual forms are all set to No Locks.? The first thing I tried was changing all these forms to Edited Record, but there is a bunch of creaky state-management code that causes errors to be thrown when this setting is in place. I'm testing the system, but to be frank I've never been able to duplicate the write conflict, although my client's employees seem to do it all the time.? Sadly, they can't do it in my presence or tell me the exact steps to reproduce.? They do manage to send me the screenshots, though.? ;)? I really want to get these folks squared away, but they just can't communicate to me what they're doing, so I've got ot figure it out on my own. Here is what I am curious about:? in a case where the DB-level settings specify Edited Record locks and the forms themselves specify No Locks, which setting wins?? I've been poring over support.microsoft.com but have found no answers to this question so far. Now, the business question: As you may or may not know,?my?business?specializes in remediation work - that is to say, most of my clients come to me with projects in-crisis because they tried to go the do-it-yourself route, or because they tried to pinch pennies by hiring some amateur, and they've ended up with poorly-working or even outright broken systems.? Most of the time, I manage to get the systems in workable shape.? Of course, there is only so much you can do with a badly-written codebase once it gets to a certain level of depth, but over the years I have developed a pretty good track record of bringing out the good in bad systems. Here is an interesting twist - the client with the Access db in the technical example above wants me to offer a warranty on the whole application.? Bear in mind that I did not write this application - I am only fixing specific problems and adding a few features.? I always warrant my own work when it is ground-up, but how can one possibly give a warranty on a codebase that is 85% written by someone else?? In particular, we're taliking about a deep and poorly-written codebase;?since I'm positioned as an expert on rescuing at-risk projects, nobody comes to me when their projects are going well? ;).? Even with decent testing (that most clients are reluctant to pay for, ironically), I find it is?diffucult to predict?when real-world usage will cause some rarely-used subroutine to rise from the depths and do something that breaks my sparkly, new, well-designed code.? I notice that this expectation is becoming more and more frequent, and I am of the opinion that it is just not reasonable.? Of course, at the same time I want to be as useful as possible to my clients.? I am highly empathetic to the fact that people who lack a foundation in software cratsmanship/engineering?probably don't understand that hiring your 19-year old nephew who "knows computers" to build an?enterprise ERP system for $15/hour is 99% guaranteed to be a disaster.? Is anyone else struggling with the issue of being expected to offer a warranty on the entirety of?an existing codebase once you've made a few changes to it?? If so, how are you handling it? -C- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Jul 11 11:43:53 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 11 Jul 2005 09:43:53 -0700 Subject: [AccessD] Walk the controls on a given form References: <0IJG001AMYXQYD@l-daemon> Message-ID: <42D2A1C9.1080909@shaw.ca> This works just pass form name and set form in subroutine Sub ListRowDataSources(fname As String) Dim ctl As Control Dim f As Form 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Set f = Forms(fname) Debug.Print f.Name For Each ctl In f.Controls 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next set f=nothing set ctl=nothing End Sub Jim Lawrence wrote: >...but this would work. > >Dim frm as Form > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >Sent: Sunday, July 10, 2005 12:31 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Walk the controls on a given form > >Yes, you cannot pass an object in as a form > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller >Sent: Sunday, July 10, 2005 10:08 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Walk the controls on a given form > > >I'm still doing something wrong, clearly. It doesn't seem to like the >declaration (perhaps because in the outer function I'm dimming frm as an >object not a form?) > >'--------------------------------------------------------------------------- >------------ >' Procedure : ListFormDataSources >' DateTime : 31/05/2005 09:37 >' Author : Arthur Fuller >' Purpose : list all the data sources from the forms in the current >database >'--------------------------------------------------------------------------- >------------ >' >Sub ListFormDataSources() > > Dim frm As AccessObject ' changing this to object or form doesn't work > Dim db As CurrentProject > Dim i As Integer > On Error GoTo ListFormDataSources_Error > > Set db = CurrentProject > > Application.Echo False > > 'Check form recordsource > For Each frm In db.AllForms > DoCmd.OpenForm frm.Name, acDesign > If Forms(frm.Name).RecordSource <> "" Then > Debug.Print i, frm.Name & ": " > Debug.Print Forms(frm.Name).RecordSource > End If > ListRowDataSources (frm) > DoCmd.Close acForm, frm.Name > i = i + 1 > Next frm > > Application.Echo True > > Set frm = Nothing > Set db = Nothing > > On Error GoTo 0 > Exit Sub > >ListFormDataSources_Error: > > MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure >ListFormDataSources of Module aa_Listers" > > End Sub > > >'and then your code... > >Sub ListRowDataSources(f As Form) >Dim ctl As Control > 'assume the form has already been opened by the calling process > 'I want to walk the controls > 'the only controls of interest are combos or listboxes so I can skip > 'over all others > Debug.Print f.Name > For Each ctl In f.Controls > 'If the control is either a listbox or combo-box > Select Case ctl.ControlType > Case acComboBox, acListBox > Debug.Print ctl.Name & ":" & ctl.RowSource > Case Else > End Select > Next >End Sub > >Arthur > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >Sent: July 9, 2005 5:18 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Walk the controls on a given form > >BTW, this is exactly how my framework's form class instantiates a class for >each control found on the form. Using a big case statement I instantiate a >class specific to the control type, then pass in the control to the class >instance, and save a pointer to each control class in a collection in the >form. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >Sent: Saturday, July 09, 2005 4:51 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Walk the controls on a given form > > >Sorry, I missed the part about wanting only specific types of controls. > >Function TestCtlType() >Dim ctl As Control > ctl.ControlType >End Function > >Place your click on the .ControlType and hit F1. Help on ControlType will >come up showing a list fo constants for all control types. You code will >now look something like: > >Sub DumpRowSources(f As Form) >Dim ctl As Control > 'assume the form has already been opened by the calling process > 'I want to walk the controls > 'the only controls of interest are combos or listboxes so I can skip > 'over all others > Debug.Print f.Name > For Each ctl In f.Controls '<--- this is the important part > 'If the control is either a listbox or combo-box > Select Case ctl.ControlType > Case acComboBox, acListBox > Debug.Print ctl.Name & ":" & ctl.RowSource > Case Else > End Select > Next >End Sub > > > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >Sent: Saturday, July 09, 2005 4:41 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Walk the controls on a given form > > > >Sub DumpRowSources ( f as Form ) >Dim ctl as control > 'assume the form has already been opened by the calling process > 'I want to walk the controls > 'the only controls of interest are combos or listboxes so I can skip > 'over all others > Debug.print f.name > For Each ctl in f.Controls '<--- this is the important part > If the control is either a listbox or combo-box > Debug.print ctl.Name & ":" & ctl.RowSource > End If > Next >End Sub > > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller >Sent: Saturday, July 09, 2005 3:46 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Walk the controls on a given form > > >I think I have asked this previously, but if I received an answer then I >misplaced it. Here is exactly what I need.... This is pseudo-code. Don't >expect it to compile! > >Sub DumpRowSources ( f as Form ) > 'assume the form has already been opened by the calling process > 'I want to walk the controls > 'the only controls of interest are combos or listboxes so I can skip > 'over all others > Debug.print f.name > For Each ctl in f.ControlsCollection '<--- this is the important part > If the control is either a listbox or combo-box > Debug.print ctl.Name & ":" > Debug.print ctl.RowSource > End If > Next >End Sub > >TIA! >Arthur > > > -- Marty Connelly Victoria, B.C. Canada From KP at sdsonline.net Mon Jul 11 18:42:07 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 12 Jul 2005 09:42:07 +1000 Subject: [AccessD] OT: Friday inspiration References: Message-ID: <00d801c58672$27389320$6601a8c0@user> Absolutely incredible - when do they say it will it will be finished Gustav? Kath ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Saturday, July 02, 2005 1:42 AM Subject: RE: [AccessD] OT: Friday inspiration Hi John Many ways to look at this. Notice the pictures of the interior. No window is rectangular. /gustav >>> jwcolby at colbyconsulting.com 07/01 5:27 pm >>> Is it a windmill by any chance? Cool looking structure. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Mon Jul 11 19:32:55 2005 From: artful at rogers.com (Arthur Fuller) Date: Mon, 11 Jul 2005 20:32:55 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <42D2A1C9.1080909@shaw.ca> Message-ID: <200507120032.j6C0WvR07017@databaseadvisors.com> Works a treat. Thanks much! Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: July 11, 2005 12:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Walk the controls on a given form This works just pass form name and set form in subroutine Sub ListRowDataSources(fname As String) Dim ctl As Control Dim f As Form 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Set f = Forms(fname) Debug.Print f.Name For Each ctl In f.Controls 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next set f=nothing set ctl=nothing End Sub From kathryn at bassett.net Mon Jul 11 22:39:34 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Mon, 11 Jul 2005 20:39:34 -0700 Subject: [AccessD] Zip code format Message-ID: <20050712033939.004D540722@omta18.mta.everyone.net> In my table (members), I have a text field called Zip. The input mask is 00000\-9999;;_ Some people I have the 5 digit code, and others the zip+4, so this works. When I look at a query, a person's zip will show up as 91502- or 91006-2046 as I expect. However, when I make the mailing labels, I get 910062046 instead of 91006-2046. The 91502- does correctly show as 91502 without the dash. In the table field definition, there is a space for "format" but if I put the same 00000\-9999;;_ I still get same result. There is no "predefined format" in the drop down box. What do I do? This is a flat database with only 28 records, so I've got some play leeway. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From ssharkins at bellsouth.net Mon Jul 11 22:56:05 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 11 Jul 2005 23:56:05 -0400 Subject: [AccessD] Zip code format In-Reply-To: <20050712033939.004D540722@omta18.mta.everyone.net> Message-ID: <20050712035606.OWPC18668.ibm62aec.bellsouth.net@SUSANONE> Kathryn, there's no built-in way to handle this -- you have a couple of options. Store the - in the table with the data by changing the format code to 00000\-9999;0; -- that last 0 stores formatting with the data. Then, you can base the report on a query and use the following expression to get rid of the - FormattedZIP: Iif(Len(ZIPCODE) = 6, Left(ZIPCODE,5), ZIPCODE) If you don't want to store the - in the data, then you'll need an expression that handles putting it in instead of taking it out. I don't have that off the top of my head -- but I could come up with it. This really shouldn't be so hard -- maybe someone has a simpler solution. My solution has to always just omit the last four digits -- I don't know any po that actually requires them. :) Am I wrong on that? Maybe you need them if you're using bulk mail or something. Susan H. In my table (members), I have a text field called Zip. The input mask is 00000\-9999;;_ Some people I have the 5 digit code, and others the zip+4, so this works. When I look at a query, a person's zip will show up as 91502- or 91006-2046 as I expect. However, when I make the mailing labels, I get 910062046 instead of 91006-2046. The 91502- does correctly show as 91502 without the dash. In the table field definition, there is a space for "format" but if I put the same _ I still get same result. There is no "predefined format" in the drop down box. What do I do? This is a flat database with only 28 records, so I've got some play leeway. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Mon Jul 11 23:43:17 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Mon, 11 Jul 2005 21:43:17 -0700 Subject: [AccessD] Zip code format In-Reply-To: <20050712035606.OWPC18668.ibm62aec.bellsouth.net@SUSANONE> Message-ID: <20050712044321.023924072B@omta18.mta.everyone.net> It's only the report I'm having a problem. The box is =Trim([City] & " " & [St] & " " & [Zip]) But the Zip is leaving out the hyphen. Hmm, just realized, the hyphen isn't really there, that's just the mask. I think I'll take the easy way out and just make two fields for the zip. And yeah, I use the +four as much as possible. Personal experimentation has proved that it does make a difference in the speed with which it is delivered. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Susan Harkins > Sent: 11 Jul 2005 8:56 pm > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Zip code format > > Kathryn, there's no built-in way to handle this -- you have a > couple of options. > > Store the - in the table with the data by changing the format > code to 00000\-9999;0; -- that last 0 stores formatting with > the data. > > Then, you can base the report on a query and use the > following expression to get rid of the - > > FormattedZIP: Iif(Len(ZIPCODE) = 6, Left(ZIPCODE,5), ZIPCODE) > > If you don't want to store the - in the data, then you'll > need an expression that handles putting it in instead of > taking it out. I don't have that off the top of my head -- > but I could come up with it. > > This really shouldn't be so hard -- maybe someone has a > simpler solution. > > My solution has to always just omit the last four digits -- I > don't know any po that actually requires them. :) Am I wrong > on that? Maybe you need them if you're using bulk mail or something. > > Susan H. > > In my table (members), I have a text field called Zip. The > input mask is 00000\-9999;;_ > > Some people I have the 5 digit code, and others the zip+4, so > this works. > When I look at a query, a person's zip will show up as 91502- > or 91006-2046 as I expect. However, when I make the mailing > labels, I get 910062046 instead of 91006-2046. The 91502- > does correctly show as 91502 without the dash. > > In the table field definition, there is a space for "format" > but if I put the same _ I still get same result. There is no > "predefined format" in the drop down box. > > What do I do? This is a flat database with only 28 records, > so I've got some play leeway. > > -- > Kathryn Rhinehart Bassett (Pasadena CA) > "Genealogy is my bag" "GH is my soap" > kathryn at bassett.net > http://bassett.net > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rbgajewski at adelphia.net Mon Jul 11 23:56:00 2005 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Tue, 12 Jul 2005 00:56:00 -0400 Subject: [AccessD] Zip code format In-Reply-To: <20050712044321.023924072B@omta18.mta.everyone.net> Message-ID: <20050712045603.NLJR29002.mta9.adelphia.net@DG1P2N21> Kathryn How about this? =[City] & " " & [St] & " " & IIf([Zip]<99999,Left$([Zip],5),Left$([Zip],5) & "-" & Right$([Zip],4)) Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: Tuesday, July 12, 2005 00:43 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Zip code format It's only the report I'm having a problem. The box is =Trim([City] & " " & [St] & " " & [Zip]) But the Zip is leaving out the hyphen. Hmm, just realized, the hyphen isn't really there, that's just the mask. I think I'll take the easy way out and just make two fields for the zip. And yeah, I use the +four as much as possible. Personal experimentation has proved that it does make a difference in the speed with which it is delivered. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > Harkins > Sent: 11 Jul 2005 8:56 pm > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Zip code format > > Kathryn, there's no built-in way to handle this -- you have a couple > of options. > > Store the - in the table with the data by changing the format code to > 00000\-9999;0; -- that last 0 stores formatting with the data. > > Then, you can base the report on a query and use the following > expression to get rid of the - > > FormattedZIP: Iif(Len(ZIPCODE) = 6, Left(ZIPCODE,5), ZIPCODE) > > If you don't want to store the - in the data, then you'll need an > expression that handles putting it in instead of taking it out. I > don't have that off the top of my head -- but I could come up with it. > > This really shouldn't be so hard -- maybe someone has a simpler > solution. > > My solution has to always just omit the last four digits -- I don't > know any po that actually requires them. :) Am I wrong on that? Maybe > you need them if you're using bulk mail or something. > > Susan H. > > In my table (members), I have a text field called Zip. The input mask > is 00000\-9999;;_ > > Some people I have the 5 digit code, and others the zip+4, so this > works. > When I look at a query, a person's zip will show up as 91502- or > 91006-2046 as I expect. However, when I make the mailing labels, I get > 910062046 instead of 91006-2046. The 91502- does correctly show as > 91502 without the dash. > > In the table field definition, there is a space for "format" > but if I put the same _ I still get same result. There is no > "predefined format" in the drop down box. > > What do I do? This is a flat database with only 28 records, so I've > got some play leeway. > > -- > Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is > my soap" > kathryn at bassett.net > http://bassett.net > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Tue Jul 12 00:32:08 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Mon, 11 Jul 2005 22:32:08 -0700 Subject: [AccessD] Zip code format In-Reply-To: <20050712045603.NLJR29002.mta9.adelphia.net@DG1P2N21> Message-ID: <20050712053212.B7E23401E2@omta16.mta.everyone.net> Yes! That did it. I don't use the left/right string enough to have thought about that. Thanks a bunch! My mailing labels are now printed so I can get this stuff in the mail in the morning. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bob Gajewski > Sent: 11 Jul 2005 9:56 pm > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Zip code format > > Kathryn > > How about this? > > =[City] & " " & [St] & " " & > IIf([Zip]<99999,Left$([Zip],5),Left$([Zip],5) & "-" & Right$([Zip],4)) > > Regards, > Bob Gajewski From adtp at touchtelindia.net Tue Jul 12 01:03:08 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Tue, 12 Jul 2005 11:33:08 +0530 Subject: [AccessD] Change Reports Caption From Code References: Message-ID: <00df01c586a7$79b62dd0$ac1865cb@winxp> Bob, Sample code as given below, in report's open event, should set its caption as per text box named TxtCaption (on form named F_Test). Private Sub Report_Open(Cancel As Integer) Me.Caption = Forms("F_Test")("TxtCaption") End Sub Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Bob Heygood To: Access Developers discussion and problem solving Sent: Monday, July 11, 2005 02:21 Subject: [AccessD] Change Reports Caption From Code Hello to the list, I want to change the Caption property of a report from a form via code. Can anyone help me? thanks,, bob From Gustav at cactus.dk Tue Jul 12 02:06:27 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 12 Jul 2005 09:06:27 +0200 Subject: [AccessD] OT: Friday inspiration Message-ID: Hi Kath It is expected to be November 2005 - at that time at least the first apartments are ready. If you click the menu a FAQ can be found. Among other things it contains all sorts of dates related to the building. http://www.turningtorso.com/ /gustav >>> KP at sdsonline.net 07/12 1:42 am >>> Absolutely incredible - when do they say it will it will be finished Gustav? Kath ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Saturday, July 02, 2005 1:42 AM Subject: RE: [AccessD] OT: Friday inspiration Hi John Many ways to look at this. Notice the pictures of the interior. No window is rectangular. /gustav >>> jwcolby at colbyconsulting.com 07/01 5:27 pm >>> Is it a windmill by any chance? Cool looking structure. From mll at homekeyinc.com Tue Jul 12 04:37:19 2005 From: mll at homekeyinc.com (Michael Laferriere) Date: Tue, 12 Jul 2005 05:37:19 -0400 Subject: [AccessD] Multilingual Access Message-ID: <200507120928.j6C9SPR00380@databaseadvisors.com> Hi Folks - We developed an Access 2002 database in English. The client wants to create a copy of the database and prep it for the Chinese language. Does anyone know what's involved? Or where to start? Thanks. Michael From R.Griffiths at bury.gov.uk Tue Jul 12 05:16:40 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 12 Jul 2005 11:16:40 +0100 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: <200507121007.j6CA7Tr18640@smarthost.yourcomms.net> Hi Groups I have a task of processing a file in DIF format - Access does not seem to have this as a filter type - is this correct? I know Excel can read DIF files but I have hit the limit of 65,000 records. Does anyone have experience of processing/importing DIF (large) files into MS Access, Excel, SQL or other? Many thanks Richard From stuart at lexacorp.com.pg Tue Jul 12 08:10:48 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 12 Jul 2005 23:10:48 +1000 Subject: [AccessD] Reading DIF format (A97 etc) In-Reply-To: <200507121007.j6CA7Tr18640@smarthost.yourcomms.net> Message-ID: <42D44DF8.6581.16AD8050@stuart.lexacorp.com.pg> On 12 Jul 2005 at 11:16, Griffiths, Richard wrote: > Does anyone have experience of processing/importing DIF (large) files > into MS Access, Excel, SQL or other? > Never tried it before, but the DIF format is quite simple and is available at http://www.wotsit.org. Looking at the 2KB DIF specification file from there and saving a simple tabular spreadsheet as DIF to check exactly what it looks like, I knocked this routine up in a few minutes. This one is very basic. 1. You need to define a table with the appropriate fields first. If you wanted, you could extend the function to actually create the table based on the Table (name) and Tuple (columns) headers. You could also make an initial pass through the file to try and determine the field types. 2. This function just imports into numeric and text fields, but a bit of playing with it would allow for dates etc (you'd just need to check rs(lngColPointer).Type and parse the data appropriately. Function ImportDIF(DIFFilename As String, Tablename As String) Dim strTemp1 As String Dim strTemp2 As String Dim lngColumns As Long Dim lngFields As Long Dim lngColPointer As Long Dim rs As DAO.Recordset Dim blnFirstRecord As Boolean Set rs = CurrentDb.OpenRecordset(Tablename) lngFields = rs.Fields.Count Open DIFFilename For Input As #1 'headers Line Input #1, strTemp1 While strTemp1 <> "DATA" Line Input #1, strTemp1 Select Case strTemp1 Case "TABLE" Line Input #1, strTemp1 '0, 1 Line Input #1, strTemp1 'Table Name Case "VECTORS" 'rows topic Line Input #1, strTemp1 '0, row count Line Input #1, strTemp1 ' blank Case "TUPLES" 'columns topic Line Input #1, strTemp1 '0, column count lngColumns = Split(strTemp1, ",")(1) If lngColumns <> lngFields Then MsgBox "Table has " & lngFields & " fields, but DIF field has " & lngColumns & " Columns!" Close #1 Exit Function End If Line Input #1, strTemp1 ' blank Case Else ' optional headers End Select Line Input #1, strTemp1 Wend Line Input #1, strTemp1 '0,0 Line Input #1, strTemp1 ' blank 'Data blnFirstRecord = True Do Line Input #1, strTemp1 'type, numerical value Line Input #1, strTemp2 'string value Select Case Split(strTemp1, ",")(1) Case -1 ' special value If strTemp2 = "BOT" Then If Not blnFirstRecord Then rs.Update blnFirstRecord = False End If rs.AddNew lngColPointer = 0 ' new row End If If strTemp = "EOD" Then Exit Function Case 0 ' numeric value in strTemp1 rs(lngColPointer) = Split(strTemp1, ",")(2) lngColPointer = lngColPointer + 1 Case 1 ' string value in strTemp2 'trim leading and trailing quotes from string strTemp2 = Mid$(strTemp2, 2, Len(strTemp2) - 2) rs(lngColPointer) = strTemp2 lngColPointer = lngColPointer + 1 End Select Loop Close #1 End Function -- Stuart From ssharkins at bellsouth.net Tue Jul 12 08:30:23 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 12 Jul 2005 09:30:23 -0400 Subject: [AccessD] Zip code format In-Reply-To: <20050712044321.023924072B@omta18.mta.everyone.net> Message-ID: <20050712133023.TPRN23762.ibm56aec.bellsouth.net@SUSANONE> Actually Kathryn, believe it or not -- that is probably the most efficient and simplest solution of all. :) Susan H. It's only the report I'm having a problem. The box is =Trim([City] & " " & [St] & " " & [Zip]) But the Zip is leaving out the hyphen. Hmm, just realized, the hyphen isn't really there, that's just the mask. I think I'll take the easy way out and just make two fields for the zip. And yeah, I use the +four as much as possible. Personal experimentation has proved that it does make a difference in the speed with which it is delivered. From R.Griffiths at bury.gov.uk Tue Jul 12 09:37:04 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 12 Jul 2005 15:37:04 +0100 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: <200507121427.j6CERqr06334@smarthost.yourcomms.net> Stuart Thanks I will look, can you help me on the line of code lngColumns = Split(strTemp1, ",")(1) Split - is this your user def function na dwhat about the (1) bit?? Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 12 July 2005 14:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Reading DIF format (A97 etc) On 12 Jul 2005 at 11:16, Griffiths, Richard wrote: > Does anyone have experience of processing/importing DIF (large) files > into MS Access, Excel, SQL or other? > Never tried it before, but the DIF format is quite simple and is available at http://www.wotsit.org. Looking at the 2KB DIF specification file from there and saving a simple tabular spreadsheet as DIF to check exactly what it looks like, I knocked this routine up in a few minutes. This one is very basic. 1. You need to define a table with the appropriate fields first. If you wanted, you could extend the function to actually create the table based on the Table (name) and Tuple (columns) headers. You could also make an initial pass through the file to try and determine the field types. 2. This function just imports into numeric and text fields, but a bit of playing with it would allow for dates etc (you'd just need to check rs(lngColPointer).Type and parse the data appropriately. Function ImportDIF(DIFFilename As String, Tablename As String) Dim strTemp1 As String Dim strTemp2 As String Dim lngColumns As Long Dim lngFields As Long Dim lngColPointer As Long Dim rs As DAO.Recordset Dim blnFirstRecord As Boolean Set rs = CurrentDb.OpenRecordset(Tablename) lngFields = rs.Fields.Count Open DIFFilename For Input As #1 'headers Line Input #1, strTemp1 While strTemp1 <> "DATA" Line Input #1, strTemp1 Select Case strTemp1 Case "TABLE" Line Input #1, strTemp1 '0, 1 Line Input #1, strTemp1 'Table Name Case "VECTORS" 'rows topic Line Input #1, strTemp1 '0, row count Line Input #1, strTemp1 ' blank Case "TUPLES" 'columns topic Line Input #1, strTemp1 '0, column count lngColumns = Split(strTemp1, ",")(1) If lngColumns <> lngFields Then MsgBox "Table has " & lngFields & " fields, but DIF field has " & lngColumns & " Columns!" Close #1 Exit Function End If Line Input #1, strTemp1 ' blank Case Else ' optional headers End Select Line Input #1, strTemp1 Wend Line Input #1, strTemp1 '0,0 Line Input #1, strTemp1 ' blank 'Data blnFirstRecord = True Do Line Input #1, strTemp1 'type, numerical value Line Input #1, strTemp2 'string value Select Case Split(strTemp1, ",")(1) Case -1 ' special value If strTemp2 = "BOT" Then If Not blnFirstRecord Then rs.Update blnFirstRecord = False End If rs.AddNew lngColPointer = 0 ' new row End If If strTemp = "EOD" Then Exit Function Case 0 ' numeric value in strTemp1 rs(lngColPointer) = Split(strTemp1, ",")(2) lngColPointer = lngColPointer + 1 Case 1 ' string value in strTemp2 'trim leading and trailing quotes from string strTemp2 = Mid$(strTemp2, 2, Len(strTemp2) - 2) rs(lngColPointer) = strTemp2 lngColPointer = lngColPointer + 1 End Select Loop Close #1 End Function -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Jul 12 10:06:16 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 12 Jul 2005 11:06:16 -0400 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F12CDBE78@xlivmbx21.aig.com> "Split()" is an Access 2000+ function which takes a string as its first parameter and a second string parameter which is a delimiter used to split the first string into components. The split function breaks the whole string up and returns all the parts in an array. So the "(1)" at the end is in fact an array index, retrieving element 1 from the array returned by Split(). This is piece of shorthand code writing (possibly the author learned to code in the terse world of C/C++ ???), but I would not use it personally, simply because it is a little confusing to read. I'd explicitly assign the returned array to a Variant and then retrieve element 1 from that. Dim StrParts as Variant ... StrParts = Split(strTemp1, ",") lngColumns = StrParts(1) ... My 2?. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, July 12, 2005 10:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) Stuart Thanks I will look, can you help me on the line of code lngColumns = Split(strTemp1, ",")(1) Split - is this your user def function na dwhat about the (1) bit?? Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 12 July 2005 14:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Reading DIF format (A97 etc) On 12 Jul 2005 at 11:16, Griffiths, Richard wrote: > Does anyone have experience of processing/importing DIF (large) files > into MS Access, Excel, SQL or other? > Never tried it before, but the DIF format is quite simple and is available at http://www.wotsit.org. Looking at the 2KB DIF specification file from there and saving a simple tabular spreadsheet as DIF to check exactly what it looks like, I knocked this routine up in a few minutes. This one is very basic. 1. You need to define a table with the appropriate fields first. If you wanted, you could extend the function to actually create the table based on the Table (name) and Tuple (columns) headers. You could also make an initial pass through the file to try and determine the field types. 2. This function just imports into numeric and text fields, but a bit of playing with it would allow for dates etc (you'd just need to check rs(lngColPointer).Type and parse the data appropriately. Function ImportDIF(DIFFilename As String, Tablename As String) Dim strTemp1 As String Dim strTemp2 As String Dim lngColumns As Long Dim lngFields As Long Dim lngColPointer As Long Dim rs As DAO.Recordset Dim blnFirstRecord As Boolean Set rs = CurrentDb.OpenRecordset(Tablename) lngFields = rs.Fields.Count Open DIFFilename For Input As #1 'headers Line Input #1, strTemp1 While strTemp1 <> "DATA" Line Input #1, strTemp1 Select Case strTemp1 Case "TABLE" Line Input #1, strTemp1 '0, 1 Line Input #1, strTemp1 'Table Name Case "VECTORS" 'rows topic Line Input #1, strTemp1 '0, row count Line Input #1, strTemp1 ' blank Case "TUPLES" 'columns topic Line Input #1, strTemp1 '0, column count lngColumns = Split(strTemp1, ",")(1) If lngColumns <> lngFields Then MsgBox "Table has " & lngFields & " fields, but DIF field has " & lngColumns & " Columns!" Close #1 Exit Function End If Line Input #1, strTemp1 ' blank Case Else ' optional headers End Select Line Input #1, strTemp1 Wend Line Input #1, strTemp1 '0,0 Line Input #1, strTemp1 ' blank 'Data blnFirstRecord = True Do Line Input #1, strTemp1 'type, numerical value Line Input #1, strTemp2 'string value Select Case Split(strTemp1, ",")(1) Case -1 ' special value If strTemp2 = "BOT" Then If Not blnFirstRecord Then rs.Update blnFirstRecord = False End If rs.AddNew lngColPointer = 0 ' new row End If If strTemp = "EOD" Then Exit Function Case 0 ' numeric value in strTemp1 rs(lngColPointer) = Split(strTemp1, ",")(2) lngColPointer = lngColPointer + 1 Case 1 ' string value in strTemp2 'trim leading and trailing quotes from string strTemp2 = Mid$(strTemp2, 2, Len(strTemp2) - 2) rs(lngColPointer) = strTemp2 lngColPointer = lngColPointer + 1 End Select Loop Close #1 End Function -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Tue Jul 12 10:17:02 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 12 Jul 2005 08:17:02 -0700 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: Actually, Split(), Join(),etc., are VBA 6 functions, which makes them available to Access 2000 and later. Charlotte Foust -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, July 12, 2005 8:06 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Reading DIF format (A97 etc) "Split()" is an Access 2000+ function which takes a string as its first parameter and a second string parameter which is a delimiter used to split the first string into components. The split function breaks the whole string up and returns all the parts in an array. So the "(1)" at the end is in fact an array index, retrieving element 1 from the array returned by Split(). This is piece of shorthand code writing (possibly the author learned to code in the terse world of C/C++ ???), but I would not use it personally, simply because it is a little confusing to read. I'd explicitly assign the returned array to a Variant and then retrieve element 1 from that. Dim StrParts as Variant ... StrParts = Split(strTemp1, ",") lngColumns = StrParts(1) ... My 2?. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, July 12, 2005 10:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) Stuart Thanks I will look, can you help me on the line of code lngColumns = Split(strTemp1, ",")(1) Split - is this your user def function na dwhat about the (1) bit?? Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 12 July 2005 14:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Reading DIF format (A97 etc) On 12 Jul 2005 at 11:16, Griffiths, Richard wrote: > Does anyone have experience of processing/importing DIF (large) files > into MS Access, Excel, SQL or other? > Never tried it before, but the DIF format is quite simple and is available at http://www.wotsit.org. Looking at the 2KB DIF specification file from there and saving a simple tabular spreadsheet as DIF to check exactly what it looks like, I knocked this routine up in a few minutes. This one is very basic. 1. You need to define a table with the appropriate fields first. If you wanted, you could extend the function to actually create the table based on the Table (name) and Tuple (columns) headers. You could also make an initial pass through the file to try and determine the field types. 2. This function just imports into numeric and text fields, but a bit of playing with it would allow for dates etc (you'd just need to check rs(lngColPointer).Type and parse the data appropriately. Function ImportDIF(DIFFilename As String, Tablename As String) Dim strTemp1 As String Dim strTemp2 As String Dim lngColumns As Long Dim lngFields As Long Dim lngColPointer As Long Dim rs As DAO.Recordset Dim blnFirstRecord As Boolean Set rs = CurrentDb.OpenRecordset(Tablename) lngFields = rs.Fields.Count Open DIFFilename For Input As #1 'headers Line Input #1, strTemp1 While strTemp1 <> "DATA" Line Input #1, strTemp1 Select Case strTemp1 Case "TABLE" Line Input #1, strTemp1 '0, 1 Line Input #1, strTemp1 'Table Name Case "VECTORS" 'rows topic Line Input #1, strTemp1 '0, row count Line Input #1, strTemp1 ' blank Case "TUPLES" 'columns topic Line Input #1, strTemp1 '0, column count lngColumns = Split(strTemp1, ",")(1) If lngColumns <> lngFields Then MsgBox "Table has " & lngFields & " fields, but DIF field has " & lngColumns & " Columns!" Close #1 Exit Function End If Line Input #1, strTemp1 ' blank Case Else ' optional headers End Select Line Input #1, strTemp1 Wend Line Input #1, strTemp1 '0,0 Line Input #1, strTemp1 ' blank 'Data blnFirstRecord = True Do Line Input #1, strTemp1 'type, numerical value Line Input #1, strTemp2 'string value Select Case Split(strTemp1, ",")(1) Case -1 ' special value If strTemp2 = "BOT" Then If Not blnFirstRecord Then rs.Update blnFirstRecord = False End If rs.AddNew lngColPointer = 0 ' new row End If If strTemp = "EOD" Then Exit Function Case 0 ' numeric value in strTemp1 rs(lngColPointer) = Split(strTemp1, ",")(2) lngColPointer = lngColPointer + 1 Case 1 ' string value in strTemp2 'trim leading and trailing quotes from string strTemp2 = Mid$(strTemp2, 2, Len(strTemp2) - 2) rs(lngColPointer) = strTemp2 lngColPointer = lngColPointer + 1 End Select Loop Close #1 End Function -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 R.Griffiths at bury.gov.uk Tue Jul 12 10:28:19 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 12 Jul 2005 16:28:19 +0100 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: <200507121519.j6CFJ7r10201@smarthost.yourcomms.net> Thanks, I was using A97 hence the confusion. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 12 July 2005 16:17 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) Actually, Split(), Join(),etc., are VBA 6 functions, which makes them available to Access 2000 and later. Charlotte Foust -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, July 12, 2005 8:06 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Reading DIF format (A97 etc) "Split()" is an Access 2000+ function which takes a string as its first parameter and a second string parameter which is a delimiter used to split the first string into components. The split function breaks the whole string up and returns all the parts in an array. So the "(1)" at the end is in fact an array index, retrieving element 1 from the array returned by Split(). This is piece of shorthand code writing (possibly the author learned to code in the terse world of C/C++ ???), but I would not use it personally, simply because it is a little confusing to read. I'd explicitly assign the returned array to a Variant and then retrieve element 1 from that. Dim StrParts as Variant ... StrParts = Split(strTemp1, ",") lngColumns = StrParts(1) ... My 2?. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, July 12, 2005 10:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) Stuart Thanks I will look, can you help me on the line of code lngColumns = Split(strTemp1, ",")(1) Split - is this your user def function na dwhat about the (1) bit?? Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 12 July 2005 14:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Reading DIF format (A97 etc) On 12 Jul 2005 at 11:16, Griffiths, Richard wrote: > Does anyone have experience of processing/importing DIF (large) files > into MS Access, Excel, SQL or other? > Never tried it before, but the DIF format is quite simple and is available at http://www.wotsit.org. Looking at the 2KB DIF specification file from there and saving a simple tabular spreadsheet as DIF to check exactly what it looks like, I knocked this routine up in a few minutes. This one is very basic. 1. You need to define a table with the appropriate fields first. If you wanted, you could extend the function to actually create the table based on the Table (name) and Tuple (columns) headers. You could also make an initial pass through the file to try and determine the field types. 2. This function just imports into numeric and text fields, but a bit of playing with it would allow for dates etc (you'd just need to check rs(lngColPointer).Type and parse the data appropriately. Function ImportDIF(DIFFilename As String, Tablename As String) Dim strTemp1 As String Dim strTemp2 As String Dim lngColumns As Long Dim lngFields As Long Dim lngColPointer As Long Dim rs As DAO.Recordset Dim blnFirstRecord As Boolean Set rs = CurrentDb.OpenRecordset(Tablename) lngFields = rs.Fields.Count Open DIFFilename For Input As #1 'headers Line Input #1, strTemp1 While strTemp1 <> "DATA" Line Input #1, strTemp1 Select Case strTemp1 Case "TABLE" Line Input #1, strTemp1 '0, 1 Line Input #1, strTemp1 'Table Name Case "VECTORS" 'rows topic Line Input #1, strTemp1 '0, row count Line Input #1, strTemp1 ' blank Case "TUPLES" 'columns topic Line Input #1, strTemp1 '0, column count lngColumns = Split(strTemp1, ",")(1) If lngColumns <> lngFields Then MsgBox "Table has " & lngFields & " fields, but DIF field has " & lngColumns & " Columns!" Close #1 Exit Function End If Line Input #1, strTemp1 ' blank Case Else ' optional headers End Select Line Input #1, strTemp1 Wend Line Input #1, strTemp1 '0,0 Line Input #1, strTemp1 ' blank 'Data blnFirstRecord = True Do Line Input #1, strTemp1 'type, numerical value Line Input #1, strTemp2 'string value Select Case Split(strTemp1, ",")(1) Case -1 ' special value If strTemp2 = "BOT" Then If Not blnFirstRecord Then rs.Update blnFirstRecord = False End If rs.AddNew lngColPointer = 0 ' new row End If If strTemp = "EOD" Then Exit Function Case 0 ' numeric value in strTemp1 rs(lngColPointer) = Split(strTemp1, ",")(2) lngColPointer = lngColPointer + 1 Case 1 ' string value in strTemp2 'trim leading and trailing quotes from string strTemp2 = Mid$(strTemp2, 2, Len(strTemp2) - 2) rs(lngColPointer) = strTemp2 lngColPointer = lngColPointer + 1 End Select Loop Close #1 End Function -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Jul 12 10:34:29 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 12 Jul 2005 11:34:29 -0400 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F12CDBE9F@xlivmbx21.aig.com> I think "is an Access 2000+ function" says just about the same thing. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, July 12, 2005 11:17 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) Actually, Split(), Join(),etc., are VBA 6 functions, which makes them available to Access 2000 and later. Charlotte Foust -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, July 12, 2005 8:06 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Reading DIF format (A97 etc) "Split()" is an Access 2000+ function which takes a string as its first parameter and a second string parameter which is a delimiter used to split the first string into components. The split function breaks the whole string up and returns all the parts in an array. So the "(1)" at the end is in fact an array index, retrieving element 1 from the array returned by Split(). This is piece of shorthand code writing (possibly the author learned to code in the terse world of C/C++ ???), but I would not use it personally, simply because it is a little confusing to read. I'd explicitly assign the returned array to a Variant and then retrieve element 1 from that. Dim StrParts as Variant ... StrParts = Split(strTemp1, ",") lngColumns = StrParts(1) ... My 2?. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, July 12, 2005 10:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) Stuart Thanks I will look, can you help me on the line of code lngColumns = Split(strTemp1, ",")(1) Split - is this your user def function na dwhat about the (1) bit?? Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 12 July 2005 14:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Reading DIF format (A97 etc) On 12 Jul 2005 at 11:16, Griffiths, Richard wrote: > Does anyone have experience of processing/importing DIF (large) files > into MS Access, Excel, SQL or other? > Never tried it before, but the DIF format is quite simple and is available at http://www.wotsit.org. Looking at the 2KB DIF specification file from there and saving a simple tabular spreadsheet as DIF to check exactly what it looks like, I knocked this routine up in a few minutes. This one is very basic. 1. You need to define a table with the appropriate fields first. If you wanted, you could extend the function to actually create the table based on the Table (name) and Tuple (columns) headers. You could also make an initial pass through the file to try and determine the field types. 2. This function just imports into numeric and text fields, but a bit of playing with it would allow for dates etc (you'd just need to check rs(lngColPointer).Type and parse the data appropriately. Function ImportDIF(DIFFilename As String, Tablename As String) Dim strTemp1 As String Dim strTemp2 As String Dim lngColumns As Long Dim lngFields As Long Dim lngColPointer As Long Dim rs As DAO.Recordset Dim blnFirstRecord As Boolean Set rs = CurrentDb.OpenRecordset(Tablename) lngFields = rs.Fields.Count Open DIFFilename For Input As #1 'headers Line Input #1, strTemp1 While strTemp1 <> "DATA" Line Input #1, strTemp1 Select Case strTemp1 Case "TABLE" Line Input #1, strTemp1 '0, 1 Line Input #1, strTemp1 'Table Name Case "VECTORS" 'rows topic Line Input #1, strTemp1 '0, row count Line Input #1, strTemp1 ' blank Case "TUPLES" 'columns topic Line Input #1, strTemp1 '0, column count lngColumns = Split(strTemp1, ",")(1) If lngColumns <> lngFields Then MsgBox "Table has " & lngFields & " fields, but DIF field has " & lngColumns & " Columns!" Close #1 Exit Function End If Line Input #1, strTemp1 ' blank Case Else ' optional headers End Select Line Input #1, strTemp1 Wend Line Input #1, strTemp1 '0,0 Line Input #1, strTemp1 ' blank 'Data blnFirstRecord = True Do Line Input #1, strTemp1 'type, numerical value Line Input #1, strTemp2 'string value Select Case Split(strTemp1, ",")(1) Case -1 ' special value If strTemp2 = "BOT" Then If Not blnFirstRecord Then rs.Update blnFirstRecord = False End If rs.AddNew lngColPointer = 0 ' new row End If If strTemp = "EOD" Then Exit Function Case 0 ' numeric value in strTemp1 rs(lngColPointer) = Split(strTemp1, ",")(2) lngColPointer = lngColPointer + 1 Case 1 ' string value in strTemp2 'trim leading and trailing quotes from string strTemp2 = Mid$(strTemp2, 2, Len(strTemp2) - 2) rs(lngColPointer) = strTemp2 lngColPointer = lngColPointer + 1 End Select Loop Close #1 End Function -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 bheygood at abestsystems.com Tue Jul 12 12:59:47 2005 From: bheygood at abestsystems.com (Bob Heygood) Date: Tue, 12 Jul 2005 10:59:47 -0700 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <00df01c586a7$79b62dd0$ac1865cb@winxp> Message-ID: Thanks to all who responded. The on open event is what I used. I thot of it earlier, but thot twice about using a global variable. Not to start another rant/discussion, but I feel this is a good example a good use of a global. I am creating 79 PDFs from code, which involves opening a report. The neat news is that the reports caption property is what Acrobat uses for the resulting file name. Hence my need to change the caption each time I programmically open the report. thanks again. bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.Tejpal Sent: Monday, July 11, 2005 11:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change Reports Caption From Code Bob, Sample code as given below, in report's open event, should set its caption as per text box named TxtCaption (on form named F_Test). Private Sub Report_Open(Cancel As Integer) Me.Caption = Forms("F_Test")("TxtCaption") End Sub Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Bob Heygood To: Access Developers discussion and problem solving Sent: Monday, July 11, 2005 02:21 Subject: [AccessD] Change Reports Caption From Code Hello to the list, I want to change the Caption property of a report from a form via code. Can anyone help me? thanks,, bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Tue Jul 12 14:42:59 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 12 Jul 2005 15:42:59 -0400 Subject: [AccessD] Unbound Report Only Showing Last Record Message-ID: On my Detail section of my report, I am referencing a module that using my current recordset. The code steps through just fine, but the report is only showing my last record, not writing each record as it steps through the procedure. I tried the OnFormat event, but that gave me duplicates of my last record, and the OnPrint event seems to work. Do I need to bookmark the record and store it in a variable? If so, how can I get Access to write each record to my report. I would use a temporary table, but I never know how many fields the report is going to hold. It may hold one field or up to 57 fields. That is the reason for the "unboundness". Any ideas? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From prosoft6 at hotmail.com Tue Jul 12 14:48:18 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 12 Jul 2005 15:48:18 -0400 Subject: [AccessD] Unbound Report Only Showing Last Record In-Reply-To: Message-ID: Set db = CurrentDb() Here is the code, if this helps! Set rs = db.OpenRecordset("qryLocalAuthority", dbOpenDynaset) i = 0 rs.MoveFirst If Forms![frmmembersearch]![Index] = 0 Then Do Until i = Forms![frmmembersearch]![ListCount] MsgBox i MsgBox rs!Field0 Reports![rptMemberSearch]![Text0] = rs![Field0] rs.MoveNext i = i + 1 Loop Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From stuart at lexacorp.com.pg Tue Jul 12 17:04:54 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 13 Jul 2005 08:04:54 +1000 Subject: [AccessD] Reading DIF format (A97 etc) In-Reply-To: <200507121519.j6CFJ7r10201@smarthost.yourcomms.net> Message-ID: <42D4CB26.14173.18966BF2@stuart.lexacorp.com.pg> On 12 Jul 2005 at 16:28, Griffiths, Richard wrote: > Thanks, I was using A97 hence the confusion. > For A97 replace: Split(strTemp,",")(1) with Left$(strTemp,Instr(StrTemp,",") -1) and Split(strTemp,",")(2) with Mid$(strTemp,Instr(StrTemp,",")+1) -- Stuart From stuart at lexacorp.com.pg Tue Jul 12 17:08:08 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 13 Jul 2005 08:08:08 +1000 Subject: [AccessD] Reading DIF format (A97 etc) In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F12CDBE78@xlivmbx21.aig.com> Message-ID: <42D4CBE8.10318.1899623F@stuart.lexacorp.com.pg> On 12 Jul 2005 at 11:06, Heenan, Lambert wrote: > This is piece of shorthand code writing (possibly the author learned to code > in the terse world of C/C++ ???), Never learnt C/C++ , I've never found a need to :-) > but I would not use it personally, simply > because it is a little confusing to read. Why is it confusing? You know that Split() returns an array, so why not just index it. -- Stuart From darsant at gmail.com Tue Jul 12 17:52:48 2005 From: darsant at gmail.com (Josh McFarlane) Date: Tue, 12 Jul 2005 17:52:48 -0500 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: References: <00df01c586a7$79b62dd0$ac1865cb@winxp> Message-ID: <53c8e05a050712155277000d77@mail.gmail.com> On 7/12/05, Bob Heygood wrote: > Thanks to all who responded. The on open event is what I used. > I thot of it earlier, but thot twice about using a global variable. > Not to start another rant/discussion, but I feel this is a good example a > good use of a global. > > I am creating 79 PDFs from code, which involves opening a report. The neat > news is that the reports caption property is what Acrobat uses for the > resulting file name. Hence my need to change the caption each time I > programmically open the report. > > > thanks again. > > bob You may wish to consider using OpenArgs. When calling the report via code, you can pass it arguments via the DoCmd.OpenReport, then with the OnOpen code, change the caption of the current report. I do this with an form that I use to determine date range (changes form caption to be the name of the report it is called to open) and it works like a charm. DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" Then in the on open handler: Caption = OpenArgs or something similar to fit your needs. -- HTH Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From stuart at lexacorp.com.pg Tue Jul 12 18:06:03 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 13 Jul 2005 09:06:03 +1000 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <53c8e05a050712155277000d77@mail.gmail.com> References: Message-ID: <42D4D97B.12035.18CE6683@stuart.lexacorp.com.pg> On 12 Jul 2005 at 17:52, Josh McFarlane wrote: > > DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" > > Then in the on open handler: > Caption = OpenArgs > > or something similar to fit your needs. > -- In a similar vein, has any looked into changing the Caption in a query datasheet or print preview. I often shortcut in simple applications and display a query to the user rather than going to the effort of producing a report based on the query. It would be nice to customise the header on a printout of the query. -- Stuart From jwcolby at colbyconsulting.com Tue Jul 12 20:00:39 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 12 Jul 2005 21:00:39 -0400 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <53c8e05a050712155277000d77@mail.gmail.com> Message-ID: <003101c58746$4c43f630$6c7aa8c0@ColbyM6805> >You may wish to consider using OpenArgs. In my framework I use a pair of classes for this purpose. Openargs (in my system) are in the format ArgName1=ArgValue1;ArgName2=ArgValue2;... With as many arguments as the developer needs to pass in to the form. clsOpenArg (singular) is a simple class with a name/value pair of variables and properties to read them back out. clsOpenArgs (plural) is the "supervisor" It is passed the openarg string by the form class. It parses the openargs and creates an instance of clsOpenArg for each openarg passed in, saving each instance in a colOpenArgs using the argument name as the key. The nice thing about using a class pair like this is that the form (or report) then has a place to go to retrieve the arguments in a consistent manner. You (the developer) no longer need to parse arguments inside any form that has arguments passed it, just instantiate the supervisor (clsOpenArgs (plural)) and pass in the openargs string (in OnOpen of the form / report) and then just read out the argument values using variable names that you know exist because you set them. For example: OpenArgs - FormCaption=MyForm;lblCompanyName=Colby Consulting;...MoreArgs=MoreValues; In the form or report header, you dim an instance of the supervisor class Dim lclsOpenArgs As clsOpenArgs In OnOpen you set up the class and pass in the openargs, then just reference the arguments: Private Sub Form_Open(Cancel As Integer) lclsOpenArgs = New clsOpenArgs With lclsOpenArgs .OpenArgs = Me.OpenArgs ...the .OpenArgs method accepts the openargs string and parses them, placing them into OpenArg class instances, then placing those class instances in a colOpenArgs keyed on the argument name. lblCompanyName.Caption = .Arg("lblCompanyName") Me.Caption = .Arg("FormCaption") End With End Sub As you can see, the form code then just reads the argument values out by passing in the name of an OpenArg it expects to receive and does something with that value. You can have one or 40 openargs, and clsOpenArgs just parses them and gets them ready to use. The form can read the values out of the supervisor class clsOpenArgs by name. The form class can read the values out anywhere they are needed, in any event or even in functions that do something complex. Another trick I use is to have a method in clsOpenArgs that looks up the argument names in the properties collection of the form. If the name matches a property, the property is set to the value of the argument. This allows me to open a generic form and setup things like AllowEdits, AllowDeletes etc using arguments passed in to OpenArgs. Not always useful, but when I need to do something like this it is just automatic. Classic class programming. This code and more will be found in a book I am madly (but slowly) writing to be available at a bookseller near you sometime next year. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Tuesday, July 12, 2005 6:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change Reports Caption From Code On 7/12/05, Bob Heygood wrote: > Thanks to all who responded. The on open event is what I used. I thot > of it earlier, but thot twice about using a global variable. Not to > start another rant/discussion, but I feel this is a good example a > good use of a global. > > I am creating 79 PDFs from code, which involves opening a report. The > neat news is that the reports caption property is what Acrobat uses > for the resulting file name. Hence my need to change the caption each > time I programmically open the report. > > > thanks again. > > bob You may wish to consider using OpenArgs. When calling the report via code, you can pass it arguments via the DoCmd.OpenReport, then with the OnOpen code, change the caption of the current report. I do this with an form that I use to determine date range (changes form caption to be the name of the report it is called to open) and it works like a charm. DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" Then in the on open handler: Caption = OpenArgs or something similar to fit your needs. -- HTH Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Jul 12 21:52:44 2005 From: john at winhaven.net (John Bartow) Date: Tue, 12 Jul 2005 21:52:44 -0500 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <003101c58746$4c43f630$6c7aa8c0@ColbyM6805> Message-ID: <200507130252.j6D2qqBK122764@pimout4-ext.prodigy.net> Ahhh, I can finally stop holding my breath! I threw my poor excuse of an answer out there just to keep this thread alive, I had a feeling you had this done in classes and I was just waiting for you to describe how you did it. :o) So your writing a book on it all! Can you feed some chapters out on it for proof reading purposes or something? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code >You may wish to consider using OpenArgs. In my framework I use a pair of classes for this purpose. Openargs (in my system) are in the format ArgName1=ArgValue1;ArgName2=ArgValue2;... With as many arguments as the developer needs to pass in to the form. clsOpenArg (singular) is a simple class with a name/value pair of variables and properties to read them back out. clsOpenArgs (plural) is the "supervisor" It is passed the openarg string by the form class. It parses the openargs and creates an instance of clsOpenArg for each openarg passed in, saving each instance in a colOpenArgs using the argument name as the key. The nice thing about using a class pair like this is that the form (or report) then has a place to go to retrieve the arguments in a consistent manner. You (the developer) no longer need to parse arguments inside any form that has arguments passed it, just instantiate the supervisor (clsOpenArgs (plural)) and pass in the openargs string (in OnOpen of the form / report) and then just read out the argument values using variable names that you know exist because you set them. For example: OpenArgs - FormCaption=MyForm;lblCompanyName=Colby Consulting;...MoreArgs=MoreValues; In the form or report header, you dim an instance of the supervisor class Dim lclsOpenArgs As clsOpenArgs In OnOpen you set up the class and pass in the openargs, then just reference the arguments: Private Sub Form_Open(Cancel As Integer) lclsOpenArgs = New clsOpenArgs With lclsOpenArgs .OpenArgs = Me.OpenArgs ...the .OpenArgs method accepts the openargs string and parses them, placing them into OpenArg class instances, then placing those class instances in a colOpenArgs keyed on the argument name. lblCompanyName.Caption = .Arg("lblCompanyName") Me.Caption = .Arg("FormCaption") End With End Sub As you can see, the form code then just reads the argument values out by passing in the name of an OpenArg it expects to receive and does something with that value. You can have one or 40 openargs, and clsOpenArgs just parses them and gets them ready to use. The form can read the values out of the supervisor class clsOpenArgs by name. The form class can read the values out anywhere they are needed, in any event or even in functions that do something complex. Another trick I use is to have a method in clsOpenArgs that looks up the argument names in the properties collection of the form. If the name matches a property, the property is set to the value of the argument. This allows me to open a generic form and setup things like AllowEdits, AllowDeletes etc using arguments passed in to OpenArgs. Not always useful, but when I need to do something like this it is just automatic. Classic class programming. This code and more will be found in a book I am madly (but slowly) writing to be available at a bookseller near you sometime next year. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Tuesday, July 12, 2005 6:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change Reports Caption From Code On 7/12/05, Bob Heygood wrote: > Thanks to all who responded. The on open event is what I used. I thot > of it earlier, but thot twice about using a global variable. Not to > start another rant/discussion, but I feel this is a good example a > good use of a global. > > I am creating 79 PDFs from code, which involves opening a report. The > neat news is that the reports caption property is what Acrobat uses > for the resulting file name. Hence my need to change the caption each > time I programmically open the report. > > > thanks again. > > bob You may wish to consider using OpenArgs. When calling the report via code, you can pass it arguments via the DoCmd.OpenReport, then with the OnOpen code, change the caption of the current report. I do this with an form that I use to determine date range (changes form caption to be the name of the report it is called to open) and it works like a charm. DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" Then in the on open handler: Caption = OpenArgs or something similar to fit your needs. -- HTH Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jul 12 22:44:57 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 12 Jul 2005 23:44:57 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <200507130252.j6D2qqBK122764@pimout4-ext.prodigy.net> Message-ID: <003201c5875d$42e13190$6c7aa8c0@ColbyM6805> Around the end of last year, I started rewriting my framework for the third time, in fact I now call it C2DbFW3G meaning 3rd generation. It is Access2K or better - A97 not supported mostly because I use RaiseEvents which are unsupported in A97. This version is still not fully fleshed out simply because I have ported (rewritten) the old 2nd generation framework piece by piece as I needed the modules, and I haven't needed the form / control stuff that I had in the 2G version. In fact I started on it because of a project that is generating reports for a client. The application is a report system for a call center for short term disability insurance. I (re)wrote the call center software from scratch but the reporting stuff kinda sorta worked and I never rewrote it from scratch. The insurance company that hires my client to do the call center is completely changing THEIR software, which now supports completely automated data feeds. In the past, my system generated Word documents with "new claim notices" and "advise to pay" notices. These reports were generated automatically and attached to emails to the insurer, where they were opened and keyed in to the system. Because it was always done that way! Sigh. It always sucked, errors on their end keying in the reports etc. So... Since the new system takes an automated feed, fixed width fields, text files, FTPd to a site where it is opened and loaded in to the system automatically, I had the opportunity to rebuild this reporting thing from scratch. The kinds of framework things I needed for this application were distinctly different from the framework things I needed for a typical form based data entry / call center application. At the same time, entire pieces are pretty similar or even identical. So I yanked the useful classes and code other than form / control stuff from the 2G framework, took the opportunity to clean it up a LOT, and "started from scratch", although not exactly as I have intimated. The result is a lot cleaner, even more heavily class based, and uses a "service plug-in" concept. A framework is really about providing services to an application. These services may be clearly a service, such as logging to text files, zipping / unzipping files, encryption etc., or they may be less clearly a service, such as a form class that loads control classes that provide record selectors, JIT subforms, OpenArgs etc. In the end though, even these are just services to an application. What I am trying very hard to do this time is set up the framework to allow plug-in services where the service is loaded if it is needed, with a "socket" kind of interface - at least for the non-form based services. Things like SysVars, Zip/Unzip, logging etc are really easy to do this with. The classes exist and if the application wants a logger it asks for one. It is stored in a collection keyed by name and the app can then use it by calling a .log method of the framework, passing the name of the logger and the text to log. If a logger by that name isn't loaded, it loads and then stores the text that needs to be stored in the log file. Like that. It turns out that a log file like that works well for these NCN and ATP reports. The application asks for an NCN log, gathers the data and builds up the fixed width field strings. When each string (NCN or ATP record) is finished, the app just writes it to the log file. When all the records are written to the log file, the file is emailed or FTPd as desired. The log and the email or FTP is just a service. The APPLICATION has to build ATP and NCN reports, but it just asks the framework for a log and when the log is done, asks the framework to email or FTP the log somewhere. Services. Neat stuff and lots of fun to do. As for the book, well... I have worked on a couple of books for Wrox, but they gave a lukewarm reception to the idea of this stuff written into a book. I am just "doing it myself" and will then pitch it when it is closer to written. Sometimes the powers that be just don't "get" what you want to do. Or maybe it just won't sell and I'll be sitting on a years worth of writing. I have never seen a book like this for the Access arena so I just want to do it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, July 12, 2005 10:53 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code Ahhh, I can finally stop holding my breath! I threw my poor excuse of an answer out there just to keep this thread alive, I had a feeling you had this done in classes and I was just waiting for you to describe how you did it. :o) So your writing a book on it all! Can you feed some chapters out on it for proof reading purposes or something? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code >You may wish to consider using OpenArgs. In my framework I use a pair of classes for this purpose. Openargs (in my system) are in the format ArgName1=ArgValue1;ArgName2=ArgValue2;... With as many arguments as the developer needs to pass in to the form. clsOpenArg (singular) is a simple class with a name/value pair of variables and properties to read them back out. clsOpenArgs (plural) is the "supervisor" It is passed the openarg string by the form class. It parses the openargs and creates an instance of clsOpenArg for each openarg passed in, saving each instance in a colOpenArgs using the argument name as the key. The nice thing about using a class pair like this is that the form (or report) then has a place to go to retrieve the arguments in a consistent manner. You (the developer) no longer need to parse arguments inside any form that has arguments passed it, just instantiate the supervisor (clsOpenArgs (plural)) and pass in the openargs string (in OnOpen of the form / report) and then just read out the argument values using variable names that you know exist because you set them. For example: OpenArgs - FormCaption=MyForm;lblCompanyName=Colby Consulting;...MoreArgs=MoreValues; In the form or report header, you dim an instance of the supervisor class Dim lclsOpenArgs As clsOpenArgs In OnOpen you set up the class and pass in the openargs, then just reference the arguments: Private Sub Form_Open(Cancel As Integer) lclsOpenArgs = New clsOpenArgs With lclsOpenArgs .OpenArgs = Me.OpenArgs ...the .OpenArgs method accepts the openargs string and parses them, placing them into OpenArg class instances, then placing those class instances in a colOpenArgs keyed on the argument name. lblCompanyName.Caption = .Arg("lblCompanyName") Me.Caption = .Arg("FormCaption") End With End Sub As you can see, the form code then just reads the argument values out by passing in the name of an OpenArg it expects to receive and does something with that value. You can have one or 40 openargs, and clsOpenArgs just parses them and gets them ready to use. The form can read the values out of the supervisor class clsOpenArgs by name. The form class can read the values out anywhere they are needed, in any event or even in functions that do something complex. Another trick I use is to have a method in clsOpenArgs that looks up the argument names in the properties collection of the form. If the name matches a property, the property is set to the value of the argument. This allows me to open a generic form and setup things like AllowEdits, AllowDeletes etc using arguments passed in to OpenArgs. Not always useful, but when I need to do something like this it is just automatic. Classic class programming. This code and more will be found in a book I am madly (but slowly) writing to be available at a bookseller near you sometime next year. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Tuesday, July 12, 2005 6:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change Reports Caption From Code On 7/12/05, Bob Heygood wrote: > Thanks to all who responded. The on open event is what I used. I thot > of it earlier, but thot twice about using a global variable. Not to > start another rant/discussion, but I feel this is a good example a > good use of a global. > > I am creating 79 PDFs from code, which involves opening a report. The > neat news is that the reports caption property is what Acrobat uses > for the resulting file name. Hence my need to change the caption each > time I programmically open the report. > > > thanks again. > > bob You may wish to consider using OpenArgs. When calling the report via code, you can pass it arguments via the DoCmd.OpenReport, then with the OnOpen code, change the caption of the current report. I do this with an form that I use to determine date range (changes form caption to be the name of the report it is called to open) and it works like a charm. DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" Then in the on open handler: Caption = OpenArgs or something similar to fit your needs. -- HTH Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 at winhaven.net Tue Jul 12 23:45:26 2005 From: john at winhaven.net (John Bartow) Date: Tue, 12 Jul 2005 23:45:26 -0500 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <003201c5875d$42e13190$6c7aa8c0@ColbyM6805> Message-ID: <200507130445.j6D4jX38247366@pimout4-ext.prodigy.net> Sounds interesting! The book would target a very specific audience and I suppose that bodes low returns for a publisher. The downside of capitalism :o( You could probably bring Susan on as editor and have the benefit of her connections. I don't know if you lurk the OT list or not but she has been doing children's books in addition to her technical articles. She seems to be the most prolific author for Access Advisor magazine lately. Works in conjunction with a lot of past and present DBA people. I think this last issue she did an article with Mike Gunderloy and the one before with Gustav Brock. I could proof read it for you too. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 10:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Framework book - was caption from code Around the end of last year, I started rewriting my framework for the third time, in fact I now call it C2DbFW3G meaning 3rd generation. It is Access2K or better - A97 not supported mostly because I use RaiseEvents which are unsupported in A97. This version is still not fully fleshed out simply because I have ported (rewritten) the old 2nd generation framework piece by piece as I needed the modules, and I haven't needed the form / control stuff that I had in the 2G version. In fact I started on it because of a project that is generating reports for a client. The application is a report system for a call center for short term disability insurance. I (re)wrote the call center software from scratch but the reporting stuff kinda sorta worked and I never rewrote it from scratch. The insurance company that hires my client to do the call center is completely changing THEIR software, which now supports completely automated data feeds. In the past, my system generated Word documents with "new claim notices" and "advise to pay" notices. These reports were generated automatically and attached to emails to the insurer, where they were opened and keyed in to the system. Because it was always done that way! Sigh. It always sucked, errors on their end keying in the reports etc. So... Since the new system takes an automated feed, fixed width fields, text files, FTPd to a site where it is opened and loaded in to the system automatically, I had the opportunity to rebuild this reporting thing from scratch. The kinds of framework things I needed for this application were distinctly different from the framework things I needed for a typical form based data entry / call center application. At the same time, entire pieces are pretty similar or even identical. So I yanked the useful classes and code other than form / control stuff from the 2G framework, took the opportunity to clean it up a LOT, and "started from scratch", although not exactly as I have intimated. The result is a lot cleaner, even more heavily class based, and uses a "service plug-in" concept. A framework is really about providing services to an application. These services may be clearly a service, such as logging to text files, zipping / unzipping files, encryption etc., or they may be less clearly a service, such as a form class that loads control classes that provide record selectors, JIT subforms, OpenArgs etc. In the end though, even these are just services to an application. What I am trying very hard to do this time is set up the framework to allow plug-in services where the service is loaded if it is needed, with a "socket" kind of interface - at least for the non-form based services. Things like SysVars, Zip/Unzip, logging etc are really easy to do this with. The classes exist and if the application wants a logger it asks for one. It is stored in a collection keyed by name and the app can then use it by calling a .log method of the framework, passing the name of the logger and the text to log. If a logger by that name isn't loaded, it loads and then stores the text that needs to be stored in the log file. Like that. It turns out that a log file like that works well for these NCN and ATP reports. The application asks for an NCN log, gathers the data and builds up the fixed width field strings. When each string (NCN or ATP record) is finished, the app just writes it to the log file. When all the records are written to the log file, the file is emailed or FTPd as desired. The log and the email or FTP is just a service. The APPLICATION has to build ATP and NCN reports, but it just asks the framework for a log and when the log is done, asks the framework to email or FTP the log somewhere. Services. Neat stuff and lots of fun to do. As for the book, well... I have worked on a couple of books for Wrox, but they gave a lukewarm reception to the idea of this stuff written into a book. I am just "doing it myself" and will then pitch it when it is closer to written. Sometimes the powers that be just don't "get" what you want to do. Or maybe it just won't sell and I'll be sitting on a years worth of writing. I have never seen a book like this for the Access arena so I just want to do it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, July 12, 2005 10:53 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code Ahhh, I can finally stop holding my breath! I threw my poor excuse of an answer out there just to keep this thread alive, I had a feeling you had this done in classes and I was just waiting for you to describe how you did it. :o) So your writing a book on it all! Can you feed some chapters out on it for proof reading purposes or something? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code >You may wish to consider using OpenArgs. In my framework I use a pair of classes for this purpose. Openargs (in my system) are in the format ArgName1=ArgValue1;ArgName2=ArgValue2;... With as many arguments as the developer needs to pass in to the form. clsOpenArg (singular) is a simple class with a name/value pair of variables and properties to read them back out. clsOpenArgs (plural) is the "supervisor" It is passed the openarg string by the form class. It parses the openargs and creates an instance of clsOpenArg for each openarg passed in, saving each instance in a colOpenArgs using the argument name as the key. The nice thing about using a class pair like this is that the form (or report) then has a place to go to retrieve the arguments in a consistent manner. You (the developer) no longer need to parse arguments inside any form that has arguments passed it, just instantiate the supervisor (clsOpenArgs (plural)) and pass in the openargs string (in OnOpen of the form / report) and then just read out the argument values using variable names that you know exist because you set them. For example: OpenArgs - FormCaption=MyForm;lblCompanyName=Colby Consulting;...MoreArgs=MoreValues; In the form or report header, you dim an instance of the supervisor class Dim lclsOpenArgs As clsOpenArgs In OnOpen you set up the class and pass in the openargs, then just reference the arguments: Private Sub Form_Open(Cancel As Integer) lclsOpenArgs = New clsOpenArgs With lclsOpenArgs .OpenArgs = Me.OpenArgs ...the .OpenArgs method accepts the openargs string and parses them, placing them into OpenArg class instances, then placing those class instances in a colOpenArgs keyed on the argument name. lblCompanyName.Caption = .Arg("lblCompanyName") Me.Caption = .Arg("FormCaption") End With End Sub As you can see, the form code then just reads the argument values out by passing in the name of an OpenArg it expects to receive and does something with that value. You can have one or 40 openargs, and clsOpenArgs just parses them and gets them ready to use. The form can read the values out of the supervisor class clsOpenArgs by name. The form class can read the values out anywhere they are needed, in any event or even in functions that do something complex. Another trick I use is to have a method in clsOpenArgs that looks up the argument names in the properties collection of the form. If the name matches a property, the property is set to the value of the argument. This allows me to open a generic form and setup things like AllowEdits, AllowDeletes etc using arguments passed in to OpenArgs. Not always useful, but when I need to do something like this it is just automatic. Classic class programming. This code and more will be found in a book I am madly (but slowly) writing to be available at a bookseller near you sometime next year. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Tuesday, July 12, 2005 6:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change Reports Caption From Code On 7/12/05, Bob Heygood wrote: > Thanks to all who responded. The on open event is what I used. I thot > of it earlier, but thot twice about using a global variable. Not to > start another rant/discussion, but I feel this is a good example a > good use of a global. > > I am creating 79 PDFs from code, which involves opening a report. The > neat news is that the reports caption property is what Acrobat uses > for the resulting file name. Hence my need to change the caption each > time I programmically open the report. > > > thanks again. > > bob You may wish to consider using OpenArgs. When calling the report via code, you can pass it arguments via the DoCmd.OpenReport, then with the OnOpen code, change the caption of the current report. I do this with an form that I use to determine date range (changes form caption to be the name of the report it is called to open) and it works like a charm. DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" Then in the on open handler: Caption = OpenArgs or something similar to fit your needs. -- HTH Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 13 01:29:24 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 12 Jul 2005 23:29:24 -0700 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <003201c5875d$42e13190$6c7aa8c0@ColbyM6805> Message-ID: <0IJJ00F1DZCXNY@l-daemon> Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 8:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Framework book - was caption from code Around the end of last year, I started rewriting my framework for the third time, in fact I now call it C2DbFW3G meaning 3rd generation. It is Access2K or better - A97 not supported mostly because I use RaiseEvents which are unsupported in A97. This version is still not fully fleshed out simply because I have ported (rewritten) the old 2nd generation framework piece by piece as I needed the modules, and I haven't needed the form / control stuff that I had in the 2G version. In fact I started on it because of a project that is generating reports for a client. The application is a report system for a call center for short term disability insurance. I (re)wrote the call center software from scratch but the reporting stuff kinda sorta worked and I never rewrote it from scratch. The insurance company that hires my client to do the call center is completely changing THEIR software, which now supports completely automated data feeds. In the past, my system generated Word documents with "new claim notices" and "advise to pay" notices. These reports were generated automatically and attached to emails to the insurer, where they were opened and keyed in to the system. Because it was always done that way! Sigh. It always sucked, errors on their end keying in the reports etc. So... Since the new system takes an automated feed, fixed width fields, text files, FTPd to a site where it is opened and loaded in to the system automatically, I had the opportunity to rebuild this reporting thing from scratch. The kinds of framework things I needed for this application were distinctly different from the framework things I needed for a typical form based data entry / call center application. At the same time, entire pieces are pretty similar or even identical. So I yanked the useful classes and code other than form / control stuff from the 2G framework, took the opportunity to clean it up a LOT, and "started from scratch", although not exactly as I have intimated. The result is a lot cleaner, even more heavily class based, and uses a "service plug-in" concept. A framework is really about providing services to an application. These services may be clearly a service, such as logging to text files, zipping / unzipping files, encryption etc., or they may be less clearly a service, such as a form class that loads control classes that provide record selectors, JIT subforms, OpenArgs etc. In the end though, even these are just services to an application. What I am trying very hard to do this time is set up the framework to allow plug-in services where the service is loaded if it is needed, with a "socket" kind of interface - at least for the non-form based services. Things like SysVars, Zip/Unzip, logging etc are really easy to do this with. The classes exist and if the application wants a logger it asks for one. It is stored in a collection keyed by name and the app can then use it by calling a .log method of the framework, passing the name of the logger and the text to log. If a logger by that name isn't loaded, it loads and then stores the text that needs to be stored in the log file. Like that. It turns out that a log file like that works well for these NCN and ATP reports. The application asks for an NCN log, gathers the data and builds up the fixed width field strings. When each string (NCN or ATP record) is finished, the app just writes it to the log file. When all the records are written to the log file, the file is emailed or FTPd as desired. The log and the email or FTP is just a service. The APPLICATION has to build ATP and NCN reports, but it just asks the framework for a log and when the log is done, asks the framework to email or FTP the log somewhere. Services. Neat stuff and lots of fun to do. As for the book, well... I have worked on a couple of books for Wrox, but they gave a lukewarm reception to the idea of this stuff written into a book. I am just "doing it myself" and will then pitch it when it is closer to written. Sometimes the powers that be just don't "get" what you want to do. Or maybe it just won't sell and I'll be sitting on a years worth of writing. I have never seen a book like this for the Access arena so I just want to do it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, July 12, 2005 10:53 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code Ahhh, I can finally stop holding my breath! I threw my poor excuse of an answer out there just to keep this thread alive, I had a feeling you had this done in classes and I was just waiting for you to describe how you did it. :o) So your writing a book on it all! Can you feed some chapters out on it for proof reading purposes or something? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code >You may wish to consider using OpenArgs. In my framework I use a pair of classes for this purpose. Openargs (in my system) are in the format ArgName1=ArgValue1;ArgName2=ArgValue2;... With as many arguments as the developer needs to pass in to the form. clsOpenArg (singular) is a simple class with a name/value pair of variables and properties to read them back out. clsOpenArgs (plural) is the "supervisor" It is passed the openarg string by the form class. It parses the openargs and creates an instance of clsOpenArg for each openarg passed in, saving each instance in a colOpenArgs using the argument name as the key. The nice thing about using a class pair like this is that the form (or report) then has a place to go to retrieve the arguments in a consistent manner. You (the developer) no longer need to parse arguments inside any form that has arguments passed it, just instantiate the supervisor (clsOpenArgs (plural)) and pass in the openargs string (in OnOpen of the form / report) and then just read out the argument values using variable names that you know exist because you set them. For example: OpenArgs - FormCaption=MyForm;lblCompanyName=Colby Consulting;...MoreArgs=MoreValues; In the form or report header, you dim an instance of the supervisor class Dim lclsOpenArgs As clsOpenArgs In OnOpen you set up the class and pass in the openargs, then just reference the arguments: Private Sub Form_Open(Cancel As Integer) lclsOpenArgs = New clsOpenArgs With lclsOpenArgs .OpenArgs = Me.OpenArgs ...the .OpenArgs method accepts the openargs string and parses them, placing them into OpenArg class instances, then placing those class instances in a colOpenArgs keyed on the argument name. lblCompanyName.Caption = .Arg("lblCompanyName") Me.Caption = .Arg("FormCaption") End With End Sub As you can see, the form code then just reads the argument values out by passing in the name of an OpenArg it expects to receive and does something with that value. You can have one or 40 openargs, and clsOpenArgs just parses them and gets them ready to use. The form can read the values out of the supervisor class clsOpenArgs by name. The form class can read the values out anywhere they are needed, in any event or even in functions that do something complex. Another trick I use is to have a method in clsOpenArgs that looks up the argument names in the properties collection of the form. If the name matches a property, the property is set to the value of the argument. This allows me to open a generic form and setup things like AllowEdits, AllowDeletes etc using arguments passed in to OpenArgs. Not always useful, but when I need to do something like this it is just automatic. Classic class programming. This code and more will be found in a book I am madly (but slowly) writing to be available at a bookseller near you sometime next year. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Tuesday, July 12, 2005 6:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change Reports Caption From Code On 7/12/05, Bob Heygood wrote: > Thanks to all who responded. The on open event is what I used. I thot > of it earlier, but thot twice about using a global variable. Not to > start another rant/discussion, but I feel this is a good example a > good use of a global. > > I am creating 79 PDFs from code, which involves opening a report. The > neat news is that the reports caption property is what Acrobat uses > for the resulting file name. Hence my need to change the caption each > time I programmically open the report. > > > thanks again. > > bob You may wish to consider using OpenArgs. When calling the report via code, you can pass it arguments via the DoCmd.OpenReport, then with the OnOpen code, change the caption of the current report. I do this with an form that I use to determine date range (changes form caption to be the name of the report it is called to open) and it works like a charm. DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" Then in the on open handler: Caption = OpenArgs or something similar to fit your needs. -- HTH Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 martyconnelly at shaw.ca Wed Jul 13 01:56:04 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 12 Jul 2005 23:56:04 -0700 Subject: [AccessD] Multilingual Access References: <200507120928.j6C9SPR00380@databaseadvisors.com> Message-ID: <42D4BB04.8070809@shaw.ca> Rocky just went through that maybe he can supply the gory details. Some sites that might help http://www.microsoft.com/office/editions/prodinfo/language/default.mspx http://www.microsoft.com/office/editions/prodinfo/language/localized.mspx You might also want to read your way through this MS Globalization site http://www.microsoft.com/globaldev and Dr. International's Faq's http://www.microsoft.com/globaldev/drintl/ Maybe this Russian(Moscow Access User Group) developed Access Translator might help with Captions and Controls. Translator collects text information from Access Forms, Reports and Command bars and its controls - labels, textboxes, etc. Then developer translates collected text to other languages, and at last Translator writes translated text back to Access controls. Demo version available. Michael Kaplan gives it a thumbs up. Although not sure if it handles Bidi langauges like arabic and hebrew. Or chinese which might require an IME http://c85.cemi.rssi.ru/access/Downloads/Trans/Trans.asp Michael Laferriere wrote: >Hi Folks - We developed an Access 2002 database >in English. The client wants to create a copy of the database and prep it >for the Chinese language. Does anyone know what's involved? Or where to start? Thanks. > > > >Michael > > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Wed Jul 13 06:35:15 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 13 Jul 2005 07:35:15 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <0IJJ00F1DZCXNY@l-daemon> Message-ID: <002101c5879e$f3d65660$6c7aa8c0@ColbyM6805> Jim, My framework (the part that had to do with forms and controls) was indeed aimed at bound forms. However the concept works for unbound forms as well. Indeed it would be even more critical to use a framework as you the developer are doing so much of the work that Access was doing for you - loading all of the data into the controls, checking for updates to the data by other people before you wrote changes back to the table, writing the data back from controls into fields in the tables, stuff like that. All of that code would be framework material. Once written and stored in the framework, the doing of it would be automatic by the framework. If you are one of the unholy (unbounders) why don't you give a thumbnail sketch of how you manage all of that work. I will then brainstorm how I would look at doing it in a framework. Remember that the concept of a framework is to make it as automatic as possible. For example (in a bound form) I have a form class and I have a class for each control type. The form class runs a control scanner, gets the control type of each control, loads a class instance for each control found. Once this is done, the form class and control classes can work together to do tasks. As an example, I can literally just drop a pair of controls on the form, a text box named RecID that exposes (is bound to) the PK (always an autonumber) and an unbound combo called RecSel. The names are specific and if the control scanner finds this pair of controls it knows that a record selector exists and runs the code. The afterupdate of the combo by that name calls a method of the parent form saying "move to recid XXXX". The column 0 of the combo is the PK of the record in the form so it knows the PK. The form's OnCurrent knows that it needs to keep the combo synced to the displayed record in the form so it calls a method of the combo class telling it to display the data relevant to the current record in the form. Thus the form, the combo and a text box all work as a system to form a record selector. If the developer drops these two controls on the form he "just has" a record selector. Nothing else is required - other than binding RecSel to the PK field and setting the combo's query to display the data and get the PK of the records in the table. As an unbounder, you need to think about how to achieve this kind of "automaticness" in the things you do. Naturally some tasks do require feeding data into init() methods of classes to set the classes up to do their job. After that though the "systems" need to just work together. Load the data into the unbound form / controls. Store flags in each control's class saying that control's data was modified. Scan for all controls with modified data and update the underlying data in the record. Check for data changes in the data you are about to update and inform the user that another user edited the record since you loaded the data. Etc. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 2:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) Jim From jimdettman at earthlink.net Wed Jul 13 06:55:07 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 13 Jul 2005 07:55:07 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <002101c5879e$f3d65660$6c7aa8c0@ColbyM6805> Message-ID: John, <> There was a discussion long ago on this very point; why there were not more frameworks available for Access. The consensus at the time was that Access did a lot of what a traditional framework did for you. For example, I work with VMP which is a framework for VFP and one of the base services it offers is PK generation. Foxpro for the longest time didn't have an Autonumber, while Access has had this from day one. The other problem was that Access did not provide many hooks, so it was difficult to achieve certain things. A lot has changed since then and yet there is still a fundamental lack of frameworks for Access. It's strange to because in working with many applications, I see that other developers have come up with things to solve the very same problems (PK generation, pick lists, calendars, etc). I'm still scratching my head as to why. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, July 13, 2005 7:35 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Jim, My framework (the part that had to do with forms and controls) was indeed aimed at bound forms. However the concept works for unbound forms as well. Indeed it would be even more critical to use a framework as you the developer are doing so much of the work that Access was doing for you - loading all of the data into the controls, checking for updates to the data by other people before you wrote changes back to the table, writing the data back from controls into fields in the tables, stuff like that. All of that code would be framework material. Once written and stored in the framework, the doing of it would be automatic by the framework. If you are one of the unholy (unbounders) why don't you give a thumbnail sketch of how you manage all of that work. I will then brainstorm how I would look at doing it in a framework. Remember that the concept of a framework is to make it as automatic as possible. For example (in a bound form) I have a form class and I have a class for each control type. The form class runs a control scanner, gets the control type of each control, loads a class instance for each control found. Once this is done, the form class and control classes can work together to do tasks. As an example, I can literally just drop a pair of controls on the form, a text box named RecID that exposes (is bound to) the PK (always an autonumber) and an unbound combo called RecSel. The names are specific and if the control scanner finds this pair of controls it knows that a record selector exists and runs the code. The afterupdate of the combo by that name calls a method of the parent form saying "move to recid XXXX". The column 0 of the combo is the PK of the record in the form so it knows the PK. The form's OnCurrent knows that it needs to keep the combo synced to the displayed record in the form so it calls a method of the combo class telling it to display the data relevant to the current record in the form. Thus the form, the combo and a text box all work as a system to form a record selector. If the developer drops these two controls on the form he "just has" a record selector. Nothing else is required - other than binding RecSel to the PK field and setting the combo's query to display the data and get the PK of the records in the table. As an unbounder, you need to think about how to achieve this kind of "automaticness" in the things you do. Naturally some tasks do require feeding data into init() methods of classes to set the classes up to do their job. After that though the "systems" need to just work together. Load the data into the unbound form / controls. Store flags in each control's class saying that control's data was modified. Scan for all controls with modified data and update the underlying data in the record. Check for data changes in the data you are about to update and inform the user that another user edited the record since you loaded the data. Etc. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 2:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Wed Jul 13 08:08:42 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 13 Jul 2005 09:08:42 -0400 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F12CDC123@xlivmbx21.aig.com> Did I say it made no sense? Did I say I could not understand it? Did I say it turned my brain to mush looking at the *unconventional* syntax? No. I answered another liseter's question. Someone who *did not* understand it. That is why I diplomatically described it as "a little confusing". Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, July 12, 2005 6:08 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) On 12 Jul 2005 at 11:06, Heenan, Lambert wrote: > This is piece of shorthand code writing (possibly the author learned > to code in the terse world of C/C++ ???), Never learnt C/C++ , I've never found a need to :-) > but I would not use it personally, simply > because it is a little confusing to read. Why is it confusing? You know that Split() returns an array, so why not just index it. -- Stuart -- 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 Jul 13 08:31:48 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 13 Jul 2005 08:31:48 -0500 Subject: [AccessD] Cannot delete from specified tables Message-ID: When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 From mikedorism at verizon.net Wed Jul 13 09:54:45 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Wed, 13 Jul 2005 10:54:45 -0400 Subject: [AccessD] Cannot delete from specified tables In-Reply-To: Message-ID: <000001c587ba$d0370260$2f01a8c0@dorismanning> Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- 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 Jul 13 10:06:42 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 13 Jul 2005 10:06:42 -0500 Subject: [AccessD] Cannot delete from specified tables Message-ID: Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 mikedorism at verizon.net Wed Jul 13 10:12:05 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Wed, 13 Jul 2005 11:12:05 -0400 Subject: [AccessD] Cannot delete from specified tables In-Reply-To: Message-ID: <000101c587bd$3b71a740$2f01a8c0@dorismanning> It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Chester_Kaup at kindermorgan.com Wed Jul 13 10:32:30 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 13 Jul 2005 10:32:30 -0500 Subject: [AccessD] Cannot delete from specified tables Message-ID: So for the ignorant here how do I know if I have non updateable query and what can I do about it? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Rich_Lavsa at pghcorning.com Wed Jul 13 10:39:53 2005 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Wed, 13 Jul 2005 11:39:53 -0400 Subject: [AccessD] Cannot delete from specified tables Message-ID: <2A261FF9D5EBCA46940C11688CE872EE01E96A18@goexchange2.pghcorning.com> I've recently had this very error 3086. I found no suggestions to my solution however came to realize that there was no records being returned thus causing the error, or so I believed this to be my cause. Because I call this query from code, I captured this error and exit the sub without any issues. To find out if you are returning any records, open the query in design mode then simply click on the "Datasheet View", this will show you what your results will be, but will not execute the delete command. Anyone else have any similar experiences with a delete query. My delete query contained a sub-query and was not doing any joins. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 11:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Chester_Kaup at kindermorgan.com Wed Jul 13 10:46:13 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 13 Jul 2005 10:46:13 -0500 Subject: [AccessD] Cannot delete from specified tables Message-ID: Datasheet view shows several hundred records to delete so something else is happening to prevent the records from being deleted. Thanks for the idea. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 13, 2005 10:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables I've recently had this very error 3086. I found no suggestions to my solution however came to realize that there was no records being returned thus causing the error, or so I believed this to be my cause. Because I call this query from code, I captured this error and exit the sub without any issues. To find out if you are returning any records, open the query in design mode then simply click on the "Datasheet View", this will show you what your results will be, but will not execute the delete command. Anyone else have any similar experiences with a delete query. My delete query contained a sub-query and was not doing any joins. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 11:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Wed Jul 13 10:54:11 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 13 Jul 2005 08:54:11 -0700 Subject: [AccessD] Cannot delete from specified tables Message-ID: Try adding the DISTINCTROW keyword to your query (or set the unique records property to true in the query properties) and see if that makes a difference. It often does. Charlotte Foust -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Wednesday, July 13, 2005 8:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Datasheet view shows several hundred records to delete so something else is happening to prevent the records from being deleted. Thanks for the idea. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 13, 2005 10:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables I've recently had this very error 3086. I found no suggestions to my solution however came to realize that there was no records being returned thus causing the error, or so I believed this to be my cause. Because I call this query from code, I captured this error and exit the sub without any issues. To find out if you are returning any records, open the query in design mode then simply click on the "Datasheet View", this will show you what your results will be, but will not execute the delete command. Anyone else have any similar experiences with a delete query. My delete query contained a sub-query and was not doing any joins. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 11:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 donald.a.Mcgillivray at mail.sprint.com Wed Jul 13 10:56:15 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Wed, 13 Jul 2005 10:56:15 -0500 Subject: [AccessD] Cannot delete from specified tables Message-ID: A delete query against an empty recordset simply exits without error. "DELETE * FROM tblMyTable WHERE tblMyTable.MyField = 2;" simply runs and exits if there are no MyFields in tblMyTable with values equal to 2. No error. I'd say that Doris's suspicion that the recordset is non-updateable is the more likely cause of Chester's problem. You may want to re-visit your code to ensure that you're not missing some other circumstance that is causing your delete queries to fail. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 13, 2005 8:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables I've recently had this very error 3086. I found no suggestions to my solution however came to realize that there was no records being returned thus causing the error, or so I believed this to be my cause. Because I call this query from code, I captured this error and exit the sub without any issues. To find out if you are returning any records, open the query in design mode then simply click on the "Datasheet View", this will show you what your results will be, but will not execute the delete command. Anyone else have any similar experiences with a delete query. My delete query contained a sub-query and was not doing any joins. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 11:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Chester_Kaup at kindermorgan.com Wed Jul 13 10:58:57 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 13 Jul 2005 10:58:57 -0500 Subject: [AccessD] Cannot delete from specified tables Message-ID: That made it work. Now my day is mush better. I did not want to delete 3000+ records by hand. Thanks all -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, July 13, 2005 10:54 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Try adding the DISTINCTROW keyword to your query (or set the unique records property to true in the query properties) and see if that makes a difference. It often does. Charlotte Foust -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Wednesday, July 13, 2005 8:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Datasheet view shows several hundred records to delete so something else is happening to prevent the records from being deleted. Thanks for the idea. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 13, 2005 10:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables I've recently had this very error 3086. I found no suggestions to my solution however came to realize that there was no records being returned thus causing the error, or so I believed this to be my cause. Because I call this query from code, I captured this error and exit the sub without any issues. To find out if you are returning any records, open the query in design mode then simply click on the "Datasheet View", this will show you what your results will be, but will not execute the delete command. Anyone else have any similar experiences with a delete query. My delete query contained a sub-query and was not doing any joins. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 11:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 accessd at shaw.ca Wed Jul 13 11:16:39 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 13 Jul 2005 09:16:39 -0700 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <002101c5879e$f3d65660$6c7aa8c0@ColbyM6805> Message-ID: <0IJK005EDQJPG2@l-daemon> Hi John: The methods I have used were designed about eight years ago and have copied/improved again and again. Here are the basics and a step by step methodology: 1. I always use ADO-OLE. (One exception is MySQL... a bit of a pain. If someone could figure out a method that would not require a station by station visit to install the MySQL ODBC drivers I would be for ever indebted.) 2. The forms and subforms are populated as the user moves through the records and but until the user actually changes field content on a form or attempts to delete the current record, the recordset used to feed the form is static. 3. a) A record or group of records in the case of a subform being displayed, are first pulled into a recordset, and content are then used to populate the form collection. In theory the record exists in three places. b) If there is a change of deletion request the recordset is locked by creating a dynamic recordset with record-lock attribute. c) If an 'already locked' error occurs when this lock is being applied then the user is informed of the condition and given the appropriate options. d) When using a 'real' :-) SQL DB (MS SQL/Oracle etc.) much of the record handling is managed internally as soon as the 'BeginTrans' is applied and closed or resolved when the 'CommitTrans' or 'RollbackTrans' runs. It may initially seem a little complex but it gives a full range of options for managing the data and it allows the client to build large databases with many users and only requires the purchase a few licenses/seats. (ie. 20 licenses and 100 users.) Using ADO makes is easy to switch or attach different data sources with little effort. (In theory one line of code.) Even web applications can be created leveraging the same methods. That is not totally true but given that SQL versions are standardizing coupled with the use of Store Procedures/Queries, with passing parameters, very few changes are needed. I am still pacing around the XML pool but believe in the long run that is where to go. So there is the 'thumb-nail' sketch of the 'non-bounder' application implementation methodology. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, July 13, 2005 4:35 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Jim, My framework (the part that had to do with forms and controls) was indeed aimed at bound forms. However the concept works for unbound forms as well. Indeed it would be even more critical to use a framework as you the developer are doing so much of the work that Access was doing for you - loading all of the data into the controls, checking for updates to the data by other people before you wrote changes back to the table, writing the data back from controls into fields in the tables, stuff like that. All of that code would be framework material. Once written and stored in the framework, the doing of it would be automatic by the framework. If you are one of the unholy (unbounders) why don't you give a thumbnail sketch of how you manage all of that work. I will then brainstorm how I would look at doing it in a framework. Remember that the concept of a framework is to make it as automatic as possible. For example (in a bound form) I have a form class and I have a class for each control type. The form class runs a control scanner, gets the control type of each control, loads a class instance for each control found. Once this is done, the form class and control classes can work together to do tasks. As an example, I can literally just drop a pair of controls on the form, a text box named RecID that exposes (is bound to) the PK (always an autonumber) and an unbound combo called RecSel. The names are specific and if the control scanner finds this pair of controls it knows that a record selector exists and runs the code. The afterupdate of the combo by that name calls a method of the parent form saying "move to recid XXXX". The column 0 of the combo is the PK of the record in the form so it knows the PK. The form's OnCurrent knows that it needs to keep the combo synced to the displayed record in the form so it calls a method of the combo class telling it to display the data relevant to the current record in the form. Thus the form, the combo and a text box all work as a system to form a record selector. If the developer drops these two controls on the form he "just has" a record selector. Nothing else is required - other than binding RecSel to the PK field and setting the combo's query to display the data and get the PK of the records in the table. As an unbounder, you need to think about how to achieve this kind of "automaticness" in the things you do. Naturally some tasks do require feeding data into init() methods of classes to set the classes up to do their job. After that though the "systems" need to just work together. Load the data into the unbound form / controls. Store flags in each control's class saying that control's data was modified. Scan for all controls with modified data and update the underlying data in the record. Check for data changes in the data you are about to update and inform the user that another user edited the record since you loaded the data. Etc. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 2:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Jul 13 12:05:59 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 13 Jul 2005 10:05:59 -0700 Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book References: <0IJK005EDQJPG2@l-daemon> Message-ID: <42D549F7.8090307@shaw.ca> Got this today from my local dotnet usergroup in Victoria http://www.vicdotnet.org Microsoft has been releasing a lot of .NET 2.0 and SQL Server 2005 training resources over the last little while, gearing up for the release of both in November. Here are a few of the highlights. These free offers have a decent retail value, and are only available for free for a "limited" time (though we aren't exactly sure what that means): Training Courses ASP.NET: http://msdn.microsoft.com/asp.net/learn/asptraining/ Visual Studio 2005: https://www.microsoftelearning.com/visualstudio2005/ SQL Server 2005: https://www.microsoftelearning.com/sqlserver2005/ Free VB.NET 2005 ebook: http://msdn.microsoft.com/vbasic/whidbey/introto2005/ 22.5 Meg download http://www.vicdotnet.org -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Wed Jul 13 12:15:29 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 13 Jul 2005 10:15:29 -0700 Subject: OT: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book In-Reply-To: <42D549F7.8090307@shaw.ca> Message-ID: <0IJK00A6ZT9QEQ@l-daemon> Hi Marty: Have we ever met? My daughter's boy-friend, another geek and my self have regularly attended the dotnet usergroup meetings and have never heard you name bandied about. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, July 13, 2005 10:06 AM To: Access Developers discussion and problem solving Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book Got this today from my local dotnet usergroup in Victoria http://www.vicdotnet.org Microsoft has been releasing a lot of .NET 2.0 and SQL Server 2005 training resources over the last little while, gearing up for the release of both in November. Here are a few of the highlights. These free offers have a decent retail value, and are only available for free for a "limited" time (though we aren't exactly sure what that means): Training Courses ASP.NET: http://msdn.microsoft.com/asp.net/learn/asptraining/ Visual Studio 2005: https://www.microsoftelearning.com/visualstudio2005/ SQL Server 2005: https://www.microsoftelearning.com/sqlserver2005/ Free VB.NET 2005 ebook: http://msdn.microsoft.com/vbasic/whidbey/introto2005/ 22.5 Meg download http://www.vicdotnet.org -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Rich_Lavsa at pghcorning.com Wed Jul 13 12:34:03 2005 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Wed, 13 Jul 2005 13:34:03 -0400 Subject: [AccessD] Cannot delete from specified tables Message-ID: <2A261FF9D5EBCA46940C11688CE872EE01E96A1B@goexchange2.pghcorning.com> I tried the DistinctRow and checked to see if it was updateable. I did do testing on a statement that returns no records to delete and yes I agree that it simply exits without error. However I noticed that in those cases if you did a view datasheet you saw a single blank record, and in the case where I get an error I get no record at all.. Just the titles of the fields. After typing the above comments I thought of something... The subquery is actually querying a stored procedure, which is not updatable. So I simulated that query using Linked Tables to SQL Server which seemed to do the trick. So from this I gather that the subquery must be updateable as well, of which I do not understand as it is reading order no's from a different database just to be used as criteria for the delete query. If it is only being used as criteria, why would it need to be updateable as well?? I open to suggestions. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mcgillivray, Don [ITS] Sent: Wednesday, July 13, 2005 11:56 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables A delete query against an empty recordset simply exits without error. "DELETE * FROM tblMyTable WHERE tblMyTable.MyField = 2;" simply runs and exits if there are no MyFields in tblMyTable with values equal to 2. No error. I'd say that Doris's suspicion that the recordset is non-updateable is the more likely cause of Chester's problem. You may want to re-visit your code to ensure that you're not missing some other circumstance that is causing your delete queries to fail. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 13, 2005 8:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables I've recently had this very error 3086. I found no suggestions to my solution however came to realize that there was no records being returned thus causing the error, or so I believed this to be my cause. Because I call this query from code, I captured this error and exit the sub without any issues. To find out if you are returning any records, open the query in design mode then simply click on the "Datasheet View", this will show you what your results will be, but will not execute the delete command. Anyone else have any similar experiences with a delete query. My delete query contained a sub-query and was not doing any joins. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 11:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Gustav at cactus.dk Wed Jul 13 12:38:52 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 13 Jul 2005 19:38:52 +0200 Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book Message-ID: Hi Marty Thanks! "Microsoft E-Learning for Visual Studio 2005 is free until November 8, 2005" /gustav >>> martyconnelly at shaw.ca 07/13 7:05 pm >>> Got this today from my local dotnet usergroup in Victoria http://www.vicdotnet.org Microsoft has been releasing a lot of .NET 2.0 and SQL Server 2005 training resources over the last little while, gearing up for the release of both in November. Here are a few of the highlights. These free offers have a decent retail value, and are only available for free for a "limited" time (though we aren't exactly sure what that means): Training Courses ASP.NET: http://msdn.microsoft.com/asp.net/learn/asptraining/ Visual Studio 2005: https://www.microsoftelearning.com/visualstudio2005/ SQL Server 2005: https://www.microsoftelearning.com/sqlserver2005/ Free VB.NET 2005 ebook: http://msdn.microsoft.com/vbasic/whidbey/introto2005/ 22.5 Meg download http://www.vicdotnet.org -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Wed Jul 13 12:48:00 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 13 Jul 2005 10:48:00 -0700 Subject: OT: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book References: <0IJK00A6ZT9QEQ@l-daemon> Message-ID: <42D553D0.3030302@shaw.ca> I have only been to a couple, I found the last one a bit torpid, so I snuck out and went back to the grad pub to talk to a couple of profs about Fast Fourier ADPCM methods use with speech and video storage for records mangement, found out there are some new optical disks (write once) coming out next year or 2007 that hold a terabyte via holographic methods. It was more informative to me. Maybe I am just a weirder duck. Jim Lawrence wrote: >Hi Marty: > >Have we ever met? My daughter's boy-friend, another geek and my self have >regularly attended the dotnet usergroup meetings and have never heard you >name bandied about. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Wednesday, July 13, 2005 10:06 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book > >Got this today from my local dotnet usergroup in Victoria >http://www.vicdotnet.org > > Microsoft has been releasing a lot of .NET 2.0 and SQL Server 2005 >training resources > over the last little while, gearing up for the release of both in November. > >Here are a few of the highlights. These free offers have a decent retail >value, >and are only available for free for a "limited" time (though we aren't >exactly sure what that means): > >Training Courses >ASP.NET: > http://msdn.microsoft.com/asp.net/learn/asptraining/ > >Visual Studio 2005: > https://www.microsoftelearning.com/visualstudio2005/ > >SQL Server 2005: >https://www.microsoftelearning.com/sqlserver2005/ > >Free VB.NET 2005 ebook: > http://msdn.microsoft.com/vbasic/whidbey/introto2005/ > 22.5 Meg download > >http://www.vicdotnet.org > > > -- Marty Connelly Victoria, B.C. Canada From bheid at appdevgrp.com Wed Jul 13 13:04:14 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 13 Jul 2005 14:04:14 -0400 Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C15267@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABECDF@ADGSERVER> Here's another freebie book: Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic .NET http://msdn.microsoft.com/vbrun/staythepath/additionalresources/upgradingvb6 / Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, July 13, 2005 1:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book Got this today from my local dotnet usergroup in Victoria http://www.vicdotnet.org Microsoft has been releasing a lot of .NET 2.0 and SQL Server 2005 training resources over the last little while, gearing up for the release of both in November. Here are a few of the highlights. These free offers have a decent retail value, and are only available for free for a "limited" time (though we aren't exactly sure what that means): Training Courses ASP.NET: http://msdn.microsoft.com/asp.net/learn/asptraining/ Visual Studio 2005: https://www.microsoftelearning.com/visualstudio2005/ SQL Server 2005: https://www.microsoftelearning.com/sqlserver2005/ Free VB.NET 2005 ebook: http://msdn.microsoft.com/vbasic/whidbey/introto2005/ 22.5 Meg download http://www.vicdotnet.org -- Marty Connelly Victoria, B.C. Canada From KIsmert at texassystems.com Wed Jul 13 17:58:21 2005 From: KIsmert at texassystems.com (Ken Ismert) Date: Wed, 13 Jul 2005 17:58:21 -0500 Subject: [AccessD] Framework book - was caption from code Message-ID: (Jim Dettman) <> A fundamental barrier is the lack of an easy way to distribute true components for use in Access. Any framework library built entirely in Access lacks a reliable way to share objects with its clients. For Office 2000 and later, the Office Add-In was touted by Microsoft as a way of building components for the Office Suite. But it suffers from the same object-sharing drawbacks as libraries, and because of its extremely limited distribution, has generated very little interest from the Access developer community. The core technical limitation centers around Access and its use of COM. Access uses Project Compatibility for generating the GUIDs required for identifying objects and their interfaces. Project Compatibility means the object IDs are private to the project, and are re-generated each time you fully-compile the project. That produces behavior noted before in this group: when you reference the library in an MDB, and compile them together, you can share objects, because Project Compatibility enforces consistency between the two. But, if you open the library separately, and save changes, the MDB referencing it will break, because all the old object IDs have been replaced in the new library. The way out of this dilemma is to build a Type Library, or TLB file. The TLB is a separate file which provides a stand-alone, unchanging definition of the objects and interfaces to be shared between the MDB and the library. Both the MDB and library reference the TLB, and use it when declaring shared objects. This way, the library can be updated independently of the MDB, shared between multiple MDBs, and distributed to third parties. The TLB is the key ingredient that enables reliable object sharing. The catch is, you can't make a Type Library in Access. You would need a copy of Visual Basic or Visual Studio to get the utilities required do that task. Because a large number of Access developers don't have these tools, you have not seen any significant number of distributed frameworks built entirely in Access. -Ken From KP at sdsonline.net Wed Jul 13 19:24:13 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 14 Jul 2005 10:24:13 +1000 Subject: [AccessD] Create reference only when needed Message-ID: <000a01c5880a$5d8d77d0$6601a8c0@user> Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath From robert at servicexp.com Wed Jul 13 19:42:38 2005 From: robert at servicexp.com (Robert Gracie) Date: Wed, 13 Jul 2005 20:42:38 -0400 Subject: [AccessD] Framework book - was caption from code Message-ID: <3C6BD610FA11044CADFC8C13E6D5508F4EDB@gbsserver.GBS.local> All I know is that I have been waiting an awful long time for this book...... :-) Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, July 13, 2005 12:01 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Framework book - was caption from code Around the end of last year, I started rewriting my framework for the third time, in fact I now call it C2DbFW3G meaning 3rd generation. It is Access2K or better - A97 not supported mostly because I use RaiseEvents which are unsupported in A97. This version is still not fully fleshed out simply because I have ported (rewritten) the old 2nd generation framework piece by piece as I needed the modules, and I haven't needed the form / control stuff that I had in the 2G version. SNIP From cfoust at infostatsystems.com Wed Jul 13 19:49:11 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 13 Jul 2005 17:49:11 -0700 Subject: [AccessD] Create reference only when needed Message-ID: There was a thread on this sometime last year for Access 2002. It gets ugly because the code to check the references has to be the first thing run and it has to be written so that it works even if there are broken references. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Wednesday, July 13, 2005 5:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Wed Jul 13 19:56:39 2005 From: john at winhaven.net (John Bartow) Date: Wed, 13 Jul 2005 19:56:39 -0500 Subject: [AccessD] Create reference only when needed In-Reply-To: <000a01c5880a$5d8d77d0$6601a8c0@user> Message-ID: <200507140056.j6E0ukR3116346@pimout3-ext.prodigy.net> Have you considered late binding? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, July 13, 2005 7:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Wed Jul 13 19:57:16 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 14 Jul 2005 10:57:16 +1000 Subject: [AccessD] Create reference only when needed References: Message-ID: <002901c5880e$fab20ea0$6601a8c0@user> Thanks Charlotte - there is quite a bit on the archive - I'll make my way through it.... Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Thursday, July 14, 2005 10:49 AM Subject: RE: [AccessD] Create reference only when needed There was a thread on this sometime last year for Access 2002. It gets ugly because the code to check the references has to be the first thing run and it has to be written so that it works even if there are broken references. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Wednesday, July 13, 2005 5:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Jul 13 20:03:40 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 13 Jul 2005 21:03:40 -0400 Subject: [AccessD] Create reference only when needed In-Reply-To: Message-ID: <20050714010356.EQDI7514.ibm70aec.bellsouth.net@SUSANONE> Yes, we discussed this at length. My written response to it all appeared in Inside Microsoft Access -- the Feb 2005 issue. Ken Ismert helped me write it. Kath, I'm sending you a copy draft privately. I hope you find something to help. Susan H. There was a thread on this sometime last year for Access 2002. It gets ugly because the code to check the references has to be the first thing run and it has to be written so that it works even if there are broken references. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Wednesday, July 13, 2005 5:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Jul 13 20:04:56 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 13 Jul 2005 21:04:56 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <0IJJ00F1DZCXNY@l-daemon> Message-ID: <000201c58810$10145770$6c7aa8c0@ColbyM6805> I suppose you could pester Wrox about it if you think it would be a book you would buy. Maybe forward this to email to Jim Minatel at JMinatel at wiley.com with your personal experiences and opinions re the lack of good advanced books for the Access / office arena. I tried to tell them that I quit buying new books ages ago because I just wasn't learning anything new from them. Maybe if they heard it from members of this list, developers who actually do this for a living, they might decide there is indeed a market. I know we don't have thousands of list members but we do represent a large market segment. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 2:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 8:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Framework book - was caption from code Around the end of last year, I started rewriting my framework for the third time, in fact I now call it C2DbFW3G meaning 3rd generation. It is Access2K or better - A97 not supported mostly because I use RaiseEvents which are unsupported in A97. This version is still not fully fleshed out simply because I have ported (rewritten) the old 2nd generation framework piece by piece as I needed the modules, and I haven't needed the form / control stuff that I had in the 2G version. In fact I started on it because of a project that is generating reports for a client. The application is a report system for a call center for short term disability insurance. I (re)wrote the call center software from scratch but the reporting stuff kinda sorta worked and I never rewrote it from scratch. The insurance company that hires my client to do the call center is completely changing THEIR software, which now supports completely automated data feeds. In the past, my system generated Word documents with "new claim notices" and "advise to pay" notices. These reports were generated automatically and attached to emails to the insurer, where they were opened and keyed in to the system. Because it was always done that way! Sigh. It always sucked, errors on their end keying in the reports etc. So... Since the new system takes an automated feed, fixed width fields, text files, FTPd to a site where it is opened and loaded in to the system automatically, I had the opportunity to rebuild this reporting thing from scratch. The kinds of framework things I needed for this application were distinctly different from the framework things I needed for a typical form based data entry / call center application. At the same time, entire pieces are pretty similar or even identical. So I yanked the useful classes and code other than form / control stuff from the 2G framework, took the opportunity to clean it up a LOT, and "started from scratch", although not exactly as I have intimated. The result is a lot cleaner, even more heavily class based, and uses a "service plug-in" concept. A framework is really about providing services to an application. These services may be clearly a service, such as logging to text files, zipping / unzipping files, encryption etc., or they may be less clearly a service, such as a form class that loads control classes that provide record selectors, JIT subforms, OpenArgs etc. In the end though, even these are just services to an application. What I am trying very hard to do this time is set up the framework to allow plug-in services where the service is loaded if it is needed, with a "socket" kind of interface - at least for the non-form based services. Things like SysVars, Zip/Unzip, logging etc are really easy to do this with. The classes exist and if the application wants a logger it asks for one. It is stored in a collection keyed by name and the app can then use it by calling a .log method of the framework, passing the name of the logger and the text to log. If a logger by that name isn't loaded, it loads and then stores the text that needs to be stored in the log file. Like that. It turns out that a log file like that works well for these NCN and ATP reports. The application asks for an NCN log, gathers the data and builds up the fixed width field strings. When each string (NCN or ATP record) is finished, the app just writes it to the log file. When all the records are written to the log file, the file is emailed or FTPd as desired. The log and the email or FTP is just a service. The APPLICATION has to build ATP and NCN reports, but it just asks the framework for a log and when the log is done, asks the framework to email or FTP the log somewhere. Services. Neat stuff and lots of fun to do. As for the book, well... I have worked on a couple of books for Wrox, but they gave a lukewarm reception to the idea of this stuff written into a book. I am just "doing it myself" and will then pitch it when it is closer to written. Sometimes the powers that be just don't "get" what you want to do. Or maybe it just won't sell and I'll be sitting on a years worth of writing. I have never seen a book like this for the Access arena so I just want to do it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, July 12, 2005 10:53 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code Ahhh, I can finally stop holding my breath! I threw my poor excuse of an answer out there just to keep this thread alive, I had a feeling you had this done in classes and I was just waiting for you to describe how you did it. :o) So your writing a book on it all! Can you feed some chapters out on it for proof reading purposes or something? John B. From KP at sdsonline.net Wed Jul 13 20:14:45 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 14 Jul 2005 11:14:45 +1000 Subject: [AccessD] Create reference only when needed References: <200507140056.j6E0ukR3116346@pimout3-ext.prodigy.net> Message-ID: <001e01c58811$6be97250$6601a8c0@user> John - I've never used it. BUT it may be the solution to this case as only some of my users *have* Frontpage installed at all. I'm a bit scared of the speed issues, but how do In convert code below to use late binding instaed? Kath Private Sub CmdOpenFP_Click() Dim oFPweb As FrontPage.Web Dim oFP As FrontPage.Application Dim FrontPageRunning As Boolean 'Determine whether FrontPage is already open or not FrontPageRunning = IsFrontPageRunning() If Not FrontPageRunning Then Set oFP = CreateObject("Frontpage.Application") Else Set oFP = GetObject(, "Frontpage.Application") End If 'add code here later to make a copy of my file 'open file in front page------------------------------------------------ oFP.Webs.Open ("E:/Sds/Clients/CPP/Webletters/template.html") ' Show FrontPage oFPweb.Activate 'Set oFP = Nothing End Sub ----- Original Message ----- From: John Bartow To: 'Access Developers discussion and problem solving' Sent: Thursday, July 14, 2005 10:56 AM Subject: RE: [AccessD] Create reference only when needed Have you considered late binding? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, July 13, 2005 7:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 at winhaven.net Wed Jul 13 21:40:24 2005 From: john at winhaven.net (John Bartow) Date: Wed, 13 Jul 2005 21:40:24 -0500 Subject: [AccessD] Create reference only when needed In-Reply-To: <001e01c58811$6be97250$6601a8c0@user> Message-ID: <200507140240.j6E2eV8s323538@pimout2-ext.prodigy.net> Kath, Speed shouldn't be a big deal. I use late binding with Word and it doesn't seem to take any longer than earlier binding plus it works with all versions of word. I say seems because to be clock ticks are not as important as user impression. Give them the hourglass at the start of the routine and turn if on and off a few times. Builds hope :o) Here's an article from our newsletter that explains it quite well: http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat ionlpt1.htm It really should be fairly easy after you browse that. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, July 13, 2005 8:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create reference only when needed John - I've never used it. BUT it may be the solution to this case as only some of my users *have* Frontpage installed at all. I'm a bit scared of the speed issues, but how do In convert code below to use late binding instaed? Kath Private Sub CmdOpenFP_Click() Dim oFPweb As FrontPage.Web Dim oFP As FrontPage.Application Dim FrontPageRunning As Boolean 'Determine whether FrontPage is already open or not FrontPageRunning = IsFrontPageRunning() If Not FrontPageRunning Then Set oFP = CreateObject("Frontpage.Application") Else Set oFP = GetObject(, "Frontpage.Application") End If 'add code here later to make a copy of my file 'open file in front page------------------------------------------------ oFP.Webs.Open ("E:/Sds/Clients/CPP/Webletters/template.html") ' Show FrontPage oFPweb.Activate 'Set oFP = Nothing End Sub ----- Original Message ----- From: John Bartow To: 'Access Developers discussion and problem solving' Sent: Thursday, July 14, 2005 10:56 AM Subject: RE: [AccessD] Create reference only when needed Have you considered late binding? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, July 13, 2005 7:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Jul 13 23:13:35 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 14 Jul 2005 00:13:35 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <000201c58810$10145770$6c7aa8c0@ColbyM6805> Message-ID: <20050714041334.RYLD16323.ibm59aec.bellsouth.net@SUSANONE> Wrox no longer exists. They went bankrupt owing me money. :( Susan H. I suppose you could pester Wrox about it if you think it would be a book you would buy. Maybe From jwcolby at colbyconsulting.com Wed Jul 13 23:29:23 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 14 Jul 2005 00:29:23 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <0IJK005EDQJPG2@l-daemon> Message-ID: <000001c5882c$9f82dfa0$6c7aa8c0@ColbyM6805> OK, bear with me since I am new to this unbound (but data aware) form business. Forms have a recordset correct, just not bound to one. Controls on each form are created manually and the named. The corresponding field is set how? IOW how is the control made aware of the data that it is unbound to. Do you (currently) use classes for this at all? Off the top of my head, I see a need to load a class instance for each control, which will hold the field name that the control loads data from and writes changes back to. A "dirty" variable to indicate that the control (data) has been modified. The form class then has a control scanner that loads a control instance for each control discovered on the form. The form init will init the form class, then go back and initialize each control with the field name that it is unbound to. The form class knows how to read data and then iterates the control classes pushing in data values to the control class, which in turn pushes the value in to the control. Or the control class just uses the control as the structure that holds the data value. Correct me if I'm wrong, but unbound controls don't manipulate the OldValue property the way that bound controls do, correct? Thus the control class needs to store the value into an OldVal variable in the control class. What events work correctly with unbound forms and controls, and which events do not fire or exhibit issues due to the unboundness? IOW it seems that a form BeforeUpdate / AfterUpdate etc simply wouldn't fire since there is no bound recordset to monitor. What about controls? Is there any documentation anywhere that discusses the event differences between bound and unbound forms and controls? My bound object classes sink the events for the object that they represent and can (and do) run code in those events. I need to know the differences between bound object events and unbound object events. I actually have a tiny little form (8 controls or so) that I need to take unbound to eliminate locking issues that I simply cannot resolve with the bound version. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 12:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: The methods I have used were designed about eight years ago and have copied/improved again and again. Here are the basics and a step by step methodology: 1. I always use ADO-OLE. (One exception is MySQL... a bit of a pain. If someone could figure out a method that would not require a station by station visit to install the MySQL ODBC drivers I would be for ever indebted.) 2. The forms and subforms are populated as the user moves through the records and but until the user actually changes field content on a form or attempts to delete the current record, the recordset used to feed the form is static. 3. a) A record or group of records in the case of a subform being displayed, are first pulled into a recordset, and content are then used to populate the form collection. In theory the record exists in three places. b) If there is a change of deletion request the recordset is locked by creating a dynamic recordset with record-lock attribute. c) If an 'already locked' error occurs when this lock is being applied then the user is informed of the condition and given the appropriate options. d) When using a 'real' :-) SQL DB (MS SQL/Oracle etc.) much of the record handling is managed internally as soon as the 'BeginTrans' is applied and closed or resolved when the 'CommitTrans' or 'RollbackTrans' runs. It may initially seem a little complex but it gives a full range of options for managing the data and it allows the client to build large databases with many users and only requires the purchase a few licenses/seats. (ie. 20 licenses and 100 users.) Using ADO makes is easy to switch or attach different data sources with little effort. (In theory one line of code.) Even web applications can be created leveraging the same methods. That is not totally true but given that SQL versions are standardizing coupled with the use of Store Procedures/Queries, with passing parameters, very few changes are needed. I am still pacing around the XML pool but believe in the long run that is where to go. So there is the 'thumb-nail' sketch of the 'non-bounder' application implementation methodology. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, July 13, 2005 4:35 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Jim, My framework (the part that had to do with forms and controls) was indeed aimed at bound forms. However the concept works for unbound forms as well. Indeed it would be even more critical to use a framework as you the developer are doing so much of the work that Access was doing for you - loading all of the data into the controls, checking for updates to the data by other people before you wrote changes back to the table, writing the data back from controls into fields in the tables, stuff like that. All of that code would be framework material. Once written and stored in the framework, the doing of it would be automatic by the framework. If you are one of the unholy (unbounders) why don't you give a thumbnail sketch of how you manage all of that work. I will then brainstorm how I would look at doing it in a framework. Remember that the concept of a framework is to make it as automatic as possible. For example (in a bound form) I have a form class and I have a class for each control type. The form class runs a control scanner, gets the control type of each control, loads a class instance for each control found. Once this is done, the form class and control classes can work together to do tasks. As an example, I can literally just drop a pair of controls on the form, a text box named RecID that exposes (is bound to) the PK (always an autonumber) and an unbound combo called RecSel. The names are specific and if the control scanner finds this pair of controls it knows that a record selector exists and runs the code. The afterupdate of the combo by that name calls a method of the parent form saying "move to recid XXXX". The column 0 of the combo is the PK of the record in the form so it knows the PK. The form's OnCurrent knows that it needs to keep the combo synced to the displayed record in the form so it calls a method of the combo class telling it to display the data relevant to the current record in the form. Thus the form, the combo and a text box all work as a system to form a record selector. If the developer drops these two controls on the form he "just has" a record selector. Nothing else is required - other than binding RecSel to the PK field and setting the combo's query to display the data and get the PK of the records in the table. As an unbounder, you need to think about how to achieve this kind of "automaticness" in the things you do. Naturally some tasks do require feeding data into init() methods of classes to set the classes up to do their job. After that though the "systems" need to just work together. Load the data into the unbound form / controls. Store flags in each control's class saying that control's data was modified. Scan for all controls with modified data and update the underlying data in the record. Check for data changes in the data you are about to update and inform the user that another user edited the record since you loaded the data. Etc. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 2:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) 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 jwcolby at colbyconsulting.com Wed Jul 13 23:31:13 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 14 Jul 2005 00:31:13 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <20050714041334.RYLD16323.ibm59aec.bellsouth.net@SUSANONE> Message-ID: <000101c5882c$de51d290$6c7aa8c0@ColbyM6805> Not true, many of the assets (specific book titles) were purchased by Wiley, including the Wrox name. The last book I worked on was published by Wiley but under the Wrox moniker. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, July 14, 2005 12:14 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Wrox no longer exists. They went bankrupt owing me money. :( Susan H. I suppose you could pester Wrox about it if you think it would be a book you would buy. Maybe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Jul 14 01:31:57 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 14 Jul 2005 02:31:57 -0400 Subject: [AccessD] Framework book - was caption from code References: Message-ID: "You would need a copy of Visual Basic or Visual Studio to get the utilities required do that task. Because a large number of Access developers don't have these tools, you have not seen any significant number of distributed frameworks built entirely in Access." Ken ..for the first time it suddenly dawns on me that packaging the Access 2003 Developer Tools with VB.Net/Visual Studio might actually have made some kind of sense ...I'd just assumed it was another MS ploy to force me to buy stuff I had no intention of ever using just to get the old ODE goodies :( William ----- Original Message ----- From: "Ken Ismert" To: "Access Developers discussion and problem solving" Sent: Wednesday, July 13, 2005 6:58 PM Subject: RE: [AccessD] Framework book - was caption from code > > (Jim Dettman) > < more frameworks available for Access . . . I see that other developers > have come up with things to solve the very same problems (PK generation, > pick lists, calendars, etc). I'm still scratching my head as to why.>> > > A fundamental barrier is the lack of an easy way to distribute true > components for use in Access. Any framework library built entirely in > Access lacks a reliable way to share objects with its clients. For > Office 2000 and later, the Office Add-In was touted by Microsoft as a > way of building components for the Office Suite. But it suffers from the > same object-sharing drawbacks as libraries, and because of its extremely > limited distribution, has generated very little interest from the Access > developer community. > > The core technical limitation centers around Access and its use of COM. > Access uses Project Compatibility for generating the GUIDs required for > identifying objects and their interfaces. Project Compatibility means > the object IDs are private to the project, and are re-generated each > time you fully-compile the project. That produces behavior noted before > in this group: when you reference the library in an MDB, and compile > them together, you can share objects, because Project Compatibility > enforces consistency between the two. But, if you open the library > separately, and save changes, the MDB referencing it will break, because > all the old object IDs have been replaced in the new library. > > The way out of this dilemma is to build a Type Library, or TLB file. The > TLB is a separate file which provides a stand-alone, unchanging > definition of the objects and interfaces to be shared between the MDB > and the library. Both the MDB and library reference the TLB, and use it > when declaring shared objects. This way, the library can be updated > independently of the MDB, shared between multiple MDBs, and distributed > to third parties. The TLB is the key ingredient that enables reliable > object sharing. > > The catch is, you can't make a Type Library in Access. You would need a > copy of Visual Basic or Visual Studio to get the utilities required do > that task. Because a large number of Access developers don't have these > tools, you have not seen any significant number of distributed > frameworks built entirely in Access. > > -Ken > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From KP at sdsonline.net Thu Jul 14 03:42:18 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 14 Jul 2005 18:42:18 +1000 Subject: [AccessD] Create reference only when needed References: <200507140240.j6E2eV8s323538@pimout2-ext.prodigy.net> Message-ID: <005601c5884f$f6547050$6601a8c0@user> <<.....plus it works with all versions That part sounds good....the most frustrating aspect of being an access /vba developer has to be the fragility of the systems. Compared to writing mainframe applications, I still find this the trickiest aspect. The user changes something on the PC and crash goes the application. So this is something I need to learn. Thanks. Kath ----- Original Message ----- From: John Bartow To: 'Access Developers discussion and problem solving' Sent: Thursday, July 14, 2005 12:40 PM Subject: RE: [AccessD] Create reference only when needed Kath, Speed shouldn't be a big deal. I use late binding with Word and it doesn't seem to take any longer than earlier binding plus it works with all versions of word. I say seems because to be clock ticks are not as important as user impression. Give them the hourglass at the start of the routine and turn if on and off a few times. Builds hope :o) Here's an article from our newsletter that explains it quite well: http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat ionlpt1.htm It really should be fairly easy after you browse that. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, July 13, 2005 8:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create reference only when needed John - I've never used it. BUT it may be the solution to this case as only some of my users *have* Frontpage installed at all. I'm a bit scared of the speed issues, but how do In convert code below to use late binding instaed? Kath Private Sub CmdOpenFP_Click() Dim oFPweb As FrontPage.Web Dim oFP As FrontPage.Application Dim FrontPageRunning As Boolean 'Determine whether FrontPage is already open or not FrontPageRunning = IsFrontPageRunning() If Not FrontPageRunning Then Set oFP = CreateObject("Frontpage.Application") Else Set oFP = GetObject(, "Frontpage.Application") End If 'add code here later to make a copy of my file 'open file in front page------------------------------------------------ oFP.Webs.Open ("E:/Sds/Clients/CPP/Webletters/template.html") ' Show FrontPage oFPweb.Activate 'Set oFP = Nothing End Sub ----- Original Message ----- From: John Bartow To: 'Access Developers discussion and problem solving' Sent: Thursday, July 14, 2005 10:56 AM Subject: RE: [AccessD] Create reference only when needed Have you considered late binding? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, July 13, 2005 7:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 14 06:47:18 2005 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 14 Jul 2005 07:47:18 -0400 Subject: FW: [AccessD] "Like" operator help Message-ID: Sorry that I didn't reply to this Rusty. I was cleaning out my Junk mail folder and noticed it somehow got sent into there...don't you feel special? I don't usually even look in here, but I am expecting a quote on some Cisco equipment from a new vendor, and being new they sometimes get put in there. Ya just gotta love how the spammers have created a mess for us. Anyhow, I don't know where they get the drug list. I am assumming that, because we are a govt. agency, that it probably comes from the state (NY) or medicaid (more probable). I did this as a favor for my co-worker, who is out this week, and I don't know who she was speaking with, so I can't check w/them. If you would like, I could look into it next week for you. Take care! John W Clark >>> 7/8/2005 10:07:21 AM >>> John, you mentioned they get a monthly update of their drug list. Do you know where they are getting this drug list and what the cost is? I'm working on an app that requires a drug list. Thanks, Rusty Hammond -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, July 08, 2005 8:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] "Like" operator help I really didn't want to use a form...this is just a simple table (i.e. not a whole program) that our nursing department will use...they get an update monthly (I think it is) and just want to quickly access any given drug. But, I did think a form may be the answer, so I whipped up a quick litte one. One the form I've got a text box (Text0) and a label (Text2)...I'm just playing right now, so the names are defaults. On the "On Change" property of Text0, I've got a statment that says Text2.Caption = "Like '" & Text0.Text & "*'" This is working fine in the label, as it is showing up the way I want it...although I just noticed that I only have single quotes...hmmmm. I bet if I can get double quote in there it works. Right now, if I put "t" into Text0, I see: Like 't*' in Text2, and in the query I have [Forms]![enterfrm]![Text2] in the criteria section. This little bugger is turning out to be...well...a little bugger ;( >>> pharold at proftesting.com 7/8/2005 9:32 AM >>> Append the global "*" to whatever is the value entered (as a string) with the "&" character and then submit to the query. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From cyx5 at cdc.gov Thu Jul 14 07:36:26 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 14 Jul 2005 08:36:26 -0400 Subject: FW: [AccessD] "Like" operator help Message-ID: Isn't working for the government cool? Here is a link to download the drug information released by the FDA: http://www.fda.gov/cder/ndc/index.htm -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, July 14, 2005 7:47 AM To: rusty.hammond at cpiqpc.com; accessd at databaseadvisors.com Subject: Re: FW: [AccessD] "Like" operator help Sorry that I didn't reply to this Rusty. I was cleaning out my Junk mail folder and noticed it somehow got sent into there...don't you feel special? I don't usually even look in here, but I am expecting a quote on some Cisco equipment from a new vendor, and being new they sometimes get put in there. Ya just gotta love how the spammers have created a mess for us. Anyhow, I don't know where they get the drug list. I am assumming that, because we are a govt. agency, that it probably comes from the state (NY) or medicaid (more probable). I did this as a favor for my co-worker, who is out this week, and I don't know who she was speaking with, so I can't check w/them. If you would like, I could look into it next week for you. Take care! John W Clark >>> 7/8/2005 10:07:21 AM >>> John, you mentioned they get a monthly update of their drug list. Do you know where they are getting this drug list and what the cost is? I'm working on an app that requires a drug list. Thanks, Rusty Hammond -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, July 08, 2005 8:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] "Like" operator help I really didn't want to use a form...this is just a simple table (i.e. not a whole program) that our nursing department will use...they get an update monthly (I think it is) and just want to quickly access any given drug. But, I did think a form may be the answer, so I whipped up a quick litte one. One the form I've got a text box (Text0) and a label (Text2)...I'm just playing right now, so the names are defaults. On the "On Change" property of Text0, I've got a statment that says Text2.Caption = "Like '" & Text0.Text & "*'" This is working fine in the label, as it is showing up the way I want it...although I just noticed that I only have single quotes...hmmmm. I bet if I can get double quote in there it works. Right now, if I put "t" into Text0, I see: Like 't*' in Text2, and in the query I have [Forms]![enterfrm]![Text2] in the criteria section. This little bugger is turning out to be...well...a little bugger ;( >>> pharold at proftesting.com 7/8/2005 9:32 AM >>> Append the global "*" to whatever is the value entered (as a string) with the "&" character and then submit to the query. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Thu Jul 14 09:06:35 2005 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Thu, 14 Jul 2005 09:06:35 -0500 Subject: FW: [AccessD] "Like" operator help Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F807E@cpixchng-1.cpiqpc.net> John, thanks for the reply but I think the link Karen provided is going to work for me. Thanks Karen. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, July 14, 2005 7:36 AM To: Access Developers discussion and problem solving Subject: RE: FW: [AccessD] "Like" operator help Isn't working for the government cool? Here is a link to download the drug information released by the FDA: http://www.fda.gov/cder/ndc/index.htm -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, July 14, 2005 7:47 AM To: rusty.hammond at cpiqpc.com; accessd at databaseadvisors.com Subject: Re: FW: [AccessD] "Like" operator help Sorry that I didn't reply to this Rusty. I was cleaning out my Junk mail folder and noticed it somehow got sent into there...don't you feel special? I don't usually even look in here, but I am expecting a quote on some Cisco equipment from a new vendor, and being new they sometimes get put in there. Ya just gotta love how the spammers have created a mess for us. Anyhow, I don't know where they get the drug list. I am assumming that, because we are a govt. agency, that it probably comes from the state (NY) or medicaid (more probable). I did this as a favor for my co-worker, who is out this week, and I don't know who she was speaking with, so I can't check w/them. If you would like, I could look into it next week for you. Take care! John W Clark >>> 7/8/2005 10:07:21 AM >>> John, you mentioned they get a monthly update of their drug list. Do you know where they are getting this drug list and what the cost is? I'm working on an app that requires a drug list. Thanks, Rusty Hammond -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, July 08, 2005 8:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] "Like" operator help I really didn't want to use a form...this is just a simple table (i.e. not a whole program) that our nursing department will use...they get an update monthly (I think it is) and just want to quickly access any given drug. But, I did think a form may be the answer, so I whipped up a quick litte one. One the form I've got a text box (Text0) and a label (Text2)...I'm just playing right now, so the names are defaults. On the "On Change" property of Text0, I've got a statment that says Text2.Caption = "Like '" & Text0.Text & "*'" This is working fine in the label, as it is showing up the way I want it...although I just noticed that I only have single quotes...hmmmm. I bet if I can get double quote in there it works. Right now, if I put "t" into Text0, I see: Like 't*' in Text2, and in the query I have [Forms]![enterfrm]![Text2] in the criteria section. This little bugger is turning out to be...well...a little bugger ;( >>> pharold at proftesting.com 7/8/2005 9:32 AM >>> Append the global "*" to whatever is the value entered (as a string) with the "&" character and then submit to the query. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From John.Clark at niagaracounty.com Thu Jul 14 10:24:03 2005 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 14 Jul 2005 11:24:03 -0400 Subject: FW: [AccessD] "Like" operator help Message-ID: In some ways yes, but in many other ways no Thanks for covering this link! >>> cyx5 at cdc.gov 7/14/2005 8:36:26 AM >>> Isn't working for the government cool? Here is a link to download the drug information released by the FDA: http://www.fda.gov/cder/ndc/index.htm -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, July 14, 2005 7:47 AM To: rusty.hammond at cpiqpc.com; accessd at databaseadvisors.com Subject: Re: FW: [AccessD] "Like" operator help Sorry that I didn't reply to this Rusty. I was cleaning out my Junk mail folder and noticed it somehow got sent into there...don't you feel special? I don't usually even look in here, but I am expecting a quote on some Cisco equipment from a new vendor, and being new they sometimes get put in there. Ya just gotta love how the spammers have created a mess for us. Anyhow, I don't know where they get the drug list. I am assumming that, because we are a govt. agency, that it probably comes from the state (NY) or medicaid (more probable). I did this as a favor for my co-worker, who is out this week, and I don't know who she was speaking with, so I can't check w/them. If you would like, I could look into it next week for you. Take care! John W Clark >>> 7/8/2005 10:07:21 AM >>> John, you mentioned they get a monthly update of their drug list. Do you know where they are getting this drug list and what the cost is? I'm working on an app that requires a drug list. Thanks, Rusty Hammond -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, July 08, 2005 8:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] "Like" operator help I really didn't want to use a form...this is just a simple table (i.e. not a whole program) that our nursing department will use...they get an update monthly (I think it is) and just want to quickly access any given drug. But, I did think a form may be the answer, so I whipped up a quick litte one. One the form I've got a text box (Text0) and a label (Text2)...I'm just playing right now, so the names are defaults. On the "On Change" property of Text0, I've got a statment that says Text2.Caption = "Like '" & Text0.Text & "*'" This is working fine in the label, as it is showing up the way I want it...although I just noticed that I only have single quotes...hmmmm. I bet if I can get double quote in there it works. Right now, if I put "t" into Text0, I see: Like 't*' in Text2, and in the query I have [Forms]![enterfrm]![Text2] in the criteria section. This little bugger is turning out to be...well...a little bugger ;( >>> pharold at proftesting.com 7/8/2005 9:32 AM >>> Append the global "*" to whatever is the value entered (as a string) with the "&" character and then submit to the query. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Thu Jul 14 10:41:39 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 14 Jul 2005 11:41:39 -0400 Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book In-Reply-To: <42D549F7.8090307@shaw.ca> Message-ID: <200507141541.j6EFffR08526@databaseadvisors.com> After your tantalizing offer, I have just wasted about an hour going around in circles. I have even tried it on two machines, just to make sure that I`m not going crazy. I select the course. I go to the content page. I select All then, download selected items. It tells me the Offline player is not installed. I download it and install it, then close the browser and try again. Same scenario exactly -- the offline player is not installed. Try again. Same problem. I`d love to grab all this material, but somehow I must convince Windows that the offline player is installed. Incidentally, one box is running winServer2003 and the other is running winXP Pro. Any suggestions greatly appreciated... Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: July 13, 2005 1:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book Got this today from my local dotnet usergroup in Victoria http://www.vicdotnet.org Microsoft has been releasing a lot of .NET 2.0 and SQL Server 2005 training resources over the last little while, gearing up for the release of both in November. Here are a few of the highlights. These free offers have a decent retail value, and are only available for free for a "limited" time (though we aren't exactly sure what that means): Training Courses ASP.NET: http://msdn.microsoft.com/asp.net/learn/asptraining/ Visual Studio 2005: https://www.microsoftelearning.com/visualstudio2005/ SQL Server 2005: https://www.microsoftelearning.com/sqlserver2005/ Free VB.NET 2005 ebook: http://msdn.microsoft.com/vbasic/whidbey/introto2005/ 22.5 Meg download http://www.vicdotnet.org -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Thu Jul 14 12:05:28 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 14 Jul 2005 22:35:28 +0530 Subject: [AccessD] Change Reports Caption From Code References: <42D4D97B.12035.18CE6683@stuart.lexacorp.com.pg> Message-ID: <002201c58896$6b074e40$f31865cb@winxp> Stuart, Sub-routine named P_QueryFriendlyCaption() given below, should be able to get the desired effect. Essentially, it involves making a temporary copy of the query, under the specified descriptive name. Whenever, a fresh query needs to be displayed, previously existing temp query (if any) gets deleted, so that at any given stage, there is no more than one temp query. Finally when the form is closed, any temp query still around, gets deleted, so that the status of queries collection remains undisturbed. Complete code for form's module is given below. Query to be displayed is selected via combo box named CboQuery. Desired friendly caption is entered in text box named TxtCaption. On clicking the command button (CmdShow), the query gets displayed with appropriate caption (If TxtCaption is left blank, the query gets displayed under its original name). Best wishes, A.D.Tejpal -------------- Form's Code Module =================================== ' General Declarations section Private TempQuery As String ' Global variable ------------------------------------------------------------ Private Sub P_QueryFriendlyCaption(ByVal RealName _ As String, ByVal DisplayName As String) On Error Resume Next ' Delete TempQuery if any and also query named ' DisplayName if any If Len(TempQuery) > 0 And _ TempQuery <> RealName Then DoCmd.DeleteObject acQuery, TempQuery ' Reset the value for global variable ' (Useful in clearing temp query in form's Close event) TempQuery = "" End If If DisplayName <> RealName Then DoCmd.DeleteObject acQuery, DisplayName End If ' Copy query named RealName as a temp query ' named DisplayName If DisplayName <> RealName Then ' Set global variable - for deletion of temp query ' in next round TempQuery = DisplayName DoCmd.CopyObject , DisplayName, _ acQuery, RealName End If ' Display the newly copied query DoCmd.OpenQuery DisplayName DoCmd.Maximize On Error GoTo 0 End Sub Private Sub CmdShow_Click() If Len(CboQuery) > 0 Then P_QueryFriendlyCaption CboQuery, _ Nz(TxtCaption, CboQuery) End If End Sub Private Sub Form_Activate() DoCmd.Restore End Sub Private Sub Form_Close() ' Delete temp query if any If Len(TempQuery) > 0 Then DoCmd.DeleteObject acQuery, TempQuery End If End Sub =================================== ----- Original Message ----- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Wednesday, July 13, 2005 04:36 Subject: Re: [AccessD] Change Reports Caption From Code On 12 Jul 2005 at 17:52, Josh McFarlane wrote: > > DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" > > Then in the on open handler: > Caption = OpenArgs > > or something similar to fit your needs. > -- In a similar vein, has any looked into changing the Caption in a query datasheet or print preview. I often shortcut in simple applications and display a query to the user rather than going to the effort of producing a report based on the query. It would be nice to customise the header on a printout of the query. -- Stuart From artful at rogers.com Thu Jul 14 12:41:01 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 14 Jul 2005 13:41:01 -0400 Subject: [AccessD] List of users Message-ID: <200507141741.j6EHf9R04354@databaseadvisors.com> I know that JWC and others have devised methods of detemining the users in an app. My question is this - given that say three front-ends are talking to a single back-end, what does the list of users show. front-end users or back-end users. TIA, Arthur From cfoust at infostatsystems.com Thu Jul 14 12:57:01 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 14 Jul 2005 10:57:01 -0700 Subject: [AccessD] List of users Message-ID: Using ADO and monitoring the *back end*, you get the users connected to the backend, including your own connection. It doesn't know anything about how the connection was made, just that there is one. Charlotte -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Thursday, July 14, 2005 10:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] List of users I know that JWC and others have devised methods of detemining the users in an app. My question is this - given that say three front-ends are talking to a single back-end, what does the list of users show. front-end users or back-end users. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Thu Jul 14 13:13:31 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 14 Jul 2005 14:13:31 -0400 Subject: [AccessD] List of users In-Reply-To: Message-ID: <200507141813.j6EIDWR12208@databaseadvisors.com> Thanks! One more question on same.... given an ADP connection, I am likely to see redundant names of the individual users. (This is because it is smart and opens new connections to populate combo-boxes etc.) Does this occur in a classic FE-BE setup. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: July 14, 2005 1:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List of users Using ADO and monitoring the *back end*, you get the users connected to the backend, including your own connection. It doesn't know anything about how the connection was made, just that there is one. Charlotte -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Thursday, July 14, 2005 10:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] List of users I know that JWC and others have devised methods of detemining the users in an app. My question is this - given that say three front-ends are talking to a single back-end, what does the list of users show. front-end users or back-end users. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Jul 14 14:58:21 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 14 Jul 2005 12:58:21 -0700 Subject: [AccessD] List of users Message-ID: Not unless you have ODBC connections and are also creating OLEDb connections in code. Then you would see redundant names. And actually, you'll see the machine names plus the Access security login. Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Thursday, July 14, 2005 11:14 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List of users Thanks! One more question on same.... given an ADP connection, I am likely to see redundant names of the individual users. (This is because it is smart and opens new connections to populate combo-boxes etc.) Does this occur in a classic FE-BE setup. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: July 14, 2005 1:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List of users Using ADO and monitoring the *back end*, you get the users connected to the backend, including your own connection. It doesn't know anything about how the connection was made, just that there is one. Charlotte -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Thursday, July 14, 2005 10:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] List of users I know that JWC and others have devised methods of detemining the users in an app. My question is this - given that say three front-ends are talking to a single back-end, what does the list of users show. front-end users or back-end users. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Jul 14 15:00:13 2005 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 14 Jul 2005 13:00:13 -0700 Subject: [AccessD] List of users In-Reply-To: <16669435.1121365030985.JavaMail.root@sniper18> Message-ID: <000201c588ae$a7264f80$0518820a@danwaters> Arthur, This is the code I use to populate a temp table, and then display a list of current users. Note that this is looking at the workgroup file, not the FE or the BE. Private Sub butWhosLoggedIn_Click() If ErrorTrapping = True Then On Error GoTo EH Dim con As New ADODB.Connection Dim rst As New ADODB.Recordset Dim rstData As DAO.Recordset Dim stgData As String Dim stg As String Dim stgFullName As String Dim rstFullname As DAO.Recordset Dim stgUserName As String '-- The user roster is exposed as a provider-specific schema rowset _ in the Jet 4.0 OLE DB provider. You have to use a GUID to _ reference the schema, as provider-specific schemas are not _ listed in ADO's type library for schema rowsets '-- This is partly from MSKB 198755 and is specific to Access 2000 & up con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" _ & SystemFolderPath & "\Workgroup\" & SystemWorkgroupName Set rst = con.OpenSchema(adSchemaProviderSpecific, , "{947bb102-5d43-11d1-bdbf-00c04fb92675}") '-- Output the list of all users in the current database. stg = "DELETE * FROM tblCurrentUsers" DoCmd.SetWarnings False DoCmd.RunSQL stg DoCmd.SetWarnings True stgData = "SELECT * FROM tblCurrentUsers" Set rstData = DBEngine(0)(0).OpenRecordset(stgData, dbOpenDynaset) Do While Not rst.EOF stgUserName = Left$(rst.Fields(1), InStr(1, rst.Fields(1), Chr(0)) - 1) If stgUserName <> "Admin" Then rstData.AddNew rstData!ComputerName = Left$(rst.Fields(0), InStr(1, rst.Fields(0), Chr(0)) - 1) rstData!UserName = stgUserName stgFullName = "SELECT Person FROM tblPeopleMain" _ & " WHERE UserName = '" & rstData!UserName & "'" Set rstFullname = DBEngine(0)(0).OpenRecordset(stgFullName, dbOpenSnapshot) rstData!FullName = rstFullname!Person rstData!Connected = rst.Fields(2).Value If IsNull(rst.Fields(3)) Then rstData!Suspect = Null Else rstData!Suspect = Left$(rst.Fields(3), InStr(1, rst.Fields(3), Chr(0)) - 1) End If rstData.Update rstFullname.Close Set rstFullname = Nothing End If rst.MoveNext Loop DoCmd.OpenReport "rptCurrentUsers", acViewPreview rst.Close Set rst = Nothing rstData.Close Set rstData = Nothing Exit Sub EH: Application.Echo True DoCmd.SetWarnings True Call GlobalErrors("", Err.Number, Err.Description, Me.Name, "butWhosLoggedIn_Click") End Sub HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, July 14, 2005 11:14 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List of users Thanks! One more question on same.... given an ADP connection, I am likely to see redundant names of the individual users. (This is because it is smart and opens new connections to populate combo-boxes etc.) Does this occur in a classic FE-BE setup. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: July 14, 2005 1:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List of users Using ADO and monitoring the *back end*, you get the users connected to the backend, including your own connection. It doesn't know anything about how the connection was made, just that there is one. Charlotte -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Thursday, July 14, 2005 10:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] List of users I know that JWC and others have devised methods of detemining the users in an app. My question is this - given that say three front-ends are talking to a single back-end, what does the list of users show. front-end users or back-end users. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- 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 Jul 14 16:49:37 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 15 Jul 2005 07:49:37 +1000 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <002201c58896$6b074e40$f31865cb@winxp> Message-ID: <42D76A91.23004.247ACE6@stuart.lexacorp.com.pg> On 14 Jul 2005 at 22:35, A.D.Tejpal wrote: > > Sub-routine named P_QueryFriendlyCaption() given below, should be able to get the desired > effect. Essentially, it involves making a temporary copy of the query, under the specified > descriptive name. > > Whenever, a fresh query needs to be displayed, previously existing temp query (if any) gets > deleted, so that at any given stage, there is no more than one temp query. Finally when the form > is closed, any temp query still around, gets deleted, so that the status of queries collection > remains undisturbed. That's smart thinking. Why didn't I think of that :-( Thanks, -- Stuart From jwcolby at colbyconsulting.com Thu Jul 14 19:28:22 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 14 Jul 2005 20:28:22 -0400 Subject: [AccessD] Reporting field properties Message-ID: <000501c588d4$1e985070$6c7aa8c0@ColbyM6805> As part of the reporting app I am writing for the call center, I need to do some data validation and report fields that fail the validation. The query that pulls data for the reports can come from many different tables, as many as 8 or 10. The issue is how to report that the data in FieldName X in TableName Y is invalid. I have to build a report of data that fails the validation, and issue the report so that the data can be fixed. For example some fields are critical to the client, i.e. "do not send the record in the report if the data in fields A, F, G, K, or X are missing". The nature of this business is that data is collected piecemeal over time but specific pieces just absolutely have to be there before these reports (data extracts) can be sent to the client. I already have a system that builds classes to hold the reporting information about the export, the record and the fields IN THE QUERY but one thing that is tough to get (directly) is the actual table name and field name in the source field of a query. As a result I designed a little class to accept a field object from DAO and grab specific properties from that field object. The specifics looks something like: In the class header: Private mstrForeignName As String Private mstrName As String Private mvarDefaultValue As Variant Private mblnAllowZeroLength As Boolean Private mblnDataUpdatable As Boolean Private mvarOriginalValue As Variant Private mblnRequired As Boolean Private mlngSize As Long Private mstrSourceField As String Private mstrSourceTable As String Private mintType As Integer Private mstrValidationRule As String Private mstrValidationText As String Private mvarValue As Variant Private mvarVisibleValue As Variant And the class method that accepts a field object and pulls these properties out: Public Function mReadClassProperties(lFld As DAO.Field) On Error GoTo Err_mReadClassProperties On Error Resume Next With lFld mblnAllowZeroLength = .AllowZeroLength mblnDataUpdatable = .DataUpdatable mvarDefaultValue = .DefaultValue mstrForeignName = .ForeignName mstrName = .Name mvarOriginalValue = .OriginalValue mblnRequired = .Required mlngSize = .Size mstrSourceField = .SourceField mstrSourceTable = .SourceTable mintType = .Type mstrValidationRule = .ValidationRule mstrValidationText = .ValidationText mvarValue = .Value mvarVisibleValue = .VisibleValue End With Exit_mReadClassProperties: Exit Function Err_mReadClassProperties: MsgBox Err.Description, , "Error in Function clsDAOFld.mReadClassProperties" Resume Exit_mReadClassProperties Resume 0 '.FOR TROUBLESHOOTING End Function And of course methods to read the property values: Public Property Get pForeignName() As String pForeignName = mstrForeignName End Property Public Property Get pName() As String pName = mstrName End Property Public Property Get pDefaultValue() As Variant pDefaultValue = mvarDefaultValue End Property Etc etc. The reason that I store these field properties in my own class is that I need to gather the data about each field in the big query one time, as the recordset is opened, rather than each time a record is read (for speed). I am currently really only interested in the static stuff like SourceField and SourceTable but for completeness just added the rest. Notice that some of the field properties are dynamic and some are static, i.e. some are about data and others are about the format of the data. I could (and probably will eventually) break this down into two methods, one that grabs the static properties such as AllowZeroLength, DefaultValue, SourceField, stuff like that ONE TIME, and another method that grabs the dynamic data every time the record changes - Value and Original Value, stuff like that. At any rate, I now have a class that I can open a recordset from a query, iterate through the fields collection instantiating one of these classes for each field, then save the properties at the instant the recordset opens. I then have any static properties - specifically of interest right now is SourceField and SourceTable - to use whenever I need to report or log a field as being empty. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Thu Jul 14 22:25:22 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 14 Jul 2005 23:25:22 -0400 Subject: [AccessD] Reporting field properties In-Reply-To: <000501c588d4$1e985070$6c7aa8c0@ColbyM6805> Message-ID: <000601c588ec$d5f8f810$6c7aa8c0@ColbyM6805> I have tried the same thing with the ADODB.Field object but there is nothing like the wealth of properties that DAO makes available, and I see nothing like SourceTable and SourceField. Anyone know if this is possible with ADO? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, July 14, 2005 8:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Reporting field properties As part of the reporting app I am writing for the call center, I need to do some data validation and report fields that fail the validation. The query that pulls data for the reports can come from many different tables, as many as 8 or 10. The issue is how to report that the data in FieldName X in TableName Y is invalid. I have to build a report of data that fails the validation, and issue the report so that the data can be fixed. For example some fields are critical to the client, i.e. "do not send the record in the report if the data in fields A, F, G, K, or X are missing". The nature of this business is that data is collected piecemeal over time but specific pieces just absolutely have to be there before these reports (data extracts) can be sent to the client. I already have a system that builds classes to hold the reporting information about the export, the record and the fields IN THE QUERY but one thing that is tough to get (directly) is the actual table name and field name in the source field of a query. As a result I designed a little class to accept a field object from DAO and grab specific properties from that field object. The specifics looks something like: In the class header: Private mstrForeignName As String Private mstrName As String Private mvarDefaultValue As Variant Private mblnAllowZeroLength As Boolean Private mblnDataUpdatable As Boolean Private mvarOriginalValue As Variant Private mblnRequired As Boolean Private mlngSize As Long Private mstrSourceField As String Private mstrSourceTable As String Private mintType As Integer Private mstrValidationRule As String Private mstrValidationText As String Private mvarValue As Variant Private mvarVisibleValue As Variant And the class method that accepts a field object and pulls these properties out: Public Function mReadClassProperties(lFld As DAO.Field) On Error GoTo Err_mReadClassProperties On Error Resume Next With lFld mblnAllowZeroLength = .AllowZeroLength mblnDataUpdatable = .DataUpdatable mvarDefaultValue = .DefaultValue mstrForeignName = .ForeignName mstrName = .Name mvarOriginalValue = .OriginalValue mblnRequired = .Required mlngSize = .Size mstrSourceField = .SourceField mstrSourceTable = .SourceTable mintType = .Type mstrValidationRule = .ValidationRule mstrValidationText = .ValidationText mvarValue = .Value mvarVisibleValue = .VisibleValue End With Exit_mReadClassProperties: Exit Function Err_mReadClassProperties: MsgBox Err.Description, , "Error in Function clsDAOFld.mReadClassProperties" Resume Exit_mReadClassProperties Resume 0 '.FOR TROUBLESHOOTING End Function And of course methods to read the property values: Public Property Get pForeignName() As String pForeignName = mstrForeignName End Property Public Property Get pName() As String pName = mstrName End Property Public Property Get pDefaultValue() As Variant pDefaultValue = mvarDefaultValue End Property Etc etc. The reason that I store these field properties in my own class is that I need to gather the data about each field in the big query one time, as the recordset is opened, rather than each time a record is read (for speed). I am currently really only interested in the static stuff like SourceField and SourceTable but for completeness just added the rest. Notice that some of the field properties are dynamic and some are static, i.e. some are about data and others are about the format of the data. I could (and probably will eventually) break this down into two methods, one that grabs the static properties such as AllowZeroLength, DefaultValue, SourceField, stuff like that ONE TIME, and another method that grabs the dynamic data every time the record changes - Value and Original Value, stuff like that. At any rate, I now have a class that I can open a recordset from a query, iterate through the fields collection instantiating one of these classes for each field, then save the properties at the instant the recordset opens. I then have any static properties - specifically of interest right now is SourceField and SourceTable - to use whenever I need to report or log a field as being empty. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- 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 Jul 15 01:36:13 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 15 Jul 2005 16:36:13 +1000 Subject: [AccessD] Reporting field properties In-Reply-To: <000601c588ec$d5f8f810$6c7aa8c0@ColbyM6805> References: <000501c588d4$1e985070$6c7aa8c0@ColbyM6805> Message-ID: <42D7E5FD.25420.429C3F0@stuart.lexacorp.com.pg> On 14 Jul 2005 at 23:25, John W. Colby wrote: > I have tried the same thing with the ADODB.Field object but there is nothing > like the wealth of properties that DAO makes available, and I see nothing > like SourceTable and SourceField. > > Anyone know if this is possible with ADO? > ADO is an "abstraction layer" between the data source and your application. The whole idea is that you don't need to know anything about the physical storage methods behind the recordset that you are working with. AFAIK, there is no way with an ADO recordset to tell where a particular piece of data came from. -- Stuart From jwcolby at colbyconsulting.com Fri Jul 15 09:38:33 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 15 Jul 2005 10:38:33 -0400 Subject: [AccessD] Reporting field properties In-Reply-To: <42D7E5FD.25420.429C3F0@stuart.lexacorp.com.pg> Message-ID: <001101c5894a$e3ac9210$6c7aa8c0@ColbyM6805> That's what I thought. In cases like this it is useful to be able to get at the physical layer. DAO is occasionally still useful. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, July 15, 2005 2:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 14 Jul 2005 at 23:25, John W. Colby wrote: > I have tried the same thing with the ADODB.Field object but there is > nothing like the wealth of properties that DAO makes available, and I > see nothing like SourceTable and SourceField. > > Anyone know if this is possible with ADO? > ADO is an "abstraction layer" between the data source and your application. The whole idea is that you don't need to know anything about the physical storage methods behind the recordset that you are working with. AFAIK, there is no way with an ADO recordset to tell where a particular piece of data came from. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Jul 15 10:11:11 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 15 Jul 2005 08:11:11 -0700 Subject: [AccessD] Reporting field properties Message-ID: The closest you come to a DAO.Field object is the ADOX.Column object. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, July 14, 2005 8:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Reporting field properties I have tried the same thing with the ADODB.Field object but there is nothing like the wealth of properties that DAO makes available, and I see nothing like SourceTable and SourceField. Anyone know if this is possible with ADO? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, July 14, 2005 8:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Reporting field properties As part of the reporting app I am writing for the call center, I need to do some data validation and report fields that fail the validation. The query that pulls data for the reports can come from many different tables, as many as 8 or 10. The issue is how to report that the data in FieldName X in TableName Y is invalid. I have to build a report of data that fails the validation, and issue the report so that the data can be fixed. For example some fields are critical to the client, i.e. "do not send the record in the report if the data in fields A, F, G, K, or X are missing". The nature of this business is that data is collected piecemeal over time but specific pieces just absolutely have to be there before these reports (data extracts) can be sent to the client. I already have a system that builds classes to hold the reporting information about the export, the record and the fields IN THE QUERY but one thing that is tough to get (directly) is the actual table name and field name in the source field of a query. As a result I designed a little class to accept a field object from DAO and grab specific properties from that field object. The specifics looks something like: In the class header: Private mstrForeignName As String Private mstrName As String Private mvarDefaultValue As Variant Private mblnAllowZeroLength As Boolean Private mblnDataUpdatable As Boolean Private mvarOriginalValue As Variant Private mblnRequired As Boolean Private mlngSize As Long Private mstrSourceField As String Private mstrSourceTable As String Private mintType As Integer Private mstrValidationRule As String Private mstrValidationText As String Private mvarValue As Variant Private mvarVisibleValue As Variant And the class method that accepts a field object and pulls these properties out: Public Function mReadClassProperties(lFld As DAO.Field) On Error GoTo Err_mReadClassProperties On Error Resume Next With lFld mblnAllowZeroLength = .AllowZeroLength mblnDataUpdatable = .DataUpdatable mvarDefaultValue = .DefaultValue mstrForeignName = .ForeignName mstrName = .Name mvarOriginalValue = .OriginalValue mblnRequired = .Required mlngSize = .Size mstrSourceField = .SourceField mstrSourceTable = .SourceTable mintType = .Type mstrValidationRule = .ValidationRule mstrValidationText = .ValidationText mvarValue = .Value mvarVisibleValue = .VisibleValue End With Exit_mReadClassProperties: Exit Function Err_mReadClassProperties: MsgBox Err.Description, , "Error in Function clsDAOFld.mReadClassProperties" Resume Exit_mReadClassProperties Resume 0 '.FOR TROUBLESHOOTING End Function And of course methods to read the property values: Public Property Get pForeignName() As String pForeignName = mstrForeignName End Property Public Property Get pName() As String pName = mstrName End Property Public Property Get pDefaultValue() As Variant pDefaultValue = mvarDefaultValue End Property Etc etc. The reason that I store these field properties in my own class is that I need to gather the data about each field in the big query one time, as the recordset is opened, rather than each time a record is read (for speed). I am currently really only interested in the static stuff like SourceField and SourceTable but for completeness just added the rest. Notice that some of the field properties are dynamic and some are static, i.e. some are about data and others are about the format of the data. I could (and probably will eventually) break this down into two methods, one that grabs the static properties such as AllowZeroLength, DefaultValue, SourceField, stuff like that ONE TIME, and another method that grabs the dynamic data every time the record changes - Value and Original Value, stuff like that. At any rate, I now have a class that I can open a recordset from a query, iterate through the fields collection instantiating one of these classes for each field, then save the properties at the instant the recordset opens. I then have any static properties - specifically of interest right now is SourceField and SourceTable - to use whenever I need to report or log a field as being empty. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 prosoft6 at hotmail.com Fri Jul 15 10:25:41 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Fri, 15 Jul 2005 11:25:41 -0400 Subject: [AccessD] File Maker Pro vs. Access Message-ID: Hi Everyone, Just wondered if there were some opinions about developing in File Maker Pro vs. Access. I have heard a few opinions on the topic in the past, but wondered if anyone out there has experience in both. I'm supporting an application (backup support) that was written in File Maker Pro, and the users keep complaining that it runs really slowly around the first of the month(when they are the busiest) Since the application was written by another company, I dont' have any rights to make changes. The company claims that everything is working great.......but the users of course aren't happy. It seems that File Maker is opening every single module, even though the users may only be calling one portion of the program. You can actually sit there and watch all of the screens load. There must be at least fifteen of them. Just wondering if this is a File Maker standard type occurrence, or maybe just the way the programmer made things happen. Any opinions? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From cfoust at infostatsystems.com Fri Jul 15 10:56:15 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 15 Jul 2005 08:56:15 -0700 Subject: [AccessD] File Maker Pro vs. Access Message-ID: You can create some incredibly BAD applicatons in File Maker, how bad depends on the version. :-< There is very little distinction in FileMaker between the GUI and the data structures and only the latest version actually keeps all the tables and "relationships" in a single file instead of separate files. I'm not sure there ARE any "standard" occurrences in FileMaker, but you can download a 30-day free trial of the latest version and play with it to see how it behaves. It is enough to make any Access developer fall to their knees in gratitude that they don't have to use FileMaker! Charlotte Foust -----Original Message----- From: Julie Reardon-Taylor [mailto:prosoft6 at hotmail.com] Sent: Friday, July 15, 2005 8:26 AM To: accessd at databaseadvisors.com Subject: [AccessD] File Maker Pro vs. Access Hi Everyone, Just wondered if there were some opinions about developing in File Maker Pro vs. Access. I have heard a few opinions on the topic in the past, but wondered if anyone out there has experience in both. I'm supporting an application (backup support) that was written in File Maker Pro, and the users keep complaining that it runs really slowly around the first of the month(when they are the busiest) Since the application was written by another company, I dont' have any rights to make changes. The company claims that everything is working great.......but the users of course aren't happy. It seems that File Maker is opening every single module, even though the users may only be calling one portion of the program. You can actually sit there and watch all of the screens load. There must be at least fifteen of them. Just wondering if this is a File Maker standard type occurrence, or maybe just the way the programmer made things happen. Any opinions? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Jul 15 12:32:16 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 15 Jul 2005 13:32:16 -0400 Subject: [AccessD] Changing Combo Box Data Source Message-ID: I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. From accessd at shaw.ca Fri Jul 15 12:40:21 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 15 Jul 2005 10:40:21 -0700 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <000001c5882c$9f82dfa0$6c7aa8c0@ColbyM6805> Message-ID: <0IJO0057JJR652@l-daemon> Hi John: I will answer inline... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, July 13, 2005 9:29 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code OK, bear with me since I am new to this unbound (but data aware) form business. Forms have a recordset correct, just not bound to one. Controls on each form are created manually and the named. The corresponding field is set how? IOW how is the control made aware of the data that it is unbound to. Do you (currently) use classes for this at all? > I do not use classes to do this but should... It definitely leads itself toward a class. I am/have doing classes but they are in VB and subsequently VB.Net. The fields are filled from the recordset like: With rsCardList If .BOF = False And .EOF = False Then txtNameonCard = ![Name] end if End With ..or... Here is a very simplified version of filling the Form fields from memory. The recordset fields have to precisely match the form layout for this to work but position of the fields ... For i = 0 to frm.Controls.Count With MyRecordset Frm.Controls(i) = .Fields(i) End With Next i ... .. and a while loop if a subform < Off the top of my head, I see a need to load a class instance for each control, which will hold the field name that the control loads data from and writes changes back to. A "dirty" variable to indicate that the control (data) has been modified. The form class then has a control scanner that loads a control instance for each control discovered on the form. > It is not the form being 'bound' or 'unbound' that indicated whether a field has been changed 'dirty' on a form but it is whether the field .text or .value is different. To test whether form values have been changed you can check the 'dirty' flag, monitor the validation event, compare the field .text and .value info or compare the values against the recordset values. Each combo box list values are collected first, used to populate the list data and generally remain static until the user leaves the form or even the application. If the list value are continually changing then they must be managed like standard form fields. < The form init will init the form class, then go back and initialize each control with the field name that it is unbound to. The form class knows how to read data and then iterates the control classes pushing in data values to the control class, which in turn pushes the value in to the control. Or the control class just uses the control as the structure that holds the data value. Correct me if I'm wrong, but unbound controls don't manipulate the OldValue property the way that bound controls do, correct? > Actually they do; see above... < Thus the control class needs to store the value into an OldVal variable in the control class. What events work correctly with unbound forms and controls, and which events do not fire or exhibit issues due to the unboundness? IOW it seems that a form BeforeUpdate / AfterUpdate etc simply wouldn't fire since there is no bound recordset to monitor. What about controls? > As soon as a change is made to a form/record the data for the specific recordset/form is re-acquired. The following assumes a text request though I try to keep most of my calls done through queries or stored procedures. This command attempts to lock out any other uses until the recordset is closed. It works as if it was originating from a 'bound' form and really there is only two lines of important code... the rest relates to the ADO data methodology. Below is part of a snippet: ... With objCmd .CommandType = adCmdText .CommandText = "select * from Company where recordID = " & Str(glbRecordID) End With Err.Clear rsCompany.Open objCmd, , adOpenDynamic, adLockPessimistic If Err.Number > 0 Then ... Handle the errors or warnings here ... End If ... Here is a site you can check over with more code and samples" http://support.sas.com/rnd/eai/oledb/rr_locking.htm < Is there any documentation anywhere that discusses the event differences between bound and unbound forms and controls? My bound object classes sink the events for the object that they represent and can (and do) run code in those events. I need to know the differences between bound object events and unbound object events. I actually have a tiny little form (8 controls or so) that I need to take unbound to eliminate locking issues that I simply cannot resolve with the bound version. > Hope this helps...Jim < John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 12:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: The methods I have used were designed about eight years ago and have copied/improved again and again. Here are the basics and a step by step methodology: 1. I always use ADO-OLE. (One exception is MySQL... a bit of a pain. If someone could figure out a method that would not require a station by station visit to install the MySQL ODBC drivers I would be for ever indebted.) 2. The forms and subforms are populated as the user moves through the records and but until the user actually changes field content on a form or attempts to delete the current record, the recordset used to feed the form is static. 3. a) A record or group of records in the case of a subform being displayed, are first pulled into a recordset, and content are then used to populate the form collection. In theory the record exists in three places. b) If there is a change of deletion request the recordset is locked by creating a dynamic recordset with record-lock attribute. c) If an 'already locked' error occurs when this lock is being applied then the user is informed of the condition and given the appropriate options. d) When using a 'real' :-) SQL DB (MS SQL/Oracle etc.) much of the record handling is managed internally as soon as the 'BeginTrans' is applied and closed or resolved when the 'CommitTrans' or 'RollbackTrans' runs. It may initially seem a little complex but it gives a full range of options for managing the data and it allows the client to build large databases with many users and only requires the purchase a few licenses/seats. (ie. 20 licenses and 100 users.) Using ADO makes is easy to switch or attach different data sources with little effort. (In theory one line of code.) Even web applications can be created leveraging the same methods. That is not totally true but given that SQL versions are standardizing coupled with the use of Store Procedures/Queries, with passing parameters, very few changes are needed. I am still pacing around the XML pool but believe in the long run that is where to go. So there is the 'thumb-nail' sketch of the 'non-bounder' application implementation methodology. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, July 13, 2005 4:35 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Jim, My framework (the part that had to do with forms and controls) was indeed aimed at bound forms. However the concept works for unbound forms as well. Indeed it would be even more critical to use a framework as you the developer are doing so much of the work that Access was doing for you - loading all of the data into the controls, checking for updates to the data by other people before you wrote changes back to the table, writing the data back from controls into fields in the tables, stuff like that. All of that code would be framework material. Once written and stored in the framework, the doing of it would be automatic by the framework. If you are one of the unholy (unbounders) why don't you give a thumbnail sketch of how you manage all of that work. I will then brainstorm how I would look at doing it in a framework. Remember that the concept of a framework is to make it as automatic as possible. For example (in a bound form) I have a form class and I have a class for each control type. The form class runs a control scanner, gets the control type of each control, loads a class instance for each control found. Once this is done, the form class and control classes can work together to do tasks. As an example, I can literally just drop a pair of controls on the form, a text box named RecID that exposes (is bound to) the PK (always an autonumber) and an unbound combo called RecSel. The names are specific and if the control scanner finds this pair of controls it knows that a record selector exists and runs the code. The afterupdate of the combo by that name calls a method of the parent form saying "move to recid XXXX". The column 0 of the combo is the PK of the record in the form so it knows the PK. The form's OnCurrent knows that it needs to keep the combo synced to the displayed record in the form so it calls a method of the combo class telling it to display the data relevant to the current record in the form. Thus the form, the combo and a text box all work as a system to form a record selector. If the developer drops these two controls on the form he "just has" a record selector. Nothing else is required - other than binding RecSel to the PK field and setting the combo's query to display the data and get the PK of the records in the table. As an unbounder, you need to think about how to achieve this kind of "automaticness" in the things you do. Naturally some tasks do require feeding data into init() methods of classes to set the classes up to do their job. After that though the "systems" need to just work together. Load the data into the unbound form / controls. Store flags in each control's class saying that control's data was modified. Scan for all controls with modified data and update the underlying data in the record. Check for data changes in the data you are about to update and inform the user that another user edited the record since you loaded the data. Etc. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 2:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) 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 jwcolby at colbyconsulting.com Fri Jul 15 12:44:55 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 15 Jul 2005 13:44:55 -0400 Subject: [AccessD] Changing Combo Box Data Source In-Reply-To: Message-ID: <001701c58964$e9b9a5c0$6c7aa8c0@ColbyM6805> The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Fri Jul 15 13:00:49 2005 From: JHewson at karta.com (Jim Hewson) Date: Fri, 15 Jul 2005 13:00:49 -0500 Subject: [AccessD] Changing Combo Box Data Source Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C03629CF6@karta-exc-int.Karta.com> I'm not sure what that would do? Karen wants the combo box to show FILTERED records unless the user wants to see UNFILTERED records. I agree that a SQL statement would be able to give the data she wants. On the after update event of a button somewhere on the form; change the Row Source of the combo box with an appropriate SQL statement. Changing the Caption of the Button from "All" to "Open Only" would help the user and indicate which SQL statement was used. Then refresh the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 mikedorism at verizon.net Fri Jul 15 13:13:23 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Fri, 15 Jul 2005 14:13:23 -0400 Subject: [AccessD] Changing Combo Box Data Source In-Reply-To: <001701c58964$e9b9a5c0$6c7aa8c0@ColbyM6805> Message-ID: <000201c58968$e48172a0$2f01a8c0@dorismanning> How is that the "correct" way? The OnEnter event occurs when the control receives focus and the OnExit event occurs when the control loses focus. You suggested solution would have records always UNFILTERED with no way to FILTER them because as soon as the user leaves the combo to do something to a filtered record, the records would unfilter again. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 1:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Jul 15 13:15:18 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 15 Jul 2005 14:15:18 -0400 Subject: [AccessD] Changing Combo Box Data Source In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C03629CF6@karta-exc-int.Karta.com> Message-ID: <001801c58969$2853d040$6c7aa8c0@ColbyM6805> If this is a bound form, then if you filter the combo but don't filter the records underneath the form, any records where the FK in the underlying record is missing from the combo will show a blank in the combo. That is what the solution I gave is designed to address. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, July 15, 2005 2:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Changing Combo Box Data Source I'm not sure what that would do? Karen wants the combo box to show FILTERED records unless the user wants to see UNFILTERED records. I agree that a SQL statement would be able to give the data she wants. On the after update event of a button somewhere on the form; change the Row Source of the combo box with an appropriate SQL statement. Changing the Caption of the Button from "All" to "Open Only" would help the user and indicate which SQL statement was used. Then refresh the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cyx5 at cdc.gov Fri Jul 15 13:16:36 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 15 Jul 2005 14:16:36 -0400 Subject: [AccessD] Changing Combo Box Data Source Message-ID: What is the code? After update, me.combobox.recordsource= blaah blaah? I am looking for the syntax. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Friday, July 15, 2005 2:13 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source How is that the "correct" way? The OnEnter event occurs when the control receives focus and the OnExit event occurs when the control loses focus. You suggested solution would have records always UNFILTERED with no way to FILTER them because as soon as the user leaves the combo to do something to a filtered record, the records would unfilter again. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 1:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cyx5 at cdc.gov Fri Jul 15 13:20:46 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 15 Jul 2005 14:20:46 -0400 Subject: [AccessD] Changing Combo Box Data Source Message-ID: It is not bound. The first unbound combo box has the user select a test. There are around 400 tests. Once the test is selected, the second combo box stores the projects on which the selected test has occurred. At any given time, a test might be outstanding on four or five projects. But, since the beginning of time, that test may have been on seven hundred projects. Normally the user only needs to see those projects that are open. But the PIA wants to see all on occassion so I just wanted to put a little button to change the datasource of the project box to show all of them. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 2:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source If this is a bound form, then if you filter the combo but don't filter the records underneath the form, any records where the FK in the underlying record is missing from the combo will show a blank in the combo. That is what the solution I gave is designed to address. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, July 15, 2005 2:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Changing Combo Box Data Source I'm not sure what that would do? Karen wants the combo box to show FILTERED records unless the user wants to see UNFILTERED records. I agree that a SQL statement would be able to give the data she wants. On the after update event of a button somewhere on the form; change the Row Source of the combo box with an appropriate SQL statement. Changing the Caption of the Button from "All" to "Open Only" would help the user and indicate which SQL statement was used. Then refresh the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Jul 15 13:34:02 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 15 Jul 2005 14:34:02 -0400 Subject: [AccessD] Changing Combo Box Data Source In-Reply-To: <000201c58968$e48172a0$2f01a8c0@dorismanning> Message-ID: <001a01c5896b$c9039b90$6c7aa8c0@ColbyM6805> My solution is designed to display ALL records from the table filling the combo when the combo does NOT have the focus. This allows the combo to display any of it's valid values when the form is just being browsed. If the combo is going to be used to SELECT filtered records from the table filling the combo, then the query is changed as the user clicks into the combo. The user can now ONLY SELECT filtered records from the combo's table. It sounds like that is what she wanted. If you filter the combo to only display open projects, but the form displays ALL projects, then as the user browses the records, the records with CLOSED projects will display a blank in the combo. The combo MUST DISPLAY ALL possible choices when JUST BROWSING, but filter down to only allow OPEN projects when adding new records. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Friday, July 15, 2005 2:13 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source How is that the "correct" way? The OnEnter event occurs when the control receives focus and the OnExit event occurs when the control loses focus. You suggested solution would have records always UNFILTERED with no way to FILTER them because as soon as the user leaves the combo to do something to a filtered record, the records would unfilter again. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 1:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 prosoft6 at hotmail.com Fri Jul 15 13:39:15 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Fri, 15 Jul 2005 14:39:15 -0400 Subject: [AccessD] File Maker Pro vs. Access In-Reply-To: Message-ID: Wow! This application that I am referring to is being sold right now across the country. The even have a Quickbooks add-in. The company that developed it is growing like crazy. Maybe it's time to make an Access version! Thank you for your opinions! Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From john at winhaven.net Fri Jul 15 13:44:50 2005 From: john at winhaven.net (John Bartow) Date: Fri, 15 Jul 2005 13:44:50 -0500 Subject: [AccessD] Changing Combo Box Data Source In-Reply-To: Message-ID: <200507151844.j6FIixPi298550@pimout4-ext.prodigy.net> Karen, I have an A97 app where I had to allow for (eventually) 9 different filters in a list box. It started out with less choices and they kept growing so building it this way made it very flexible. I needed to keep the app small so I did it using SQL statements (This was back when floppies were still the removable media of choice). The UI is a frame with 9 buttons. The default recordset and each button calls a subroutine that sets the recordset using a case statement. I've condensed it below: Private Sub ChooseList() Dim strListSelectSQL As String Dim strListWhereSQL As String Dim strListOrderSQL As String Dim strListFullSQL As String DoCmd.Hourglass True strListSelectSQL = "SELECT [sql select statement] " Select Case fraListChoices Case 1: strListWhereSQL = "WHERE [sql order statement] " strListOrderSQL = " ORDER BY [sql order statement];" Case 2: strListWhereSQL = " "WHERE [sql order statement] " strListOrderSQL = " ORDER BY [sql order statement];" Case Else: strListWhereSQL = " "WHERE [sql order statement] " strListOrderSQL = " ORDER BY [sql order statement];" End Select strListFullSQL = strListSelectSQL & strListWhereSQL & strListOrderSQL Me.lstList.RowSource = strListFullSQL Call SetListMess 'if no record tell user End Sub You could do the same thing with queries set with different filters if the resulting bloat didn't matter. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 12:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Fri Jul 15 13:47:21 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Fri, 15 Jul 2005 14:47:21 -0400 Subject: [AccessD] Changing Combo Box Data Source In-Reply-To: Message-ID: Karen, Why don't you just show the unfiltered records on the OnDoubleClick event and show the filtered records all other times? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From cyx5 at cdc.gov Fri Jul 15 13:50:14 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 15 Jul 2005 14:50:14 -0400 Subject: [AccessD] Changing Combo Box Data Source Message-ID: That is it. Thank you so much. Happy Friday! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, July 15, 2005 2:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source Karen, I have an A97 app where I had to allow for (eventually) 9 different filters in a list box. It started out with less choices and they kept growing so building it this way made it very flexible. I needed to keep the app small so I did it using SQL statements (This was back when floppies were still the removable media of choice). The UI is a frame with 9 buttons. The default recordset and each button calls a subroutine that sets the recordset using a case statement. I've condensed it below: Private Sub ChooseList() Dim strListSelectSQL As String Dim strListWhereSQL As String Dim strListOrderSQL As String Dim strListFullSQL As String DoCmd.Hourglass True strListSelectSQL = "SELECT [sql select statement] " Select Case fraListChoices Case 1: strListWhereSQL = "WHERE [sql order statement] " strListOrderSQL = " ORDER BY [sql order statement];" Case 2: strListWhereSQL = " "WHERE [sql order statement] " strListOrderSQL = " ORDER BY [sql order statement];" Case Else: strListWhereSQL = " "WHERE [sql order statement] " strListOrderSQL = " ORDER BY [sql order statement];" End Select strListFullSQL = strListSelectSQL & strListWhereSQL & strListOrderSQL Me.lstList.RowSource = strListFullSQL Call SetListMess 'if no record tell user End Sub You could do the same thing with queries set with different filters if the resulting bloat didn't matter. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 12:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 15 17:56:47 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 16 Jul 2005 08:56:47 +1000 Subject: [AccessD] Reporting field properties In-Reply-To: <001101c5894a$e3ac9210$6c7aa8c0@ColbyM6805> References: <42D7E5FD.25420.429C3F0@stuart.lexacorp.com.pg> Message-ID: <42D8CBCF.28262.7AB81A7@stuart.lexacorp.com.pg> On 15 Jul 2005 at 10:38, John W. Colby wrote: > That's what I thought. In cases like this it is useful to be able to get at > the physical layer. DAO is occasionally still useful. > Ocassionally? If you are working with Jet(using Access as your data store) I don't know a single advantage of ADO over DAO. I do know several advantages DAO has over ADO. I use ADO in VB regularly, but every time I create a new Access application, the first thing I do is remove the ADO reference and replace it with a reference to DAO :-) -- Stuart From stuart at lexacorp.com.pg Fri Jul 15 18:21:19 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 16 Jul 2005 09:21:19 +1000 Subject: [AccessD] File Maker Pro vs. Access In-Reply-To: Message-ID: <42D8D18F.21693.7C1F891@stuart.lexacorp.com.pg> On 15 Jul 2005 at 8:56, Charlotte Foust wrote: > You can create some incredibly BAD applicatons in File Maker, how bad > depends on the version. :-< > > There is very little distinction in FileMaker between the GUI and the > data structures and only the latest version actually keeps all the > tables and "relationships" in a single file instead of separate files. > I'm not sure there ARE any "standard" occurrences in FileMaker, but you > can download a 30-day free trial of the latest version and play with it > to see how it behaves. It is enough to make any Access developer fall > to their knees in gratitude that they don't have to use FileMaker! > See: http://advisorforums.com/dFileMaker001.nsf/0/28b623cbbee234d193b008918e2948b 8?OpenDocument A bit old: http://www.techsoup.org/howto/articlepage.cfm?ArticleId=207&topicid=6 -- Stuart From artful at rogers.com Fri Jul 15 18:22:55 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 15 Jul 2005 19:22:55 -0400 Subject: [AccessD] Reporting field properties In-Reply-To: <42D8CBCF.28262.7AB81A7@stuart.lexacorp.com.pg> Message-ID: <200507152322.j6FNMsR17848@databaseadvisors.com> We take exactly opposite approaches there, Stuart. First thing I do is look for the DAO references and immediately start transforming them to ADO + ADOX. I started out with DAO since there was no alternative, and then I switched because that was the best way to talk to SQL... and once I got there I would _never_ go back. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: July 15, 2005 6:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 15 Jul 2005 at 10:38, John W. Colby wrote: > That's what I thought. In cases like this it is useful to be able to get at > the physical layer. DAO is occasionally still useful. > Ocassionally? If you are working with Jet(using Access as your data store) I don't know a single advantage of ADO over DAO. I do know several advantages DAO has over ADO. I use ADO in VB regularly, but every time I create a new Access application, the first thing I do is remove the ADO reference and replace it with a reference to DAO :-) Not to say that I am right, but merely that I am 100 times more comfortable in ADO + ADOX than in DAO. It just makes more sense to me, plus it works lots better with ADP + SQL apps. A. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Jul 16 00:12:20 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 15 Jul 2005 22:12:20 -0700 Subject: [AccessD] Reporting field properties In-Reply-To: <42D8CBCF.28262.7AB81A7@stuart.lexacorp.com.pg> Message-ID: <0IJP001EVFSG85@l-daemon> Hi Stuart: I must say that agree with Arthur on this approach. The ADO connection layer allows so much flexibility when writing Access applications. Most of my clients initially started out with small applications but as they grew they always moved to a MS SQL or Oracle backend. If I had written the program in DAO it would have been a huge and expensive re-write. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, July 15, 2005 3:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 15 Jul 2005 at 10:38, John W. Colby wrote: > That's what I thought. In cases like this it is useful to be able to get at > the physical layer. DAO is occasionally still useful. > Ocassionally? If you are working with Jet(using Access as your data store) I don't know a single advantage of ADO over DAO. I do know several advantages DAO has over ADO. I use ADO in VB regularly, but every time I create a new Access application, the first thing I do is remove the ADO reference and replace it with a reference to DAO :-) -- Stuart -- 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 Jul 16 01:17:39 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 16 Jul 2005 16:17:39 +1000 Subject: [AccessD] Reporting field properties In-Reply-To: <0IJP001EVFSG85@l-daemon> References: <42D8CBCF.28262.7AB81A7@stuart.lexacorp.com.pg> Message-ID: <42D93323.3667.93F2244@stuart.lexacorp.com.pg> On 15 Jul 2005 at 22:12, Jim Lawrence wrote: > Hi Stuart: > > I must say that agree with Arthur on this approach. The ADO connection layer > allows so much flexibility when writing Access applications. Most of my > clients initially started out with small applications but as they grew they > always moved to a MS SQL or Oracle backend. If I had written the program in > DAO it would have been a huge and expensive re-write. > You can still use DAO with SQL Server or Oracle. Just link to the backend using an ODBC SQL driver. -- Stuart From artful at rogers.com Sat Jul 16 07:51:23 2005 From: artful at rogers.com (Arthur Fuller) Date: Sat, 16 Jul 2005 08:51:23 -0400 Subject: [AccessD] Reporting field properties In-Reply-To: <42D93323.3667.93F2244@stuart.lexacorp.com.pg> Message-ID: <200507161251.j6GCpSR08661@databaseadvisors.com> Well, with Oracle you have a point, but with MS-SQL, why on earth use ODBC when you can use an ADP project instead. Does not compute... save and except that you might need to support both platforms. But aside from all that, I simply found ADO to be much more understandable and intuitive than DAO. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: July 16, 2005 2:18 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 15 Jul 2005 at 22:12, Jim Lawrence wrote: > Hi Stuart: > > I must say that agree with Arthur on this approach. The ADO connection layer > allows so much flexibility when writing Access applications. Most of my > clients initially started out with small applications but as they grew they > always moved to a MS SQL or Oracle backend. If I had written the program in > DAO it would have been a huge and expensive re-write. > You can still use DAO with SQL Server or Oracle. Just link to the backend using an ODBC SQL driver. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sat Jul 16 08:52:34 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 16 Jul 2005 15:52:34 +0200 Subject: [AccessD] File Maker Pro vs. Access Message-ID: Hi Julie What is this app doing? /gustav >>> prosoft6 at hotmail.com 07/15 8:39 pm >>> Wow! This application that I am referring to is being sold right now across the country. The even have a Quickbooks add-in. The company that developed it is growing like crazy. Maybe it's time to make an Access version! Thank you for your opinions! Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From accessd at shaw.ca Sat Jul 16 13:17:39 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 16 Jul 2005 11:17:39 -0700 Subject: [AccessD] Reporting field properties In-Reply-To: <42D93323.3667.93F2244@stuart.lexacorp.com.pg> Message-ID: <0IJQ00IKNG5D2N@l-daemon> Hi Stuart: If you have a number of computers users, many far-flung, from you how do you make sure that the operators have the specific ODBC driver setup and installed? It traditionally takes a manual installation to set up the Oracle/SQL drivers. With ADO these drivers are automatically installed on every computer. ADO drivers are significantly faster any ODBC driver. Case in point; given a client using an Oracle ODBC driver to connect from their Access application to their data. A simple query could take upwards 5 minutes to process (Especially if it required returning a large amount of data...like a report). Abandoning the ODBC driver for an ADO-OLE configuration reduced the process time to less than a minute. The only place where DAO shows superior performance to ADO is when it is connecting to an MDB database but even then it is not a major difference. The only time I use the default DAO drivers is when I am trying to boiler-plate a quickie for a client or a service call on an existing system. I have not built a major application on the DAO data tier since 1998 so I apologies for being very prejudice. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, July 15, 2005 11:18 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 15 Jul 2005 at 22:12, Jim Lawrence wrote: > Hi Stuart: > > I must say that agree with Arthur on this approach. The ADO connection layer > allows so much flexibility when writing Access applications. Most of my > clients initially started out with small applications but as they grew they > always moved to a MS SQL or Oracle backend. If I had written the program in > DAO it would have been a huge and expensive re-write. > You can still use DAO with SQL Server or Oracle. Just link to the backend using an ODBC SQL driver. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Jul 16 13:24:03 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 16 Jul 2005 11:24:03 -0700 Subject: [AccessD] Reporting field properties In-Reply-To: <200507161251.j6GCpSR08661@databaseadvisors.com> Message-ID: <0IJQ00K0XGG1LT@l-daemon> Hi Arthur: You have touched on one area where I have no knowledge...trying to connect a MySQL database without an ODBC driver or designing an ADP project for that matter. (I guess I should be reading your book?) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 16, 2005 5:51 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Reporting field properties Well, with Oracle you have a point, but with MS-SQL, why on earth use ODBC when you can use an ADP project instead. Does not compute... save and except that you might need to support both platforms. But aside from all that, I simply found ADO to be much more understandable and intuitive than DAO. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: July 16, 2005 2:18 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 15 Jul 2005 at 22:12, Jim Lawrence wrote: > Hi Stuart: > > I must say that agree with Arthur on this approach. The ADO connection layer > allows so much flexibility when writing Access applications. Most of my > clients initially started out with small applications but as they grew they > always moved to a MS SQL or Oracle backend. If I had written the program in > DAO it would have been a huge and expensive re-write. > You can still use DAO with SQL Server or Oracle. Just link to the backend using an ODBC SQL driver. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 bchacc at san.rr.com Sat Jul 16 18:45:19 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 16 Jul 2005 16:45:19 -0700 Subject: [AccessD] Getting rid of the Access Background Message-ID: <010801c58a60$6cc2b3c0$6a01a8c0@HAL9004> Dear List: I have an app which is an mde and I'd like the forms to appear without the standard access background frame. Sort of float over the desktop as it were. The forms have no max, min, and close buttons and no menu or tool bars and border style of dialog. Any way to do this? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From stuart at lexacorp.com.pg Sat Jul 16 20:26:23 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 17 Jul 2005 11:26:23 +1000 Subject: [AccessD] Getting rid of the Access Background In-Reply-To: <010801c58a60$6cc2b3c0$6a01a8c0@HAL9004> Message-ID: <42DA405F.16144.D5AC9D6@stuart.lexacorp.com.pg> On 16 Jul 2005 at 16:45, Rocky Smolin - Beach Access Software wrote: > Dear List: > > I have an app which is an mde and I'd like the forms to appear without the standard access > background frame. Sort of float over the desktop as it were. The forms have no max, min, and > close buttons and no menu or tool bars and border style of dialog. Any way to do this? > See http://www.mvps.org/access/api/api0019.htm -- Stuart From bchacc at san.rr.com Sat Jul 16 23:50:10 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 16 Jul 2005 21:50:10 -0700 Subject: [AccessD] Getting rid of the Access Background References: <42DA405F.16144.D5AC9D6@stuart.lexacorp.com.pg> Message-ID: <018301c58a8b$02f19080$6a01a8c0@HAL9004> Hey Stuart, that looks like it! Thank you. Regards, Rocky ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Saturday, July 16, 2005 6:26 PM Subject: Re: [AccessD] Getting rid of the Access Background > On 16 Jul 2005 at 16:45, Rocky Smolin - Beach Access Software wrote: > >> Dear List: >> >> I have an app which is an mde and I'd like the forms to appear without >> the standard access >> background frame. Sort of float over the desktop as it were. The forms >> have no max, min, and >> close buttons and no menu or tool bars and border style of dialog. Any >> way to do this? >> > > See http://www.mvps.org/access/api/api0019.htm > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Sun Jul 17 05:28:28 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 17 Jul 2005 12:28:28 +0200 Subject: [AccessD] Getting rid of the Access Background Message-ID: Hi Rocky I've had better luck with the code from Drew - that from Dev always complained that either a form was missing or was too much - quite confusing. Drew's code doesn't have those limitations and works nicely. I modified it slightly: Option Compare Database Option Explicit Const SW_HIDE As Long = 0 Const SW_SHOWNORMAL As Long = 1 Const SW_SHOWMINIMIZED As Long = 2 Const SW_SHOWMAXIMIZED As Long = 3 Private Declare Function IsWindowVisible Lib "user32" ( _ ByVal hwnd As Long) _ As Long Private Declare Function ShowWindow Lib "user32" ( _ ByVal hwnd As Long, _ ByVal nCmdShow As Long) _ As Long Public Function fAccessWindow( _ Optional Procedure As String, _ Optional SwitchStatus As Boolean, _ Optional StatusCheck As Boolean) _ As Boolean Dim lngState As Long Dim lngReturn As Long Dim booVisible As Boolean MsgBox Application.hWndAccessApp If SwitchStatus = False Then Select Case Procedure Case "Hide" lngState = SW_HIDE Case "Show", "Normal" lngState = SW_SHOWNORMAL Case "Minimize" lngState = SW_SHOWMINIMIZED Case "Maximize" lngState = SW_SHOWMAXIMIZED Case Else lngState = -1 End Select Else If IsWindowVisible(hWndAccessApp) = 1 Then lngState = SW_HIDE Else lngState = SW_SHOWNORMAL End If End If If lngState >= 0 Then lngReturn = ShowWindow(Application.hWndAccessApp, lngState) End If If StatusCheck = True Then If IsWindowVisible(hWndAccessApp) = 1 Then booVisible = True End If End If fAccessWindow = booVisible End Function Have in mind that reports cannot be previewed with the MDI hidden. /gustav >>> bchacc at san.rr.com 07/17 1:45 am >>> Dear List: I have an app which is an mde and I'd like the forms to appear without the standard access background frame. Sort of float over the desktop as it were. The forms have no max, min, and close buttons and no menu or tool bars and border style of dialog. Any way to do this? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From bchacc at san.rr.com Sun Jul 17 09:32:34 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 17 Jul 2005 07:32:34 -0700 Subject: [AccessD] Getting rid of the Access Background References: Message-ID: <005501c58adc$5fa9f820$6a01a8c0@HAL9004> Gustav: This: "Have in mind that reports cannot be previewed with the MDI hidden." is going to be a deal breaker, I think. I suppose I could "reappear" it for the reports, but I wonder if that will look awkward. I'll test and see. Thanks and regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Sunday, July 17, 2005 3:28 AM Subject: Re: [AccessD] Getting rid of the Access Background > Hi Rocky > > I've had better luck with the code from Drew - that from Dev always > complained that either a form was missing or was too much - quite > confusing. > Drew's code doesn't have those limitations and works nicely. > I modified it slightly: > > Option Compare Database > Option Explicit > > Const SW_HIDE As Long = 0 > Const SW_SHOWNORMAL As Long = 1 > Const SW_SHOWMINIMIZED As Long = 2 > Const SW_SHOWMAXIMIZED As Long = 3 > > Private Declare Function IsWindowVisible Lib "user32" ( _ > ByVal hwnd As Long) _ > As Long > > Private Declare Function ShowWindow Lib "user32" ( _ > ByVal hwnd As Long, _ > ByVal nCmdShow As Long) _ > As Long > > Public Function fAccessWindow( _ > Optional Procedure As String, _ > Optional SwitchStatus As Boolean, _ > Optional StatusCheck As Boolean) _ > As Boolean > > Dim lngState As Long > Dim lngReturn As Long > Dim booVisible As Boolean > > MsgBox Application.hWndAccessApp > > If SwitchStatus = False Then > Select Case Procedure > Case "Hide" > lngState = SW_HIDE > Case "Show", "Normal" > lngState = SW_SHOWNORMAL > Case "Minimize" > lngState = SW_SHOWMINIMIZED > Case "Maximize" > lngState = SW_SHOWMAXIMIZED > Case Else > lngState = -1 > End Select > Else > If IsWindowVisible(hWndAccessApp) = 1 Then > lngState = SW_HIDE > Else > lngState = SW_SHOWNORMAL > End If > End If > > If lngState >= 0 Then > lngReturn = ShowWindow(Application.hWndAccessApp, lngState) > End If > > If StatusCheck = True Then > If IsWindowVisible(hWndAccessApp) = 1 Then > booVisible = True > End If > End If > > fAccessWindow = booVisible > > End Function > > Have in mind that reports cannot be previewed with the MDI hidden. > > /gustav > >>>> bchacc at san.rr.com 07/17 1:45 am >>> > Dear List: > > I have an app which is an mde and I'd like the forms to appear without > the standard access background frame. Sort of float over the desktop as > it were. The forms have no max, min, and close buttons and no menu or > tool bars and border style of dialog. Any way to do this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Johncliviger at aol.com Mon Jul 18 06:33:03 2005 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Mon, 18 Jul 2005 07:33:03 EDT Subject: [AccessD] Finding a record in a subform Message-ID: <1da.401b6dad.300ced6f@aol.com> Hi all This must so easy but my brains are not in gear. I have a form with a subform (both in form view) and with one-to-many relationship. How do I find a particular record in the subform in? TIA johnc From adtp at touchtelindia.net Mon Jul 18 06:49:29 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Mon, 18 Jul 2005 17:19:29 +0530 Subject: [AccessD] Getting rid of the Access Background References: Message-ID: <004d01c58b8e$e0552320$2b1865cb@winxp> Rocky, My sample db named AppointmentsAlert might also be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com It demonstrates a form (without Access background window) to pop-up on the desktop, providing an audio-visual alert for imminent scheduled appointments (if any). The form materializes on top of other applications that might be in use. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Sunday, July 17, 2005 15:58 Subject: Re: [AccessD] Getting rid of the Access Background Hi Rocky I've had better luck with the code from Drew - that from Dev always complained that either a form was missing or was too much - quite confusing. Drew's code doesn't have those limitations and works nicely. I modified it slightly: Option Compare Database Option Explicit Const SW_HIDE As Long = 0 Const SW_SHOWNORMAL As Long = 1 Const SW_SHOWMINIMIZED As Long = 2 Const SW_SHOWMAXIMIZED As Long = 3 Private Declare Function IsWindowVisible Lib "user32" ( _ ByVal hwnd As Long) _ As Long Private Declare Function ShowWindow Lib "user32" ( _ ByVal hwnd As Long, _ ByVal nCmdShow As Long) _ As Long Public Function fAccessWindow( _ Optional Procedure As String, _ Optional SwitchStatus As Boolean, _ Optional StatusCheck As Boolean) _ As Boolean Dim lngState As Long Dim lngReturn As Long Dim booVisible As Boolean MsgBox Application.hWndAccessApp If SwitchStatus = False Then Select Case Procedure Case "Hide" lngState = SW_HIDE Case "Show", "Normal" lngState = SW_SHOWNORMAL Case "Minimize" lngState = SW_SHOWMINIMIZED Case "Maximize" lngState = SW_SHOWMAXIMIZED Case Else lngState = -1 End Select Else If IsWindowVisible(hWndAccessApp) = 1 Then lngState = SW_HIDE Else lngState = SW_SHOWNORMAL End If End If If lngState >= 0 Then lngReturn = ShowWindow(Application.hWndAccessApp, lngState) End If If StatusCheck = True Then If IsWindowVisible(hWndAccessApp) = 1 Then booVisible = True End If End If fAccessWindow = booVisible End Function Have in mind that reports cannot be previewed with the MDI hidden. /gustav >>> bchacc at san.rr.com 07/17 1:45 am >>> Dear List: I have an app which is an mde and I'd like the forms to appear without the standard access background frame. Sort of float over the desktop as it were. The forms have no max, min, and close buttons and no menu or tool bars and border style of dialog. Any way to do this? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From prosoft6 at hotmail.com Mon Jul 18 08:18:44 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 18 Jul 2005 09:18:44 -0400 Subject: [AccessD] File Maker Pro vs. Access In-Reply-To: Message-ID: It is a public housing application to trac tenants. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From prosoft6 at hotmail.com Mon Jul 18 08:46:24 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 18 Jul 2005 09:46:24 -0400 Subject: [AccessD] Reporting field properties In-Reply-To: <0IJQ00IKNG5D2N@l-daemon> Message-ID: Jim, That is all very good information. I am currently working on a DAO project and was worried about the references. Are you saying that if I install ADO all of the references appear automatically? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From accessd at shaw.ca Mon Jul 18 09:05:17 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 18 Jul 2005 07:05:17 -0700 Subject: [AccessD] Getting rid of the Access Background In-Reply-To: <010801c58a60$6cc2b3c0$6a01a8c0@HAL9004> Message-ID: <0IJT00K1PTSRR2@l-daemon> Hi Rocky: Check out one of the items in the last DBA news letters. It is an article from Darren Dick on using FTP in access but one of the programs features was that it removed the background Access frame. See: http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreate anftpclientwithinaccess/howtocreateanftpclientwithinaccess.htm Definitely watch for wrap Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Saturday, July 16, 2005 4:45 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Getting rid of the Access Background Dear List: I have an app which is an mde and I'd like the forms to appear without the standard access background frame. Sort of float over the desktop as it were. The forms have no max, min, and close buttons and no menu or tool bars and border style of dialog. Any way to do this? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Jul 18 09:18:17 2005 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 18 Jul 2005 09:18:17 -0500 Subject: [AccessD] Getting rid of the Access Background Message-ID: <123701F54509D9119A4F00D0B747349016D9BE@main2.marlow.com> Also Rocky, in Access 97, you only need the forms to have the Popup property set to True. In A2k and up, you need to set the Modal property to true also, unless you use slightly different code. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Sunday, July 17, 2005 9:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting rid of the Access Background Gustav: This: "Have in mind that reports cannot be previewed with the MDI hidden." is going to be a deal breaker, I think. I suppose I could "reappear" it for the reports, but I wonder if that will look awkward. I'll test and see. Thanks and regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Sunday, July 17, 2005 3:28 AM Subject: Re: [AccessD] Getting rid of the Access Background > Hi Rocky > > I've had better luck with the code from Drew - that from Dev always > complained that either a form was missing or was too much - quite > confusing. > Drew's code doesn't have those limitations and works nicely. > I modified it slightly: > > Option Compare Database > Option Explicit > > Const SW_HIDE As Long = 0 > Const SW_SHOWNORMAL As Long = 1 > Const SW_SHOWMINIMIZED As Long = 2 > Const SW_SHOWMAXIMIZED As Long = 3 > > Private Declare Function IsWindowVisible Lib "user32" ( _ > ByVal hwnd As Long) _ > As Long > > Private Declare Function ShowWindow Lib "user32" ( _ > ByVal hwnd As Long, _ > ByVal nCmdShow As Long) _ > As Long > > Public Function fAccessWindow( _ > Optional Procedure As String, _ > Optional SwitchStatus As Boolean, _ > Optional StatusCheck As Boolean) _ > As Boolean > > Dim lngState As Long > Dim lngReturn As Long > Dim booVisible As Boolean > > MsgBox Application.hWndAccessApp > > If SwitchStatus = False Then > Select Case Procedure > Case "Hide" > lngState = SW_HIDE > Case "Show", "Normal" > lngState = SW_SHOWNORMAL > Case "Minimize" > lngState = SW_SHOWMINIMIZED > Case "Maximize" > lngState = SW_SHOWMAXIMIZED > Case Else > lngState = -1 > End Select > Else > If IsWindowVisible(hWndAccessApp) = 1 Then > lngState = SW_HIDE > Else > lngState = SW_SHOWNORMAL > End If > End If > > If lngState >= 0 Then > lngReturn = ShowWindow(Application.hWndAccessApp, lngState) > End If > > If StatusCheck = True Then > If IsWindowVisible(hWndAccessApp) = 1 Then > booVisible = True > End If > End If > > fAccessWindow = booVisible > > End Function > > Have in mind that reports cannot be previewed with the MDI hidden. > > /gustav > >>>> bchacc at san.rr.com 07/17 1:45 am >>> > Dear List: > > I have an app which is an mde and I'd like the forms to appear without > the standard access background frame. Sort of float over the desktop as > it were. The forms have no max, min, and close buttons and no menu or > tool bars and border style of dialog. Any way to do this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Jul 18 09:27:34 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 18 Jul 2005 07:27:34 -0700 Subject: [AccessD] Reporting field properties In-Reply-To: Message-ID: <0IJT00J8HUTWN0@l-daemon> Hi Julie: No, all references do not appear automatically but all Windows computers from 98 on have a version of ADO stored in their common file area and once a reference to that is established it will be virtually guaranteed regardless of the computer. To check it out, view Program Files/Common Files/System/ADO, on any Windows computer. If you are using some of the more recent features of ADO versions, like streaming (great for embedded pictures) an update may be required. For the latest version check out http://www.microsoft.com/downloads/details.aspx?FamilyID=6C050FE3-C795-4B7D- B037-185D0506396C&displaylang=en HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: Monday, July 18, 2005 6:46 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Reporting field properties Jim, That is all very good information. I am currently working on a DAO project and was worried about the references. Are you saying that if I install ADO all of the references appear automatically? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Mon Jul 18 09:30:01 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 18 Jul 2005 15:30:01 +0100 Subject: [AccessD] Finding a record in a subform Message-ID: <20050718142957.E25262512AC@smtp.nildram.co.uk> Hi John When you say find a record in the subform are we talking about positioing the user there? If so how about something along the lines of (not tested): Dim rst as Recordset set rst=Me!subThingy.Form.RecordsetClone rst.FindFirst etc If Not rst.NoMatch Then Me!subThingy.Form.Bookmark=rst.Bookmark End If rst.Close Set rst=Nothing -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "accessD at databaseadvisors.com" Subject: [AccessD] Finding a record in a subform Date: 18/07/05 11:34 Hi all This must so easy but my brains are not in gear. I have a form with a subform (both in form view) and with one-to-many relationship. How do I find a particular record in the subform in? TIA johnc -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From Johncliviger at aol.com Mon Jul 18 09:58:34 2005 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Mon, 18 Jul 2005 10:58:34 EDT Subject: [AccessD] Finding a record in a subform Message-ID: <12f.614fc445.300d1d9a@aol.com> In a message dated 18/07/2005 15:36:01 GMT Daylight Time, andy at minstersystems.co.uk writes: set rst=Me!subThingy.Form.RecordsetClone Hi Andy Thank you for the comments. At the Form level I have the following code and it works just fine. Private Sub FindDealership(varDealership As Variant) Dim LV As Variant Dim rec As DAO.Recordset Dim strBookmark As String On Error Resume Next LV = Trim(varDealership) If IsNull(varDealership) Then MsgBox "No Record Found", vbInformation, "Error!" Exit Sub End If Forms!frmOutlets.SetFocus DoCmd.GoToControl Forms!frmOutlets!txtName.Name Set rec = Forms!frmOutlets.RecordsetClone rec.FindFirst "[supplierID] = " & CLng(LV) ' & """" If Not rec.NoMatch Then strBookmark = rec.Bookmark Forms!frmOutlets.Bookmark = strBookmark End If DoCmd.GoToControl Forms!frmOutlets!txtName.Name DoCmd.Close A_FORM, "fdlgFind" rec.Close End Sub I've since found that the line that is failing is .. I can't get it to focus on the subform where the recordset Forms![frmOutlets]![frm_Rejection]!Form.SetFocus The subform frm_Rejection is both Form name and the local Name. I changed that but no change. So... From prosoft6 at hotmail.com Mon Jul 18 09:59:53 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 18 Jul 2005 10:59:53 -0400 Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book In-Reply-To: <42D549F7.8090307@shaw.ca> Message-ID: I'd like both of you to sign up for one of these free courses before the 90 days runs out, specifically, Visual Studio. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From prosoft6 at hotmail.com Mon Jul 18 10:01:00 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 18 Jul 2005 11:01:00 -0400 Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VBE-book In-Reply-To: Message-ID: Sorry. Wrong e-mail address! Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From andy at minstersystems.co.uk Mon Jul 18 10:32:17 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 18 Jul 2005 16:32:17 +0100 Subject: [AccessD] Finding a record in a subform Message-ID: <20050718153214.547AB24F207@smtp.nildram.co.uk> John a)You've got a bang where you need a . in front of Form and b) It looks to me as if you need to set focus to a specific control, thus Forms![frmOutlets]![frm_Rejection].Form!txtxyz.SetFocus -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "accessd at databaseadvisors.com" Subject: Re: [AccessD] Finding a record in a subform Date: 18/07/05 14:59 In a message dated 18/07/2005 15:36:01 GMT Daylight Time, andy at minstersystems.co.uk writes: set rst=Me!subThingy.Form.RecordsetClone Hi Andy Thank you for the comments. At the Form level I have the following code and it works just fine. Private Sub FindDealership(varDealership As Variant) Dim LV As Variant Dim rec As DAO.Recordset Dim strBookmark As String On Error Resume Next LV = Trim(varDealership) If IsNull(varDealership) Then MsgBox "No Record Found", vbInformation, "Error!" Exit Sub End If Forms!frmOutlets.SetFocus DoCmd.GoToControl Forms!frmOutlets!txtName.Name Set rec = Forms!frmOutlets.RecordsetClone rec.FindFirst "[supplierID] = " & CLng(LV) ' & """" If Not rec.NoMatch Then strBookmark = rec.Bookmark Forms!frmOutlets.Bookmark = strBookmark End If DoCmd.GoToControl Forms!frmOutlets!txtName.Name DoCmd.Close A_FORM, "fdlgFind" rec.Close End Sub I've since found that the line that is failing is .. I can't get it to focus on the subform where the recordset Forms![frmOutlets]![frm_Rejection]!Form.SetFocus The subform frm_Rejection is both Form name and the local Name. I changed that but no change. So... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From JRojas at tnco-inc.com Mon Jul 18 14:02:44 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 18 Jul 2005 15:02:44 -0400 Subject: [AccessD] MRP Coding Examples Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3D2@mercury.tnco-inc.com> Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From john at winhaven.net Mon Jul 18 15:03:46 2005 From: john at winhaven.net (John Bartow) Date: Mon, 18 Jul 2005 15:03:46 -0500 Subject: [AccessD] MRP Coding Examples In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3D2@mercury.tnco-inc.com> Message-ID: <200507182004.j6IK3uWS263390@pimout3-ext.prodigy.net> Have you checked with Rocky? http://www.e-z-mrp.com/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: Monday, July 18, 2005 2:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MRP Coding Examples Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Jul 18 15:10:25 2005 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 18 Jul 2005 15:10:25 -0500 Subject: [AccessD] MRP Coding Examples In-Reply-To: <2605777.1121713528462.JavaMail.root@sniper14> Message-ID: <000c01c58bd4$bda6ccc0$0200a8c0@danwaters> Joe, A member of this list develops a shrink-wrap product called E Z MRP, but I don't know who it is. You can find this on the internet. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: Monday, July 18, 2005 2:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MRP Coding Examples Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Jul 18 16:07:49 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 18 Jul 2005 14:07:49 -0700 Subject: [AccessD] File Maker Pro vs. Access Message-ID: Yes, that first one pretty much sums it up. :-> Charlotte Foust -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Friday, July 15, 2005 4:21 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] File Maker Pro vs. Access On 15 Jul 2005 at 8:56, Charlotte Foust wrote: > You can create some incredibly BAD applicatons in File Maker, how bad > depends on the version. :-< > > There is very little distinction in FileMaker between the GUI and the > data structures and only the latest version actually keeps all the > tables and "relationships" in a single file instead of separate files. > I'm not sure there ARE any "standard" occurrences in FileMaker, but > you can download a 30-day free trial of the latest version and play > with it to see how it behaves. It is enough to make any Access > developer fall to their knees in gratitude that they don't have to use > FileMaker! > See: http://advisorforums.com/dFileMaker001.nsf/0/28b623cbbee234d193b008918e2 948b 8?OpenDocument A bit old: http://www.techsoup.org/howto/articlepage.cfm?ArticleId=207&topicid=6 -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Jul 18 16:10:12 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 18 Jul 2005 17:10:12 -0400 Subject: [AccessD] MRP Coding Examples In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3D2@mercury.tnco-inc.com> Message-ID: JR, What is it that your looking of examples for? "MRP" covers a lot of ground; BOM's, Routings, Time Phased Inventory, Purchasing, Quality control, Scrap and Rejection, Capacity planning, etc. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Monday, July 18, 2005 3:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MRP Coding Examples Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Jul 18 16:12:59 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 18 Jul 2005 14:12:59 -0700 Subject: [AccessD] Reporting field properties Message-ID: I can't agree with you, Stuart. I've created split Access databases with no linked tables using ADO. DAO would have been useless for that. DAO is primarily useful in dealing with the Jet engine structures and peculiarities and is optimized for that purpose. It tends to fall on its face when dealing with anything else. ADO is intended to handle data access, regardless of datasource, and I prefer it because it is far more powerful and flexible than DAO in data handling. It all depends on what you do with either one of them. Charlotte Foust -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Friday, July 15, 2005 3:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 15 Jul 2005 at 10:38, John W. Colby wrote: > That's what I thought. In cases like this it is useful to be able to > get at the physical layer. DAO is occasionally still useful. > Ocassionally? If you are working with Jet(using Access as your data store) I don't know a single advantage of ADO over DAO. I do know several advantages DAO has over ADO. I use ADO in VB regularly, but every time I create a new Access application, the first thing I do is remove the ADO reference and replace it with a reference to DAO :-) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Tue Jul 19 07:09:06 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 19 Jul 2005 07:09:06 -0500 Subject: [AccessD] How big can table get? Message-ID: I have a table that I am going to be populating with data. I know the field types and sizes. Is there a way to estimate the maximum number of records the table can hold within the database? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 From jwcolby at colbyconsulting.com Tue Jul 19 07:25:30 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 19 Jul 2005 08:25:30 -0400 Subject: [AccessD] How big can table get? In-Reply-To: Message-ID: <000901c58c5c$f3c17930$6c7aa8c0@ColbyM6805> Yes, with the exception of memo fields which can hold anywhere from 0 to 32K bytes. A definition of how many bytes are required for each data type is available out there somewhere. Just add them up. An MDB container can contain 2gbytes IIRC. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, July 19, 2005 8:09 AM To: Access Developers discussion and problem solving Subject: [AccessD] How big can table get? I have a table that I am going to be populating with data. I know the field types and sizes. Is there a way to estimate the maximum number of records the table can hold within the database? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Tue Jul 19 07:29:30 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 19 Jul 2005 08:29:30 -0400 Subject: [AccessD] How big can table get? Message-ID: I think if you have to ask then you probably should consider the back end being in SQL server. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 19, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] How big can table get? Yes, with the exception of memo fields which can hold anywhere from 0 to 32K bytes. A definition of how many bytes are required for each data type is available out there somewhere. Just add them up. An MDB container can contain 2gbytes IIRC. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, July 19, 2005 8:09 AM To: Access Developers discussion and problem solving Subject: [AccessD] How big can table get? I have a table that I am going to be populating with data. I know the field types and sizes. Is there a way to estimate the maximum number of records the table can hold within the database? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 vrm at tim-cms.com Tue Jul 19 08:10:37 2005 From: vrm at tim-cms.com (Marcel Vreuls) Date: Tue, 19 Jul 2005 15:10:37 +0200 Subject: [AccessD] OT: work and employment In-Reply-To: Message-ID: <200507190907578.SM03480@MarcelPC> Hi All, I have been a freelance programmer for about 6 years now. I like the "freedom" I have got and it helped me al lot. As I have been on and off this list in the last few years and most of the time reading I thought just drop the question perhaps someone can help me. As I had some really heavy problems the last one and a half year I am think of emigrating to another country (at this time I am living in the netherlands). Mind you no illegal shit and so, but problems with ex-wife, child protection, etc. As a father you always start 6-0 behind, have to make it even and then get your advantage. I do not think this is any different in other countries so that is not the main reason. The main reason is start all over again. Now I have some questions and I hope your experience can help me. I know I cannot go to another country and go life there. There are all kind of rules that apply but for this example, I meet those rules - anyone any ideas how to get a (freelance) job in for example America, Canada or Australia. Any suggestions, references, contacts, offers and help are welcome. Here in Holland there are companies, sort of temp offices, who offer jobs to freelancers where you have to register. Most companies never do direct business with freelancers. It cost you about 10% of your our rate, but it is the only way. - What kind of insurance, taxes do I have to deal with as freelancer? - How are the rates, salary?? - Any experience with school and after school-support for kids when you are working?? About me. I am 32 year old, have 1 kid and am MCSE and MCSD vb6, .NET certified and about 10 years of hand-on IT experience Thxs, again, Marcel From Johncliviger at aol.com Tue Jul 19 09:18:08 2005 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Tue, 19 Jul 2005 10:18:08 EDT Subject: [AccessD] Finding a record in a subform Message-ID: <42.6d5f83eb.300e65a0@aol.com> Andy It works fine now. Thanks. Just one character wrong and the whole job stops! But that programming. Johnc From bchacc at san.rr.com Tue Jul 19 09:43:11 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 19 Jul 2005 07:43:11 -0700 Subject: [AccessD] Getting rid of the Access Background References: Message-ID: <001401c58c70$2feb9040$6a01a8c0@HAL9004> Gustav: There a line of code in there: "lngReturn = ShowWindow(Application.hWndAccessApp, lngState)" but ShowWindow is undefined. Is there a snip missing? Regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Sunday, July 17, 2005 3:28 AM Subject: Re: [AccessD] Getting rid of the Access Background > Hi Rocky > > I've had better luck with the code from Drew - that from Dev always > complained that either a form was missing or was too much - quite > confusing. > Drew's code doesn't have those limitations and works nicely. > I modified it slightly: > > Option Compare Database > Option Explicit > > Const SW_HIDE As Long = 0 > Const SW_SHOWNORMAL As Long = 1 > Const SW_SHOWMINIMIZED As Long = 2 > Const SW_SHOWMAXIMIZED As Long = 3 > > Private Declare Function IsWindowVisible Lib "user32" ( _ > ByVal hwnd As Long) _ > As Long > > Private Declare Function ShowWindow Lib "user32" ( _ > ByVal hwnd As Long, _ > ByVal nCmdShow As Long) _ > As Long > > Public Function fAccessWindow( _ > Optional Procedure As String, _ > Optional SwitchStatus As Boolean, _ > Optional StatusCheck As Boolean) _ > As Boolean > > Dim lngState As Long > Dim lngReturn As Long > Dim booVisible As Boolean > > MsgBox Application.hWndAccessApp > > If SwitchStatus = False Then > Select Case Procedure > Case "Hide" > lngState = SW_HIDE > Case "Show", "Normal" > lngState = SW_SHOWNORMAL > Case "Minimize" > lngState = SW_SHOWMINIMIZED > Case "Maximize" > lngState = SW_SHOWMAXIMIZED > Case Else > lngState = -1 > End Select > Else > If IsWindowVisible(hWndAccessApp) = 1 Then > lngState = SW_HIDE > Else > lngState = SW_SHOWNORMAL > End If > End If > > If lngState >= 0 Then > lngReturn = ShowWindow(Application.hWndAccessApp, lngState) > End If > > If StatusCheck = True Then > If IsWindowVisible(hWndAccessApp) = 1 Then > booVisible = True > End If > End If > > fAccessWindow = booVisible > > End Function > > Have in mind that reports cannot be previewed with the MDI hidden. > > /gustav > >>>> bchacc at san.rr.com 07/17 1:45 am >>> > Dear List: > > I have an app which is an mde and I'd like the forms to appear without > the standard access background frame. Sort of float over the desktop as > it were. The forms have no max, min, and close buttons and no menu or > tool bars and border style of dialog. Any way to do this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Jul 19 09:59:21 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 19 Jul 2005 07:59:21 -0700 Subject: [AccessD] Getting rid of the Access Background References: <001401c58c70$2feb9040$6a01a8c0@HAL9004> Message-ID: <000a01c58c72$7285d120$6a01a8c0@HAL9004> Never mind. Changed it to apiShowWindwo and it worked. Rocky ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 19, 2005 7:43 AM Subject: Re: [AccessD] Getting rid of the Access Background > Gustav: > > There a line of code in there: > "lngReturn = ShowWindow(Application.hWndAccessApp, lngState)" > > but ShowWindow is undefined. Is there a snip missing? > > Regards, > > Rocky > > > ----- Original Message ----- > From: "Gustav Brock" > To: > Sent: Sunday, July 17, 2005 3:28 AM > Subject: Re: [AccessD] Getting rid of the Access Background > > >> Hi Rocky >> >> I've had better luck with the code from Drew - that from Dev always >> complained that either a form was missing or was too much - quite >> confusing. >> Drew's code doesn't have those limitations and works nicely. I modified >> it slightly: >> >> Option Compare Database >> Option Explicit >> >> Const SW_HIDE As Long = 0 >> Const SW_SHOWNORMAL As Long = 1 >> Const SW_SHOWMINIMIZED As Long = 2 >> Const SW_SHOWMAXIMIZED As Long = 3 >> >> Private Declare Function IsWindowVisible Lib "user32" ( _ >> ByVal hwnd As Long) _ >> As Long >> >> Private Declare Function ShowWindow Lib "user32" ( _ >> ByVal hwnd As Long, _ >> ByVal nCmdShow As Long) _ >> As Long >> >> Public Function fAccessWindow( _ >> Optional Procedure As String, _ >> Optional SwitchStatus As Boolean, _ >> Optional StatusCheck As Boolean) _ >> As Boolean >> >> Dim lngState As Long >> Dim lngReturn As Long >> Dim booVisible As Boolean >> MsgBox Application.hWndAccessApp >> >> If SwitchStatus = False Then >> Select Case Procedure >> Case "Hide" >> lngState = SW_HIDE >> Case "Show", "Normal" >> lngState = SW_SHOWNORMAL >> Case "Minimize" >> lngState = SW_SHOWMINIMIZED >> Case "Maximize" >> lngState = SW_SHOWMAXIMIZED >> Case Else >> lngState = -1 >> End Select >> Else >> If IsWindowVisible(hWndAccessApp) = 1 Then >> lngState = SW_HIDE >> Else >> lngState = SW_SHOWNORMAL >> End If >> End If >> If lngState >= 0 Then >> lngReturn = ShowWindow(Application.hWndAccessApp, lngState) >> End If >> >> If StatusCheck = True Then >> If IsWindowVisible(hWndAccessApp) = 1 Then >> booVisible = True >> End If >> End If >> fAccessWindow = booVisible >> >> End Function >> >> Have in mind that reports cannot be previewed with the MDI hidden. >> >> /gustav >> >>>>> bchacc at san.rr.com 07/17 1:45 am >>> >> Dear List: >> >> I have an app which is an mde and I'd like the forms to appear without >> the standard access background frame. Sort of float over the desktop as >> it were. The forms have no max, min, and close buttons and no menu or >> tool bars and border style of dialog. Any way to do this? >> >> MTIA, >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com 858-259-4334 >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 Tue Jul 19 10:02:05 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 19 Jul 2005 17:02:05 +0200 Subject: [AccessD] Getting rid of the Access Background Message-ID: Hi Rocky It's declared in the header, though as Private ... /gustav >>> bchacc at san.rr.com 07/19 4:43 pm >>> Gustav: There a line of code in there: "lngReturn = ShowWindow(Application.hWndAccessApp, lngState)" but ShowWindow is undefined. Is there a snip missing? Regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Sunday, July 17, 2005 3:28 AM Subject: Re: [AccessD] Getting rid of the Access Background > Hi Rocky > > I've had better luck with the code from Drew - that from Dev always > complained that either a form was missing or was too much - quite > confusing. > Drew's code doesn't have those limitations and works nicely. > I modified it slightly: > > Option Compare Database > Option Explicit > > Const SW_HIDE As Long = 0 > Const SW_SHOWNORMAL As Long = 1 > Const SW_SHOWMINIMIZED As Long = 2 > Const SW_SHOWMAXIMIZED As Long = 3 > > Private Declare Function IsWindowVisible Lib "user32" ( _ > ByVal hwnd As Long) _ > As Long > > Private Declare Function ShowWindow Lib "user32" ( _ > ByVal hwnd As Long, _ > ByVal nCmdShow As Long) _ > As Long > > Public Function fAccessWindow( _ > Optional Procedure As String, _ > Optional SwitchStatus As Boolean, _ > Optional StatusCheck As Boolean) _ > As Boolean > > Dim lngState As Long > Dim lngReturn As Long > Dim booVisible As Boolean > > MsgBox Application.hWndAccessApp > > If SwitchStatus = False Then > Select Case Procedure > Case "Hide" > lngState = SW_HIDE > Case "Show", "Normal" > lngState = SW_SHOWNORMAL > Case "Minimize" > lngState = SW_SHOWMINIMIZED > Case "Maximize" > lngState = SW_SHOWMAXIMIZED > Case Else > lngState = -1 > End Select > Else > If IsWindowVisible(hWndAccessApp) = 1 Then > lngState = SW_HIDE > Else > lngState = SW_SHOWNORMAL > End If > End If > > If lngState >= 0 Then > lngReturn = ShowWindow(Application.hWndAccessApp, lngState) > End If > > If StatusCheck = True Then > If IsWindowVisible(hWndAccessApp) = 1 Then > booVisible = True > End If > End If > > fAccessWindow = booVisible > > End Function > > Have in mind that reports cannot be previewed with the MDI hidden. > > /gustav > >>>> bchacc at san.rr.com 07/17 1:45 am >>> > Dear List: > > I have an app which is an mde and I'd like the forms to appear without > the standard access background frame. Sort of float over the desktop as > it were. The forms have no max, min, and close buttons and no menu or > tool bars and border style of dialog. Any way to do this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 From DElam at jenkens.com Tue Jul 19 11:40:44 2005 From: DElam at jenkens.com (Elam, Debbie) Date: Tue, 19 Jul 2005 11:40:44 -0500 Subject: [AccessD] OT: work and employment Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0492CB35@natexch.jenkens.com> I can't give any advice on other countries, but the US is tough to immigrate to without employer sponsorship. If you are determined to stay freelance, register for the immigration lottery and cross your fingers. Health insurance is probably a lot more than you would expect since the US does not have subsidized health care. As an immigrant, you will probably be required to carry insurance too instead of relying on the free health care that is provided for the indigent here. Employers generally cover a large portion of health care costs, but if you do not have that, you will need to bill more to cover this. A healthy person can generally expect to spend at least $300/month (probably more) in insurance. For taxes, there is more paperwork, but it is not too bad as long as you stay on top of it. There are lots of websites for the self employed that could get you started. For one or two jobs, you could probably get a temporary work visa without too much trouble. This would be of limited assistance though, since once the work is done, you are in an only slightly better position to be given permanent residency. Debbie -----Original Message----- From: Marcel Vreuls [mailto:vrm at tim-cms.com] Sent: Tuesday, July 19, 2005 8:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: work and employment Hi All, I have been a freelance programmer for about 6 years now. I like the "freedom" I have got and it helped me al lot. As I have been on and off this list in the last few years and most of the time reading I thought just drop the question perhaps someone can help me. As I had some really heavy problems the last one and a half year I am think of emigrating to another country (at this time I am living in the netherlands). Mind you no illegal shit and so, but problems with ex-wife, child protection, etc. As a father you always start 6-0 behind, have to make it even and then get your advantage. I do not think this is any different in other countries so that is not the main reason. The main reason is start all over again. Now I have some questions and I hope your experience can help me. I know I cannot go to another country and go life there. There are all kind of rules that apply but for this example, I meet those rules - anyone any ideas how to get a (freelance) job in for example America, Canada or Australia. Any suggestions, references, contacts, offers and help are welcome. Here in Holland there are companies, sort of temp offices, who offer jobs to freelancers where you have to register. Most companies never do direct business with freelancers. It cost you about 10% of your our rate, but it is the only way. - What kind of insurance, taxes do I have to deal with as freelancer? - How are the rates, salary?? - Any experience with school and after school-support for kids when you are working?? About me. I am 32 year old, have 1 kid and am MCSE and MCSD vb6, .NET certified and about 10 years of hand-on IT experience Thxs, again, Marcel -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From JRojas at tnco-inc.com Tue Jul 19 12:00:54 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Tue, 19 Jul 2005 13:00:54 -0400 Subject: [AccessD] MRP Coding Examples Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3D5@mercury.tnco-inc.com> Determining requirements, really. Assuming that I have all the underlying data, I need to figure out how to generate a Make/Buy report looking at it by time periods. I just talked to Rocky and using EZ-MRP maybe a solution... I don't know what is involved in creating my own system so it is hard to determine which way to go... Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, July 18, 2005 5:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MRP Coding Examples JR, What is it that your looking of examples for? "MRP" covers a lot of ground; BOM's, Routings, Time Phased Inventory, Purchasing, Quality control, Scrap and Rejection, Capacity planning, etc. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Monday, July 18, 2005 3:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MRP Coding Examples Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From accessd at shaw.ca Tue Jul 19 12:48:39 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 19 Jul 2005 10:48:39 -0700 Subject: [AccessD] OT: work and employment In-Reply-To: <200507190907578.SM03480@MarcelPC> Message-ID: <0IJV00JG7YT0W9@l-daemon> Hi Marcel: You certifications would put you in the top 6% of in-demand programmers, especially with .Net credentials. (According to one survey I saw.) You would have to immigrate if you wanted to easily get a job in either US or Canada but I have no idea about Australia. There are working Visas in Canada and Green Cards and H1B Visas in the US but you have to get a future 'local' employer to sponsor you if your want to go that route. Not always easy if there is a saturated market. Immigration might be your best choice but you have to have specific requirements and candidates are selected on a range of things from type of expertise, age, money, degrees/certifications etc. In Canada, there is a Federal immigration web site location that you can enter your stats. If you qualifications add up to 75 points out of a possible 100, you're in. One friend, who has a degree in Computer Science, married for 10 years, two kids, owned house, an expert in Java and C++ took 15 days to be cleared into Canada. On the other-hand another friend, with photography certifications, took over 6 years to get accepted and it was not until he put a qualification in an odd 'Multilith News Printer' type that he got the nod. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Marcel Vreuls Sent: Tuesday, July 19, 2005 6:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: work and employment Hi All, I have been a freelance programmer for about 6 years now. I like the "freedom" I have got and it helped me al lot. As I have been on and off this list in the last few years and most of the time reading I thought just drop the question perhaps someone can help me. As I had some really heavy problems the last one and a half year I am think of emigrating to another country (at this time I am living in the netherlands). Mind you no illegal shit and so, but problems with ex-wife, child protection, etc. As a father you always start 6-0 behind, have to make it even and then get your advantage. I do not think this is any different in other countries so that is not the main reason. The main reason is start all over again. Now I have some questions and I hope your experience can help me. I know I cannot go to another country and go life there. There are all kind of rules that apply but for this example, I meet those rules - anyone any ideas how to get a (freelance) job in for example America, Canada or Australia. Any suggestions, references, contacts, offers and help are welcome. Here in Holland there are companies, sort of temp offices, who offer jobs to freelancers where you have to register. Most companies never do direct business with freelancers. It cost you about 10% of your our rate, but it is the only way. - What kind of insurance, taxes do I have to deal with as freelancer? - How are the rates, salary?? - Any experience with school and after school-support for kids when you are working?? About me. I am 32 year old, have 1 kid and am MCSE and MCSD vb6, .NET certified and about 10 years of hand-on IT experience Thxs, again, Marcel -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darsant at gmail.com Tue Jul 19 13:15:30 2005 From: darsant at gmail.com (Josh McFarlane) Date: Tue, 19 Jul 2005 13:15:30 -0500 Subject: [AccessD] OT: work and employment In-Reply-To: <0IJV00JG7YT0W9@l-daemon> References: <200507190907578.SM03480@MarcelPC> <0IJV00JG7YT0W9@l-daemon> Message-ID: <53c8e05a05071911157d239483@mail.gmail.com> On 7/19/05, Jim Lawrence wrote: > Hi Marcel: > > You certifications would put you in the top 6% of in-demand programmers, > especially with .Net credentials. (According to one survey I saw.) You would > have to immigrate if you wanted to easily get a job in either US or Canada > but I have no idea about Australia. There are working Visas in Canada and > Green Cards and H1B Visas in the US but you have to get a future 'local' > employer to sponsor you if your want to go that route. Not always easy if > there is a saturated market. > > Immigration might be your best choice but you have to have specific > requirements and candidates are selected on a range of things from type of > expertise, age, money, degrees/certifications etc. In Canada, there is a > Federal immigration web site location that you can enter your stats. If you > qualifications add up to 75 points out of a possible 100, you're in. One > friend, who has a degree in Computer Science, married for 10 years, two > kids, owned house, an expert in Java and C++ took 15 days to be cleared into > Canada. On the other-hand another friend, with photography certifications, > took over 6 years to get accepted and it was not until he put a > qualification in an odd 'Multilith News Printer' type that he got the nod. > > HTH > Jim Took a loko at the test out of curiosity, and it seems like they dropped the acceptance to 67, so it should be easier for you to get in now. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From accessd at shaw.ca Tue Jul 19 13:25:10 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 19 Jul 2005 11:25:10 -0700 Subject: [AccessD] OT: work and employment In-Reply-To: <53c8e05a05071911157d239483@mail.gmail.com> Message-ID: <0IJW0040M0HWWQ@l-daemon> Totally OT: I wonder how many Canadian could actually get back into the country once their citizenship was removed if they had to take the test? What is your bet 30% more, less? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Tuesday, July 19, 2005 11:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: work and employment On 7/19/05, Jim Lawrence wrote: > Hi Marcel: > > You certifications would put you in the top 6% of in-demand programmers, > especially with .Net credentials. (According to one survey I saw.) You would > have to immigrate if you wanted to easily get a job in either US or Canada > but I have no idea about Australia. There are working Visas in Canada and > Green Cards and H1B Visas in the US but you have to get a future 'local' > employer to sponsor you if your want to go that route. Not always easy if > there is a saturated market. > > Immigration might be your best choice but you have to have specific > requirements and candidates are selected on a range of things from type of > expertise, age, money, degrees/certifications etc. In Canada, there is a > Federal immigration web site location that you can enter your stats. If you > qualifications add up to 75 points out of a possible 100, you're in. One > friend, who has a degree in Computer Science, married for 10 years, two > kids, owned house, an expert in Java and C++ took 15 days to be cleared into > Canada. On the other-hand another friend, with photography certifications, > took over 6 years to get accepted and it was not until he put a > qualification in an odd 'Multilith News Printer' type that he got the nod. > > HTH > Jim Took a loko at the test out of curiosity, and it seems like they dropped the acceptance to 67, so it should be easier for you to get in now. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Jul 19 13:41:34 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 19 Jul 2005 14:41:34 -0400 Subject: [AccessD] OT: work and employment Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F13237ADD@xlivmbx21.aig.com> Umm... How do you mean 'once their citizenship was removed'? Or is this not just 'Totally OT' but 'Totally hypothetical' as well? As far as I know you can't have your citizenship 'removed'. Even in the case of becoming a naturalized US citizen, where the oath requires you to renounce your previous citizenship, it does not mean you are no longer a citizen of the other country, you just say it to get the US passport. The other countries treat it as a quaint ritual, but you still keep the original citizenship. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, July 19, 2005 2:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: work and employment Totally OT: I wonder how many Canadian could actually get back into the country once their citizenship was removed if they had to take the test? What is your bet 30% more, less? Jim From mikedorism at verizon.net Tue Jul 19 13:48:22 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 19 Jul 2005 14:48:22 -0400 Subject: [AccessD] OT: work and employment In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F13237ADD@xlivmbx21.aig.com> Message-ID: <000201c58c92$70fefc80$2f01a8c0@dorismanning> Please move this discussion to the OT list. Doris Manning AccessD Moderator -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, July 19, 2005 2:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: work and employment Umm... How do you mean 'once their citizenship was removed'? Or is this not just 'Totally OT' but 'Totally hypothetical' as well? As far as I know you can't have your citizenship 'removed'. Even in the case of becoming a naturalized US citizen, where the oath requires you to renounce your previous citizenship, it does not mean you are no longer a citizen of the other country, you just say it to get the US passport. The other countries treat it as a quaint ritual, but you still keep the original citizenship. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, July 19, 2005 2:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: work and employment Totally OT: I wonder how many Canadian could actually get back into the country once their citizenship was removed if they had to take the test? What is your bet 30% more, less? Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Tue Jul 19 17:57:53 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 19 Jul 2005 18:57:53 -0400 Subject: [AccessD] MRP Coding Examples In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3D5@mercury.tnco-inc.com> Message-ID: Joe, I have BOM explosion logic that is SQL based and VBA based, which will generate material requirements that can be time phased. There are a bunch of other things that then come into play; Planed orders, demand time fences, fixed and/or variable lead times, safety stock, minimum order qty, economic order qty, independent demands, etc I can recommend a DB design that has worked well for me over the years. But it's a lot of work and a major undertaking to do it right. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Tuesday, July 19, 2005 1:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MRP Coding Examples Determining requirements, really. Assuming that I have all the underlying data, I need to figure out how to generate a Make/Buy report looking at it by time periods. I just talked to Rocky and using EZ-MRP maybe a solution... I don't know what is involved in creating my own system so it is hard to determine which way to go... Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, July 18, 2005 5:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MRP Coding Examples JR, What is it that your looking of examples for? "MRP" covers a lot of ground; BOM's, Routings, Time Phased Inventory, Purchasing, Quality control, Scrap and Rejection, Capacity planning, etc. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Monday, July 18, 2005 3:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MRP Coding Examples Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bruce.Bruen at railcorp.nsw.gov.au Tue Jul 19 18:16:05 2005 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Wed, 20 Jul 2005 09:16:05 +1000 Subject: [AccessD] the dreaded n-recursive parts explosion (BOM) query... again Message-ID: Hi folks, I thought I had got over this one years ago and can't find the SQL query template someone (Lembit???) here kindly supplied last time. But it has come back to get me again, so.... Does someone have a "template" query to return all the parts in an n-level parts explosion, preferably in binary-tree pre-order order. * all components, subcomponents and parts are held in the same table, * it is a one way tree - i.e. parts that are used in multiple assemblies appear multiple times in the table (i.e.i.e. the pkey for the tree table is not the SKU) tia bruce This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From martyconnelly at shaw.ca Tue Jul 19 18:49:05 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 19 Jul 2005 16:49:05 -0700 Subject: [AccessD] the dreaded n-recursive parts explosion (BOM) query... again References: Message-ID: <42DD9171.2010200@shaw.ca> Do you mean the nested set solution from Joe Celko It is further written up in his book "SQL for Smarties" http://www.mvps.org/access/queries/qry0023.htm or this one http://www.mvps.org/access/modules/mdl0027.htm Bruen, Bruce wrote: >Hi folks, > >I thought I had got over this one years ago and can't find the SQL query >template someone (Lembit???) here kindly supplied last time. > >But it has come back to get me again, so.... > >Does someone have a "template" query to return all the parts in an >n-level parts explosion, preferably in binary-tree pre-order order. >* all components, subcomponents and parts are held in the same table, >* it is a one way tree - i.e. parts that are used in multiple assemblies >appear multiple times in the table (i.e.i.e. the pkey for the tree table >is not the SKU) > > >tia >bruce > > > -- Marty Connelly Victoria, B.C. Canada From KP at sdsonline.net Tue Jul 19 19:00:08 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Wed, 20 Jul 2005 10:00:08 +1000 Subject: [AccessD] OT: work and employment References: <200507190907578.SM03480@MarcelPC> Message-ID: <00b201c58cbd$feb3a1e0$6601a8c0@user> Hi Marcel - Here are some links for Australian immigration. Main website: http://www.immigrationinfoaustralia.com/default.asp?fid=103076 You can also use the website to complete an assessment which will give you a 'score' (based on the points system). Essentially, based on your age, qualifications, family setup, health etc. they allocate you a score and that score can mean that you qualify as a skilled immigrant. To see that page, go to: https://www.migrationexpert.com/register.asp?type=1&fid=100135 I'm sure that your qualifications, age and skills would be fairly in demand in Australia - but it depends on what they are looking for at any point in time. A friend of mine's brother who is mid 30's, married, 3 small children has just qualified to immigrate from Wales - he is a painter (walls, not art) and that is in demand right now. Good luck. Kath ----- Original Message ----- From: Marcel Vreuls To: 'Access Developers discussion and problem solving' Sent: Tuesday, July 19, 2005 11:10 PM Subject: [AccessD] OT: work and employment Hi All, I have been a freelance programmer for about 6 years now. I like the "freedom" I have got and it helped me al lot. As I have been on and off this list in the last few years and most of the time reading I thought just drop the question perhaps someone can help me. As I had some really heavy problems the last one and a half year I am think of emigrating to another country (at this time I am living in the netherlands). Mind you no illegal shit and so, but problems with ex-wife, child protection, etc. As a father you always start 6-0 behind, have to make it even and then get your advantage. I do not think this is any different in other countries so that is not the main reason. The main reason is start all over again. Now I have some questions and I hope your experience can help me. I know I cannot go to another country and go life there. There are all kind of rules that apply but for this example, I meet those rules - anyone any ideas how to get a (freelance) job in for example America, Canada or Australia. Any suggestions, references, contacts, offers and help are welcome. Here in Holland there are companies, sort of temp offices, who offer jobs to freelancers where you have to register. Most companies never do direct business with freelancers. It cost you about 10% of your our rate, but it is the only way. - What kind of insurance, taxes do I have to deal with as freelancer? - How are the rates, salary?? - Any experience with school and after school-support for kids when you are working?? About me. I am 32 year old, have 1 kid and am MCSE and MCSD vb6, .NET certified and about 10 years of hand-on IT experience Thxs, again, Marcel -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bruce.Bruen at railcorp.nsw.gov.au Tue Jul 19 21:18:26 2005 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Wed, 20 Jul 2005 12:18:26 +1000 Subject: [AccessD] the dreaded n-recursive parts explosion (BOM) query...again Message-ID: Thanks Marty! That's the one bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, 20 July 2005 9:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] the dreaded n-recursive parts explosion (BOM) query...again Do you mean the nested set solution from Joe Celko It is further written up in his book "SQL for Smarties" http://www.mvps.org/access/queries/qry0023.htm or this one http://www.mvps.org/access/modules/mdl0027.htm Bruen, Bruce wrote: >Hi folks, > >I thought I had got over this one years ago and can't find the SQL >query template someone (Lembit???) here kindly supplied last time. > >But it has come back to get me again, so.... > >Does someone have a "template" query to return all the parts in an >n-level parts explosion, preferably in binary-tree pre-order order. >* all components, subcomponents and parts are held in the same table, >* it is a one way tree - i.e. parts that are used in multiple >assemblies appear multiple times in the table (i.e.i.e. the pkey for >the tree table is not the SKU) > > >tia >bruce > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From Bruce.Bruen at railcorp.nsw.gov.au Tue Jul 19 21:20:31 2005 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Wed, 20 Jul 2005 12:20:31 +1000 Subject: [AccessD] the dreaded n-recursive parts explosion (BOM) query...again Message-ID: Sorry, I meant Joe Celko's was the one! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, 20 July 2005 9:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] the dreaded n-recursive parts explosion (BOM) query...again Do you mean the nested set solution from Joe Celko It is further written up in his book "SQL for Smarties" http://www.mvps.org/access/queries/qry0023.htm or this one http://www.mvps.org/access/modules/mdl0027.htm Bruen, Bruce wrote: >Hi folks, > >I thought I had got over this one years ago and can't find the SQL >query template someone (Lembit???) here kindly supplied last time. > >But it has come back to get me again, so.... > >Does someone have a "template" query to return all the parts in an >n-level parts explosion, preferably in binary-tree pre-order order. >* all components, subcomponents and parts are held in the same table, >* it is a one way tree - i.e. parts that are used in multiple >assemblies appear multiple times in the table (i.e.i.e. the pkey for >the tree table is not the SKU) > > >tia >bruce > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From robert at servicexp.com Tue Jul 19 21:33:24 2005 From: robert at servicexp.com (Robert Gracie) Date: Tue, 19 Jul 2005 22:33:24 -0400 Subject: [AccessD] OT: Outlook 2003 Message-ID: <3C6BD610FA11044CADFC8C13E6D5508F4EE0@gbsserver.GBS.local> I have 3 machines, all Win Xp Pro. 2 of the 3 machines I own, the other at work. The problem is occasionally Outlook 2003 will open and then immediately shut down. This can go on for several attempts... I have search the internet and can't seem to find anything about this problem.. Any Idea's Robert From JRojas at tnco-inc.com Wed Jul 20 07:16:55 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Wed, 20 Jul 2005 08:16:55 -0400 Subject: [AccessD] MRP Coding Examples Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3DC@mercury.tnco-inc.com> Thanks for the reply Jim, I would be willing to take what ever you have. I am trying to get a look at the big picture to see what would be involved it creating this project. Thanks! JR -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, July 19, 2005 6:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MRP Coding Examples Joe, I have BOM explosion logic that is SQL based and VBA based, which will generate material requirements that can be time phased. There are a bunch of other things that then come into play; Planed orders, demand time fences, fixed and/or variable lead times, safety stock, minimum order qty, economic order qty, independent demands, etc I can recommend a DB design that has worked well for me over the years. But it's a lot of work and a major undertaking to do it right. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Tuesday, July 19, 2005 1:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MRP Coding Examples Determining requirements, really. Assuming that I have all the underlying data, I need to figure out how to generate a Make/Buy report looking at it by time periods. I just talked to Rocky and using EZ-MRP maybe a solution... I don't know what is involved in creating my own system so it is hard to determine which way to go... Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, July 18, 2005 5:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MRP Coding Examples JR, What is it that your looking of examples for? "MRP" covers a lot of ground; BOM's, Routings, Time Phased Inventory, Purchasing, Quality control, Scrap and Rejection, Capacity planning, etc. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Monday, July 18, 2005 3:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MRP Coding Examples Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From accessd666 at yahoo.com Wed Jul 20 08:00:27 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 20 Jul 2005 06:00:27 -0700 (PDT) Subject: [AccessD] ADH2K - utils - TsiNameFixup90 Message-ID: <20050720130027.4861.qmail@web31610.mail.mud.yahoo.com> Hi group, I was browsing the CD A2K Developers handbook volume 2: Enterprise Edition. I found the following file in: Z:\Other\TSI\AutocorrectWizard\TsiNameFixup90.dll It had a readme file (text is below). However I 'm confused on what to do with the DLL. I've created a module in wich I instantiate a TsiNameFixup90.dll object Public objAutoCorrect As TsiNameFixup90 Set objAutoCorrect = New TsiNameFixup90 The problem is that the objAutoCorrect seems to have no public interface i.e. there are now properties/methods when I try the intellisense. Does anybody know how I can use this DLL?? BTW: The AutoCorrect function is really cool!!!!! SD ------------------------------------------------------ README.txt ------------------------------------------------------ The Access 2000 "Name AutoCorrect" feature is a pretty cool one. The following is an excerpt from the Access 2000 Help topic "What Name AutoCorrect fixes and doesn't fix in an Access Database.": "In Microsoft Access 97 and previous versions, if you rename a field in a table, you find that the objects based on that field no longer display the data from that field. Microsoft Access 2000 automatically corrects common side effects that occur when you rename forms, reports, tables, queries, fields, text boxes or other controls in a Microsoft Access database. This feature is called Name AutoCorrect." As the help topic discusses later on (you can look at it directly for details) Access 2000 Name AutoCorrect does not do every possible kind of name fixup you could possibly need when you change the name of an object, field, or control. But it does handle many of the scenarios that you might want it to. However, in order for it to work, you need two things: 1) The Tools|Options properties for Name AutoCorrect must be set to True for the database so that Access knows to update the name maps for the various objects and to actually do renames as it finds that it needs to. 2) The "name maps" for the various objects must be up to date. If you have turned off the properties in #1 above, or if you are converting a database from a prior version, your name maps may be incomplete or non-existent. The only way to update them is to turn on the properties and then open each table, query, form, and report in design view and save. Thats what this ComAddIn does! It does the work to set the properties and open/save/close all of the objects. Certainly easier than doing it all yourself. Source is also available for your viewing pleasure. Its a nice, simple example of a ComAddIn for Access 2000 that interacts with the Access menus and object model. Enjoy! Michael Kaplan Trigeminal Software, Inc. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Gustav at cactus.dk Wed Jul 20 08:24:12 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 20 Jul 2005 15:24:12 +0200 Subject: [AccessD] the dreaded n-recursive parts explosion (BOM) query...again Message-ID: Hi Bruce Have in mind that DAO may be superior regarding speed and ease of maintenance (no "special" fields needed, just the parent ID, thus no smart SQL). Lookup "Tree shaped reports" from 2002-06-02 in the archive. Maybe my function RecursiveLookup() can guide you ... This function uses a static recordset and Seek and runs blazingly fast. /gustav >>> Bruce.Bruen at railcorp.nsw.gov.au 07/20 1:16 am >>> Hi folks, I thought I had got over this one years ago and can't find the SQL query template someone (Lembit???) here kindly supplied last time. But it has come back to get me again, so.... Does someone have a "template" query to return all the parts in an n-level parts explosion, preferably in binary-tree pre-order order. * all components, subcomponents and parts are held in the same table, * it is a one way tree - i.e. parts that are used in multiple assemblies appear multiple times in the table (i.e.i.e. the pkey for the tree table is not the SKU) From accessd666 at yahoo.com Wed Jul 20 08:41:57 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 20 Jul 2005 06:41:57 -0700 (PDT) Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Message-ID: <20050720134157.74985.qmail@web31608.mail.mud.yahoo.com> Hi group, We've got a large Access database 150+ tables, 80+ forms and 175+ reports. Anyway I think it's very big. I just found the AutoCorrect function and we've got a big change comming up. What I want is to build a small app that checks all code in the application for any changes logged to the table "Name AutoCorrect Log". My Question: How can I retrieve the VBA code in a form, report, module and/or class? SD PS: Yes, I know Total Access Analyzer can do the job but the fuckers here rather spend ?10.000 then ?1.000 for the application. __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail From Lambert.Heenan at AIG.com Wed Jul 20 09:01:39 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 20 Jul 2005 10:01:39 -0400 Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F13237C6D@xlivmbx21.aig.com> Well you are going to have to work with the HasModule and Module properties of forms and reports. But first you should go back to the bean counters and tell them that for the cost of your development time they could purchase a copy of Rick Fisher's Find and Replace (just $37 for the Access 2000 and greater version, my preferred tool - http://www.rickworld.com) every hour or so, or Total Access Analyzer every few hours. There is just no point reinventing the wheel when others before us have already done such a good job. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Wednesday, July 20, 2005 9:42 AM To: Acces User Group Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Hi group, We've got a large Access database 150+ tables, 80+ forms and 175+ reports. Anyway I think it's very big. I just found the AutoCorrect function and we've got a big change comming up. What I want is to build a small app that checks all code in the application for any changes logged to the table "Name AutoCorrect Log". My Question: How can I retrieve the VBA code in a form, report, module and/or class? SD PS: Yes, I know Total Access Analyzer can do the job but the fuckers here rather spend ?10.000 then ?1.000 for the application. __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed Jul 20 09:45:04 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 20 Jul 2005 10:45:04 -0400 Subject: [AccessD] A Word question Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED24@ADGSERVER> Hey, In my Access app, I am doing a sort of mail merge using find and replace. Anyway, I am using a .DOT doc, a temporary doc, and an output doc to do what I need. It works fine. My question is, how can bring Word to the front after the report is generated? I am trying to get something to happen like when previewing a report. Thanks, Bobby From john at winhaven.net Wed Jul 20 09:46:07 2005 From: john at winhaven.net (John Bartow) Date: Wed, 20 Jul 2005 09:46:07 -0500 Subject: [AccessD] Retrieve VBA Code in a form, module, class, report In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F13237C6D@xlivmbx21.aig.com> Message-ID: <200507201446.j6KEk7hM333560@pimout3-ext.prodigy.net> Agree. Another is Speed Ferret http://www.speedferret.com/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, July 20, 2005 9:02 AM To: 'Access Developers discussion and problem solving' Cc: 'Sad Der' Subject: RE: [AccessD] Retrieve VBA Code in a form, module, class, report Well you are going to have to work with the HasModule and Module properties of forms and reports. But first you should go back to the bean counters and tell them that for the cost of your development time they could purchase a copy of Rick Fisher's Find and Replace (just $37 for the Access 2000 and greater version, my preferred tool - http://www.rickworld.com) every hour or so, or Total Access Analyzer every few hours. There is just no point reinventing the wheel when others before us have already done such a good job. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Wednesday, July 20, 2005 9:42 AM To: Acces User Group Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Hi group, We've got a large Access database 150+ tables, 80+ forms and 175+ reports. Anyway I think it's very big. I just found the AutoCorrect function and we've got a big change comming up. What I want is to build a small app that checks all code in the application for any changes logged to the table "Name AutoCorrect Log". My Question: How can I retrieve the VBA code in a form, report, module and/or class? SD PS: Yes, I know Total Access Analyzer can do the job but the fuckers here rather spend ?10.000 then ?1.000 for the application. __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 carbonnb at gmail.com Wed Jul 20 09:52:46 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 20 Jul 2005 10:52:46 -0400 Subject: [AccessD] A Word question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED24@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30ABED24@ADGSERVER> Message-ID: On 20/07/05, Bobby Heid wrote: > My question is, how can bring Word to the front after the report is > generated? I am trying to get something to happen like when previewing a > report. Assuming that objWord is a reference to your Word Object you can use: objWord.Visible = True ObjWord.Activate -- 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 cfoust at infostatsystems.com Wed Jul 20 10:19:34 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 20 Jul 2005 08:19:34 -0700 Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Message-ID: Or MZ-Tools 3.0 (free). http://www.mztools.com Charlotte Foust -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Wednesday, July 20, 2005 7:46 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Retrieve VBA Code in a form, module, class, report Agree. Another is Speed Ferret http://www.speedferret.com/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, July 20, 2005 9:02 AM To: 'Access Developers discussion and problem solving' Cc: 'Sad Der' Subject: RE: [AccessD] Retrieve VBA Code in a form, module, class, report Well you are going to have to work with the HasModule and Module properties of forms and reports. But first you should go back to the bean counters and tell them that for the cost of your development time they could purchase a copy of Rick Fisher's Find and Replace (just $37 for the Access 2000 and greater version, my preferred tool - http://www.rickworld.com) every hour or so, or Total Access Analyzer every few hours. There is just no point reinventing the wheel when others before us have already done such a good job. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Wednesday, July 20, 2005 9:42 AM To: Acces User Group Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Hi group, We've got a large Access database 150+ tables, 80+ forms and 175+ reports. Anyway I think it's very big. I just found the AutoCorrect function and we've got a big change comming up. What I want is to build a small app that checks all code in the application for any changes logged to the table "Name AutoCorrect Log". My Question: How can I retrieve the VBA code in a form, report, module and/or class? SD PS: Yes, I know Total Access Analyzer can do the job but the fuckers here rather spend ?10.000 then ?1.000 for the application. __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Wed Jul 20 10:21:30 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 20 Jul 2005 08:21:30 -0700 Subject: [AccessD] ADH2K - utils - TsiNameFixup90 Message-ID: Before you get too excited about Name Autocorrect, remember that it has also been implicated in every weird Access problem imaginable. I turn it off by default and avoid a lot of headaches. Charlotte Foust -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Wednesday, July 20, 2005 6:00 AM To: Acces User Group Subject: [AccessD] ADH2K - utils - TsiNameFixup90 Hi group, I was browsing the CD A2K Developers handbook volume 2: Enterprise Edition. I found the following file in: Z:\Other\TSI\AutocorrectWizard\TsiNameFixup90.dll It had a readme file (text is below). However I 'm confused on what to do with the DLL. I've created a module in wich I instantiate a TsiNameFixup90.dll object Public objAutoCorrect As TsiNameFixup90 Set objAutoCorrect = New TsiNameFixup90 The problem is that the objAutoCorrect seems to have no public interface i.e. there are now properties/methods when I try the intellisense. Does anybody know how I can use this DLL?? BTW: The AutoCorrect function is really cool!!!!! SD ------------------------------------------------------ README.txt ------------------------------------------------------ The Access 2000 "Name AutoCorrect" feature is a pretty cool one. The following is an excerpt from the Access 2000 Help topic "What Name AutoCorrect fixes and doesn't fix in an Access Database.": "In Microsoft Access 97 and previous versions, if you rename a field in a table, you find that the objects based on that field no longer display the data from that field. Microsoft Access 2000 automatically corrects common side effects that occur when you rename forms, reports, tables, queries, fields, text boxes or other controls in a Microsoft Access database. This feature is called Name AutoCorrect." As the help topic discusses later on (you can look at it directly for details) Access 2000 Name AutoCorrect does not do every possible kind of name fixup you could possibly need when you change the name of an object, field, or control. But it does handle many of the scenarios that you might want it to. However, in order for it to work, you need two things: 1) The Tools|Options properties for Name AutoCorrect must be set to True for the database so that Access knows to update the name maps for the various objects and to actually do renames as it finds that it needs to. 2) The "name maps" for the various objects must be up to date. If you have turned off the properties in #1 above, or if you are converting a database from a prior version, your name maps may be incomplete or non-existent. The only way to update them is to turn on the properties and then open each table, query, form, and report in design view and save. Thats what this ComAddIn does! It does the work to set the properties and open/save/close all of the objects. Certainly easier than doing it all yourself. Source is also available for your viewing pleasure. Its a nice, simple example of a ComAddIn for Access 2000 that interacts with the Access menus and object model. Enjoy! Michael Kaplan Trigeminal Software, Inc. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Wed Jul 20 11:26:25 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 20 Jul 2005 09:26:25 -0700 (PDT) Subject: [AccessD] Retrieve VBA Code in a form, module, class, report In-Reply-To: Message-ID: <20050720162625.2794.qmail@web31602.mail.mud.yahoo.com> Thnx, for the replies! Charlotte....MZ-Tools we've got that one. Is it possible to do what i described below? SD --- Charlotte Foust wrote: > Or MZ-Tools 3.0 (free). http://www.mztools.com > > Charlotte Foust > > > -----Original Message----- > From: John Bartow [mailto:john at winhaven.net] > Sent: Wednesday, July 20, 2005 7:46 AM > To: 'Access Developers discussion and problem > solving' > Subject: RE: [AccessD] Retrieve VBA Code in a form, > module, class, > report > > > Agree. Another is Speed Ferret > http://www.speedferret.com/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Heenan, > Lambert > Sent: Wednesday, July 20, 2005 9:02 AM > To: 'Access Developers discussion and problem > solving' > Cc: 'Sad Der' > Subject: RE: [AccessD] Retrieve VBA Code in a form, > module, class, > report > > Well you are going to have to work with the > HasModule and Module > properties of forms and reports. > > But first you should go back to the bean counters > and tell them that for > the cost of your development time they could > purchase a copy of Rick > Fisher's Find and Replace (just $37 for the Access > 2000 and greater > version, my preferred tool - > http://www.rickworld.com) every hour or so, > or Total Access Analyzer every few hours. There is > just no point > reinventing the wheel when others before us have > already done such a > good job. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Sad Der > Sent: Wednesday, July 20, 2005 9:42 AM > To: Acces User Group > Subject: [AccessD] Retrieve VBA Code in a form, > module, class, report > > > Hi group, > > We've got a large Access database 150+ tables, 80+ > forms and 175+ > reports. Anyway I think it's very big. > > I just found the AutoCorrect function and we've got > a big change comming > up. > > What I want is to build a small app that checks all > code in the > application for any changes logged to the table > "Name AutoCorrect Log". > > My Question: How can I retrieve the VBA code in a > form, report, module > and/or class? > > SD > > PS: Yes, I know Total Access Analyzer can do the job > but the fuckers > here rather spend ?10.000 then ?1.000 for the > application. > > > > __________________________________ > Yahoo! Mail for Mobile > Take Yahoo! Mail with you! Check email on your > mobile phone. > http://mobile.yahoo.com/learn/mail > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs From bheid at appdevgrp.com Wed Jul 20 11:50:04 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 20 Jul 2005 12:50:04 -0400 Subject: [AccessD] A Word question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C25FC6@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED28@ADGSERVER> Hey Bryan, I have done that, it flashes up than access comes back up over it. Now note that I am manually calling the function from the immediate window. That may be making it act differently. I'm currently working on a form at the moment to call the code from. I'll post the results. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, July 20, 2005 10:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A Word question On 20/07/05, Bobby Heid wrote: > My question is, how can bring Word to the front after the report is > generated? I am trying to get something to happen like when previewing a > report. Assuming that objWord is a reference to your Word Object you can use: objWord.Visible = True ObjWord.Activate -- Bryan Carbonnell - carbonnb at gmail.com From martyconnelly at shaw.ca Wed Jul 20 12:38:10 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 20 Jul 2005 10:38:10 -0700 Subject: [AccessD] A Word question References: <916187228923D311A6FE00A0CC3FAA30ABED28@ADGSERVER> Message-ID: <42DE8C02.8030807@shaw.ca> Just a hint check your task manager processes occassionally when debugging the use of word this way, and delete all the unused word.exe that will probably left orphaned. I have wondered why my machine was getting sluggish and found 20 copies left running a day later.. Bobby Heid wrote: >Hey Bryan, > >I have done that, it flashes up than access comes back up over it. Now note >that I am manually calling the function from the immediate window. That may >be making it act differently. I'm currently working on a form at the moment >to call the code from. I'll post the results. > >Thanks, >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell >Sent: Wednesday, July 20, 2005 10:53 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A Word question > > >On 20/07/05, Bobby Heid wrote: > > > >>My question is, how can bring Word to the front after the report is >>generated? I am trying to get something to happen like when previewing a >>report. >> >> > >Assuming that objWord is a reference to your Word Object you can use: > >objWord.Visible = True >ObjWord.Activate > > > -- Marty Connelly Victoria, B.C. Canada From bheid at appdevgrp.com Wed Jul 20 12:47:49 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 20 Jul 2005 13:47:49 -0400 Subject: [AccessD] A Word question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C26058@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED2D@ADGSERVER> Thanks for the hint. I have frequently checked for this as I have heard this before. My code looks for an existing copy of word and uses that if available, else it creates an instance. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, July 20, 2005 1:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A Word question Just a hint check your task manager processes occassionally when debugging the use of word this way, and delete all the unused word.exe that will probably left orphaned. I have wondered why my machine was getting sluggish and found 20 copies left running a day later.. From cfoust at infostatsystems.com Wed Jul 20 13:10:46 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 20 Jul 2005 11:10:46 -0700 Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Message-ID: I'm not clear on exactly what you want to do with the tool. MZ-Tools will do find and replace, as will the other apps suggested, but beyond that, what do you want it to do? Charlotte Foust -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Wednesday, July 20, 2005 9:26 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Retrieve VBA Code in a form, module, class, report Thnx, for the replies! Charlotte....MZ-Tools we've got that one. Is it possible to do what i described below? SD --- Charlotte Foust wrote: > Or MZ-Tools 3.0 (free). http://www.mztools.com > > Charlotte Foust > > > -----Original Message----- > From: John Bartow [mailto:john at winhaven.net] > Sent: Wednesday, July 20, 2005 7:46 AM > To: 'Access Developers discussion and problem > solving' > Subject: RE: [AccessD] Retrieve VBA Code in a form, > module, class, > report > > > Agree. Another is Speed Ferret > http://www.speedferret.com/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Heenan, > Lambert > Sent: Wednesday, July 20, 2005 9:02 AM > To: 'Access Developers discussion and problem > solving' > Cc: 'Sad Der' > Subject: RE: [AccessD] Retrieve VBA Code in a form, > module, class, > report > > Well you are going to have to work with the > HasModule and Module > properties of forms and reports. > > But first you should go back to the bean counters > and tell them that for > the cost of your development time they could > purchase a copy of Rick > Fisher's Find and Replace (just $37 for the Access > 2000 and greater > version, my preferred tool - > http://www.rickworld.com) every hour or so, > or Total Access Analyzer every few hours. There is > just no point > reinventing the wheel when others before us have > already done such a > good job. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Sad Der > Sent: Wednesday, July 20, 2005 9:42 AM > To: Acces User Group > Subject: [AccessD] Retrieve VBA Code in a form, > module, class, report > > > Hi group, > > We've got a large Access database 150+ tables, 80+ > forms and 175+ > reports. Anyway I think it's very big. > > I just found the AutoCorrect function and we've got > a big change comming > up. > > What I want is to build a small app that checks all > code in the > application for any changes logged to the table > "Name AutoCorrect Log". > > My Question: How can I retrieve the VBA code in a > form, report, module > and/or class? > > SD > > PS: Yes, I know Total Access Analyzer can do the job > but the fuckers > here rather spend ?10.000 then ?1.000 for the > application. > > > > __________________________________ > Yahoo! Mail for Mobile > Take Yahoo! Mail with you! Check email on your > mobile phone. > http://mobile.yahoo.com/learn/mail > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Wed Jul 20 13:10:39 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 20 Jul 2005 14:10:39 -0400 Subject: [AccessD] A Word question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED28@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30C25FC6@ADGSERVER> <916187228923D311A6FE00A0CC3FAA30ABED28@ADGSERVER> Message-ID: On 20/07/05, Bobby Heid wrote: > I have done that, it flashes up than access comes back up over it. Now note > that I am manually calling the function from the immediate window. That may > be making it act differently. I'm currently working on a form at the moment > to call the code from. I'll post the results. I tested it out from a procedure and a command button on a form in A2K and Word stayed on top. Access probably poped back to the front because the focus shifted back to the debug window. -- 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 Gustav at cactus.dk Wed Jul 20 13:28:05 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 20 Jul 2005 20:28:05 +0200 Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Message-ID: Hi Sad You can extract the complete form to a textfile like this: SaveAsText acForm, "frmTest", "d:\frmTest.txt" That will dump everything the form contains including bitmaps. The last section begins with the line with this single word: CodeBehindForm The text after this will be your code. If you edit the file, the form can be read (into an empty database) by LoadFromText acForm, "frmTest", "d:\frmTest.txt" /gustav > My Question: How can I retrieve the VBA code in a form, report, module and/or class? From D.Dick at uws.edu.au Wed Jul 20 19:35:24 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Thu, 21 Jul 2005 10:35:24 +1000 Subject: [AccessD] BIT OT: Any VB Gurus out there? Message-ID: <2FDE83AF1A69C84796CBD13788DDA8836136AD@BONHAM.AD.UWS.EDU.AU> Hi Team Working on VB code. Code works fine in 98/ME (Shudder) but there are visual issues and errors in 2000 or XP The code 'draws' lines/coordinates into a Picture Box We have managed to get the code to kinda work in XP by changing A few integers to longs. Names are - "frm_Control" for the VB Form "ssTab" for the Tab Control "Picture1" for the picture Box But here's the thing In 98/ME the drawing is done and you see the lines after clicking a button. Lovely. With the modified code in XP the code draws the lines but you don't see 'em. But if you click on a Tab then come back to the PictureBox in question then you see the lines. So how do I refresh the contents of a picture box in VB? Frm_Control.Picture1.Requery Doesn't work - I get Compile Error Method or Data member not found So...any suggestions on how to 'redraw' or 'refresh' or 'requery' this thing with out changing tabs. BTW - There is very little code in the TabChange code. It has nothing to do with repainting etc. Many thanks Darren From mmattys at rochester.rr.com Wed Jul 20 19:45:51 2005 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Wed, 20 Jul 2005 20:45:51 -0400 Subject: [AccessD] BIT OT: Any VB Gurus out there? References: <2FDE83AF1A69C84796CBD13788DDA8836136AD@BONHAM.AD.UWS.EDU.AU> Message-ID: <000901c58d8d$8ceacb30$0302a8c0@default> Darren, Have you set AutoRedraw = True? If not, and using a blt method, try Picture1.Refresh. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "Darren Dick" To: "Access Developers discussion and problem solving" Sent: Wednesday, July 20, 2005 8:35 PM Subject: [AccessD] BIT OT: Any VB Gurus out there? > Hi Team > Working on VB code. > Code works fine in 98/ME (Shudder) but there are visual issues and > errors in 2000 or XP > > The code 'draws' lines/coordinates into a Picture Box > We have managed to get the code to kinda work in XP by changing A few > integers to longs. > Names are - > "frm_Control" for the VB Form > "ssTab" for the Tab Control > "Picture1" for the picture Box > > But here's the thing > > In 98/ME the drawing is done and you see the lines after clicking a > button. Lovely. > With the modified code in XP the code draws the lines but you don't see > 'em. > But if you click on a Tab then come back to the PictureBox in question > then you see the lines. > > So how do I refresh the contents of a picture box in VB? > > Frm_Control.Picture1.Requery Doesn't work - I get > Compile Error > Method or Data member not found > > So...any suggestions on how to 'redraw' or 'refresh' or 'requery' this > thing with out changing tabs. > BTW - There is very little code in the TabChange code. It has nothing to > do with repainting etc. > > Many thanks > > Darren > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From artful at rogers.com Wed Jul 20 20:00:54 2005 From: artful at rogers.com (Arthur Fuller) Date: Wed, 20 Jul 2005 21:00:54 -0400 Subject: [AccessD] the dreaded n-recursive parts explosion (BOM)query...again In-Reply-To: Message-ID: <200507210100.j6L10pR24439@databaseadvisors.com> I will look at this and hope to mine some useful stuff from it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: July 20, 2005 9:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] the dreaded n-recursive parts explosion (BOM)query...again Hi Bruce Have in mind that DAO may be superior regarding speed and ease of maintenance (no "special" fields needed, just the parent ID, thus no smart SQL). Lookup "Tree shaped reports" from 2002-06-02 in the archive. Maybe my function RecursiveLookup() can guide you ... This function uses a static recordset and Seek and runs blazingly fast. /gustav >>> Bruce.Bruen at railcorp.nsw.gov.au 07/20 1:16 am >>> Hi folks, I thought I had got over this one years ago and can't find the SQL query template someone (Lembit???) here kindly supplied last time. But it has come back to get me again, so.... Does someone have a "template" query to return all the parts in an n-level parts explosion, preferably in binary-tree pre-order order. * all components, subcomponents and parts are held in the same table, * it is a one way tree - i.e. parts that are used in multiple assemblies appear multiple times in the table (i.e.i.e. the pkey for the tree table is not the SKU) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Wed Jul 20 20:03:36 2005 From: artful at rogers.com (Arthur Fuller) Date: Wed, 20 Jul 2005 21:03:36 -0400 Subject: [AccessD] A Word question In-Reply-To: Message-ID: <200507210103.j6L13XR25238@databaseadvisors.com> You have supplied so many useful answers to this thread and others, Bryan, that I must ask, Where are you getting your insights? I have tried various searches and not even got close to the info you so readily supply. A. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: July 20, 2005 10:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A Word question On 20/07/05, Bobby Heid wrote: > My question is, how can bring Word to the front after the report is > generated? I am trying to get something to happen like when previewing a > report. Assuming that objWord is a reference to your Word Object you can use: objWord.Visible = True ObjWord.Activate -- 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 D.Dick at uws.edu.au Wed Jul 20 21:05:25 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Thu, 21 Jul 2005 12:05:25 +1000 Subject: [AccessD] BIT OT: Any VB Gurus out there? Message-ID: <2FDE83AF1A69C84796CBD13788DDA8836137E0@BONHAM.AD.UWS.EDU.AU> Michael Excellent Many thanks - I think the Autodraw = true is the answer It is at least on my Dev machine I'll try it out at the clients machine today Many many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, July 21, 2005 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BIT OT: Any VB Gurus out there? Darren, Have you set AutoRedraw = True? If not, and using a blt method, try Picture1.Refresh. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "Darren Dick" To: "Access Developers discussion and problem solving" Sent: Wednesday, July 20, 2005 8:35 PM Subject: [AccessD] BIT OT: Any VB Gurus out there? > Hi Team > Working on VB code. > Code works fine in 98/ME (Shudder) but there are visual issues and > errors in 2000 or XP > > The code 'draws' lines/coordinates into a Picture Box We have managed > to get the code to kinda work in XP by changing A few integers to > longs. > Names are - > "frm_Control" for the VB Form > "ssTab" for the Tab Control > "Picture1" for the picture Box > > But here's the thing > > In 98/ME the drawing is done and you see the lines after clicking a > button. Lovely. > With the modified code in XP the code draws the lines but you don't > see 'em. > But if you click on a Tab then come back to the PictureBox in question > then you see the lines. > > So how do I refresh the contents of a picture box in VB? > > Frm_Control.Picture1.Requery Doesn't work - I get Compile Error > Method or Data member not found > > So...any suggestions on how to 'redraw' or 'refresh' or 'requery' this > thing with out changing tabs. > BTW - There is very little code in the TabChange code. It has nothing > to do with repainting etc. > > Many thanks > > Darren > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 carbonnb at gmail.com Thu Jul 21 07:16:24 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 21 Jul 2005 08:16:24 -0400 Subject: [AccessD] A Word question In-Reply-To: <200507210103.j6L13XR25238@databaseadvisors.com> References: <200507210103.j6L13XR25238@databaseadvisors.com> Message-ID: On 20/07/05, Arthur Fuller wrote: > You have supplied so many useful answers to this thread and others, Bryan, > that I must ask, Where are you getting your insights? I have tried various > searches and not even got close to the info you so readily supply. BFI. Brute Force and Ignorance. :-) Honestly, its just that I have done a LOT of Word, Access/Word, Excel/Word programming over the past several years, that I have come across a bunch of these things already. That's it. Just experience with various bits of the Word Object model. -- 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 bheid at appdevgrp.com Thu Jul 21 07:40:28 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 21 Jul 2005 08:40:28 -0400 Subject: [AccessD] A Word question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C26074@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED33@ADGSERVER> I believe that the problem with word not coming to the front did have to do with using the debug window. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, July 20, 2005 2:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A Word question On 20/07/05, Bobby Heid wrote: > I have done that, it flashes up than access comes back up over it. Now note > that I am manually calling the function from the immediate window. That may > be making it act differently. I'm currently working on a form at the moment > to call the code from. I'll post the results. I tested it out from a procedure and a command button on a form in A2K and Word stayed on top. Access probably poped back to the front because the focus shifted back to the debug window. -- 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 dwaters at usinternet.com Thu Jul 21 08:41:15 2005 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 21 Jul 2005 08:41:15 -0500 Subject: [AccessD] Micrometer or Caliper Data Direct to Access Message-ID: <000001c58df9$dfff22a0$0200a8c0@danwaters> Hello all! Many hand measuring instruments have an electronic component that is used to send measurement data to a PC, given the right software. The way this works is to measure an item, then push a button on the instrument to send the measurement info to a PC. I'd like to find out if anyone has experience working with these instruments and collecting the data in an Access database, and could steer in good directions and away from poor ones! Thanks! Dan Waters From pedro at plex.nl Thu Jul 21 16:00:02 2005 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 21 Jul 2005 16:00:02 (MET DST) Subject: [AccessD] show last value in listbox Message-ID: <200507211400.j6LE02D6011976@mailhostC.plex.net> Hello Group, is it possible, when opening a listbox with a long list of values, it opens always with the first value. Is it possible to open with the last values. Pedro Janssen From Jdemarco at hudsonhealthplan.org Thu Jul 21 09:02:37 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 21 Jul 2005 10:02:37 -0400 Subject: [AccessD] show last value in listbox Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C3B98@TTNEXCHCL2.hshhp.com> Pedro Why not just reverse your sort then? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of pedro at plex.nl Sent: Thursday, July 21, 2005 12:00 PM To: AccessD at databaseadvisors.com Subject: [AccessD] show last value in listbox Hello Group, is it possible, when opening a listbox with a long list of values, it opens always with the first value. Is it possible to open with the last values. Pedro Janssen -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at isharp.co.uk Thu Jul 21 09:03:37 2005 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Thu, 21 Jul 2005 15:03:37 +0100 Subject: [AccessD] show last value in listbox In-Reply-To: <200507211400.j6LE02D6011976@mailhostC.plex.net> Message-ID: Pedro, I think you can do this using the ListIndex Property, if you know how many values there are I think you can do the following: MyListbox.ListIndex = (YourCountOfValuesInList-1) Paul Hartland -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: 21 July 2005 16:00 To: AccessD at databaseadvisors.com Subject: [AccessD] show last value in listbox Hello Group, is it possible, when opening a listbox with a long list of values, it opens always with the first value. Is it possible to open with the last values. Pedro Janssen -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Jul 21 10:19:20 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 21 Jul 2005 16:19:20 +0100 Subject: [AccessD] show last value in listbox Message-ID: <200507211509.j6LF9tr17042@smarthost.yourcomms.net> Try Me.List0.ListIndex = Me.List0.ListCount - 1 Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: 21 July 2005 17:00 To: AccessD at databaseadvisors.com Subject: [AccessD] show last value in listbox Hello Group, is it possible, when opening a listbox with a long list of values, it opens always with the first value. Is it possible to open with the last values. Pedro Janssen -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Jul 21 10:28:18 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 21 Jul 2005 08:28:18 -0700 Subject: [AccessD] show last value in listbox Message-ID: Try something like this (warning: air code) Me.lstListBox.Selected(Me.lstListBox.ItemData(Me.lstListBox.ListCount-1) ) = True Charlotte Foust -----Original Message----- From: pedro at plex.nl [mailto:pedro at plex.nl] Sent: Thursday, July 21, 2005 9:00 AM To: AccessD at databaseadvisors.com Subject: [AccessD] show last value in listbox Hello Group, is it possible, when opening a listbox with a long list of values, it opens always with the first value. Is it possible to open with the last values. Pedro Janssen -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Jul 21 11:05:27 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 21 Jul 2005 09:05:27 -0700 Subject: [AccessD] Micrometer or Caliper Data Direct to Access References: <000001c58df9$dfff22a0$0200a8c0@danwaters> Message-ID: <42DFC7C7.5020502@shaw.ca> http://www.taltech.com I have used these products a couple of years ago. Might be a tad expensive, as you can write your own code via mscomm.ocx, which I think is installed or licensed from VB6 . However you may have problems writing code to handle sampling stream rates and line drops and all the possible error conditions that this software covers. If your requirements are really simple you might just get away with using mscomm. Lots of net examples. Input RS232 data directly into Excel, Access, or any Windows application. WinWedge provides real-time data collection from any serial device or instrument. TCP-Wedge software provides data collection from any TCP/IP network. Send and receive RS232 data across a TCP/IP port with TCP/Com serial to TCP/IP converter software. In other words just drop your instrument on the net. Lots of useful test software here like code for a breakout box, there are articles on the site explaining methods. However it appears they dumped one useful example in VB, it was too good. http://www.taltech.com/freesoftware/fs_sw.htm This site also may have good software suggestions and methods National Instruments. http://www.ni.com Dan Waters wrote: >Hello all! > > > >Many hand measuring instruments have an electronic component that is used to >send measurement data to a PC, given the right software. The way this works >is to measure an item, then push a button on the instrument to send the >measurement info to a PC. > > > >I'd like to find out if anyone has experience working with these instruments >and collecting the data in an Access database, and could steer in good >directions and away from poor ones! > > > >Thanks! > >Dan Waters > > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Thu Jul 21 12:41:57 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 21 Jul 2005 19:41:57 +0200 Subject: [AccessD] show last value in listbox Message-ID: Hi Pedro Your listbox may not have settled at the OnCurrent event of the form. Thus, create a textbox and set the controlsource to: =SetListboxLast() and create this function in the code module of the form: Private Function SetListboxLast() ' Set listbox lstDemo to the last entry. With Me!lstDemo If IsNull(.Value) Then .Value = .ItemData(.ListCount - 1) End If End With End Function Then, shortly after the form has opened, the listbox is set to its last value. This is for a single-select listbox. /gustav >>> pedro at plex.nl 07/21 4:00 pm >>> Hello Group, is it possible, when opening a listbox with a long list of values, it opens always with the first value. Is it possible to open with the last values. Pedro Janssen From bheid at appdevgrp.com Thu Jul 21 13:31:17 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 21 Jul 2005 14:31:17 -0400 Subject: [AccessD] Another word question... Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED3E@ADGSERVER> Me again, I am generating 1-2 tables per page on this report that I'm doing in word via automation. It takes, on average, 1.8 seconds to create one page. This is an average from 406 pages. In trying to make it faster, I have determined that the table code takes 66% of the time it takes to create a page. Note that the tables can have a variable number of items in it. I am including the relevant bits of code. I know it is a lot to look through so it's ok if you want to stop here. The one second saved still has the recordset stuff in it, so that is not the bottleneck. Anyone have any ideas as to how I may speed this up? I have included what a finished table looks like at the end of this email. Thanks, Bobby This is what I'm doing (for each table): If Not rs2.EOF Then rs2.MoveLast rs2.MoveFirst 'add the table Set wrdTableWC = wrdDocTmp.Tables.Add(.Selection.Range, rs2.RecordCount + 3, 3) 'format the table and create headers SetUpTable wrdApp, wrdTableWC, "Workers' Compensation", "WC", rs2.RecordCount + 3 End If i = 3 Do While Not rs2.EOF With wrdTableWC .Cell(i, 1).Range.Text = Nz(rs2![WC Description], "") .Cell(i, 2).Range.Text = Nz(rs2![WC Code], "") .Cell(i, 3).Range.Text = "$" End With rs2.MoveNext i = i + 1 Loop rs2.Close End If 'set up the table by formatting cells and writing static text Private Sub SetUpTable(ByRef wrdApp As Object, ByRef wrdTable As Object, ByVal strTitle As String, _ ByVal strType As String, ByVal lLast As Long) Dim wrdRow As Object On Error GoTo Proc_Err With wrdTable .Borders.InsideLineStyle = 1 'wdLineStyleSingle .Borders.OutsideLineStyle = 7 'wdLineStyleDouble .Columns(1).Width = 250 .Columns(2).Width = 60 .Columns(3).Width = 200 End With '1st row set to caption Set wrdRow = wrdTable.Rows(1) wrdRow.cells.Merge wrdRow.Shading.Texture = 250 'wdTexture25Percent With wrdTable.Cell(1, 1).Range .Font.Size = 14 .Font.Bold = True .Paragraphs.Alignment = 1 'wdAlignRowCenter End With WriteCell3 wrdApp, wrdTable, 1, 1, strTitle, False With wrdTable .Cell(2, 1).Range.Paragraphs.Alignment = 0 'wdAlignRowLeft .Cell(2, 2).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(2, 3).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(lLast, 1).Range.Paragraphs.Alignment = 2 'wdAlignRowRight .Cell(lLast, 2).Range.Shading.BackgroundPatternColorIndex = 16 'wdGray25 End With WriteCell3 wrdApp, wrdTable, 2, 1, strType & " Classification Description", True WriteCell3 wrdApp, wrdTable, 2, 2, strType & " Code", True WriteCell3 wrdApp, wrdTable, 2, 3, "Actual Payroll", True WriteCell3 wrdApp, wrdTable, lLast, 1, "Total", True WriteCell3 wrdApp, wrdTable, lLast, 3, "$", False End sub 'write a cell in the table Private Sub WriteCell3(ByRef wrdApp As Object, ByRef wrdTable As Object, _ ByVal x As Long, ByVal y As Long, ByVal strData As String, ByRef bBold As Boolean) wrdTable.Cell(x, y).SELECT wrdApp.Selection.Font.Bold = bBold wrdApp.Selection.TypeText strData End Sub I hope this will come across to the list. Workers' Compensation WC Classification Description WC Code Actual Payroll Stone Install 1803 $ Tile Work 5348 $ Carpentry 5437 $ Carpet, Vinyl Install 5478 $ Executive Supervisors 5606 $ Total $ General Liablity GL Classification Description GL Code Actual Payroll Executive Supervisors 91580 $ Floor Covering Install 94569 $ Tile Install Interior 99746 $ Total $ From artful at rogers.com Thu Jul 21 13:41:58 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 21 Jul 2005 14:41:58 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED3E@ADGSERVER> Message-ID: <200507211842.j6LIg0R24629@databaseadvisors.com> Wow, that is a lot to think about, Bobby! But thank you for opening my eyes as to how to deal with this sort of problem. It may be a while before I am into it enough to offer suggestions for optimizing it, however. But thanks for the insights! Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: July 21, 2005 2:31 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Another word question... Me again, I am generating 1-2 tables per page on this report that I'm doing in word via automation. It takes, on average, 1.8 seconds to create one page. This is an average from 406 pages. In trying to make it faster, I have determined that the table code takes 66% of the time it takes to create a page. Note that the tables can have a variable number of items in it. I am including the relevant bits of code. I know it is a lot to look through so it's ok if you want to stop here. The one second saved still has the recordset stuff in it, so that is not the bottleneck. Anyone have any ideas as to how I may speed this up? I have included what a finished table looks like at the end of this email. Thanks, Bobby This is what I'm doing (for each table): If Not rs2.EOF Then rs2.MoveLast rs2.MoveFirst 'add the table Set wrdTableWC = wrdDocTmp.Tables.Add(.Selection.Range, rs2.RecordCount + 3, 3) 'format the table and create headers SetUpTable wrdApp, wrdTableWC, "Workers' Compensation", "WC", rs2.RecordCount + 3 End If i = 3 Do While Not rs2.EOF With wrdTableWC .Cell(i, 1).Range.Text = Nz(rs2![WC Description], "") .Cell(i, 2).Range.Text = Nz(rs2![WC Code], "") .Cell(i, 3).Range.Text = "$" End With rs2.MoveNext i = i + 1 Loop rs2.Close End If 'set up the table by formatting cells and writing static text Private Sub SetUpTable(ByRef wrdApp As Object, ByRef wrdTable As Object, ByVal strTitle As String, _ ByVal strType As String, ByVal lLast As Long) Dim wrdRow As Object On Error GoTo Proc_Err With wrdTable .Borders.InsideLineStyle = 1 'wdLineStyleSingle .Borders.OutsideLineStyle = 7 'wdLineStyleDouble .Columns(1).Width = 250 .Columns(2).Width = 60 .Columns(3).Width = 200 End With '1st row set to caption Set wrdRow = wrdTable.Rows(1) wrdRow.cells.Merge wrdRow.Shading.Texture = 250 'wdTexture25Percent With wrdTable.Cell(1, 1).Range .Font.Size = 14 .Font.Bold = True .Paragraphs.Alignment = 1 'wdAlignRowCenter End With WriteCell3 wrdApp, wrdTable, 1, 1, strTitle, False With wrdTable .Cell(2, 1).Range.Paragraphs.Alignment = 0 'wdAlignRowLeft .Cell(2, 2).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(2, 3).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(lLast, 1).Range.Paragraphs.Alignment = 2 'wdAlignRowRight .Cell(lLast, 2).Range.Shading.BackgroundPatternColorIndex = 16 'wdGray25 End With WriteCell3 wrdApp, wrdTable, 2, 1, strType & " Classification Description", True WriteCell3 wrdApp, wrdTable, 2, 2, strType & " Code", True WriteCell3 wrdApp, wrdTable, 2, 3, "Actual Payroll", True WriteCell3 wrdApp, wrdTable, lLast, 1, "Total", True WriteCell3 wrdApp, wrdTable, lLast, 3, "$", False End sub 'write a cell in the table Private Sub WriteCell3(ByRef wrdApp As Object, ByRef wrdTable As Object, _ ByVal x As Long, ByVal y As Long, ByVal strData As String, ByRef bBold As Boolean) wrdTable.Cell(x, y).SELECT wrdApp.Selection.Font.Bold = bBold wrdApp.Selection.TypeText strData End Sub I hope this will come across to the list. Workers' Compensation WC Classification Description WC Code Actual Payroll Stone Install 1803 $ Tile Work 5348 $ Carpentry 5437 $ Carpet, Vinyl Install 5478 $ Executive Supervisors 5606 $ Total $ General Liablity GL Classification Description GL Code Actual Payroll Executive Supervisors 91580 $ Floor Covering Install 94569 $ Tile Install Interior 99746 $ Total $ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Thu Jul 21 13:48:45 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 21 Jul 2005 14:48:45 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED3E@ADGSERVER> Message-ID: <200507211848.j6LImlR26073@databaseadvisors.com> There seems to be a dangling ENDIF, (after rs2.close) and I'm not sure where it's IF should go. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: July 21, 2005 2:31 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Another word question... Me again, I am generating 1-2 tables per page on this report that I'm doing in word via automation. It takes, on average, 1.8 seconds to create one page. This is an average from 406 pages. In trying to make it faster, I have determined that the table code takes 66% of the time it takes to create a page. Note that the tables can have a variable number of items in it. I am including the relevant bits of code. I know it is a lot to look through so it's ok if you want to stop here. The one second saved still has the recordset stuff in it, so that is not the bottleneck. Anyone have any ideas as to how I may speed this up? I have included what a finished table looks like at the end of this email. Thanks, Bobby This is what I'm doing (for each table): If Not rs2.EOF Then rs2.MoveLast rs2.MoveFirst 'add the table Set wrdTableWC = wrdDocTmp.Tables.Add(.Selection.Range, rs2.RecordCount + 3, 3) 'format the table and create headers SetUpTable wrdApp, wrdTableWC, "Workers' Compensation", "WC", rs2.RecordCount + 3 End If i = 3 Do While Not rs2.EOF With wrdTableWC .Cell(i, 1).Range.Text = Nz(rs2![WC Description], "") .Cell(i, 2).Range.Text = Nz(rs2![WC Code], "") .Cell(i, 3).Range.Text = "$" End With rs2.MoveNext i = i + 1 Loop rs2.Close End If 'set up the table by formatting cells and writing static text Private Sub SetUpTable(ByRef wrdApp As Object, ByRef wrdTable As Object, ByVal strTitle As String, _ ByVal strType As String, ByVal lLast As Long) Dim wrdRow As Object On Error GoTo Proc_Err With wrdTable .Borders.InsideLineStyle = 1 'wdLineStyleSingle .Borders.OutsideLineStyle = 7 'wdLineStyleDouble .Columns(1).Width = 250 .Columns(2).Width = 60 .Columns(3).Width = 200 End With '1st row set to caption Set wrdRow = wrdTable.Rows(1) wrdRow.cells.Merge wrdRow.Shading.Texture = 250 'wdTexture25Percent With wrdTable.Cell(1, 1).Range .Font.Size = 14 .Font.Bold = True .Paragraphs.Alignment = 1 'wdAlignRowCenter End With WriteCell3 wrdApp, wrdTable, 1, 1, strTitle, False With wrdTable .Cell(2, 1).Range.Paragraphs.Alignment = 0 'wdAlignRowLeft .Cell(2, 2).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(2, 3).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(lLast, 1).Range.Paragraphs.Alignment = 2 'wdAlignRowRight .Cell(lLast, 2).Range.Shading.BackgroundPatternColorIndex = 16 'wdGray25 End With WriteCell3 wrdApp, wrdTable, 2, 1, strType & " Classification Description", True WriteCell3 wrdApp, wrdTable, 2, 2, strType & " Code", True WriteCell3 wrdApp, wrdTable, 2, 3, "Actual Payroll", True WriteCell3 wrdApp, wrdTable, lLast, 1, "Total", True WriteCell3 wrdApp, wrdTable, lLast, 3, "$", False End sub 'write a cell in the table Private Sub WriteCell3(ByRef wrdApp As Object, ByRef wrdTable As Object, _ ByVal x As Long, ByVal y As Long, ByVal strData As String, ByRef bBold As Boolean) wrdTable.Cell(x, y).SELECT wrdApp.Selection.Font.Bold = bBold wrdApp.Selection.TypeText strData End Sub I hope this will come across to the list. Workers' Compensation WC Classification Description WC Code Actual Payroll Stone Install 1803 $ Tile Work 5348 $ Carpentry 5437 $ Carpet, Vinyl Install 5478 $ Executive Supervisors 5606 $ Total $ General Liablity GL Classification Description GL Code Actual Payroll Executive Supervisors 91580 $ Floor Covering Install 94569 $ Tile Install Interior 99746 $ Total $ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Jul 21 13:50:00 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 21 Jul 2005 14:50:00 -0400 Subject: [AccessD] VBExpress videos Message-ID: <000501c58e25$02a3a3a0$6c7aa8c0@ColbyM6805> In case you haven't found them, there is a beta available for VBExpress which is really just VB.Net light version, with its own IDE instead of being embedded in Visual Studio. The IDE looks and feels almost identical to the Visual Studio however. http://lab.msdn.microsoft.com/express/beginner/ Once you download and install the VBExpress notice the videos available. I discovered this guy a couple of years ago but he has now done (some) videos for this VBExpress and I am finding them very useful I think they would allow anyone who frequents this board to get up to speed pretty quickly, and I have to tell you, VBExpress.net is waaay cool. The videos will show you how to do stuff in the user interface (all that I have gotten to so far) that we can only dream of in VBA. Check it out - it looks very good to me. I am working through the video series right now. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From bheid at appdevgrp.com Thu Jul 21 13:52:35 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 21 Jul 2005 14:52:35 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C262F4@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED40@ADGSERVER> I see that it did not come across as RTF. If anyone is interested in seeing the rtf version, let me know and I'll send you a copy off-list. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, July 21, 2005 2:31 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Another word question... Me again, I am generating 1-2 tables per page on this report that I'm doing in word via automation. It takes, on average, 1.8 seconds to create one page. This is an average from 406 pages. In trying to make it faster, I have determined that the table code takes 66% of the time it takes to create a page. Note that the tables can have a variable number of items in it. I am including the relevant bits of code. I know it is a lot to look through so it's ok if you want to stop here. The one second saved still has the recordset stuff in it, so that is not the bottleneck. Anyone have any ideas as to how I may speed this up? I have included what a finished table looks like at the end of this email. Thanks, Bobby This is what I'm doing (for each table): If Not rs2.EOF Then rs2.MoveLast rs2.MoveFirst 'add the table Set wrdTableWC = wrdDocTmp.Tables.Add(.Selection.Range, rs2.RecordCount + 3, 3) 'format the table and create headers SetUpTable wrdApp, wrdTableWC, "Workers' Compensation", "WC", rs2.RecordCount + 3 End If i = 3 Do While Not rs2.EOF With wrdTableWC .Cell(i, 1).Range.Text = Nz(rs2![WC Description], "") .Cell(i, 2).Range.Text = Nz(rs2![WC Code], "") .Cell(i, 3).Range.Text = "$" End With rs2.MoveNext i = i + 1 Loop rs2.Close End If 'set up the table by formatting cells and writing static text Private Sub SetUpTable(ByRef wrdApp As Object, ByRef wrdTable As Object, ByVal strTitle As String, _ ByVal strType As String, ByVal lLast As Long) Dim wrdRow As Object On Error GoTo Proc_Err With wrdTable .Borders.InsideLineStyle = 1 'wdLineStyleSingle .Borders.OutsideLineStyle = 7 'wdLineStyleDouble .Columns(1).Width = 250 .Columns(2).Width = 60 .Columns(3).Width = 200 End With '1st row set to caption Set wrdRow = wrdTable.Rows(1) wrdRow.cells.Merge wrdRow.Shading.Texture = 250 'wdTexture25Percent With wrdTable.Cell(1, 1).Range .Font.Size = 14 .Font.Bold = True .Paragraphs.Alignment = 1 'wdAlignRowCenter End With WriteCell3 wrdApp, wrdTable, 1, 1, strTitle, False With wrdTable .Cell(2, 1).Range.Paragraphs.Alignment = 0 'wdAlignRowLeft .Cell(2, 2).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(2, 3).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(lLast, 1).Range.Paragraphs.Alignment = 2 'wdAlignRowRight .Cell(lLast, 2).Range.Shading.BackgroundPatternColorIndex = 16 'wdGray25 End With WriteCell3 wrdApp, wrdTable, 2, 1, strType & " Classification Description", True WriteCell3 wrdApp, wrdTable, 2, 2, strType & " Code", True WriteCell3 wrdApp, wrdTable, 2, 3, "Actual Payroll", True WriteCell3 wrdApp, wrdTable, lLast, 1, "Total", True WriteCell3 wrdApp, wrdTable, lLast, 3, "$", False End sub 'write a cell in the table Private Sub WriteCell3(ByRef wrdApp As Object, ByRef wrdTable As Object, _ ByVal x As Long, ByVal y As Long, ByVal strData As String, ByRef bBold As Boolean) wrdTable.Cell(x, y).SELECT wrdApp.Selection.Font.Bold = bBold wrdApp.Selection.TypeText strData End Sub I hope this will come across to the list. Workers' Compensation WC Classification Description WC Code Actual Payroll Stone Install 1803 $ Tile Work 5348 $ Carpentry 5437 $ Carpet, Vinyl Install 5478 $ Executive Supervisors 5606 $ Total $ General Liablity GL Classification Description GL Code Actual Payroll Executive Supervisors 91580 $ Floor Covering Install 94569 $ Tile Install Interior 99746 $ Total $ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Jul 21 14:01:17 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 21 Jul 2005 15:01:17 -0400 Subject: [AccessD] OT: MySQL experts Message-ID: <20050721190116.LVV7280.ibm65aec.bellsouth.net@SUSANONE> A local business is looking for a MySQL expert -- the work can probably be done virtually -- they need to convert a db to MySQL. Send me a resume privately at ssharkins at bellsouth.net and I'll forward it on to the contact. Thanks, Susan H. From bheid at appdevgrp.com Thu Jul 21 14:12:00 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 21 Jul 2005 15:12:00 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C26302@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED41@ADGSERVER> Sorry about that. That END IF is from an outside if. That first bit of code is just the relevant code concerning the table stuff. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, July 21, 2005 2:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Another word question... There seems to be a dangling ENDIF, (after rs2.close) and I'm not sure where it's IF should go. From pedro at plex.nl Thu Jul 21 15:28:54 2005 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 21 Jul 2005 22:28:54 +0200 Subject: [AccessD] show last value in listbox References: Message-ID: <002901c58e33$27d8c0c0$fac581d5@pedro> Hello, thanks to all who responded. With your help i must be no problem to solve this. Pedro Janssen ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, July 21, 2005 7:41 PM Subject: Re: [AccessD] show last value in listbox > Hi Pedro > > Your listbox may not have settled at the OnCurrent event of the form. > > Thus, create a textbox and set the controlsource to: > > =SetListboxLast() > > and create this function in the code module of the form: > > Private Function SetListboxLast() > > ' Set listbox lstDemo to the last entry. > > With Me!lstDemo > If IsNull(.Value) Then > .Value = .ItemData(.ListCount - 1) > End If > End With > > End Function > > Then, shortly after the form has opened, the listbox is set to its last > value. > This is for a single-select listbox. > > /gustav > > > >>> pedro at plex.nl 07/21 4:00 pm >>> > Hello Group, > > is it possible, when opening a listbox with a long list of values, it > opens always with the first value. Is it possible to open with the last > values. > > Pedro Janssen > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From artful at rogers.com Thu Jul 21 16:02:37 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 21 Jul 2005 17:02:37 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED41@ADGSERVER> Message-ID: <200507212102.j6LL2bR26204@databaseadvisors.com> Thanks for the clarification! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: July 21, 2005 3:12 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Another word question... Sorry about that. That END IF is from an outside if. That first bit of code is just the relevant code concerning the table stuff. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, July 21, 2005 2:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Another word question... There seems to be a dangling ENDIF, (after rs2.close) and I'm not sure where it's IF should go. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Jul 21 20:57:10 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 21 Jul 2005 21:57:10 -0400 Subject: [AccessD] VBExpress videos References: <000501c58e25$02a3a3a0$6c7aa8c0@ColbyM6805> Message-ID: JC ..how is this different than the VB.Net that comes with Visual Studio Tools? ...since MS compels me to pay for the standard version of VB.net in order to get the equivalent of the old ODE, why might I want to go the VBExpress route instead? ..and are the videos of use in the VB.net ide? William ----- Original Message ----- From: "John W. Colby" To: "VBA" ; "AccessD" Sent: Thursday, July 21, 2005 2:50 PM Subject: [AccessD] VBExpress videos > In case you haven't found them, there is a beta available for VBExpress > which is really just VB.Net light version, with its own IDE instead of > being > embedded in Visual Studio. The IDE looks and feels almost identical to > the > Visual Studio however. > > http://lab.msdn.microsoft.com/express/beginner/ > > Once you download and install the VBExpress notice the videos available. > I > discovered this guy a couple of years ago but he has now done (some) > videos > for this VBExpress and I am finding them very useful I think they would > allow anyone who frequents this board to get up to speed pretty quickly, > and > I have to tell you, VBExpress.net is waaay cool. The videos will show you > how to do stuff in the user interface (all that I have gotten to so far) > that we can only dream of in VBA. > > Check it out - it looks very good to me. I am working through the video > series right now. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Jul 21 21:11:59 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 21 Jul 2005 22:11:59 -0400 Subject: [AccessD] VBExpress videos In-Reply-To: Message-ID: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805> William, Apparently Express is a simplified version of the one that comes in the Visual Studio. As for the videos being useful, I think mostly yes. The videos are about how to manipulate the various windows, the controls, the forms etc. All that is pretty much just like the version in Visual Studio. My email was aimed at those lost souls (like myself) who either have never managed to really "get there" with Visual Studio, or never even purchased it because of the expense. VBExpress is free (for the beta which is very stable) and will be $50 when released at the end of the year. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, July 21, 2005 9:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos JC ..how is this different than the VB.Net that comes with Visual Studio Tools? ...since MS compels me to pay for the standard version of VB.net in order to get the equivalent of the old ODE, why might I want to go the VBExpress route instead? ..and are the videos of use in the VB.net ide? William ----- Original Message ----- From: "John W. Colby" To: "VBA" ; "AccessD" Sent: Thursday, July 21, 2005 2:50 PM Subject: [AccessD] VBExpress videos > In case you haven't found them, there is a beta available for > VBExpress which is really just VB.Net light version, with its own IDE > instead of being embedded in Visual Studio. The IDE looks and feels > almost identical to the > Visual Studio however. > > http://lab.msdn.microsoft.com/express/beginner/ > > Once you download and install the VBExpress notice the videos > available. > I > discovered this guy a couple of years ago but he has now done (some) > videos > for this VBExpress and I am finding them very useful I think they would > allow anyone who frequents this board to get up to speed pretty quickly, > and > I have to tell you, VBExpress.net is waaay cool. The videos will show you > how to do stuff in the user interface (all that I have gotten to so far) > that we can only dream of in VBA. > > Check it out - it looks very good to me. I am working through the > video series right now. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 dejpolsys at hotmail.com Fri Jul 22 01:08:54 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Fri, 22 Jul 2005 02:08:54 -0400 Subject: [AccessD] VBExpress videos References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805> Message-ID: ..thanks JC, I'll dl the videos and have a look then ...tap dancing around VB.net whenever I'm bored with everything else going on ...the VB name is similar but the ide keeps throwing me for a loop and nothing ports cleanly, at least for me ...but I admit to getting old :) ..as for the VS Tools, how does anyone that actually supports distributed Access based apps get by without it? ...that would mean clients having full Access installs and all the troubles that implies ...I'd rather starve first :( William ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 isharp.co.uk Fri Jul 22 03:34:56 2005 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Fri, 22 Jul 2005 09:34:56 +0100 Subject: [AccessD] VBExpress videos In-Reply-To: <000501c58e25$02a3a3a0$6c7aa8c0@ColbyM6805> Message-ID: Anyone know anymore downloads like this, I currently develop in Access97, 2000, XP, VB6, SQL Server 7.0/2000 and really want to start getting into .NET, What would be a good starting point to move into .NET. Thanks in advance for any suggestions etc Paul Hartland -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: 21 July 2005 19:50 To: VBA; AccessD Subject: [AccessD] VBExpress videos In case you haven't found them, there is a beta available for VBExpress which is really just VB.Net light version, with its own IDE instead of being embedded in Visual Studio. The IDE looks and feels almost identical to the Visual Studio however. http://lab.msdn.microsoft.com/express/beginner/ Once you download and install the VBExpress notice the videos available. I discovered this guy a couple of years ago but he has now done (some) videos for this VBExpress and I am finding them very useful I think they would allow anyone who frequents this board to get up to speed pretty quickly, and I have to tell you, VBExpress.net is waaay cool. The videos will show you how to do stuff in the user interface (all that I have gotten to so far) that we can only dream of in VBA. Check it out - it looks very good to me. I am working through the video series right now. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Jul 22 05:04:24 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 22 Jul 2005 12:04:24 +0200 Subject: [AccessD] Another word question... Message-ID: Hi Bobby One method is to avoid Selection and only deal with ranges. I've used that with Excel and guess you can do the same with Word. Another more radical method is to rebuild your function to generate the full RTF code and write that directly to a file. It may not be that difficult as you will not generate all the "fat" that Word normally adds to an RTF file. I've used that method for a client to generate the basic text for a catalogue and it runs at a speed you hardly believe, about 20ms per page. That's because all you do is to loop the recordset(s) while appending pure ASCII to a text file you keep open during the process. Look up in the archive "Writing raw RTF document using VBA - Solved" from 2004-01-02. /gustav >>> bheid at appdevgrp.com 07/21 8:31 pm >>> Me again, I am generating 1-2 tables per page on this report that I'm doing in word via automation. It takes, on average, 1.8 seconds to create one page. This is an average from 406 pages. In trying to make it faster, I have determined that the table code takes 66% of the time it takes to create a page. Note that the tables can have a variable number of items in it. From bheid at appdevgrp.com Fri Jul 22 07:34:05 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 22 Jul 2005 08:34:05 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C263C4@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED46@ADGSERVER> Thanks, I'll check that out. I did not think about using RTF. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 22, 2005 6:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Another word question... Hi Bobby One method is to avoid Selection and only deal with ranges. I've used that with Excel and guess you can do the same with Word. Another more radical method is to rebuild your function to generate the full RTF code and write that directly to a file. It may not be that difficult as you will not generate all the "fat" that Word normally adds to an RTF file. I've used that method for a client to generate the basic text for a catalogue and it runs at a speed you hardly believe, about 20ms per page. That's because all you do is to loop the recordset(s) while appending pure ASCII to a text file you keep open during the process. Look up in the archive "Writing raw RTF document using VBA - Solved" from 2004-01-02. /gustav >>> bheid at appdevgrp.com 07/21 8:31 pm >>> Me again, I am generating 1-2 tables per page on this report that I'm doing in word via automation. It takes, on average, 1.8 seconds to create one page. This is an average from 406 pages. In trying to make it faster, I have determined that the table code takes 66% of the time it takes to create a page. Note that the tables can have a variable number of items in it. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Jul 22 07:45:33 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 22 Jul 2005 08:45:33 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C263C4@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED47@ADGSERVER> Gustav, I just figured out that I can not do a full RTF document. The reason being that the user creates the word document with bookmarks. So I do not know the layout of the document. But, can I just figure out how to do the two tables in RTF and insert it into the word document? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 22, 2005 6:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Another word question... Hi Bobby One method is to avoid Selection and only deal with ranges. I've used that with Excel and guess you can do the same with Word. Another more radical method is to rebuild your function to generate the full RTF code and write that directly to a file. It may not be that difficult as you will not generate all the "fat" that Word normally adds to an RTF file. I've used that method for a client to generate the basic text for a catalogue and it runs at a speed you hardly believe, about 20ms per page. That's because all you do is to loop the recordset(s) while appending pure ASCII to a text file you keep open during the process. Look up in the archive "Writing raw RTF document using VBA - Solved" from 2004-01-02. /gustav From Gustav at cactus.dk Fri Jul 22 07:54:31 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 22 Jul 2005 14:54:31 +0200 Subject: [AccessD] Another word question... Message-ID: Hi Bobby I guess you could but I don't think that will do much. The time hog is the automation part (major) and the use of Selection (minor). /gustav >>> bheid at appdevgrp.com 07/22 2:45 pm >>> Gustav, I just figured out that I can not do a full RTF document. The reason being that the user creates the word document with bookmarks. So I do not know the layout of the document. But, can I just figure out how to do the two tables in RTF and insert it into the word document? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 22, 2005 6:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Another word question... Hi Bobby One method is to avoid Selection and only deal with ranges. I've used that with Excel and guess you can do the same with Word. Another more radical method is to rebuild your function to generate the full RTF code and write that directly to a file. It may not be that difficult as you will not generate all the "fat" that Word normally adds to an RTF file. I've used that method for a client to generate the basic text for a catalogue and it runs at a speed you hardly believe, about 20ms per page. That's because all you do is to loop the recordset(s) while appending pure ASCII to a text file you keep open during the process. Look up in the archive "Writing raw RTF document using VBA - Solved" from 2004-01-02. /gustav From bchacc at san.rr.com Fri Jul 22 10:28:34 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 22 Jul 2005 08:28:34 -0700 Subject: [AccessD] Getting rid of the Access Background References: Message-ID: <00e601c58ed2$05e7c980$6a01a8c0@HAL9004> Gustav: DO you know if a form is not pop-up will it disappear with the Access window? Seemed to on my first experiment with this. Thanks and regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Sunday, July 17, 2005 3:28 AM Subject: Re: [AccessD] Getting rid of the Access Background > Hi Rocky > > I've had better luck with the code from Drew - that from Dev always > complained that either a form was missing or was too much - quite > confusing. > Drew's code doesn't have those limitations and works nicely. > I modified it slightly: > > Option Compare Database > Option Explicit > > Const SW_HIDE As Long = 0 > Const SW_SHOWNORMAL As Long = 1 > Const SW_SHOWMINIMIZED As Long = 2 > Const SW_SHOWMAXIMIZED As Long = 3 > > Private Declare Function IsWindowVisible Lib "user32" ( _ > ByVal hwnd As Long) _ > As Long > > Private Declare Function ShowWindow Lib "user32" ( _ > ByVal hwnd As Long, _ > ByVal nCmdShow As Long) _ > As Long > > Public Function fAccessWindow( _ > Optional Procedure As String, _ > Optional SwitchStatus As Boolean, _ > Optional StatusCheck As Boolean) _ > As Boolean > > Dim lngState As Long > Dim lngReturn As Long > Dim booVisible As Boolean > > MsgBox Application.hWndAccessApp > > If SwitchStatus = False Then > Select Case Procedure > Case "Hide" > lngState = SW_HIDE > Case "Show", "Normal" > lngState = SW_SHOWNORMAL > Case "Minimize" > lngState = SW_SHOWMINIMIZED > Case "Maximize" > lngState = SW_SHOWMAXIMIZED > Case Else > lngState = -1 > End Select > Else > If IsWindowVisible(hWndAccessApp) = 1 Then > lngState = SW_HIDE > Else > lngState = SW_SHOWNORMAL > End If > End If > > If lngState >= 0 Then > lngReturn = ShowWindow(Application.hWndAccessApp, lngState) > End If > > If StatusCheck = True Then > If IsWindowVisible(hWndAccessApp) = 1 Then > booVisible = True > End If > End If > > fAccessWindow = booVisible > > End Function > > Have in mind that reports cannot be previewed with the MDI hidden. > > /gustav > >>>> bchacc at san.rr.com 07/17 1:45 am >>> > Dear List: > > I have an app which is an mde and I'd like the forms to appear without > the standard access background frame. Sort of float over the desktop as > it were. The forms have no max, min, and close buttons and no menu or > tool bars and border style of dialog. Any way to do this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Jul 22 10:32:55 2005 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 22 Jul 2005 10:32:55 -0500 Subject: [AccessD] Getting rid of the Access Background Message-ID: <123701F54509D9119A4F00D0B747349016DA84@main2.marlow.com> Yes, because if it's not a pop-up form, then it will be 'underneath' the Access window, so it wouldn't be seen. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, July 22, 2005 10:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting rid of the Access Background Gustav: DO you know if a form is not pop-up will it disappear with the Access window? Seemed to on my first experiment with this. Thanks and regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Sunday, July 17, 2005 3:28 AM Subject: Re: [AccessD] Getting rid of the Access Background > Hi Rocky > > I've had better luck with the code from Drew - that from Dev always > complained that either a form was missing or was too much - quite > confusing. > Drew's code doesn't have those limitations and works nicely. > I modified it slightly: > > Option Compare Database > Option Explicit > > Const SW_HIDE As Long = 0 > Const SW_SHOWNORMAL As Long = 1 > Const SW_SHOWMINIMIZED As Long = 2 > Const SW_SHOWMAXIMIZED As Long = 3 > > Private Declare Function IsWindowVisible Lib "user32" ( _ > ByVal hwnd As Long) _ > As Long > > Private Declare Function ShowWindow Lib "user32" ( _ > ByVal hwnd As Long, _ > ByVal nCmdShow As Long) _ > As Long > > Public Function fAccessWindow( _ > Optional Procedure As String, _ > Optional SwitchStatus As Boolean, _ > Optional StatusCheck As Boolean) _ > As Boolean > > Dim lngState As Long > Dim lngReturn As Long > Dim booVisible As Boolean > > MsgBox Application.hWndAccessApp > > If SwitchStatus = False Then > Select Case Procedure > Case "Hide" > lngState = SW_HIDE > Case "Show", "Normal" > lngState = SW_SHOWNORMAL > Case "Minimize" > lngState = SW_SHOWMINIMIZED > Case "Maximize" > lngState = SW_SHOWMAXIMIZED > Case Else > lngState = -1 > End Select > Else > If IsWindowVisible(hWndAccessApp) = 1 Then > lngState = SW_HIDE > Else > lngState = SW_SHOWNORMAL > End If > End If > > If lngState >= 0 Then > lngReturn = ShowWindow(Application.hWndAccessApp, lngState) > End If > > If StatusCheck = True Then > If IsWindowVisible(hWndAccessApp) = 1 Then > booVisible = True > End If > End If > > fAccessWindow = booVisible > > End Function > > Have in mind that reports cannot be previewed with the MDI hidden. > > /gustav > >>>> bchacc at san.rr.com 07/17 1:45 am >>> > Dear List: > > I have an app which is an mde and I'd like the forms to appear without > the standard access background frame. Sort of float over the desktop as > it were. The forms have no max, min, and close buttons and no menu or > tool bars and border style of dialog. Any way to do this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Fri Jul 22 10:38:16 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 22 Jul 2005 08:38:16 -0700 Subject: [AccessD] VBExpress videos Message-ID: VS Tools comes with a standard version of VB.Net. VBExpress is supposed to be the answer to the cry, "why can't you make it easier for non-developers to use?" To me that is utter nonsense, since no one but a developer can make effective use of it anyhow! All the tools that were in the previous developers editions of Office (or the ADT for an earlier version of Access) are in VS Tools now, including the packaging wizard and the Access runtime. If you are developing Access 2003 apps and want to distribute the runtime, you need VS Tools, not VBExpress. Charlotte Foust -----Original Message----- From: William Hindman [mailto:dejpolsys at hotmail.com] Sent: Thursday, July 21, 2005 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos ..thanks JC, I'll dl the videos and have a look then ...tap dancing around VB.net whenever I'm bored with everything else going on ...the VB name is similar but the ide keeps throwing me for a loop and nothing ports cleanly, at least for me ...but I admit to getting old :) ..as for the VS Tools, how does anyone that actually supports distributed Access based apps get by without it? ...that would mean clients having full Access installs and all the troubles that implies ...I'd rather starve first :( William ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in > the Visual Studio. As for the videos being useful, I think mostly > yes. The videos are about how to manipulate the various windows, the > controls, the forms etc. All that is pretty much just like the > version in Visual Studio. > > My email was aimed at those lost souls (like myself) who either have > never managed to really "get there" with Visual Studio, or never even > purchased it because of the expense. VBExpress is free (for the beta > which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of > VB.net in order to get the equivalent of the old ODE, why might I want > to go the VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Fri Jul 22 10:39:05 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 22 Jul 2005 11:39:05 -0400 Subject: [AccessD] VBExpress videos In-Reply-To: Message-ID: <200507221539.j6MFd8R16637@databaseadvisors.com> William (and any others interested)... If your box can support a pair of monitors I strongly suggest that you go that way. Then you can really begin to enjoy the UI of .NET, because you can drag all the toolbars etc. to the second monitor and have a nice clean surface to work on. This changes everything! (Incidentally, the same applies to Dreamweaver MX.) Once you go to using two monitors, it is very difficult to go back. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: July 22, 2005 2:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos ..thanks JC, I'll dl the videos and have a look then ...tap dancing around VB.net whenever I'm bored with everything else going on ...the VB name is similar but the ide keeps throwing me for a loop and nothing ports cleanly, at least for me ...but I admit to getting old :) From cfoust at infostatsystems.com Fri Jul 22 10:47:48 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 22 Jul 2005 08:47:48 -0700 Subject: [AccessD] VBExpress videos Message-ID: I use two and put the solution explorer, properties window, etc. on the second. A couple of other developer stretch the interface across the two monitors, which drives me nuts when I try to find anything on their screen! I admit that it is handy for VS.Net, but I think dual monitors are useless for any other purpose except testing. Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, July 22, 2005 8:39 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] VBExpress videos William (and any others interested)... If your box can support a pair of monitors I strongly suggest that you go that way. Then you can really begin to enjoy the UI of .NET, because you can drag all the toolbars etc. to the second monitor and have a nice clean surface to work on. This changes everything! (Incidentally, the same applies to Dreamweaver MX.) Once you go to using two monitors, it is very difficult to go back. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: July 22, 2005 2:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos ..thanks JC, I'll dl the videos and have a look then ...tap dancing around VB.net whenever I'm bored with everything else going on ...the VB name is similar but the ide keeps throwing me for a loop and nothing ports cleanly, at least for me ...but I admit to getting old :) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Jul 22 11:04:11 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 22 Jul 2005 12:04:11 -0400 Subject: [AccessD] VBExpress videos In-Reply-To: Message-ID: <001f01c58ed7$000b4aa0$6c7aa8c0@ColbyM6805> >VBExpress is supposed to be the answer to the cry, "why can't you make it easier for non-developers to use?" To me that is utter nonsense, since no one but a developer can make effective use of it anyhow! LOL, I agree. What it does is lower the cost threshold for getting in to .net. .NET no matter how you slice it, is a huge, complex, very powerful object model with massive ability and massive learning curve. As a learning tool I am trying to move a simple 3 class set of data objects to .net and it has taken all of yesterday and all of today to get just to the point where I can start testing it. I fully expect another couple of days just to get them functioning. And this for three simple classes that already worked using ado in VBA. Of course I am pretty much starting from ground zero in terms of .net knowledge. I have studied the books intermittently over the last year but never really kept at it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, July 22, 2005 11:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] VBExpress videos VS Tools comes with a standard version of VB.Net. VBExpress is supposed to be the answer to the cry, "why can't you make it easier for non-developers to use?" To me that is utter nonsense, since no one but a developer can make effective use of it anyhow! All the tools that were in the previous developers editions of Office (or the ADT for an earlier version of Access) are in VS Tools now, including the packaging wizard and the Access runtime. If you are developing Access 2003 apps and want to distribute the runtime, you need VS Tools, not VBExpress. Charlotte Foust -----Original Message----- From: William Hindman [mailto:dejpolsys at hotmail.com] Sent: Thursday, July 21, 2005 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos ..thanks JC, I'll dl the videos and have a look then ...tap dancing around VB.net whenever I'm bored with everything else going on ...the VB name is similar but the ide keeps throwing me for a loop and nothing ports cleanly, at least for me ...but I admit to getting old :) ..as for the VS Tools, how does anyone that actually supports distributed Access based apps get by without it? ...that would mean clients having full Access installs and all the troubles that implies ...I'd rather starve first :( William ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in > the Visual Studio. As for the videos being useful, I think mostly > yes. The videos are about how to manipulate the various windows, the > controls, the forms etc. All that is pretty much just like the > version in Visual Studio. > > My email was aimed at those lost souls (like myself) who either have > never managed to really "get there" with Visual Studio, or never even > purchased it because of the expense. VBExpress is free (for the beta > which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of > VB.net in order to get the equivalent of the old ODE, why might I want > to go the VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 darsant at gmail.com Fri Jul 22 11:11:16 2005 From: darsant at gmail.com (Josh McFarlane) Date: Fri, 22 Jul 2005 11:11:16 -0500 Subject: [AccessD] VBExpress videos In-Reply-To: References: Message-ID: <53c8e05a0507220911139d4425@mail.gmail.com> On 7/22/05, Charlotte Foust wrote: > I use two and put the solution explorer, properties window, etc. on the > second. A couple of other developer stretch the interface across the > two monitors, which drives me nuts when I try to find anything on their > screen! I admit that it is handy for VS.Net, but I think dual monitors > are useless for any other purpose except testing. > > Charlotte Foust I hate that fact that there's no easy way to make it span two monitors without disjoining them. On Access, I leave the VB window up on one monitor and the form view on another. Helps with keeping the code tied to reality sometimes. In VS.Net, for a single application it's pointless for me to develop in two monitors (granted, I can make the code window bigger by dragging the solution explorer, etc to the other window, but nothing increased productivity wise. Now, when I'm looking code up online to help debug our programs, the 2nd monitor's extra space keeps from Alt-tabbing. For a developer, 2nd monitors make things simpler if you're using good programs. Maybe 2005 will allow us better dual monitor support. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From artful at rogers.com Fri Jul 22 11:13:13 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 22 Jul 2005 12:13:13 -0400 Subject: [AccessD] VBExpress videos In-Reply-To: Message-ID: <200507221613.j6MGDGR25152@databaseadvisors.com> Well, we certainly disagree on your last comment, Charlotte! I absolutely LOVE having various programs open on each monitor, for example Outlook on one, Word on the other, and so on. When debugging etc. it is even better! Nothing like putting the Access code window on one monitor and the running application on the other! Once you do that, there's no turning back! IMO. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: July 22, 2005 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] VBExpress videos I use two and put the solution explorer, properties window, etc. on the second. A couple of other developer stretch the interface across the two monitors, which drives me nuts when I try to find anything on their screen! I admit that it is handy for VS.Net, but I think dual monitors are useless for any other purpose except testing. Charlotte Foust From artful at rogers.com Fri Jul 22 11:25:20 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 22 Jul 2005 12:25:20 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED47@ADGSERVER> Message-ID: <200507221625.j6MGPMR28078@databaseadvisors.com> After looking through your code and playing a bit with it, I'm wondering whether I can work backwards, sort of. Assume that my template contains a table with a header row and one blank row, already formatted to the size and font etc. that I want in the populated result. Would I need to specify these when adding rows, or is that already done, given the existence of the table header and blank row? Failing that, can I deduce the column widths etc. from the existing header and blank row? What's the best way to go about this? Start with a 1-row table (plus header), or manufacture the whole table as you apparently do? It's possible, in the document I need to create, that one of the tables will contain zero rows (it would always be Table Two). This occurs rarely but I need to be able to deal with it. Assuming (as now) that the table exists in the template file, how would I hide it in the event that it contains zero rows of data? Thanks! Arthur From cfoust at infostatsystems.com Fri Jul 22 11:26:12 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 22 Jul 2005 09:26:12 -0700 Subject: [AccessD] VBExpress videos Message-ID: I don't like having a bunch of programs open at once unless I'm working directly with all of them, as in programming their interaction. Everything that isn't being worked in can just stay in the taskbar as far as I'm concerned. Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, July 22, 2005 9:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] VBExpress videos Well, we certainly disagree on your last comment, Charlotte! I absolutely LOVE having various programs open on each monitor, for example Outlook on one, Word on the other, and so on. When debugging etc. it is even better! Nothing like putting the Access code window on one monitor and the running application on the other! Once you do that, there's no turning back! IMO. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: July 22, 2005 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] VBExpress videos I use two and put the solution explorer, properties window, etc. on the second. A couple of other developer stretch the interface across the two monitors, which drives me nuts when I try to find anything on their screen! I admit that it is handy for VS.Net, but I think dual monitors are useless for any other purpose except testing. Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kevinb at bepc.com Fri Jul 22 11:46:28 2005 From: kevinb at bepc.com (Kevin Bachmeier) Date: Fri, 22 Jul 2005 11:46:28 -0500 Subject: [AccessD] Log file from corruption during Application.CompactRepair. Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713401CDA7B0@HDQ06.bepc.net> I have read the documentation on the Application.CompactRepair method, (below is snippet of that docu). If the compact and repair encounters corruption during the process a log file created. I understand where it will be placed (destination directory), but does anyone know what the name of the log file will be? I'd like to attach it in an email message. Does anyone know how to force corruption during an CompactRepair? (databasename.LOG)?? Thanks in advance. Kevin DOCU SNIPPET FROM MSDN: LogFile Optional Boolean. True if a log file is created in the destination directory to record any corruption detected in the source file. A log file is only created if corruption is detected in the source file. If LogFile is False or omitted, no log file is created, even if corruption is detected in the source file. From dwaters at usinternet.com Fri Jul 22 11:59:26 2005 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 22 Jul 2005 11:59:26 -0500 Subject: [AccessD] Micrometer or Caliper Data Direct to Access In-Reply-To: <28043420.1121962133967.JavaMail.root@sniper18> Message-ID: <000001c58ede$b9bf19c0$0200a8c0@danwaters> Thanks Marty! This looks like a great start. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, July 21, 2005 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Micrometer or Caliper Data Direct to Access http://www.taltech.com I have used these products a couple of years ago. Might be a tad expensive, as you can write your own code via mscomm.ocx, which I think is installed or licensed from VB6 . However you may have problems writing code to handle sampling stream rates and line drops and all the possible error conditions that this software covers. If your requirements are really simple you might just get away with using mscomm. Lots of net examples. Input RS232 data directly into Excel, Access, or any Windows application. WinWedge provides real-time data collection from any serial device or instrument. TCP-Wedge software provides data collection from any TCP/IP network. Send and receive RS232 data across a TCP/IP port with TCP/Com serial to TCP/IP converter software. In other words just drop your instrument on the net. Lots of useful test software here like code for a breakout box, there are articles on the site explaining methods. However it appears they dumped one useful example in VB, it was too good. http://www.taltech.com/freesoftware/fs_sw.htm This site also may have good software suggestions and methods National Instruments. http://www.ni.com Dan Waters wrote: >Hello all! > > > >Many hand measuring instruments have an electronic component that is used to >send measurement data to a PC, given the right software. The way this works >is to measure an item, then push a button on the instrument to send the >measurement info to a PC. > > > >I'd like to find out if anyone has experience working with these instruments >and collecting the data in an Access database, and could steer in good >directions and away from poor ones! > > > >Thanks! > >Dan Waters > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Jul 22 12:58:12 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 22 Jul 2005 13:58:12 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C264A3@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED4C@ADGSERVER> Well, in my particular case, the table variable may not be there. In that case, the users do not want a table to show. I initially started out with a predefined table. But from what I read, it is very slow to add rows to an existing table. When I create the table, I have an object variable pointing at the table. SO maybe you could identify the table in code and delete it if you did not want it? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, July 22, 2005 12:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Another word question... After looking through your code and playing a bit with it, I'm wondering whether I can work backwards, sort of. Assume that my template contains a table with a header row and one blank row, already formatted to the size and font etc. that I want in the populated result. Would I need to specify these when adding rows, or is that already done, given the existence of the table header and blank row? Failing that, can I deduce the column widths etc. from the existing header and blank row? What's the best way to go about this? Start with a 1-row table (plus header), or manufacture the whole table as you apparently do? It's possible, in the document I need to create, that one of the tables will contain zero rows (it would always be Table Two). This occurs rarely but I need to be able to deal with it. Assuming (as now) that the table exists in the template file, how would I hide it in the event that it contains zero rows of data? Thanks! Arthur From jmhecht at earthlink.net Sat Jul 23 20:10:07 2005 From: jmhecht at earthlink.net (Joe Hecht) Date: Sat, 23 Jul 2005 18:10:07 -0700 Subject: [AccessD] Access SQL Message-ID: <000601c58fec$6faa9030$6401a8c0@laptop1> What kind of SQL does Access use? Is it T- SQL ? Joe Hecht Los Angeles CA From stuart at lexacorp.com.pg Sat Jul 23 21:32:22 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 24 Jul 2005 12:32:22 +1000 Subject: [AccessD] Access SQL In-Reply-To: <000601c58fec$6faa9030$6401a8c0@laptop1> Message-ID: <42E38A56.31204.31A380C9@stuart.lexacorp.com.pg> On 23 Jul 2005 at 18:10, Joe Hecht wrote: > What kind of SQL does Access use? > > Is it T- SQL ? > No, it's Access SQL. It's similar to T-SQL in that the basic commands INSERT, SELECT, DELETE, UPDATE, JOIN, WHERE, GROUPBY etc) and syntax are the same. The main differences are that is uses standard Access/Windows wildcards rather than the T-SQL ones ("*" = "%" and "?" = "_") and it uses VBA functions in lieu of the T-SQL ones for type convertions, string manipulation, conditionals (such as IIF()) etc. -- Stuart From ssharkins at bellsouth.net Sat Jul 23 21:36:22 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 23 Jul 2005 22:36:22 -0400 Subject: [AccessD] Access SQL In-Reply-To: <000601c58fec$6faa9030$6401a8c0@laptop1> Message-ID: <20050724023619.WKQA7280.ibm65aec.bellsouth.net@SUSANONE> Jet SQL. SQL Server uses Transact-SQL (T-SQL). Jet's a critter all its own but they are similar. Susan H. What kind of SQL does Access use? Is it T- SQL ? From martyconnelly at shaw.ca Sun Jul 24 02:21:50 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 24 Jul 2005 00:21:50 -0700 Subject: [AccessD] Micrometer or Caliper Data Direct to Access References: <000001c58ede$b9bf19c0$0200a8c0@danwaters> Message-ID: <42E3418E.8060105@shaw.ca> I came across another oldie that uses mscomm32.ocx (that comes with VB6 but there seems to be a version with WinXP too) or it go installed on my machine somehow. Written in Access 97 around 1999 It mostly plays around with the modem but what the heck that is hung on a serial comm port too. From Neal Kling look under downloads menu. http://www.geocities.com/nealakling/ Dan Waters wrote: >Thanks Marty! > >This looks like a great start. > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, July 21, 2005 11:05 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Micrometer or Caliper Data Direct to Access > >http://www.taltech.com >I have used these products a couple of years ago. Might be a tad >expensive, as you can write your own >code via mscomm.ocx, which I think is installed or licensed from VB6 . >However you may have problems >writing code to handle sampling stream rates and line drops and all the >possible error conditions that this software covers. >If your requirements are really simple you might just get away with >using mscomm. Lots of net examples. > >Input RS232 data directly into Excel, Access, or any Windows >application. WinWedge provides real-time data collection from any serial >device or instrument. TCP-Wedge software provides data collection from >any TCP/IP network. Send and receive RS232 data across a TCP/IP port >with TCP/Com serial to TCP/IP converter software. In other words just >drop your instrument on the net. > >Lots of useful test software here like code for a breakout box, there >are articles on the site explaining methods. >However it appears they dumped one useful example in VB, it was too good. >http://www.taltech.com/freesoftware/fs_sw.htm > >This site also may have good software suggestions and methods >National Instruments. >http://www.ni.com > >Dan Waters wrote: > > > >>Hello all! >> >> >> >>Many hand measuring instruments have an electronic component that is used >> >> >to > > >>send measurement data to a PC, given the right software. The way this >> >> >works > > >>is to measure an item, then push a button on the instrument to send the >>measurement info to a PC. >> >> >> >>I'd like to find out if anyone has experience working with these >> >> >instruments > > >>and collecting the data in an Access database, and could steer in good >>directions and away from poor ones! >> >> >> >>Thanks! >> >>Dan Waters >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Sun Jul 24 08:55:25 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 24 Jul 2005 09:55:25 -0400 Subject: [AccessD] Connection strings for ado Message-ID: <000f01c59057$5abb3560$6c7aa8c0@ColbyM6805> I found this: http://www.connectionstrings.com/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From karenr7 at oz.net Sun Jul 24 17:58:54 2005 From: karenr7 at oz.net (Karen Rosenstiel) Date: Sun, 24 Jul 2005 15:58:54 -0700 Subject: [AccessD] Help with a snippet Message-ID: <200507242258.j6OMwrR18615@databaseadvisors.com> I was wondering if someone would be willing to help me with a snippet of code. I want to work with 4 fields in a sub table, as follows: Checkbox "NotSeen" Date field "NextApp" Textbox "Priority", which runs from 1 to 4 Date field "DateReschedule" What I would like to do (if only I was any good at VBA) is when NotSeen is checked, the whole record would be copied and appended. Priorities 2 thru 4 would each move up a notch, i.e., 2 would become 1, etc. DateReschedule would take the date from NextApp and... 1. For the new priority 1, add 1 day to the date from NextApp and put it in DateReschedule 2. For the new priority 2, add 2 days to the date from NextApp and put it in DateReschedule 3. For the new priority 3, add 3 days to the date from NextApp and put it in DateReschedule Finally I would like the whole record to turn red if the priority is # 1, either from this snippet's conversion or when entered directly (actually I think this will be unattractive, but my boss wants the color to highlight the priority). Is this doable in whole or in part? Thanks in advance. Regards, Karen Rosenstiel Seattle WA USA From KP at sdsonline.net Sun Jul 24 18:58:14 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Mon, 25 Jul 2005 09:58:14 +1000 Subject: [AccessD] VBExpress videos References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805> Message-ID: <002901c590ab$8fe53de0$6601a8c0@user> < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 jmhecht at earthlink.net Sun Jul 24 20:26:58 2005 From: jmhecht at earthlink.net (Joe Hecht) Date: Sun, 24 Jul 2005 18:26:58 -0700 Subject: [AccessD] Jet 4 SP 8 Message-ID: <004801c590b7$f3c7ce20$6401a8c0@laptop1> I am reading an article online about Access security and it is talking about sandbox mode. To get there you need to be using Jet 4 SP 8. I am running AXP on one machine and A2k3 on the other. How do I check Jet Version and SP release. Here is the article link. http://office.microsoft.com/training/training.aspx?AssetID=RC011461801033 Joe Hecht Los Angeles CA From D.Dick at uws.edu.au Sun Jul 24 22:12:06 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Mon, 25 Jul 2005 13:12:06 +1000 Subject: [AccessD] Help with a snippet Message-ID: <2FDE83AF1A69C84796CBD13788DDA88364E04A@BONHAM.AD.UWS.EDU.AU> Hi Karen Am I to assume if the NOTSEEN check box is checked you would like to create a brand new 'appointment' ? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 8:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help with a snippet I was wondering if someone would be willing to help me with a snippet of code. I want to work with 4 fields in a sub table, as follows: Checkbox "NotSeen" Date field "NextApp" Textbox "Priority", which runs from 1 to 4 Date field "DateReschedule" What I would like to do (if only I was any good at VBA) is when NotSeen is checked, the whole record would be copied and appended. Priorities 2 thru 4 would each move up a notch, i.e., 2 would become 1, etc. DateReschedule would take the date from NextApp and... 1. For the new priority 1, add 1 day to the date from NextApp and put it in DateReschedule 2. For the new priority 2, add 2 days to the date from NextApp and put it in DateReschedule 3. For the new priority 3, add 3 days to the date from NextApp and put it in DateReschedule Finally I would like the whole record to turn red if the priority is # 1, either from this snippet's conversion or when entered directly (actually I think this will be unattractive, but my boss wants the color to highlight the priority). Is this doable in whole or in part? Thanks in advance. Regards, Karen Rosenstiel Seattle WA USA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Sun Jul 24 22:15:51 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Sun, 24 Jul 2005 23:15:51 -0400 Subject: [AccessD] VBExpress videos References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805> <002901c590ab$8fe53de0$6601a8c0@user> Message-ID: ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 karenr7 at oz.net Sun Jul 24 22:32:28 2005 From: karenr7 at oz.net (Karen Rosenstiel) Date: Sun, 24 Jul 2005 20:32:28 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <2FDE83AF1A69C84796CBD13788DDA88364E04A@BONHAM.AD.UWS.EDU.AU> Message-ID: <200507250332.j6P3WOR15243@databaseadvisors.com> Exactly. I was just noodling around with this and figured out how to copy and append the record with onclick: DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend But I don't know how to do the rest of it. Thanks. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 8:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Am I to assume if the NOTSEEN check box is checked you would like to create a brand new 'appointment' ? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 8:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help with a snippet I was wondering if someone would be willing to help me with a snippet of code. I want to work with 4 fields in a sub table, as follows: Checkbox "NotSeen" Date field "NextApp" Textbox "Priority", which runs from 1 to 4 Date field "DateReschedule" What I would like to do (if only I was any good at VBA) is when NotSeen is checked, the whole record would be copied and appended. Priorities 2 thru 4 would each move up a notch, i.e., 2 would become 1, etc. DateReschedule would take the date from NextApp and... 1. For the new priority 1, add 1 day to the date from NextApp and put it in DateReschedule 2. For the new priority 2, add 2 days to the date from NextApp and put it in DateReschedule 3. For the new priority 3, add 3 days to the date from NextApp and put it in DateReschedule Finally I would like the whole record to turn red if the priority is # 1, either from this snippet's conversion or when entered directly (actually I think this will be unattractive, but my boss wants the color to highlight the priority). Is this doable in whole or in part? Thanks in advance. Regards, Karen Rosenstiel Seattle WA USA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 karenr7 at oz.net Sun Jul 24 22:40:14 2005 From: karenr7 at oz.net (Karen Rosenstiel) Date: Sun, 24 Jul 2005 20:40:14 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <200507250332.j6P3WOR15243@databaseadvisors.com> Message-ID: <200507250340.j6P3eAR17415@databaseadvisors.com> Hmmmm... I just played with this bit of code again and realized that it was duplicating the record with NotSeen checked, which duplicated the record with NotSeen checked which.... Like the picture of the little girl with a box or salt on the Morton Salt box. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Sunday, July 24, 2005 8:32 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Exactly. I was just noodling around with this and figured out how to copy and append the record with onclick: DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend But I don't know how to do the rest of it. Thanks. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 8:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Am I to assume if the NOTSEEN check box is checked you would like to create a brand new 'appointment' ? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 8:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help with a snippet I was wondering if someone would be willing to help me with a snippet of code. I want to work with 4 fields in a sub table, as follows: Checkbox "NotSeen" Date field "NextApp" Textbox "Priority", which runs from 1 to 4 Date field "DateReschedule" What I would like to do (if only I was any good at VBA) is when NotSeen is checked, the whole record would be copied and appended. Priorities 2 thru 4 would each move up a notch, i.e., 2 would become 1, etc. DateReschedule would take the date from NextApp and... 1. For the new priority 1, add 1 day to the date from NextApp and put it in DateReschedule 2. For the new priority 2, add 2 days to the date from NextApp and put it in DateReschedule 3. For the new priority 3, add 3 days to the date from NextApp and put it in DateReschedule Finally I would like the whole record to turn red if the priority is # 1, either from this snippet's conversion or when entered directly (actually I think this will be unattractive, but my boss wants the color to highlight the priority). Is this doable in whole or in part? Thanks in advance. Regards, Karen Rosenstiel Seattle WA USA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 D.Dick at uws.edu.au Sun Jul 24 23:34:28 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Mon, 25 Jul 2005 14:34:28 +1000 Subject: [AccessD] Help with a snippet Message-ID: <2FDE83AF1A69C84796CBD13788DDA88364E13B@BONHAM.AD.UWS.EDU.AU> Hi Karen Demo Sent off line See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 1:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Hmmmm... I just played with this bit of code again and realized that it was duplicating the record with NotSeen checked, which duplicated the record with NotSeen checked which.... Like the picture of the little girl with a box or salt on the Morton Salt box. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Sunday, July 24, 2005 8:32 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Exactly. I was just noodling around with this and figured out how to copy and append the record with onclick: DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend But I don't know how to do the rest of it. Thanks. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 8:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Am I to assume if the NOTSEEN check box is checked you would like to create a brand new 'appointment' ? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 8:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help with a snippet I was wondering if someone would be willing to help me with a snippet of code. I want to work with 4 fields in a sub table, as follows: Checkbox "NotSeen" Date field "NextApp" Textbox "Priority", which runs from 1 to 4 Date field "DateReschedule" What I would like to do (if only I was any good at VBA) is when NotSeen is checked, the whole record would be copied and appended. Priorities 2 thru 4 would each move up a notch, i.e., 2 would become 1, etc. DateReschedule would take the date from NextApp and... 1. For the new priority 1, add 1 day to the date from NextApp and put it in DateReschedule 2. For the new priority 2, add 2 days to the date from NextApp and put it in DateReschedule 3. For the new priority 3, add 3 days to the date from NextApp and put it in DateReschedule Finally I would like the whole record to turn red if the priority is # 1, either from this snippet's conversion or when entered directly (actually I think this will be unattractive, but my boss wants the color to highlight the priority). Is this doable in whole or in part? Thanks in advance. Regards, Karen Rosenstiel Seattle WA USA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 martyconnelly at shaw.ca Mon Jul 25 01:47:54 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 24 Jul 2005 23:47:54 -0700 Subject: [AccessD] Jet 4 SP 8 References: <004801c590b7$f3c7ce20$6401a8c0@laptop1> Message-ID: <42E48B1A.4010808@shaw.ca> Here is the Jet SP-8 file manifest Just check by right clicking your Dao360.dll for property file version should be at least Dao360.dll 3.60.8025.0 557,328 bytes http://support.microsoft.com/?kbid=829558 You can find again by hunting through general mdac portal for jet http://www.microsoft.com/data Joe Hecht wrote: >I am reading an article online about Access security and it is talking about >sandbox mode. To get there you need to be using Jet 4 SP 8. > >I am running AXP on one machine and A2k3 on the other. How do I check Jet >Version and SP release. > >Here is the article link. > >http://office.microsoft.com/training/training.aspx?AssetID=RC011461801033 > >Joe Hecht >Los Angeles CA > > > -- Marty Connelly Victoria, B.C. Canada From karenr7 at oz.net Mon Jul 25 04:03:15 2005 From: karenr7 at oz.net (Karen Rosenstiel) Date: Mon, 25 Jul 2005 02:03:15 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <2FDE83AF1A69C84796CBD13788DDA88364E13B@BONHAM.AD.UWS.EDU.AU> Message-ID: <200507250903.j6P93TR31070@databaseadvisors.com> Darren, This is terrific! Thank you. And, unfortunately, my co-workers won't be able to figure out how to read your funny comments. Thanks again, this will work just fine. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 9:34 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Demo Sent off line See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 1:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Hmmmm... I just played with this bit of code again and realized that it was duplicating the record with NotSeen checked, which duplicated the record with NotSeen checked which.... Like the picture of the little girl with a box or salt on the Morton Salt box. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Sunday, July 24, 2005 8:32 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Exactly. I was just noodling around with this and figured out how to copy and append the record with onclick: DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend But I don't know how to do the rest of it. Thanks. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 8:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Am I to assume if the NOTSEEN check box is checked you would like to create a brand new 'appointment' ? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 8:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help with a snippet I was wondering if someone would be willing to help me with a snippet of code. I want to work with 4 fields in a sub table, as follows: Checkbox "NotSeen" Date field "NextApp" Textbox "Priority", which runs from 1 to 4 Date field "DateReschedule" What I would like to do (if only I was any good at VBA) is when NotSeen is checked, the whole record would be copied and appended. Priorities 2 thru 4 would each move up a notch, i.e., 2 would become 1, etc. DateReschedule would take the date from NextApp and... 1. For the new priority 1, add 1 day to the date from NextApp and put it in DateReschedule 2. For the new priority 2, add 2 days to the date from NextApp and put it in DateReschedule 3. For the new priority 3, add 3 days to the date from NextApp and put it in DateReschedule Finally I would like the whole record to turn red if the priority is # 1, either from this snippet's conversion or when entered directly (actually I think this will be unattractive, but my boss wants the color to highlight the priority). Is this doable in whole or in part? Thanks in advance. Regards, Karen Rosenstiel Seattle WA USA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhecht at earthlink.net Mon Jul 25 08:46:59 2005 From: jmhecht at earthlink.net (Joe Hecht) Date: Mon, 25 Jul 2005 06:46:59 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <2FDE83AF1A69C84796CBD13788DDA88364E13B@BONHAM.AD.UWS.EDU.AU> Message-ID: <000201c5911f$5541b370$6401a8c0@laptop1> Inquiring minds want to know how to do this? Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 9:34 PM To: access at joe2.endjunk.com; Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Demo Sent off line See ya DD From ssharkins at bellsouth.net Mon Jul 25 09:14:08 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 25 Jul 2005 10:14:08 -0400 Subject: [AccessD] MS certification Message-ID: <20050725141405.XNRC19628.ibm56aec.bellsouth.net@SUSANONE> http://searchvb.techtarget.com/originalContent/0,289142,sid8_gci1109668,00.h tml Susan H. From Chester_Kaup at kindermorgan.com Mon Jul 25 09:49:52 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 25 Jul 2005 09:49:52 -0500 Subject: [AccessD] FW: Find a record in table with intervals Message-ID: I have table (table1) with dates and a value associated with the date. For example 1/1/2001 20 7/13/2003 27 12/26/2003 31 6/4/2004 33 1/13/2005 40 6/7/2005 44 I have another table (table 2) with values in it also. Using the date in this table I need to find the value in table one that would be correct for that date. It is assumed the value in table one carries forward until the date changes. The value associated with the last date carries forward forever. For example a date of 10/13/2004 should return a value of 33. I was able to achieve the desired result with several if then else and do loops but was hoping for a better solution. Was hoping for something like the vlookup function in Excel. Thanks. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 From ssharkins at bellsouth.net Mon Jul 25 09:55:00 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 25 Jul 2005 10:55:00 -0400 Subject: [AccessD] FW: Find a record in table with intervals In-Reply-To: Message-ID: <20050725145457.CFCT27018.ibm68aec.bellsouth.net@SUSANONE> A subquery using IN? It sounds to me like the real work is in the conditional expressions. Susan H. I have table (table1) with dates and a value associated with the date. For example 1/1/2001 20 7/13/2003 27 12/26/2003 31 6/4/2004 33 1/13/2005 40 6/7/2005 44 I have another table (table 2) with values in it also. Using the date in this table I need to find the value in table one that would be correct for that date. It is assumed the value in table one carries forward until the date changes. The value associated with the last date carries forward forever. For example a date of 10/13/2004 should return a value of 33. I was able to achieve the desired result with several if then else and do loops but was hoping for a better solution. Was hoping for something like the vlookup function in Excel. Thanks. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jim.moss at jlmoss.net Mon Jul 25 10:16:36 2005 From: jim.moss at jlmoss.net (Jim Moss) Date: Mon, 25 Jul 2005 10:16:36 -0500 (CDT) Subject: [AccessD] Access SQL In-Reply-To: <42E38A56.31204.31A380C9@stuart.lexacorp.com.pg> References: <000601c58fec$6faa9030$6401a8c0@laptop1> <42E38A56.31204.31A380C9@stuart.lexacorp.com.pg> Message-ID: <2969.65.196.182.34.1122304596.squirrel@65.196.182.34> You can optionally set the database to use SQL Server compatible syntax (ANSI 92) in the options menu. > On 23 Jul 2005 at 18:10, Joe Hecht wrote: > >> What kind of SQL does Access use? >> >> Is it T- SQL ? >> > > No, it's Access SQL. > It's similar to T-SQL in that the basic commands INSERT, SELECT, DELETE, > UPDATE, JOIN, WHERE, GROUPBY etc) and syntax are the same. > > The main differences are that is uses standard Access/Windows wildcards > rather than the T-SQL ones ("*" = "%" and "?" = "_") and it uses VBA > functions in lieu of the T-SQL ones for type convertions, string > manipulation, conditionals (such as IIF()) etc. > > > > > > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jim.Hale at FleetPride.com Mon Jul 25 10:31:41 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 25 Jul 2005 10:31:41 -0500 Subject: [AccessD] Dim fm as form or fm as Form_ rmCert Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337716@corp-es01.fleetpride.com> In a module I referenced an open form as follows: dim fm as Form_frmCert Set fm = Forms!frmCert ....do stuff using txt values on the form run Excel, place the text values in ranges on a worksheet etc If Not (wb Is Nothing) Then Set wb = Nothing If Not (fm Is Nothing) Then Set fm = Nothing appExcel.Quit Set appExcel = Nothing When the function finished an instance of Excel was still running.when I changed the dim statement to read dim fm as form the instance of Excel terminated properly. I've learned the hard way that whenever I open an instance of Excel EVERY object variable must be set to nothing because Access cannot be relied upon to cleanup properly. However, I'm curious what is going on here. Why does fm not go out of scope? Jim Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From cfoust at infostatsystems.com Mon Jul 25 10:44:13 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Jul 2005 08:44:13 -0700 Subject: [AccessD] Dim fm as form or fm as Form_ rmCert Message-ID: In order to set frm = Forms!frmCert, frmCert has to be open. SWAG: Unless you close it, the reference to its module (Form_frmCert) probably won't go completely out of scope, since the object is still open. Charlotte -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Monday, July 25, 2005 8:32 AM To: 'Accessd (E-mail) Subject: [AccessD] Dim fm as form or fm as Form_ rmCert In a module I referenced an open form as follows: dim fm as Form_frmCert Set fm = Forms!frmCert ....do stuff using txt values on the form run Excel, place the text values in ranges on a worksheet etc If Not (wb Is Nothing) Then Set wb = Nothing If Not (fm Is Nothing) Then Set fm = Nothing appExcel.Quit Set appExcel = Nothing When the function finished an instance of Excel was still running.when I changed the dim statement to read dim fm as form the instance of Excel terminated properly. I've learned the hard way that whenever I open an instance of Excel EVERY object variable must be set to nothing because Access cannot be relied upon to cleanup properly. However, I'm curious what is going on here. Why does fm not go out of scope? Jim Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From cfoust at infostatsystems.com Mon Jul 25 10:47:24 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Jul 2005 08:47:24 -0700 Subject: [AccessD] Connection strings for ado Message-ID: Handy, isn't it. I fell over it a month or so ago too. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, July 24, 2005 6:55 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] Connection strings for ado I found this: http://www.connectionstrings.com/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Jul 25 10:59:46 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 25 Jul 2005 08:59:46 -0700 Subject: [AccessD] Jet 4 SP 8 References: <004801c590b7$f3c7ce20$6401a8c0@laptop1> <42E48B1A.4010808@shaw.ca> Message-ID: <42E50C72.3060606@shaw.ca> This KB might be a bit clearer as it it shows how to identify the mjset40.dll version number for the security patch that was added to Jet SP8 April 13, 2004 How to obtain the latest service pack for the Microsoft Jet 4.0 Database Engine http://support.microsoft.com/kb/239114/ MartyConnelly wrote: > Here is the Jet SP-8 file manifest > Just check by right clicking your Dao360.dll for property file version > should be at least Dao360.dll 3.60.8025.0 557,328 bytes > http://support.microsoft.com/?kbid=829558 > > You can find again by hunting through general mdac portal for jet > http://www.microsoft.com/data > > Joe Hecht wrote: > >> I am reading an article online about Access security and it is >> talking about >> sandbox mode. To get there you need to be using Jet 4 SP 8. >> >> I am running AXP on one machine and A2k3 on the other. How do I check >> Jet >> Version and SP release. >> >> Here is the article link. >> >> http://office.microsoft.com/training/training.aspx?AssetID=RC011461801033 >> >> >> Joe Hecht >> Los Angeles CA >> >> >> > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Jul 25 11:13:01 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 25 Jul 2005 09:13:01 -0700 Subject: [AccessD] Connection strings for ado References: Message-ID: <42E50F8D.4080504@shaw.ca> Here is one from Carl Prothman that moved recently however the redirects give a 404 error It is the old able-consulting.com site, that in addition to connection strings listings had an ADO, ADO.Net and ADOX faq's http://www.carlprothman.net/ Charlotte Foust wrote: >Handy, isn't it. I fell over it a month or so ago too. > >Charlotte Foust > > >-----Original Message----- >From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >Sent: Sunday, July 24, 2005 6:55 AM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [AccessD] Connection strings for ado > > >I found this: > >http://www.connectionstrings.com/ > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- Marty Connelly Victoria, B.C. Canada From karenr7 at oz.net Mon Jul 25 15:57:20 2005 From: karenr7 at oz.net (Karen Rosenstiel) Date: Mon, 25 Jul 2005 13:57:20 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <000201c5911f$5541b370$6401a8c0@laptop1> Message-ID: <200507252057.j6PKvJR10993@databaseadvisors.com> Shall I email you a copy of Darrin's code? Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, July 25, 2005 6:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Inquiring minds want to know how to do this? Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 9:34 PM To: access at joe2.endjunk.com; Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Demo Sent off line See ya DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jul 25 15:58:55 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 25 Jul 2005 16:58:55 -0400 Subject: [AccessD] Dim fm as form or fm as Form_ rmCert In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB6772337716@corp-es01.fleetpride.com> Message-ID: <000001c5915b$aef0df40$6c7aa8c0@ColbyM6805> I cannot say what exactly is going on, but I can say that... >I've learned the hard way that whenever I open an instance of Excel EVERY object variable must be set to nothing because Access cannot be relied upon to cleanup properly. No, you need to clean up EVERY object variable regardless of the object type. Access' garbage collection is not reliable and you will end up with all kinds of weird symptoms if you don't clean up behind yourself. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, July 25, 2005 11:32 AM To: 'Accessd (E-mail) Subject: [AccessD] Dim fm as form or fm as Form_ rmCert In a module I referenced an open form as follows: dim fm as Form_frmCert Set fm = Forms!frmCert ....do stuff using txt values on the form run Excel, place the text values in ranges on a worksheet etc If Not (wb Is Nothing) Then Set wb = Nothing If Not (fm Is Nothing) Then Set fm = Nothing appExcel.Quit Set appExcel = Nothing When the function finished an instance of Excel was still running.when I changed the dim statement to read dim fm as form the instance of Excel terminated properly. I've learned the hard way that whenever I open an instance of Excel EVERY object variable must be set to nothing because Access cannot be relied upon to cleanup properly. However, I'm curious what is going on here. Why does fm not go out of scope? Jim Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Chester_Kaup at kindermorgan.com Mon Jul 25 16:47:17 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 25 Jul 2005 16:47:17 -0500 Subject: [AccessD] Why is recordset not updating? Message-ID: The table is not getting populated using the following code. I think addnew and update are messed up somewhere. myds.AddNew myds.Fields(0) = myds2.Fields(0) myds.Fields(1) = ProdDate myds.Fields(2) = myds2.Fields(2) If RecordCounter = 1 Then myds.AddNew myds.Fields(3) = myds2.Fields(2) / 365.25 Else Do Until PriorCumTotInj < myds1.Fields(2) FluidType = myds1.Fields(5) myds1.MoveNext Loop myds1.MovePrevious If FluidType = "CO2" Then myds.Fields(3) = myds1.Fields(2) + PriorCumTotInj Else myds.Fields(3) = myds1.Fields(3) + PriorCumTotInj End If End If ProdDate = ProdDate + 1 myds.Update Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 From stuart at lexacorp.com.pg Mon Jul 25 16:48:08 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 26 Jul 2005 07:48:08 +1000 Subject: [AccessD] Access SQL In-Reply-To: <2969.65.196.182.34.1122304596.squirrel@65.196.182.34> References: <42E38A56.31204.31A380C9@stuart.lexacorp.com.pg> Message-ID: <42E5EAB8.19757.3AEBF2E7@stuart.lexacorp.com.pg> On 25 Jul 2005 at 10:16, Jim Moss wrote: > You can optionally set the database to use SQL Server compatible syntax > (ANSI 92) in the options menu. > > Only in Access 2002 and above. -- Stuart From cfoust at infostatsystems.com Mon Jul 25 17:22:35 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Jul 2005 15:22:35 -0700 Subject: [AccessD] Why is recordset not updating? Message-ID: I think you'll have to post the missing bits of this code before anyone can say for sure what's happening. Without knowing whether Option Explicit is on and what your variables are declared as and what myds and myds2 and myds1 actually represent, we're just guessing. Charlotte Foust -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Monday, July 25, 2005 2:47 PM To: Access Developers discussion and problem solving Subject: [AccessD] Why is recordset not updating? The table is not getting populated using the following code. I think addnew and update are messed up somewhere. myds.AddNew myds.Fields(0) = myds2.Fields(0) myds.Fields(1) = ProdDate myds.Fields(2) = myds2.Fields(2) If RecordCounter = 1 Then myds.AddNew myds.Fields(3) = myds2.Fields(2) / 365.25 Else Do Until PriorCumTotInj < myds1.Fields(2) FluidType = myds1.Fields(5) myds1.MoveNext Loop myds1.MovePrevious If FluidType = "CO2" Then myds.Fields(3) = myds1.Fields(2) + PriorCumTotInj Else myds.Fields(3) = myds1.Fields(3) + PriorCumTotInj End If End If ProdDate = ProdDate + 1 myds.Update Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From D.Dick at uws.edu.au Mon Jul 25 18:54:28 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Tue, 26 Jul 2005 09:54:28 +1000 Subject: [AccessD] Help with a snippet Message-ID: <2FDE83AF1A69C84796CBD13788DDA88364E3DB@BONHAM.AD.UWS.EDU.AU> HI Karen Feel free to offer a "Me too" on what I sent you Just get 'em to send the me too's reply to your 'real' email address I emailed Joe a copy of what I sent you See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Tuesday, July 26, 2005 6:57 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Shall I email you a copy of Darrin's code? Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, July 25, 2005 6:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Inquiring minds want to know how to do this? Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 9:34 PM To: access at joe2.endjunk.com; Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Demo Sent off line See ya DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Bruce.Bruen at railcorp.nsw.gov.au Mon Jul 25 19:10:29 2005 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Tue, 26 Jul 2005 10:10:29 +1000 Subject: [AccessD] Connection strings for ado Message-ID: But beware! Some of the strings are specific to commercial offerings. For example, the postgreSQL string is for the CoreLabs PostgreSQLDirect .NET Data Provider. It is not for the vanilla odbc or OLEDB .net connections. bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, 26 July 2005 1:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado Handy, isn't it. I fell over it a month or so ago too. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, July 24, 2005 6:55 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] Connection strings for ado I found this: http://www.connectionstrings.com/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From Bruce.Bruen at railcorp.nsw.gov.au Mon Jul 25 19:14:18 2005 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Tue, 26 Jul 2005 10:14:18 +1000 Subject: [AccessD] Connection strings for ado Message-ID: And p.s. the equivalent postgres connectivity is available GPL'ed through the npgsql project (sorry no link) bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bruen, Bruce Sent: Tuesday, 26 July 2005 10:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado But beware! Some of the strings are specific to commercial offerings. For example, the postgreSQL string is for the CoreLabs PostgreSQLDirect .NET Data Provider. It is not for the vanilla odbc or OLEDB .net connections. bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, 26 July 2005 1:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado Handy, isn't it. I fell over it a month or so ago too. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, July 24, 2005 6:55 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] Connection strings for ado I found this: http://www.connectionstrings.com/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From jmhecht at earthlink.net Mon Jul 25 19:17:44 2005 From: jmhecht at earthlink.net (Joe Hecht) Date: Mon, 25 Jul 2005 17:17:44 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <200507252057.j6PKvJR10993@databaseadvisors.com> Message-ID: <001a01c59177$72fc24b0$6401a8c0@laptop1> Thanks, Darrin already did. Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 1:57 PM To: access at joe2.endjunk.com; 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Shall I email you a copy of Darrin's code? Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, July 25, 2005 6:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Inquiring minds want to know how to do this? Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 9:34 PM To: access at joe2.endjunk.com; Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Demo Sent off line See ya DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 karenr7 at oz.net Mon Jul 25 19:34:05 2005 From: karenr7 at oz.net (Karen Rosenstiel) Date: Mon, 25 Jul 2005 17:34:05 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <001a01c59177$72fc24b0$6401a8c0@laptop1> Message-ID: <200507260034.j6Q0Y2R30972@databaseadvisors.com> OK, any me too's, please email me off line at "karenr7 at oz.net" (Spam blocker -- you all know the drill). Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, July 25, 2005 5:18 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Thanks, Darrin already did. Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 1:57 PM To: access at joe2.endjunk.com; 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Shall I email you a copy of Darrin's code? Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, July 25, 2005 6:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Inquiring minds want to know how to do this? Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 9:34 PM To: access at joe2.endjunk.com; Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Demo Sent off line See ya DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jul 25 20:23:58 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 25 Jul 2005 21:23:58 -0400 Subject: [AccessD] Connection strings for ado In-Reply-To: Message-ID: <000601c59180$b65d81f0$6c7aa8c0@ColbyM6805> LOL, unlikely that I will be finding out any time soon. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bruen, Bruce Sent: Monday, July 25, 2005 8:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado But beware! Some of the strings are specific to commercial offerings. For example, the postgreSQL string is for the CoreLabs PostgreSQLDirect .NET Data Provider. It is not for the vanilla odbc or OLEDB .net connections. bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, 26 July 2005 1:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado Handy, isn't it. I fell over it a month or so ago too. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, July 24, 2005 6:55 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] Connection strings for ado I found this: http://www.connectionstrings.com/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bruce.Bruen at railcorp.nsw.gov.au Mon Jul 25 21:23:21 2005 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Tue, 26 Jul 2005 12:23:21 +1000 Subject: [AccessD] Connection strings for ado Message-ID: Watch out John, the OSF is sneaking up behind you! I am currently using an access FE to a postgres backend which consistes of extension tables to a commercial modeling tool that uses a Jet bas backend! (It can also use certain other heavyweight back ends like SQLServer, but getting the govt to buy an SQL server licence just for developers.... well. So we used a postgres backend, cost $0, setup 1 day, functional weight => SQL server) bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, 26 July 2005 11:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Connection strings for ado LOL, unlikely that I will be finding out any time soon. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bruen, Bruce Sent: Monday, July 25, 2005 8:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado But beware! Some of the strings are specific to commercial offerings. For example, the postgreSQL string is for the CoreLabs PostgreSQLDirect .NET Data Provider. It is not for the vanilla odbc or OLEDB .net connections. bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, 26 July 2005 1:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado Handy, isn't it. I fell over it a month or so ago too. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, July 24, 2005 6:55 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] Connection strings for ado I found this: http://www.connectionstrings.com/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From kimjwiggins at yahoo.com Mon Jul 25 22:04:13 2005 From: kimjwiggins at yahoo.com (Kim Wiggins) Date: Mon, 25 Jul 2005 20:04:13 -0700 (PDT) Subject: [AccessD] Problem with bookmarks in automation Message-ID: <20050726030413.33406.qmail@web53609.mail.yahoo.com> Hey all, I am really trying to make this word Automation work. I am using VB to write the code but it will not recognize the bookmarks. It opens the document and everything like it should but it will not recognize the book mark. The error I get is this: the requested member of the collection does not exist It bombs out at the green highlighted code and I can't understand why. Any help would be greatly appreciated. Thanks Kim Here is my code Private Sub cmdLogEntry_Click() ' Declare the variable. Dim objWD As Word.Application Dim WordDoc As Word.Document Dim WordRange As Word.Range Dim strPath As String ' Set the variable (runs new instance of Word.) Set objWD = CreateObject("Word.Application") 'make application visible objWD.Application.Visible = True 'Get Path of Current DB strPath = "C:\AMS\AMS.mdb" 'Strip FileName to Get Path to Doc Do lngInStr = InStr(lngInStr + 1, strPath, "\") Loop While (InStr(lngInStr + 1, strPath, "\") <> 0) 'Get path up to the last ?\? strPath = Left(strPath, lngInStr) 'Append document name onto the end of the stripped path strPath = strPath & "AirframeTemplate.doc" 'open the word document Set doc = objWD.Documents.Open(strPath) 'Insert text into bookmark objWD.ActiveDocument.Bookmarks.Item(?AT?).Range.Text = frmAircraftWO.txtAircraftType ' Quit Word. objWD.Quit ' Clear the variable from memory. Set objWD = Nothing End Sub __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From prodevmg at yahoo.com Tue Jul 26 05:46:40 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 26 Jul 2005 03:46:40 -0700 (PDT) Subject: [AccessD] How to draw a line around select textboxes In-Reply-To: <20050726030413.33406.qmail@web53609.mail.yahoo.com> Message-ID: <20050726104640.24304.qmail@web33110.mail.mud.yahoo.com> What if I have 10 text boxes on a form all across in a row and I wanted to put a box around the first 5 and another box (boarder) around the second 5? This box/border would expand the height of the detail section of each page. I was thinking of the Me.Line method but don't know how to 1) Just put it around certain boxes 2) How to have more than one line method going on at once. Thanks. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From prodevmg at yahoo.com Tue Jul 26 05:49:05 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 26 Jul 2005 03:49:05 -0700 (PDT) Subject: [AccessD] How to draw a line around select textboxes In-Reply-To: <20050726104640.24304.qmail@web33110.mail.mud.yahoo.com> Message-ID: <20050726104905.1720.qmail@web33115.mail.mud.yahoo.com> I am sorry, this is on a report and not a form. Lonnie Johnson wrote:What if I have 10 text boxes on a form all across in a row and I wanted to put a box around the first 5 and another box (boarder) around the second 5? This box/border would expand the height of the detail section of each page. I was thinking of the Me.Line method but don't know how to 1) Just put it around certain boxes 2) How to have more than one line method going on at once. Thanks. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From accessd666 at yahoo.com Tue Jul 26 06:53:55 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 26 Jul 2005 04:53:55 -0700 (PDT) Subject: [AccessD] How to draw a line around select textboxes In-Reply-To: <20050726104905.1720.qmail@web33115.mail.mud.yahoo.com> Message-ID: <20050726115355.8898.qmail@web31612.mail.mud.yahoo.com> Lonnie, can give some more details? So, you want to create a line around textboxes. Do you want this for all rows? If so, why not use a rectangle and set the visible property to true or false? SD --- Lonnie Johnson wrote: > I am sorry, this is on a report and not a form. > > Lonnie Johnson wrote:What if I > have 10 text boxes on a form all across in a row and > I wanted to put a box around the first 5 and another > box (boarder) around the second 5? This box/border > would expand the height of the detail section of > each page. > > I was thinking of the Me.Line method but don't know > how to > > 1) Just put it around certain boxes > > 2) How to have more than one line method going on at > once. > > Thanks. > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access > Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access > Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail From carbonnb at gmail.com Tue Jul 26 07:01:42 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 26 Jul 2005 08:01:42 -0400 Subject: [AccessD] Problem with bookmarks in automation In-Reply-To: <20050726030413.33406.qmail@web53609.mail.yahoo.com> References: <20050726030413.33406.qmail@web53609.mail.yahoo.com> Message-ID: On 25/07/05, Kim Wiggins wrote: > I am really trying to make this word Automation work. I am using VB to write the code but it will not recognize the bookmarks. It opens the document and everything like it should but it will not recognize the book mark. The error I get is this: > > the requested member of the collection does not exist > > It bombs out at the green highlighted code and I can't understand why. Any help would be greatly appreciated. Formatting doesn't come through to the list. Which line is causing the problem? This one? > objWD.ActiveDocument.Bookmarks.Item("AT").Range.Text = frmAircraftWO.txtAircraftType If so, is AT the name of a bookmark in the main body of the document? Or is it in a header or footer? Are you sure the active document the one referenceced in the variable doc? -- 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 prodevmg at yahoo.com Tue Jul 26 07:52:06 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 26 Jul 2005 05:52:06 -0700 (PDT) Subject: [AccessD] How to draw a line around select textboxes In-Reply-To: <20050726115355.8898.qmail@web31612.mail.mud.yahoo.com> Message-ID: <20050726125206.56638.qmail@web33102.mail.mud.yahoo.com> Thanks for responding. If I use the rectangle I only get a box around the textboxes for that line and then another box around the textboxes on the next row. If I have 10 lines of data, I want one box to show around these text boxes for all ten rows. Sort of like a border for the entire page of detail. Thanks again. Sad Der wrote: Lonnie, can give some more details? So, you want to create a line around textboxes. Do you want this for all rows? If so, why not use a rectangle and set the visible property to true or false? SD --- Lonnie Johnson wrote: > I am sorry, this is on a report and not a form. > > Lonnie Johnson wrote:What if I > have 10 text boxes on a form all across in a row and > I wanted to put a box around the first 5 and another > box (boarder) around the second 5? This box/border > would expand the height of the detail section of > each page. > > I was thinking of the Me.Line method but don't know > how to > > 1) Just put it around certain boxes > > 2) How to have more than one line method going on at > once. > > Thanks. > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access > Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access > Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bchacc at san.rr.com Tue Jul 26 09:04:08 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 26 Jul 2005 07:04:08 -0700 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: <008601c591ea$e4714350$6a01a8c0@HAL9004> Dear List: Many moons ago I someone on the list gave me some code to turn the mouse pointer into the hand which now indicated you're hovering over a link, and I used it in the mouse move event of a label which had it's own click event. But I can't find it. Does anyone remember that? It was, IIRC, only 2-3 lines of code. MTIA, Rocky From Jim.Hale at FleetPride.com Tue Jul 26 09:14:22 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 26 Jul 2005 09:14:22 -0500 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337720@corp-es01.fleetpride.com> Is this it? http://www.mvps.org/access/api/api0044.htm Regards, Jim Hale -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Tuesday, July 26, 2005 9:04 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Turn Mouse Pointer to Hand Dear List: Many moons ago I someone on the list gave me some code to turn the mouse pointer into the hand which now indicated you're hovering over a link, and I used it in the mouse move event of a label which had it's own click event. But I can't find it. Does anyone remember that? It was, IIRC, only 2-3 lines of code. MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Rick.Ehlers at cinergy.com Tue Jul 26 09:17:32 2005 From: Rick.Ehlers at cinergy.com (Ehlers, Rick) Date: Tue, 26 Jul 2005 10:17:32 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: Rocky, I use DoCmd.Hourglass True before the code starts and DoCmd.Hourglass False after the code ends to change the pointer. Is this what you are thinking of? Rick Ehlers Power Services Performance And Valuation Annex - EX510 Phone: (513) 287-2047 Fax: (513) 287-3698 EMail: Rick.Ehlers at cinergy.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Tuesday, July 26, 2005 10:04 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Turn Mouse Pointer to Hand Dear List: Many moons ago I someone on the list gave me some code to turn the mouse pointer into the hand which now indicated you're hovering over a link, and I used it in the mouse move event of a label which had it's own click event. But I can't find it. Does anyone remember that? It was, IIRC, only 2-3 lines of code. MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Jul 26 09:41:15 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 26 Jul 2005 07:41:15 -0700 Subject: [AccessD] Turn Mouse Pointer to Hand References: <6A6AA9DF57E4F046BDA1E273BDDB6772337720@corp-es01.fleetpride.com> Message-ID: <00b401c591f0$138f1590$6a01a8c0@HAL9004> Jim: It doesn't have the hand pointer pre-defined. You need it in an icon. The other routine MouseCursor looks like it should change the mouse pointer but I there's no comment about the values to pass to it. experimented with a few values but none changed the cursor. Regards, Rocky ----- Original Message ----- From: "Hale, Jim" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, July 26, 2005 7:14 AM Subject: RE: [AccessD] Turn Mouse Pointer to Hand > Is this it? > http://www.mvps.org/access/api/api0044.htm > > Regards, > Jim Hale > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Tuesday, July 26, 2005 9:04 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Mouse Pointer to Hand > > > Dear List: > > Many moons ago I someone on the list gave me some code to turn the mouse > pointer into the hand which now indicated you're hovering over a link, and > I > used it in the mouse move event of a label which had it's own click event. > > But I can't find it. Does anyone remember that? It was, IIRC, only 2-3 > lines of code. > > MTIA, > > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. -------------------------------------------------------------------------------- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Tue Jul 26 09:56:02 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 26 Jul 2005 07:56:02 -0700 Subject: [AccessD] Turn Mouse Pointer to Hand References: Message-ID: <00c001c591f2$24264c50$6a01a8c0@HAL9004> Rick: I was looking for that snip that changes the muse pointer into a hand. I've got labels on the main form with OnClick events instead of command buttons (which are clunky looking). I've also got a mouse move event for each one already which displays a bit of description of the label's function. Now, in that mouse move event, I'd like to change the pointer to a hand as a visual cue that the label is a clickable link of some sort. I'm gilding the lily here a bit, but it's a consumer product, not a commercial application, so it wants a bit of sizzle. I did this before and it worked real well. I just can't remember the app I built it into so I can't find it again. Thanks and regards, Rocky ----- Original Message ----- From: "Ehlers, Rick" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 7:17 AM Subject: RE: [AccessD] Turn Mouse Pointer to Hand > Rocky, > > I use > > DoCmd.Hourglass True before the code starts > and > DoCmd.Hourglass False after the code ends > > to change the pointer. Is this what you are thinking of? > > > Rick Ehlers > Power Services > Performance And Valuation > Annex - EX510 > Phone: (513) 287-2047 > Fax: (513) 287-3698 > EMail: Rick.Ehlers at cinergy.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Tuesday, July 26, 2005 10:04 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Mouse Pointer to Hand > > Dear List: > > Many moons ago I someone on the list gave me some code to turn the mouse > pointer into the hand which now indicated you're hovering over a link, > and I used it in the mouse move event of a label which had it's own > click event. > > But I can't find it. Does anyone remember that? It was, IIRC, only 2-3 > lines of code. > > MTIA, > > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From prosoft6 at hotmail.com Tue Jul 26 10:00:16 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 26 Jul 2005 11:00:16 -0400 Subject: [AccessD] Demo To Run for 30 Days Message-ID: I'd like to put a demo on my website as a download and have it run for 30 days, checking the stored date against the system date. I know I've seen this somewhere, but cannot seem to find the code. Can anyone point me in the right direction? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From paul.hartland at fsmail.net Tue Jul 26 10:04:55 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 26 Jul 2005 17:04:55 +0200 (CEST) Subject: [AccessD] Demo To Run for 30 Days Message-ID: <28960735.1122390295037.JavaMail.www@wwinf3003> What I tend to do is when they first open the application, store the system date and calculate 30 days in advance and also store this, then you just check the stored date which is 30 days in advance each time they open the app, if you check a stored date against system date, they can always keep changing the date on their machine can't they ? Paul Hartland Message date : Jul 26 2005, 04:01 PM >From : "Julie Reardon-Taylor" To : accessd at databaseadvisors.com Copy to : Subject : [AccessD] Demo To Run for 30 Days I'd like to put a demo on my website as a download and have it run for 30 days, checking the stored date against the system date. I know I've seen this somewhere, but cannot seem to find the code. Can anyone point me in the right direction? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From Lambert.Heenan at AIG.com Tue Jul 26 10:06:16 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 26 Jul 2005 11:06:16 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F137772AB@xlivmbx21.aig.com> I think the simplest way to do this is to enter some text (anything will do) into the label's Hyperlink address property. You will then have to adjust the font underline property (which will have been automatically to 'Yes') and the forecolor property( which will have changed to a blue color). But after that you get the hand icon and there's zero code required. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Tuesday, July 26, 2005 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Turn Mouse Pointer to Hand Rick: I was looking for that snip that changes the muse pointer into a hand. I've got labels on the main form with OnClick events instead of command buttons (which are clunky looking). I've also got a mouse move event for each one already which displays a bit of description of the label's function. Now, in that mouse move event, I'd like to change the pointer to a hand as a visual cue that the label is a clickable link of some sort. I'm gilding the lily here a bit, but it's a consumer product, not a commercial application, so it wants a bit of sizzle. I did this before and it worked real well. I just can't remember the app I built it into so I can't find it again. Thanks and regards, Rocky ----- Original Message ----- From: "Ehlers, Rick" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 7:17 AM Subject: RE: [AccessD] Turn Mouse Pointer to Hand > Rocky, > > I use > > DoCmd.Hourglass True before the code starts > and > DoCmd.Hourglass False after the code ends > > to change the pointer. Is this what you are thinking of? > > > Rick Ehlers > Power Services > Performance And Valuation > Annex - EX510 > Phone: (513) 287-2047 > Fax: (513) 287-3698 > EMail: Rick.Ehlers at cinergy.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Tuesday, July 26, 2005 10:04 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Mouse Pointer to Hand > > Dear List: > > Many moons ago I someone on the list gave me some code to turn the > mouse pointer into the hand which now indicated you're hovering over a > link, and I used it in the mouse move event of a label which had it's > own click event. > > But I can't find it. Does anyone remember that? It was, IIRC, only > 2-3 lines of code. > > MTIA, > > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Jul 26 10:08:31 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 26 Jul 2005 11:08:31 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F137772AF@xlivmbx21.aig.com> Oops. Not quite that simple. You get the icon, the click event will fire, but then Access tries to action the hyperlink too. How to turn that off? -----Original Message----- From: Heenan, Lambert Sent: Tuesday, July 26, 2005 11:06 AM To: 'Access Developers discussion and problem solving' Cc: 'Rocky Smolin - Beach Access Software' Subject: RE: [AccessD] Turn Mouse Pointer to Hand I think the simplest way to do this is to enter some text (anything will do) into the label's Hyperlink address property. You will then have to adjust the font underline property (which will have been automatically to 'Yes') and the forecolor property( which will have changed to a blue color). But after that you get the hand icon and there's zero code required. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Tuesday, July 26, 2005 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Turn Mouse Pointer to Hand Rick: I was looking for that snip that changes the muse pointer into a hand. I've got labels on the main form with OnClick events instead of command buttons (which are clunky looking). I've also got a mouse move event for each one already which displays a bit of description of the label's function. Now, in that mouse move event, I'd like to change the pointer to a hand as a visual cue that the label is a clickable link of some sort. I'm gilding the lily here a bit, but it's a consumer product, not a commercial application, so it wants a bit of sizzle. I did this before and it worked real well. I just can't remember the app I built it into so I can't find it again. Thanks and regards, Rocky ----- Original Message ----- From: "Ehlers, Rick" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 7:17 AM Subject: RE: [AccessD] Turn Mouse Pointer to Hand > Rocky, > > I use > > DoCmd.Hourglass True before the code starts > and > DoCmd.Hourglass False after the code ends > > to change the pointer. Is this what you are thinking of? > > > Rick Ehlers > Power Services > Performance And Valuation > Annex - EX510 > Phone: (513) 287-2047 > Fax: (513) 287-3698 > EMail: Rick.Ehlers at cinergy.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Tuesday, July 26, 2005 10:04 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Mouse Pointer to Hand > > Dear List: > > Many moons ago I someone on the list gave me some code to turn the > mouse pointer into the hand which now indicated you're hovering over a > link, and I used it in the mouse move event of a label which had it's > own click event. > > But I can't find it. Does anyone remember that? It was, IIRC, only > 2-3 lines of code. > > MTIA, > > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at verizon.net Tue Jul 26 10:10:12 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 26 Jul 2005 11:10:12 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand In-Reply-To: <00b401c591f0$138f1590$6a01a8c0@HAL9004> Message-ID: <000a01c591f4$2034dbf0$2e01a8c0@dorismanning> Screen.MousePointer is what you use to change the mouse pointer. You pass it the index of the icon you want but I don't off the top of my head know what the Link icon's index is. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Tuesday, July 26, 2005 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Turn Mouse Pointer to Hand Jim: It doesn't have the hand pointer pre-defined. You need it in an icon. The other routine MouseCursor looks like it should change the mouse pointer but I there's no comment about the values to pass to it. experimented with a few values but none changed the cursor. Regards, Rocky ----- Original Message ----- From: "Hale, Jim" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, July 26, 2005 7:14 AM Subject: RE: [AccessD] Turn Mouse Pointer to Hand > Is this it? > http://www.mvps.org/access/api/api0044.htm > > Regards, > Jim Hale > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Tuesday, July 26, 2005 9:04 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Mouse Pointer to Hand > > > Dear List: > > Many moons ago I someone on the list gave me some code to turn the mouse > pointer into the hand which now indicated you're hovering over a link, and > I > used it in the mouse move event of a label which had it's own click event. > > But I can't find it. Does anyone remember that? It was, IIRC, only 2-3 > lines of code. > > MTIA, > > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. ---------------------------------------------------------------------------- ---- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 darsant at gmail.com Tue Jul 26 10:12:36 2005 From: darsant at gmail.com (Josh McFarlane) Date: Tue, 26 Jul 2005 10:12:36 -0500 Subject: [AccessD] Demo To Run for 30 Days In-Reply-To: <28960735.1122390295037.JavaMail.www@wwinf3003> References: <28960735.1122390295037.JavaMail.www@wwinf3003> Message-ID: <53c8e05a05072608123c2aad6c@mail.gmail.com> On 7/26/05, paul.hartland at fsmail.net wrote: > What I tend to do is when they first open the application, store the system date and calculate 30 days in advance and also store this, then you just check the stored date which is 30 days in advance each time they open the app, if you check a stored date against system date, they can always keep changing the date on their machine can't they ? > > Paul Hartland The optimum solution I can think of is to have the two fields you mentioned, and use them as sort of a between statement in which it can run. First time the program opens, it sets both dates. Next time the user opens the application, first it checks to make sure the current date is between those dates, and if it is, it updates the current system date with the new value. This way, the date window that the program can be opened in slowly expires as time progresses. If the user sets their computer to day X time Y after they got the App but before their last use time, the start time is already after the current time, and the program cannot open. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From bheid at appdevgrp.com Tue Jul 26 10:21:13 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 26 Jul 2005 11:21:13 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C37EED@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED69@ADGSERVER> Rick, If you want to get away from the docmd function, you can use: Screen.mousepointer=11 to turn on the busy icon And Screen.mousepointer=0 to set it back to the regular pointer. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ehlers, Rick Sent: Tuesday, July 26, 2005 10:18 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Turn Mouse Pointer to Hand Rocky, I use DoCmd.Hourglass True before the code starts and DoCmd.Hourglass False after the code ends to change the pointer. Is this what you are thinking of? Rick Ehlers From ssharkins at bellsouth.net Tue Jul 26 10:21:42 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 26 Jul 2005 11:21:42 -0400 Subject: [AccessD] Conversion to Express Message-ID: <20050726152145.LCSW14543.ibm61aec.bellsouth.net@SUSANONE> I'm interested in published or personal experience with converting Access to the new SQL Server Express beta. Right now, with its lack of tools, I doubt there's much on the subject. If you run across anything, you might remember me with a quick link. Thanks! Susan H. From Lambert.Heenan at AIG.com Tue Jul 26 10:28:31 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 26 Jul 2005 11:28:31 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F137772D3@xlivmbx21.aig.com> OK. I got it, this time using the API route. Put this code in a module... Public Const HandCursor = 32649& Declare Function LoadCursorBynum Lib "user32" Alias "LoadCursorA" _ (ByVal hInstance As Long, ByVal lpCursorName As Long) As Long Declare Function SetCursor Lib "user32" (ByVal hCursor As Long) As Long Function MouseCursor(CursorType As Long) Dim lngRet As Long lngRet = LoadCursorBynum(0&, CursorType) lngRet = SetCursor(lngRet) End Function ...Then all you need is a MouseMove event for the label which reads... MouseCursor HandCursor Access will automatically restore the default cursor when you move out of the label's area. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Tuesday, July 26, 2005 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Turn Mouse Pointer to Hand Rick: I was looking for that snip that changes the muse pointer into a hand. I've got labels on the main form with OnClick events instead of command buttons (which are clunky looking). I've also got a mouse move event for each one already which displays a bit of description of the label's function. Now, in that mouse move event, I'd like to change the pointer to a hand as a visual cue that the label is a clickable link of some sort. I'm gilding the lily here a bit, but it's a consumer product, not a commercial application, so it wants a bit of sizzle. I did this before and it worked real well. I just can't remember the app I built it into so I can't find it again. Thanks and regards, Rocky ----- Original Message ----- From: "Ehlers, Rick" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 7:17 AM Subject: RE: [AccessD] Turn Mouse Pointer to Hand > Rocky, > > I use > > DoCmd.Hourglass True before the code starts > and > DoCmd.Hourglass False after the code ends > > to change the pointer. Is this what you are thinking of? > > > Rick Ehlers > Power Services > Performance And Valuation > Annex - EX510 > Phone: (513) 287-2047 > Fax: (513) 287-3698 > EMail: Rick.Ehlers at cinergy.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Tuesday, July 26, 2005 10:04 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Mouse Pointer to Hand > > Dear List: > > Many moons ago I someone on the list gave me some code to turn the > mouse pointer into the hand which now indicated you're hovering over a > link, and I used it in the mouse move event of a label which had it's > own click event. > > But I can't find it. Does anyone remember that? It was, IIRC, only > 2-3 lines of code. > > MTIA, > > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Tue Jul 26 10:43:45 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 26 Jul 2005 11:43:45 -0400 Subject: [AccessD] Demo To Run for 30 Days In-Reply-To: <53c8e05a05072608123c2aad6c@mail.gmail.com> Message-ID: Thanks Josh! Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From cyx5 at cdc.gov Tue Jul 26 10:47:43 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 26 Jul 2005 11:47:43 -0400 Subject: [AccessD] Google is Down???? - OT Message-ID: Is Google down all over the country? This is like killing Kenny (South Park). What the.... no way. From mikedorism at verizon.net Tue Jul 26 10:51:57 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 26 Jul 2005 11:51:57 -0400 Subject: [AccessD] Google is Down???? - OT In-Reply-To: Message-ID: <000d01c591f9$f5323640$2e01a8c0@dorismanning> It is working fine for me. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, July 26, 2005 11:48 AM To: Access Developers discussion and problem solving Subject: [AccessD] Google is Down???? - OT Is Google down all over the country? This is like killing Kenny (South Park). What the.... no way. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Rick.Ehlers at cinergy.com Tue Jul 26 10:51:07 2005 From: Rick.Ehlers at cinergy.com (Ehlers, Rick) Date: Tue, 26 Jul 2005 11:51:07 -0400 Subject: [AccessD] Google is Down???? - OT Message-ID: Mine works. Rick Ehlers Power Services Performance And Valuation Annex - EX510 Phone: (513) 287-2047 Fax: (513) 287-3698 EMail: Rick.Ehlers at cinergy.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, July 26, 2005 11:48 AM To: Access Developers discussion and problem solving Subject: [AccessD] Google is Down???? - OT Is Google down all over the country? This is like killing Kenny (South Park). What the.... no way. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Tue Jul 26 10:51:31 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 26 Jul 2005 11:51:31 -0400 Subject: [AccessD] Google is Down???? - OT In-Reply-To: References: Message-ID: On 26/07/05, Nicholson, Karen wrote: > Is Google down all over the country? This is like killing Kenny (South > Park). What the.... no way. I can get to and search with both Google.com and google.ca with no problems. -- 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 cyx5 at cdc.gov Tue Jul 26 10:54:55 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 26 Jul 2005 11:54:55 -0400 Subject: [AccessD] Google is Down???? - OT Message-ID: Must just be us. I am putting in a call to our Help Desk in Atlanta. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Tuesday, July 26, 2005 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Google is Down???? - OT On 26/07/05, Nicholson, Karen wrote: > Is Google down all over the country? This is like killing Kenny > (South Park). What the.... no way. I can get to and search with both Google.com and google.ca with no problems. -- 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 cyx5 at cdc.gov Tue Jul 26 11:00:14 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 26 Jul 2005 12:00:14 -0400 Subject: [AccessD] Google is Down???? - OT Message-ID: It is the government. The poor IT guy in Atlanta is getting flooded with calls. This IT department is by far the best, most efficient, responsive and polite team I have ever had the pleasure to work with. They kick butt. I am sure they will solve the problem. I was just in utter shock. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ehlers, Rick Sent: Tuesday, July 26, 2005 11:51 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Google is Down???? - OT Mine works. Rick Ehlers Power Services Performance And Valuation Annex - EX510 Phone: (513) 287-2047 Fax: (513) 287-3698 EMail: Rick.Ehlers at cinergy.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, July 26, 2005 11:48 AM To: Access Developers discussion and problem solving Subject: [AccessD] Google is Down???? - OT Is Google down all over the country? This is like killing Kenny (South Park). What the.... no way. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dmcafee at pacbell.net Tue Jul 26 11:57:58 2005 From: dmcafee at pacbell.net (David Mcafee) Date: Tue, 26 Jul 2005 09:57:58 -0700 (PDT) Subject: [AccessD] Turn Mouse Pointer to Hand In-Reply-To: <00c001c591f2$24264c50$6a01a8c0@HAL9004> Message-ID: <20050726165758.5801.qmail@web80801.mail.yahoo.com> Rocky, I think it was my "main menu" smaple that I sent you. I think I still have a copy. Let me look. If I have it, I'll send it to you off the list. David McAfee --- Rocky Smolin - Beach Access Software wrote: > Rick: > > I was looking for that snip that changes the muse > pointer into a hand. I've > got labels on the main form with OnClick events > instead of command buttons > (which are clunky looking). I've also got a mouse > move event for each one > already which displays a bit of description of the > label's function. > > Now, in that mouse move event, I'd like to change > the pointer to a hand as a > visual cue that the label is a clickable link of > some sort. I'm gilding the > lily here a bit, but it's a consumer product, not a > commercial application, > so it wants a bit of sizzle. > > I did this before and it worked real well. I just > can't remember the app I > built it into so I can't find it again. > > Thanks and regards, > > Rocky > > ----- Original Message ----- > From: "Ehlers, Rick" > To: "Access Developers discussion and problem > solving" > > Sent: Tuesday, July 26, 2005 7:17 AM > Subject: RE: [AccessD] Turn Mouse Pointer to Hand > > > > Rocky, > > > > I use > > > > DoCmd.Hourglass True before the code starts > > and > > DoCmd.Hourglass False after the code ends > > > > to change the pointer. Is this what you are > thinking of? > > > > > > Rick Ehlers > > Power Services > > Performance And Valuation > > Annex - EX510 > > Phone: (513) 287-2047 > > Fax: (513) 287-3698 > > EMail: Rick.Ehlers at cinergy.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Rocky Smolin > > - Beach Access Software > > Sent: Tuesday, July 26, 2005 10:04 AM > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] Turn Mouse Pointer to Hand > > > > Dear List: > > > > Many moons ago I someone on the list gave me some > code to turn the mouse > > pointer into the hand which now indicated you're > hovering over a link, > > and I used it in the mouse move event of a label > which had it's own > > click event. > > > > But I can't find it. Does anyone remember that? > It was, IIRC, only 2-3 > > lines of code. > > > > MTIA, > > > > Rocky > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Rick.Ehlers at cinergy.com Tue Jul 26 12:00:18 2005 From: Rick.Ehlers at cinergy.com (Ehlers, Rick) Date: Tue, 26 Jul 2005 13:00:18 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: Lambert, Do you have other cursor listings or tell me where to find them? This is cool. Now I've got about 10 apps to update. That should keep me busy for a while ;-) Thanks. Rick Ehlers Power Services Performance And Valuation Annex - EX510 Phone: (513) 287-2047 Fax: (513) 287-3698 EMail: Rick.Ehlers at cinergy.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, July 26, 2005 11:29 AM To: 'Access Developers discussion and problem solving' Cc: 'Rocky Smolin - Beach Access Software' Subject: RE: [AccessD] Turn Mouse Pointer to Hand OK. I got it, this time using the API route. Put this code in a module... Public Const HandCursor = 32649& Declare Function LoadCursorBynum Lib "user32" Alias "LoadCursorA" _ (ByVal hInstance As Long, ByVal lpCursorName As Long) As Long Declare Function SetCursor Lib "user32" (ByVal hCursor As Long) As Long Function MouseCursor(CursorType As Long) Dim lngRet As Long lngRet = LoadCursorBynum(0&, CursorType) lngRet = SetCursor(lngRet) End Function ...Then all you need is a MouseMove event for the label which reads... MouseCursor HandCursor Access will automatically restore the default cursor when you move out of the label's area. Lambert From dmcafee at pacbell.net Tue Jul 26 12:03:10 2005 From: dmcafee at pacbell.net (David Mcafee) Date: Tue, 26 Jul 2005 10:03:10 -0700 (PDT) Subject: [AccessD] Turn Mouse Pointer to Hand In-Reply-To: <20050726165758.5801.qmail@web80801.mail.yahoo.com> Message-ID: <20050726170310.7138.qmail@web80801.mail.yahoo.com> found it, sent it --- David Mcafee wrote: > Rocky, I think it was my "main menu" smaple that I > sent you. I think I still have a copy. Let me look. > If > I have it, I'll send it to you off the list. > > David McAfee > > --- Rocky Smolin - Beach Access Software > wrote: > > > Rick: > > > > I was looking for that snip that changes the muse > > pointer into a hand. I've > > got labels on the main form with OnClick events > > instead of command buttons > > (which are clunky looking). I've also got a mouse > > move event for each one > > already which displays a bit of description of the > > label's function. > > > > Now, in that mouse move event, I'd like to change > > the pointer to a hand as a > > visual cue that the label is a clickable link of > > some sort. I'm gilding the > > lily here a bit, but it's a consumer product, not > a > > commercial application, > > so it wants a bit of sizzle. > > > > I did this before and it worked real well. I just > > can't remember the app I > > built it into so I can't find it again. > > > > Thanks and regards, > > > > Rocky > > > > ----- Original Message ----- > > From: "Ehlers, Rick" > > To: "Access Developers discussion and problem > > solving" > > > > Sent: Tuesday, July 26, 2005 7:17 AM > > Subject: RE: [AccessD] Turn Mouse Pointer to Hand > > > > > > > Rocky, > > > > > > I use > > > > > > DoCmd.Hourglass True before the code starts > > > and > > > DoCmd.Hourglass False after the code ends > > > > > > to change the pointer. Is this what you are > > thinking of? > > > > > > > > > Rick Ehlers > > > Power Services > > > Performance And Valuation > > > Annex - EX510 > > > Phone: (513) 287-2047 > > > Fax: (513) 287-3698 > > > EMail: Rick.Ehlers at cinergy.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On > > Behalf Of Rocky Smolin > > > - Beach Access Software > > > Sent: Tuesday, July 26, 2005 10:04 AM > > > To: AccessD at databaseadvisors.com > > > Subject: [AccessD] Turn Mouse Pointer to Hand > > > > > > Dear List: > > > > > > Many moons ago I someone on the list gave me > some > > code to turn the mouse > > > pointer into the hand which now indicated you're > > hovering over a link, > > > and I used it in the mouse move event of a label > > which had it's own > > > click event. > > > > > > But I can't find it. Does anyone remember that? > > > It was, IIRC, only 2-3 > > > lines of code. > > > > > > MTIA, > > > > > > Rocky > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Tue Jul 26 12:17:43 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 26 Jul 2005 10:17:43 -0700 Subject: [AccessD] Demo To Run for 30 Days References: <28960735.1122390295037.JavaMail.www@wwinf3003> <53c8e05a05072608123c2aad6c@mail.gmail.com> Message-ID: <010c01c59205$ef560150$6a01a8c0@HAL9004> I store the state each time they start the system. If the system date is ever earlier than the last time they started it (indicating that they moved the system date back to try to get a few more days' use) I give them a message that says they need to adjust the clock in the computer and quit the app. Rocky ----- Original Message ----- From: "Josh McFarlane" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 8:12 AM Subject: Re: [AccessD] Demo To Run for 30 Days > On 7/26/05, paul.hartland at fsmail.net wrote: >> What I tend to do is when they first open the application, store the >> system date and calculate 30 days in advance and also store this, then >> you just check the stored date which is 30 days in advance each time they >> open the app, if you check a stored date against system date, they can >> always keep changing the date on their machine can't they ? >> >> Paul Hartland > > The optimum solution I can think of is to have the two fields you > mentioned, and use them as sort of a between statement in which it can > run. First time the program opens, it sets both dates. > > Next time the user opens the application, first it checks to make sure > the current date is between those dates, and if it is, it updates the > current system date with the new value. This way, the date window that > the program can be opened in slowly expires as time progresses. > > If the user sets their computer to day X time Y after they got the > App but before their last use time, the start time is already after > the current time, and the program cannot open. > > -- > Josh McFarlane > "Peace cannot be kept by force. It can only be achieved by understanding." > -Albert Einstein > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at AIG.com Tue Jul 26 12:19:21 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 26 Jul 2005 13:19:21 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1377733F@xlivmbx21.aig.com> I found this listing of constants on the Access Web (http://www.mvps.org/access/api/api0044.htm) Public Const IDC_APPSTARTING = 32650& Public Const IDC_HAND = 32649& Public Const IDC_ARROW = 32512& Public Const IDC_CROSS = 32515& Public Const IDC_IBEAM = 32513& Public Const IDC_ICON = 32641& Public Const IDC_NO = 32648& Public Const IDC_SIZE = 32640& Public Const IDC_SIZEALL = 32646& Public Const IDC_SIZENESW = 32643& Public Const IDC_SIZENS = 32645& Public Const IDC_SIZENWSE = 32642& Public Const IDC_SIZEWE = 32644& Public Const IDC_UPARROW = 32516& Public Const IDC_WAIT = 32514& -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ehlers, Rick Sent: Tuesday, July 26, 2005 1:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Turn Mouse Pointer to Hand Lambert, Do you have other cursor listings or tell me where to find them? This is cool. Now I've got about 10 apps to update. That should keep me busy for a while ;-) Thanks. Rick Ehlers Power Services Performance And Valuation Annex - EX510 Phone: (513) 287-2047 Fax: (513) 287-3698 EMail: Rick.Ehlers at cinergy.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, July 26, 2005 11:29 AM To: 'Access Developers discussion and problem solving' Cc: 'Rocky Smolin - Beach Access Software' Subject: RE: [AccessD] Turn Mouse Pointer to Hand OK. I got it, this time using the API route. Put this code in a module... Public Const HandCursor = 32649& Declare Function LoadCursorBynum Lib "user32" Alias "LoadCursorA" _ (ByVal hInstance As Long, ByVal lpCursorName As Long) As Long Declare Function SetCursor Lib "user32" (ByVal hCursor As Long) As Long Function MouseCursor(CursorType As Long) Dim lngRet As Long lngRet = LoadCursorBynum(0&, CursorType) lngRet = SetCursor(lngRet) End Function ...Then all you need is a MouseMove event for the label which reads... MouseCursor HandCursor Access will automatically restore the default cursor when you move out of the label's area. Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Jul 26 13:01:21 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 26 Jul 2005 11:01:21 -0700 Subject: [AccessD] Demo To Run for 30 Days References: <28960735.1122390295037.JavaMail.www@wwinf3003> <53c8e05a05072608123c2aad6c@mail.gmail.com> <010c01c59205$ef560150$6a01a8c0@HAL9004> Message-ID: <01de01c5920c$0812f490$6a01a8c0@HAL9004> The date. I store the date, not the state. The date. Rocky ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 10:17 AM Subject: Re: [AccessD] Demo To Run for 30 Days >I store the state each time they start the system. If the system date is >ever earlier than the last time they started it (indicating that they moved >the system date back to try to get a few more days' use) I give them a >message that says they need to adjust the clock in the computer and quit >the app. > > Rocky > > ----- Original Message ----- > From: "Josh McFarlane" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, July 26, 2005 8:12 AM > Subject: Re: [AccessD] Demo To Run for 30 Days > > >> On 7/26/05, paul.hartland at fsmail.net wrote: >>> What I tend to do is when they first open the application, store the >>> system date and calculate 30 days in advance and also store this, then >>> you just check the stored date which is 30 days in advance each time >>> they open the app, if you check a stored date against system date, they >>> can always keep changing the date on their machine can't they ? >>> >>> Paul Hartland >> >> The optimum solution I can think of is to have the two fields you >> mentioned, and use them as sort of a between statement in which it can >> run. First time the program opens, it sets both dates. >> >> Next time the user opens the application, first it checks to make sure >> the current date is between those dates, and if it is, it updates the >> current system date with the new value. This way, the date window that >> the program can be opened in slowly expires as time progresses. >> >> If the user sets their computer to day X time Y after they got the >> App but before their last use time, the start time is already after >> the current time, and the program cannot open. >> >> -- >> Josh McFarlane >> "Peace cannot be kept by force. It can only be achieved by >> understanding." >> -Albert Einstein >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 martyconnelly at shaw.ca Tue Jul 26 13:06:00 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 26 Jul 2005 11:06:00 -0700 Subject: [AccessD] Google is Down???? - OT References: Message-ID: <42E67B88.8000703@shaw.ca> Your ISP could have problems with DNS server or DNS Cache poisoning Try going to the google IP numeric address directly skipping DNS, This address may change. http://64.233.167.147/ You can track the ip address down from sites like http://www.dnsstuff.com you may have to use their route search via their copy of tracecrt. Nicholson, Karen wrote: >Is Google down all over the country? This is like killing Kenny (South >Park). What the.... no way. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Tue Jul 26 13:43:41 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 26 Jul 2005 11:43:41 -0700 Subject: [AccessD] Conversion to Express References: <20050726152145.LCSW14543.ibm61aec.bellsouth.net@SUSANONE> Message-ID: <42E6845D.7090007@shaw.ca> Not too much on actual conversion but maybe something here in these MS and MSDN blogs although lots on actual connection of the Access and Express. A lot of these sites do not appear to be open to Google or other search engines. FAQ: How to connect to SQL Express from "downlevel clients"(Access 2003, VS 2003, VB 6, etc http://blogs.msdn.com/sqlexpress/archive/2004/07/23/192044.aspx You will find this EM tool helpful for conversion of Access (released last month). Microsoft SQL Server 2005 Express Manager - Community Technology Preview June 2005 (New replacement for SQL Enterprise Manager) http://www.microsoft.com/downloads/details.aspx?FamilyId=C7A5CC62-EC54-4299-85FC-BA05C181ED55&displaylang=en Visual Studio Express Editions MSDN forums http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=24 Securing Your SQL Server 2005 Express Edition Server http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsse/html/ssesecurity.asp Connecting Access and SQL Express 2005 http://blogs.msdn.com/sqlexpress/ SMO Replaces SQL-DMO http://www.windowsitpro.com/Article/ArticleID/40993/40993.html?Ad=1 Silly Billy's have turned of search function for upgrades to this newsgroup microsoft.private.sqlserver2005.express http://communities.microsoft.com/newsgroups/default.asp?icp=sqlserver2005&slcid=us One interesting post on this newsgroup Just in passing concerning future design about ADP's from Access 2003 on down that will not play fair with SQL Server 2005 Express (replacement for MSDE). Re: Access 2002 and SQL Express From: "Mary Chipman [MSFT]" Sent: 8/20/2004 11:30:58 AM You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. The only support that is envisioned is that you will be able to connect an Access front-end to a SQLS 2005 back end if it is running in SQLS 2000 compatibility mode, so your forms, reports and other local Access objects should still run. There is no service pack or quick fix being planned as far as I know because of the amount of work it would entail. If you stop to think about it, it's pretty hard to see how accomodating new Yukon features like CLR assemblies and complex data types in the ADP designers could be achieved without a complete rewrite. --Mary Chipman The problem has been know about for some time. SQL Server 2005 is a major rewrite and at the time they began development they decided they would not provide access to its features from Access and ADPs mainly becasue they view Access as a power user application - STILL. Lot of .NET stuff built into SQLS erver 2005 and they figured it wasnt worth the cost or effort to rewrite the ADP functionality in Access to deal with this. Susan Harkins wrote: >I'm interested in published or personal experience with converting Access to >the new SQL Server Express beta. Right now, with its lack of tools, I doubt >there's much on the subject. If you run across anything, you might remember >me with a quick link. Thanks! > >Susan H. > > -- Marty Connelly Victoria, B.C. Canada From Erwin.Craps at ithelps.be Tue Jul 26 14:46:11 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 26 Jul 2005 21:46:11 +0200 Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5D75@stekelbes.ithelps.local> Hi group Can someone advise me some ASP/ASP.NET E-commerce shop software that connects with an MDB or SQL server? -by preferation free software or at low price (Source included) -supports multilanguage thx Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From ssharkins at bellsouth.net Tue Jul 26 15:32:59 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 26 Jul 2005 16:32:59 -0400 Subject: [AccessD] Conversion to Express In-Reply-To: <42E6845D.7090007@shaw.ca> Message-ID: <20050726203320.QARV14543.ibm61aec.bellsouth.net@SUSANONE> Thanks Marty -- I'll take a look! Susan H. Not too much on actual conversion but maybe something here in these MS and MSDN blogs although lots on actual connection of the Access and Express. A lot of these sites do not appear to be open to Google or other search engines. FAQ: How to connect to SQL Express from "downlevel clients"(Access 2003, VS 2003, VB 6, etc http://blogs.msdn.com/sqlexpress/archive/2004/07/23/192044.aspx You will find this EM tool helpful for conversion of Access (released last month). Microsoft SQL Server 2005 Express Manager - Community Technology Preview June 2005 (New replacement for SQL Enterprise Manager) http://www.microsoft.com/downloads/details.aspx?FamilyId=C7A5CC62-EC54-4299- 85FC-BA05C181ED55&displaylang=en Visual Studio Express Editions MSDN forums http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=24 Securing Your SQL Server 2005 Express Edition Server http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsse/html/ ssesecurity.asp Connecting Access and SQL Express 2005 http://blogs.msdn.com/sqlexpress/ SMO Replaces SQL-DMO http://www.windowsitpro.com/Article/ArticleID/40993/40993.html?Ad=1 Silly Billy's have turned of search function for upgrades to this newsgroup microsoft.private.sqlserver2005.express http://communities.microsoft.com/newsgroups/default.asp?icp=sqlserver2005&sl cid=us One interesting post on this newsgroup Just in passing concerning future design about ADP's from Access 2003 on down that will not play fair with SQL Server 2005 Express (replacement for MSDE). Re: Access 2002 and SQL Express From: "Mary Chipman [MSFT]" Sent: 8/20/2004 11:30:58 AM You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. The only support that is envisioned is that you will be able to connect an Access front-end to a SQLS 2005 back end if it is running in SQLS 2000 compatibility mode, so your forms, reports and other local Access objects should still run. There is no service pack or quick fix being planned as far as I know because of the amount of work it would entail. If you stop to think about it, it's pretty hard to see how accomodating new Yukon features like CLR assemblies and complex data types in the ADP designers could be achieved without a complete rewrite. --Mary Chipman The problem has been know about for some time. SQL Server 2005 is a major rewrite and at the time they began development they decided they would not provide access to its features from Access and ADPs mainly becasue they view Access as a power user application - STILL. Lot of .NET stuff built into SQLS erver 2005 and they figured it wasnt worth the cost or effort to rewrite the ADP functionality in Access to deal with this. Susan Harkins wrote: >I'm interested in published or personal experience with converting >Access to the new SQL Server Express beta. Right now, with its lack of >tools, I doubt there's much on the subject. If you run across anything, >you might remember me with a quick link. Thanks! > >Susan H. > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at outbaktech.com Tue Jul 26 15:58:48 2005 From: Jeff at outbaktech.com (Jeff Barrows) Date: Tue, 26 Jul 2005 15:58:48 -0500 Subject: [AccessD] Cross Posted: Looking for a .NET developer near Neenah, WI Message-ID: Anybody looking for a .NET contract (12 months +)????? Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com From kimjwiggins at yahoo.com Tue Jul 26 16:16:47 2005 From: kimjwiggins at yahoo.com (Kim Wiggins) Date: Tue, 26 Jul 2005 14:16:47 -0700 (PDT) Subject: [AccessD] Problem with bookmarks in automation In-Reply-To: Message-ID: <20050726211647.64170.qmail@web53601.mail.yahoo.com> Bryan, thanks but I found the problem. It was odd quotes that I had around the bookmark that was causing it not to recognize the bookmark. I have corrected it and it works. Thanks Bryan Carbonnell wrote:On 25/07/05, Kim Wiggins wrote: > I am really trying to make this word Automation work. I am using VB to write the code but it will not recognize the bookmarks. It opens the document and everything like it should but it will not recognize the book mark. The error I get is this: > > the requested member of the collection does not exist > > It bombs out at the green highlighted code and I can't understand why. Any help would be greatly appreciated. Formatting doesn't come through to the list. Which line is causing the problem? This one? > objWD.ActiveDocument.Bookmarks.Item("AT").Range.Text = frmAircraftWO.txtAircraftType If so, is AT the name of a bookmark in the main body of the document? Or is it in a header or footer? Are you sure the active document the one referenceced in the variable doc? -- 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From KP at sdsonline.net Tue Jul 26 19:57:14 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Wed, 27 Jul 2005 10:57:14 +1000 Subject: [AccessD] VBExpress videos References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805><002901c590ab$8fe53de0$6601a8c0@user> Message-ID: <00b501c59246$20f72140$6601a8c0@user> ...hhmmm....thinking over the pros and cons.....I am getting very tired of clients changing office versions etc etc and having the app crash. And I am getting very sick of setting refs and finding that some users end up with it missing - whoops - crash again. So runtime should solve both those issues? On the other hand, with my main client (using full Access install) I can get straight on to their PC online using VNC, make a change to the mdb, recreate the mde and post it to the network from where it gets automatically downloaded the next time all users open it. That would be much harder with runtime, wouldn't it? How do you distribute upgrades? Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 1:15 PM Subject: Re: [AccessD] VBExpress videos ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 Jeff at outbaktech.com Tue Jul 26 21:27:15 2005 From: Jeff at outbaktech.com (Jeff Barrows) Date: Tue, 26 Jul 2005 21:27:15 -0500 Subject: [AccessD] RE: [dba-OT] Cross Posted: Looking for a .NET developer near Neenah, WI Message-ID: Sorry, I should have been more specific. I was contacted by a recruiter who is looking for a .NET developer looking for a long term contract in Neenah, WI. The company is looking for 10 years experience in IT and at least 2 years experience with .NET. I was told that they are willing to relax their requirements a little for a 'local boy (or girl). If anyone is interested, please contact me off-list and I will send additional information, including the recruiters name and contact information. Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com -----Original Message----- From: dba-ot-bounces at databaseadvisors.com [mailto:dba-ot-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Tuesday, July 26, 2005 3:59 PM To: dba-OT; Dba-Tech; dba-VB; AccessD Subject: [dba-OT] Cross Posted: Looking for a .NET developer near Neenah, WI Anybody looking for a .NET contract (12 months +)????? Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com _______________________________________________ dba-OT mailing list dba-OT at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-ot Website: http://www.databaseadvisors.com From vrm at tim-cms.com Wed Jul 27 01:58:51 2005 From: vrm at tim-cms.com (| Marcel Vreuls) Date: Wed, 27 Jul 2005 08:58:51 +0200 Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B5D75@stekelbes.ithelps.local> Message-ID: <003001c59278$a5319cb0$6c61fea9@GALAXY.local> Hi Erwin, I have a ASP.NET and VB.NET ecommerce store with support multilanguage and is skinnalbe. After a year of development I am selling it for about 5 months now. Take a look at the store where are building right now http://topparts.7host.com . In most cases i do not sell the source because i invested a lot of time in it. I have two companies in holland who would like to have the source also and we come to an agreement about it. My main concern is that my customers are going to resell the software so this is what i would like to prevent. Just let me know what you think about it Marcel (ps. as i live in holland you can contact me offline in dutch if that is easier for you (vrm at tim-cms.com). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: dinsdag 26 juli 2005 21:46 To: Access Developers discussion and problem solving Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software Hi group Can someone advise me some ASP/ASP.NET E-commerce shop software that connects with an MDB or SQL server? -by preferation free software or at low price (Source included) -supports multilanguage thx Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Wed Jul 27 01:58:05 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 27 Jul 2005 12:28:05 +0530 Subject: [AccessD] FW: Find a record in table with intervals References: Message-ID: <00a201c59278$b54a1870$431865cb@winxp> Chester, Sample query given below should get you the latest prevailing value on a given date. T_PriceIndex is the master table showing the price on different dates, while T_PriceCurrent is the table having dates for which the latest prevailing price is required. For each date in table T_PriceCurrent, calculated field named PriceCurrent in the sample query gives the latest prevailing price (as collected from T_PriceIndex). Best wishes, A.D.Tejpal -------------- =================================== SELECT T_PriceCurrent.SDate, (Select Price From T_PriceIndex As T1 Where T1.SDate = (Select Max(SDate) From T_PriceIndex As T2 Where T2.SDate <= T_PriceCurrent.SDate)) AS PriceCurrent FROM T_PriceCurrent; =================================== ----- Original Message ----- From: Kaup, Chester To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 20:19 Subject: [AccessD] FW: Find a record in table with intervals I have table (table1) with dates and a value associated with the date. For example 1/1/2001 20 7/13/2003 27 12/26/2003 31 6/4/2004 33 1/13/2005 40 6/7/2005 44 I have another table (table 2) with values in it also. Using the date in this table I need to find the value in table one that would be correct for that date. It is assumed the value in table one carries forward until the date changes. The value associated with the last date carries forward forever. For example a date of 10/13/2004 should return a value of 33. I was able to achieve the desired result with several if then else and do loops but was hoping for a better solution. Was hoping for something like the vlookup function in Excel. Thanks. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 From prosoft6 at hotmail.com Wed Jul 27 08:15:25 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Wed, 27 Jul 2005 09:15:25 -0400 Subject: [AccessD] Cross Posted: Looking for a .NET developer near Neenah, WI In-Reply-To: Message-ID: Does it have to be local? From cyx5 at cdc.gov Wed Jul 27 08:21:49 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 27 Jul 2005 09:21:49 -0400 Subject: [AccessD] Cross Posted: Looking for a .NET developer near Neenah, WI Message-ID: What type of .net? vb.net, asp.net? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: Wednesday, July 27, 2005 9:15 AM To: accessd at databaseadvisors.com; dba-OT at databaseadvisors.com; dba-tech at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: RE: [AccessD] Cross Posted: Looking for a .NET developer near Neenah,WI Does it have to be local? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Wed Jul 27 08:32:47 2005 From: artful at rogers.com (Arthur Fuller) Date: Wed, 27 Jul 2005 09:32:47 -0400 Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software In-Reply-To: <003001c59278$a5319cb0$6c61fea9@GALAXY.local> Message-ID: <200507271332.j6RDWsR14371@databaseadvisors.com> My Dutch is pretty shaky (I know only about 5 words, of which my favourite is the word for vacuum cleaner) so I will respond in English. In a situation such as this (assuming the good intentions of the client), what the client is primarily concerned about is what happens should you get run over by a tram or meet some similar demise. What you are concerned about is protecting your source code. To protect both parties, you place the source code in escrow, which means in the hands of a disinterested party. Should the tram kill you, the client gets the code. Should you avoid collisions with a tram, your source code is safe. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of | Marcel Vreuls Sent: July 27, 2005 2:59 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software Hi Erwin, I have a ASP.NET and VB.NET ecommerce store with support multilanguage and is skinnalbe. After a year of development I am selling it for about 5 months now. Take a look at the store where are building right now http://topparts.7host.com . In most cases i do not sell the source because i invested a lot of time in it. I have two companies in holland who would like to have the source also and we come to an agreement about it. My main concern is that my customers are going to resell the software so this is what i would like to prevent. Just let me know what you think about it Marcel (ps. as i live in holland you can contact me offline in dutch if that is easier for you (vrm at tim-cms.com). From Mike.W.Gowey at doc.state.or.us Wed Jul 27 09:36:39 2005 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Wed, 27 Jul 2005 08:36:39 -0600 Subject: [AccessD] Automatic Tracking Number Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077801087D@srciml1.ds.doc.state.or.us> Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit From accessd at shaw.ca Wed Jul 27 10:00:17 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 27 Jul 2005 08:00:17 -0700 Subject: [AccessD] Automatic Tracking Number In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF486077801087D@srciml1.ds.doc.state.or.us> Message-ID: <0IKA0032HKCFJG@l-daemon> Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Wed Jul 27 10:06:31 2005 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Wed, 27 Jul 2005 09:06:31 -0600 Subject: [AccessD] Automatic Tracking Number Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579B605@srciml1.ds.doc.state.or.us> I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 ldoering at symphonyinfo.com Wed Jul 27 10:20:22 2005 From: ldoering at symphonyinfo.com (Liz Doering) Date: Wed, 27 Jul 2005 10:20:22 -0500 Subject: [AccessD] Automatic Tracking Number Message-ID: <855499653F55AD4190B242717DF132BC082FD7@dewey.Symphony.local> Mike, I've worked around this by saving the record to actually generate the ID, then querying on some other known parameters to retrieve it. Then you will get back the ID you are looking for. If there is a better method, I would like to know! Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 10:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mike.W.Gowey at doc.state.or.us Wed Jul 27 10:23:32 2005 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Wed, 27 Jul 2005 09:23:32 -0600 Subject: [AccessD] Automatic Tracking Number Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579B606@srciml1.ds.doc.state.or.us> Yeah that wouldn't work for me, I really don't have any other parameter that I could query on to get the ID. There could be upwards of 10 people entering data at the same time and on the same person. I hope someone has a way to do this. Thanks, Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Liz Doering [mailto:ldoering at symphonyinfo.com] Sent: Wednesday, July 27, 2005 9:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Mike, I've worked around this by saving the record to actually generate the ID, then querying on some other known parameters to retrieve it. Then you will get back the ID you are looking for. If there is a better method, I would like to know! Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 10:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cyx5 at cdc.gov Wed Jul 27 10:28:44 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 27 Jul 2005 11:28:44 -0400 Subject: [AccessD] Automatic Tracking Number Message-ID: I am doing the exact same thing right now. What I have done is to put a field on the form (and in its datasource) with a time stamp. As it is being written to the new table, I am taking that time stamp right along with it. Then I am returning that value to my form based on time = time. Does that make sense? Once I get it coded, I will post it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 11:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Yeah that wouldn't work for me, I really don't have any other parameter that I could query on to get the ID. There could be upwards of 10 people entering data at the same time and on the same person. I hope someone has a way to do this. Thanks, Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Liz Doering [mailto:ldoering at symphonyinfo.com] Sent: Wednesday, July 27, 2005 9:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Mike, I've worked around this by saving the record to actually generate the ID, then querying on some other known parameters to retrieve it. Then you will get back the ID you are looking for. If there is a better method, I would like to know! Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 10:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Wed Jul 27 10:29:44 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Jul 2005 08:29:44 -0700 Subject: [AccessD] Automatic Tracking Number Message-ID: Have you tried using an output parameter to return the identity value? Charlotte Foust -----Original Message----- From: Gowey Mike W [mailto:Mike.W.Gowey at doc.state.or.us] Sent: Wednesday, July 27, 2005 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Wed Jul 27 10:34:42 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Jul 2005 08:34:42 -0700 Subject: [AccessD] VBExpress videos Message-ID: I can't speak for anyone else, but for my personal projects, I just give them a new front end for minor stuff. Since my employer's product is commercial, we either distribute a new CD or we put the latest installer on our server for them to download. The Wise installer is smart enough to not install the runtime if it is already installed and current. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Tuesday, July 26, 2005 5:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos ...hhmmm....thinking over the pros and cons.....I am getting very tired of clients changing office versions etc etc and having the app crash. And I am getting very sick of setting refs and finding that some users end up with it missing - whoops - crash again. So runtime should solve both those issues? On the other hand, with my main client (using full Access install) I can get straight on to their PC online using VNC, make a change to the mdb, recreate the mde and post it to the network from where it gets automatically downloaded the next time all users open it. That would be much harder with runtime, wouldn't it? How do you distribute upgrades? Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 1:15 PM Subject: Re: [AccessD] VBExpress videos ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 Mike.W.Gowey at doc.state.or.us Wed Jul 27 10:34:54 2005 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Wed, 27 Jul 2005 09:34:54 -0600 Subject: [AccessD] Automatic Tracking Number Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579B607@srciml1.ds.doc.state.or.us> Thanks Karen, I would like to look at that code to see if it would work for me also. It's going to be hard, with upwards of 10 people entering data at the same time, it could be possible for two records to be entered at the same time with the same time stamp. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit Office - (541)881-4808 Fax - (541)881-5471 Pager - 1-888-320-2545 epage - 8883202545 at archwireless.net -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, July 27, 2005 9:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I am doing the exact same thing right now. What I have done is to put a field on the form (and in its datasource) with a time stamp. As it is being written to the new table, I am taking that time stamp right along with it. Then I am returning that value to my form based on time = time. Does that make sense? Once I get it coded, I will post it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 11:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Yeah that wouldn't work for me, I really don't have any other parameter that I could query on to get the ID. There could be upwards of 10 people entering data at the same time and on the same person. I hope someone has a way to do this. Thanks, Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Liz Doering [mailto:ldoering at symphonyinfo.com] Sent: Wednesday, July 27, 2005 9:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Mike, I've worked around this by saving the record to actually generate the ID, then querying on some other known parameters to retrieve it. Then you will get back the ID you are looking for. If there is a better method, I would like to know! Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 10:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mike.W.Gowey at doc.state.or.us Wed Jul 27 10:35:35 2005 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Wed, 27 Jul 2005 09:35:35 -0600 Subject: [AccessD] Automatic Tracking Number Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579B608@srciml1.ds.doc.state.or.us> Charlotte, How would I go about that? Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, July 27, 2005 9:30 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Have you tried using an output parameter to return the identity value? Charlotte Foust -----Original Message----- From: Gowey Mike W [mailto:Mike.W.Gowey at doc.state.or.us] Sent: Wednesday, July 27, 2005 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Wed Jul 27 10:37:55 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Jul 2005 08:37:55 -0700 Subject: [AccessD] Demo To Run for 30 Days Message-ID: But it would be more interesting to see you try to compare the date to the state, Rocky. ;-} Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Tuesday, July 26, 2005 11:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Demo To Run for 30 Days The date. I store the date, not the state. The date. Rocky ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 10:17 AM Subject: Re: [AccessD] Demo To Run for 30 Days >I store the state each time they start the system. If the system date >is >ever earlier than the last time they started it (indicating that they moved >the system date back to try to get a few more days' use) I give them a >message that says they need to adjust the clock in the computer and quit >the app. > > Rocky > > ----- Original Message ----- > From: "Josh McFarlane" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, July 26, 2005 8:12 AM > Subject: Re: [AccessD] Demo To Run for 30 Days > > >> On 7/26/05, paul.hartland at fsmail.net >> wrote: >>> What I tend to do is when they first open the application, store the >>> system date and calculate 30 days in advance and also store this, then >>> you just check the stored date which is 30 days in advance each time >>> they open the app, if you check a stored date against system date, they >>> can always keep changing the date on their machine can't they ? >>> >>> Paul Hartland >> >> The optimum solution I can think of is to have the two fields you >> mentioned, and use them as sort of a between statement in which it >> can run. First time the program opens, it sets both dates. >> >> Next time the user opens the application, first it checks to make >> sure the current date is between those dates, and if it is, it >> updates the current system date with the new value. This way, the >> date window that the program can be opened in slowly expires as time >> progresses. >> >> If the user sets their computer to day X time Y after they got the >> App but before their last use time, the start time is already after >> the current time, and the program cannot open. >> >> -- >> Josh McFarlane >> "Peace cannot be kept by force. It can only be achieved by >> understanding." >> -Albert Einstein >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 dkalsow at yahoo.com Wed Jul 27 10:38:11 2005 From: dkalsow at yahoo.com (Dale Kalsow) Date: Wed, 27 Jul 2005 08:38:11 -0700 (PDT) Subject: [AccessD] Cross Posted: Looking for a .NET developer near Neenah, WI In-Reply-To: Message-ID: <20050727153811.13490.qmail@web50405.mail.yahoo.com> I do vb.net programming and am in Hudson, WI. Please contact me off line if I can be of any help. dkalsow at yahoo.com Julie Reardon-Taylor wrote: Does it have to be local? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From cfoust at infostatsystems.com Wed Jul 27 10:44:44 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Jul 2005 08:44:44 -0700 Subject: [AccessD] How to draw a line around select textboxes Message-ID: In that case, you put a line control in the top, left and right borders of the detail and you put another horizontal line at the top of a group footer that exists only for that purpose. You can also draw the lines in code. Charlotte Foust -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Tuesday, July 26, 2005 5:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to draw a line around select textboxes Thanks for responding. If I use the rectangle I only get a box around the textboxes for that line and then another box around the textboxes on the next row. If I have 10 lines of data, I want one box to show around these text boxes for all ten rows. Sort of like a border for the entire page of detail. Thanks again. Sad Der wrote: Lonnie, can give some more details? So, you want to create a line around textboxes. Do you want this for all rows? If so, why not use a rectangle and set the visible property to true or false? SD --- Lonnie Johnson wrote: > I am sorry, this is on a report and not a form. > > Lonnie Johnson wrote:What if I > have 10 text boxes on a form all across in a row and > I wanted to put a box around the first 5 and another > box (boarder) around the second 5? This box/border > would expand the height of the detail section of > each page. > > I was thinking of the Me.Line method but don't know > how to > > 1) Just put it around certain boxes > > 2) How to have more than one line method going on at > once. > > Thanks. > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access > Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access > Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pjones at btl.net Wed Jul 27 12:13:54 2005 From: pjones at btl.net (Paul M. Jones) Date: Wed, 27 Jul 2005 11:13:54 -0600 Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 Message-ID: <6.2.0.14.2.20050727110543.02984a98@pop.btl.net> I have an application initially written in Access 97 and then moved to 2000. It talks to a SQL Server 2000 database using tables linked through an ODBC driver. Lately I have had several instances where I call a stored procedure to perform an operation but I don't receive a response from the SQL Server even though the operation was carried out successfully. This leaves my application hanging. I suspect it has to do with the ODBC connection. Anybody has any experiences with this type of issue? On a related note, is there a better way of linking my tables to the SQL Server other than to use an ODBC driver? I have a couple of newer projects that use ADP but unfortunately, it's not an option for me at this point since I have too many queries that I'll need to convert to either stored procedures or views. Thanks Paul M. Jones ---------------------------------------------------------------------------------------------- Reality is the murder of a beautiful theory by a gang of ugly facts. Robert L. Glass From Jim.Hale at FleetPride.com Wed Jul 27 12:46:18 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 27 Jul 2005 12:46:18 -0500 Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337728@corp-es01.fleetpride.com> If you are basically selecting data for reporting you might switch to pass through queries. This has worked well for me. Jim Hale -----Original Message----- From: Paul M. Jones [mailto:pjones at btl.net] Sent: Wednesday, July 27, 2005 12:14 PM To: Access Developers discussion and problem solving Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 I have an application initially written in Access 97 and then moved to 2000. It talks to a SQL Server 2000 database using tables linked through an ODBC driver. Lately I have had several instances where I call a stored procedure to perform an operation but I don't receive a response from the SQL Server even though the operation was carried out successfully. This leaves my application hanging. I suspect it has to do with the ODBC connection. Anybody has any experiences with this type of issue? On a related note, is there a better way of linking my tables to the SQL Server other than to use an ODBC driver? I have a couple of newer projects that use ADP but unfortunately, it's not an option for me at this point since I have too many queries that I'll need to convert to either stored procedures or views. Thanks Paul M. Jones ---------------------------------------------------------------------------- ------------------ Reality is the murder of a beautiful theory by a gang of ugly facts. Robert L. Glass -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From bheid at appdevgrp.com Wed Jul 27 13:17:18 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Jul 2005 14:17:18 -0400 Subject: [AccessD] Locking question Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED7B@ADGSERVER> Hey, Our clients use our system on a network where each user has a FE against the BE on the server. While the app was originally written to all be on the local pc, it has migrated to the server. Usually all goes well. Well, this one client has some weird happenings going on. One user will be in the database in any given form. Another user cannot get access to the BE until the 1st user exits the form they were in. The first thing the app does is to relink the tables to the last BE that was loaded. It sounds like there are some sort of issues with locking and the LDB file. Anyone have any pointers? Thanks, Bobby From ebarro at afsweb.com Wed Jul 27 13:19:13 2005 From: ebarro at afsweb.com (Eric Barro) Date: Wed, 27 Jul 2005 11:19:13 -0700 Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 In-Reply-To: <6.2.0.14.2.20050727110543.02984a98@pop.btl.net> Message-ID: Paul, Instead of linking why not pull down the information using DoCmd.TransferDatabase? I have this code on one of my apps. DoCmd.DeleteObject acTable, "myaccesstablename" DoCmd.TransferDatabase acImport "ODBC Database", "ODBC;DSN=mydsnconnectionname;UID=myuserid;PWD=mypassword;Language=us_englis h;" _ & "DATABASE=mysqldatabasename", acTable, "mysqltablename", "myaccesstablename" ODBC by its very nature is slow and I've had the same issues before trying to link SQL tables. This approach has solved that for me. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul M. Jones Sent: Wednesday, July 27, 2005 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 I have an application initially written in Access 97 and then moved to 2000. It talks to a SQL Server 2000 database using tables linked through an ODBC driver. Lately I have had several instances where I call a stored procedure to perform an operation but I don't receive a response from the SQL Server even though the operation was carried out successfully. This leaves my application hanging. I suspect it has to do with the ODBC connection. Anybody has any experiences with this type of issue? On a related note, is there a better way of linking my tables to the SQL Server other than to use an ODBC driver? I have a couple of newer projects that use ADP but unfortunately, it's not an option for me at this point since I have too many queries that I'll need to convert to either stored procedures or views. Thanks Paul M. Jones ---------------------------------------------------------------------------- ------------------ Reality is the murder of a beautiful theory by a gang of ugly facts. Robert L. Glass -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From Lambert.Heenan at AIG.com Wed Jul 27 13:39:49 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 27 Jul 2005 14:39:49 -0400 Subject: [AccessD] Locking question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F137776BB@xlivmbx21.aig.com> Just a thought: if it really is related to the re-linking process, then why not have the app. simply check the links, and only do a re-link if needed? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, July 27, 2005 2:17 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Locking question Hey, Our clients use our system on a network where each user has a FE against the BE on the server. While the app was originally written to all be on the local pc, it has migrated to the server. Usually all goes well. Well, this one client has some weird happenings going on. One user will be in the database in any given form. Another user cannot get access to the BE until the 1st user exits the form they were in. The first thing the app does is to relink the tables to the last BE that was loaded. It sounds like there are some sort of issues with locking and the LDB file. Anyone have any pointers? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Jul 27 13:44:50 2005 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 27 Jul 2005 13:44:50 -0500 Subject: [AccessD] Locking question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED7B@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30ABED7B@ADGSERVER> Message-ID: Hi Bobby, The users need to have File Creation rights in the folder that the BE database lives in so the LDB file can be created. Is there an LDB file being created for the BE when the first user is in there? I think with one user it will allow access without being able to create the LDB file but will lock out the second user? I could be out in left field wandering in my own dream world too of course. I do know that users of our Access databases need full file creation, change and deletion rights in the folder or else it doesn't work. On 7/27/05, Bobby Heid wrote: > Hey, > > Our clients use our system on a network where each user has a FE against the > BE on the server. While the app was originally written to all be on the > local pc, it has migrated to the server. Usually all goes well. > > Well, this one client has some weird happenings going on. One user will be > in the database in any given form. Another user cannot get access to the BE > until the 1st user exits the form they were in. The first thing the app > does is to relink the tables to the last BE that was loaded. It sounds like > there are some sort of issues with locking and the LDB file. > > Anyone have any pointers? > > Thanks, > Bobby > > -- > 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 bheid at appdevgrp.com Wed Jul 27 14:05:57 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Jul 2005 15:05:57 -0400 Subject: [AccessD] Locking question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C381CA@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED7D@ADGSERVER> It turns out that there is not a real problem other than the users are being impatient. The app has gotten bloated over time and needs to be rewritten with SQL server, but the client does not want to do that yet. The app is a little slow loading, especially on the network they are on. They are having network problems which is slowing the app way down. On my slow machine (700Mhz PIII), it takes about 2 seconds to load the database from a local drive. It is taking them about 1-1.5 minutes to load. As for the question about relinking at startup, we tried not relinking before. But there always seemed to be issues with that. So it was decided to just relink each time. Thanks for the replies, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, July 27, 2005 2:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question Just a thought: if it really is related to the re-linking process, then why not have the app. simply check the links, and only do a re-link if needed? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, July 27, 2005 2:17 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Locking question Hey, Our clients use our system on a network where each user has a FE against the BE on the server. While the app was originally written to all be on the local pc, it has migrated to the server. Usually all goes well. Well, this one client has some weird happenings going on. One user will be in the database in any given form. Another user cannot get access to the BE until the 1st user exits the form they were in. The first thing the app does is to relink the tables to the last BE that was loaded. It sounds like there are some sort of issues with locking and the LDB file. Anyone have any pointers? Thanks, Bobby From pjones at btl.net Wed Jul 27 14:01:47 2005 From: pjones at btl.net (Paul M. Jones) Date: Wed, 27 Jul 2005 13:01:47 -0600 Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB6772337728@corp-es01.fleetprid e.com> References: <6A6AA9DF57E4F046BDA1E273BDDB6772337728@corp-es01.fleetpride.com> Message-ID: <6.2.0.14.2.20050727125959.02a6f850@pop.btl.net> Actually, I'm performing the full range of a normal application, including data entry, reporting, and calling stored procedures to execute specialized business logic. Paul M. Jones At 11:46 AM 7/27/2005, you wrote: >If you are basically selecting data for reporting you might switch to pass >through queries. This has worked well for me. >Jim Hale Reality is the murder of a beautiful theory by a gang of ugly facts. Robert L. Glass From darsant at gmail.com Wed Jul 27 14:21:17 2005 From: darsant at gmail.com (Josh McFarlane) Date: Wed, 27 Jul 2005 14:21:17 -0500 Subject: [AccessD] Locking question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED7D@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30C381CA@ADGSERVER> <916187228923D311A6FE00A0CC3FAA30ABED7D@ADGSERVER> Message-ID: <53c8e05a05072712213cd642d0@mail.gmail.com> On 7/27/05, Bobby Heid wrote: > It turns out that there is not a real problem other than the users are being > impatient. The app has gotten bloated over time and needs to be rewritten > with SQL server, but the client does not want to do that yet. > > The app is a little slow loading, especially on the network they are on. > They are having network problems which is slowing the app way down. On my > slow machine (700Mhz PIII), it takes about 2 seconds to load the database > from a local drive. It is taking them about 1-1.5 minutes to load. > > As for the question about relinking at startup, we tried not relinking > before. But there always seemed to be issues with that. So it was decided > to just relink each time. > > Thanks for the replies, > Bobby Ouch, how big is the database? -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From dwaters at usinternet.com Wed Jul 27 14:33:45 2005 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 27 Jul 2005 12:33:45 -0700 Subject: [AccessD] Locking question In-Reply-To: <10490719.1122491391198.JavaMail.root@sniper16> Message-ID: <000701c592e2$1b595270$0518820a@danwaters> Has the FE been decompiled/compiled and the BE compacted? Perhaps the size could be reduced . . . Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, July 27, 2005 12:06 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question It turns out that there is not a real problem other than the users are being impatient. The app has gotten bloated over time and needs to be rewritten with SQL server, but the client does not want to do that yet. The app is a little slow loading, especially on the network they are on. They are having network problems which is slowing the app way down. On my slow machine (700Mhz PIII), it takes about 2 seconds to load the database from a local drive. It is taking them about 1-1.5 minutes to load. As for the question about relinking at startup, we tried not relinking before. But there always seemed to be issues with that. So it was decided to just relink each time. Thanks for the replies, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, July 27, 2005 2:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question Just a thought: if it really is related to the re-linking process, then why not have the app. simply check the links, and only do a re-link if needed? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, July 27, 2005 2:17 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Locking question Hey, Our clients use our system on a network where each user has a FE against the BE on the server. While the app was originally written to all be on the local pc, it has migrated to the server. Usually all goes well. Well, this one client has some weird happenings going on. One user will be in the database in any given form. Another user cannot get access to the BE until the 1st user exits the form they were in. The first thing the app does is to relink the tables to the last BE that was loaded. It sounds like there are some sort of issues with locking and the LDB file. Anyone have any pointers? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed Jul 27 14:37:29 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Jul 2005 15:37:29 -0400 Subject: [AccessD] Locking question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C381DB@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED7E@ADGSERVER> I'm not sure about their database. It is our client's client. Some of their clients have databases in the 80-100MB range. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Wednesday, July 27, 2005 3:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Locking question Ouch, how big is the database? -- Josh McFarlane From bheid at appdevgrp.com Wed Jul 27 14:41:43 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Jul 2005 15:41:43 -0400 Subject: [AccessD] Locking question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C381E3@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED7F@ADGSERVER> The FE is an MDE. The back end is compacted occasionally. I think the real issue is their network problems. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, July 27, 2005 3:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question Has the FE been decompiled/compiled and the BE compacted? Perhaps the size could be reduced . . . Dan Waters From dwaters at usinternet.com Wed Jul 27 14:51:36 2005 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 27 Jul 2005 12:51:36 -0700 Subject: [AccessD] Locking question In-Reply-To: <18519772.1122493436943.JavaMail.root@sniper19> Message-ID: <000201c592e4$996c0840$0518820a@danwaters> Are you sure the FE was decompiled/compiled before it was converted to an MDE? Or since the code is 'removed' maybe that doesn't make a difference. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, July 27, 2005 12:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question The FE is an MDE. The back end is compacted occasionally. I think the real issue is their network problems. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, July 27, 2005 3:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question Has the FE been decompiled/compiled and the BE compacted? Perhaps the size could be reduced . . . Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Jul 27 14:57:09 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Jul 2005 12:57:09 -0700 Subject: [AccessD] Automatic Tracking Number Message-ID: SELECT @@IDENTITY FROM MyTable IDENTITY maps to autonumber in Access Charlotte Foust -----Original Message----- From: Gowey Mike W [mailto:Mike.W.Gowey at doc.state.or.us] Sent: Wednesday, July 27, 2005 8:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Charlotte, How would I go about that? Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, July 27, 2005 9:30 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Have you tried using an output parameter to return the identity value? Charlotte Foust -----Original Message----- From: Gowey Mike W [mailto:Mike.W.Gowey at doc.state.or.us] Sent: Wednesday, July 27, 2005 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 martyconnelly at shaw.ca Wed Jul 27 15:57:36 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 27 Jul 2005 13:57:36 -0700 Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software References: <200507271332.j6RDWsR14371@databaseadvisors.com> Message-ID: <42E7F540.6030202@shaw.ca> Here is a US software escrow FAQ, Europe may differ on laws. A local lawyer who practices IP Intellectual Property rights or copyright law. or some banks in Europe used to provide this service alongside Financial Escrow. might do it cheaper. But if you are putting out a lot of versions, the US price $500 - $750 sounds right for a escrow company that does this on a daily basis. http://www.softescrow.com/faq.html Arthur Fuller wrote: >My Dutch is pretty shaky (I know only about 5 words, of which my favourite >is the word for vacuum cleaner) so I will respond in English. In a situation >such as this (assuming the good intentions of the client), what the client >is primarily concerned about is what happens should you get run over by a >tram or meet some similar demise. What you are concerned about is protecting >your source code. To protect both parties, you place the source code in >escrow, which means in the hands of a disinterested party. Should the tram >kill you, the client gets the code. Should you avoid collisions with a tram, >your source code is safe. > >Arthur > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of | Marcel Vreuls >Sent: July 27, 2005 2:59 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software > >Hi Erwin, > >I have a ASP.NET and VB.NET ecommerce store with support multilanguage and >is skinnalbe. After a year of development I am selling it for about 5 months >now. Take a look at the store where are building right now >http://topparts.7host.com . In most cases i do not sell the source because i >invested a lot of time in it. I have two companies in holland who would like >to have the source also and we come to an agreement about it. My main >concern is that my customers are going to resell the software so this is >what i would like to prevent. Just let me know what you think about it > >Marcel > >(ps. as i live in holland you can contact me offline in dutch if that is >easier for you (vrm at tim-cms.com). > > > -- Marty Connelly Victoria, B.C. Canada From KP at sdsonline.net Wed Jul 27 18:09:04 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 28 Jul 2005 09:09:04 +1000 Subject: [AccessD] VBExpress videos References: Message-ID: <001e01c59300$30167b70$6601a8c0@user> Ok - I'll look into that. Thanks Charlotte, Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Thursday, July 28, 2005 1:34 AM Subject: RE: [AccessD] VBExpress videos I can't speak for anyone else, but for my personal projects, I just give them a new front end for minor stuff. Since my employer's product is commercial, we either distribute a new CD or we put the latest installer on our server for them to download. The Wise installer is smart enough to not install the runtime if it is already installed and current. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Tuesday, July 26, 2005 5:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos ...hhmmm....thinking over the pros and cons.....I am getting very tired of clients changing office versions etc etc and having the app crash. And I am getting very sick of setting refs and finding that some users end up with it missing - whoops - crash again. So runtime should solve both those issues? On the other hand, with my main client (using full Access install) I can get straight on to their PC online using VNC, make a change to the mdb, recreate the mde and post it to the network from where it gets automatically downloaded the next time all users open it. That would be much harder with runtime, wouldn't it? How do you distribute upgrades? Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 1:15 PM Subject: Re: [AccessD] VBExpress videos ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 itsame2000 at sbcglobal.net Wed Jul 27 19:02:55 2005 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Wed, 27 Jul 2005 17:02:55 -0700 (PDT) Subject: [AccessD] Fwd: Quitting Application Problem Message-ID: <20050728000255.64512.qmail@web81503.mail.yahoo.com> Let me try this again. I just realized my original message never made it to the group. Help? Thanks, Jeremy Jeremy Toves wrote: Date: Wed, 27 Jul 2005 13:03:00 -0700 (PDT) From: Jeremy Toves Subject: Quitting Application Problem To: AccessD I have a database that needs to complete a few processes before it is closed. Some of the users are closing the application by using the "x" in the upper right corner of the Access database. Is there a way to disable this? Or can a message prompt the user to complete processing before exiting? Any help would be appreciated. Thanks, Jeremy Toves From D.Dick at uws.edu.au Wed Jul 27 19:31:28 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Thu, 28 Jul 2005 10:31:28 +1000 Subject: [AccessD] Fwd: Quitting Application Problem Message-ID: <2FDE83AF1A69C84796CBD13788DDA88364EE67@BONHAM.AD.UWS.EDU.AU> Hi Jeremy There are a number of ways. Here's one Have a frm call it say...frmHidden Have it open each time your app is started. Put it in an AutoExec Macro. (Lemme know if you are unsure what an AutoExec Macro is) But have the macro open the form 'hidden' - IE not visible to anyone at all. In the On Unload or OnClose of that hidden form have something like... If msgbox ("Are you sure you want to close Jeremy's way cool application completely?",vbquestion + vbyesNo, "Confirm Application Close")=vbyes then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc docmd.quit Else 'User Chose no - so do nothing End if The way it works is...if the whole app is going to be closed then this hidden form will be claosed also Sparking the OnClose or OnUnload code thus allowing them to think about closing completely or not Via the message box that pops up Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 10:03 AM To: AccessD Subject: [AccessD] Fwd: Quitting Application Problem Let me try this again. I just realized my original message never made it to the group. Help? Thanks, Jeremy Jeremy Toves wrote: Date: Wed, 27 Jul 2005 13:03:00 -0700 (PDT) From: Jeremy Toves Subject: Quitting Application Problem To: AccessD I have a database that needs to complete a few processes before it is closed. Some of the users are closing the application by using the "x" in the upper right corner of the Access database. Is there a way to disable this? Or can a message prompt the user to complete processing before exiting? Any help would be appreciated. Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Wed Jul 27 19:33:41 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 27 Jul 2005 20:33:41 -0400 Subject: [AccessD] Jet 4 SP 8 References: <004801c590b7$f3c7ce20$6401a8c0@laptop1> <42E48B1A.4010808@shaw.ca> <42E50C72.3060606@shaw.ca> Message-ID: Joe http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='DetectAccessJet.zip' ..a module with functions to view the Access version, the Jet version, and the Jet SP ..seems it's derived from some of Marty's code :) William ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Monday, July 25, 2005 11:59 AM Subject: Re: [AccessD] Jet 4 SP 8 > This KB might be a bit clearer as it it shows how to identify the > mjset40.dll version number > for the security patch that was added to Jet SP8 April 13, 2004 > > How to obtain the latest service pack for the Microsoft Jet 4.0 Database > Engine > http://support.microsoft.com/kb/239114/ > > > MartyConnelly wrote: > >> Here is the Jet SP-8 file manifest >> Just check by right clicking your Dao360.dll for property file version >> should be at least Dao360.dll 3.60.8025.0 557,328 bytes >> http://support.microsoft.com/?kbid=829558 >> >> You can find again by hunting through general mdac portal for jet >> http://www.microsoft.com/data >> >> Joe Hecht wrote: >> >>> I am reading an article online about Access security and it is talking >>> about >>> sandbox mode. To get there you need to be using Jet 4 SP 8. >>> >>> I am running AXP on one machine and A2k3 on the other. How do I check >>> Jet >>> Version and SP release. >>> >>> Here is the article link. >>> >>> http://office.microsoft.com/training/training.aspx?AssetID=RC011461801033 >>> >>> Joe Hecht >>> Los Angeles CA >>> >>> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Wed Jul 27 19:40:46 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 27 Jul 2005 20:40:46 -0400 Subject: [AccessD] How to draw a line around select textboxes References: <20050726125206.56638.qmail@web33102.mail.mud.yahoo.com> Message-ID: http://www.lebans.com/Report.htm ..Steve has a couple of approaches to this with sample mdbs ...hth. William ----- Original Message ----- From: "Lonnie Johnson" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 8:52 AM Subject: Re: [AccessD] How to draw a line around select textboxes > Thanks for responding. > > If I use the rectangle I only get a box around the textboxes for that line > and then another box around the textboxes on the next row. > > If I have 10 lines of data, I want one box to show around these text boxes > for all ten rows. Sort of like a border for the entire page of detail. > > Thanks again. > > Sad Der wrote: > Lonnie, > > can give some more details? > So, you want to create a line around textboxes. Do you > want this for all rows? > If so, why not use a rectangle and set the visible > property to true or false? > > SD > > --- Lonnie Johnson > wrote: > >> I am sorry, this is on a report and not a form. >> >> Lonnie Johnson > wrote:What if I >> have 10 text boxes on a form all across in a row and >> I wanted to put a box around the first 5 and another >> box (boarder) around the second 5? This box/border >> would expand the height of the detail section of >> each page. >> >> I was thinking of the Me.Line method but don't know >> how to >> >> 1) Just put it around certain boxes >> >> 2) How to have more than one line method going on at >> once. >> >> Thanks. >> >> >> >> >> May God bless you beyond your imagination! >> Lonnie Johnson >> ProDev, Professional Development of MS Access >> Databases >> Visit me at ==> http://www.prodev.us >> >> >> >> >> >> >> >> >> >> >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam >> protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> May God bless you beyond your imagination! >> Lonnie Johnson >> ProDev, Professional Development of MS Access >> Databases >> Visit me at ==> http://www.prodev.us >> >> >> >> >> >> >> >> >> >> >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam >> protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > __________________________________ > Yahoo! Mail for Mobile > Take Yahoo! Mail with you! Check email on your mobile phone. > http://mobile.yahoo.com/learn/mail > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From itsame2000 at sbcglobal.net Wed Jul 27 20:06:28 2005 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Wed, 27 Jul 2005 18:06:28 -0700 (PDT) Subject: [AccessD] Fwd: Quitting Application Problem In-Reply-To: <2FDE83AF1A69C84796CBD13788DDA88364EE67@BONHAM.AD.UWS.EDU.AU> Message-ID: <20050728010628.69636.qmail@web81510.mail.yahoo.com> That seems to be part of it, but something has to happen to keep the database open once it hits the Else. If I leave it as is, then the database closes when the form unloads. Is there something I can code to keep the form loaded, even if somebody tries to close the application by hitting "x"? Is there a way to hide the"x"? Thanks, Jeremy Darren Dick wrote: Hi Jeremy There are a number of ways. Here's one Have a frm call it say...frmHidden Have it open each time your app is started. Put it in an AutoExec Macro. (Lemme know if you are unsure what an AutoExec Macro is) But have the macro open the form 'hidden' - IE not visible to anyone at all. In the On Unload or OnClose of that hidden form have something like... If msgbox ("Are you sure you want to close Jeremy's way cool application completely?",vbquestion + vbyesNo, "Confirm Application Close")=vbyes then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc docmd.quit Else 'User Chose no - so do nothing End if The way it works is...if the whole app is going to be closed then this hidden form will be claosed also Sparking the OnClose or OnUnload code thus allowing them to think about closing completely or not Via the message box that pops up Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 10:03 AM To: AccessD Subject: [AccessD] Fwd: Quitting Application Problem Let me try this again. I just realized my original message never made it to the group. Help? Thanks, Jeremy Jeremy Toves wrote: Date: Wed, 27 Jul 2005 13:03:00 -0700 (PDT) From: Jeremy Toves Subject: Quitting Application Problem To: AccessD I have a database that needs to complete a few processes before it is closed. Some of the users are closing the application by using the "x" in the upper right corner of the Access database. Is there a way to disable this? Or can a message prompt the user to complete processing before exiting? Any help would be appreciated. Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dejpolsys at hotmail.com Wed Jul 27 20:34:42 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 27 Jul 2005 21:34:42 -0400 Subject: [AccessD] VBExpress videos References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805><002901c590ab$8fe53de0$6601a8c0@user> <00b501c59246$20f72140$6601a8c0@user> Message-ID: ..pretty much the same way you do Kath but I make the changes on my development system ...test it on my client simulator system ...and then put a new fe on the network for normal update by the runtime systems. ..runtimes won't solve version change problems ...but you can build code into your startup to check the current version and load the correct runtime if you anticipate version changes ...that's a bit of work and only works transparently if MS doesn't throw a monkey wrench into things ...the damn "sandbox" in 2003 is a "*(&%$ example of such ...code runs fine in full Access but errors all over the place in the runtime ...so far I've just disabled it ...the "new" file dialog object is another example of something that works fine in full mode and not at all in runtime :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 8:57 PM Subject: Re: [AccessD] VBExpress videos ..hhmmm....thinking over the pros and cons.....I am getting very tired of clients changing office versions etc etc and having the app crash. And I am getting very sick of setting refs and finding that some users end up with it missing - whoops - crash again. So runtime should solve both those issues? On the other hand, with my main client (using full Access install) I can get straight on to their PC online using VNC, make a change to the mdb, recreate the mde and post it to the network from where it gets automatically downloaded the next time all users open it. That would be much harder with runtime, wouldn't it? How do you distribute upgrades? Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 1:15 PM Subject: Re: [AccessD] VBExpress videos ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 accessd at shaw.ca Wed Jul 27 20:45:28 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 27 Jul 2005 18:45:28 -0700 Subject: [AccessD] Automatic Tracking Number In-Reply-To: Message-ID: <0IKB0074TE7RIZ@l-daemon> Couldn't have said it better. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, July 27, 2005 8:30 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Have you tried using an output parameter to return the identity value? Charlotte Foust -----Original Message----- From: Gowey Mike W [mailto:Mike.W.Gowey at doc.state.or.us] Sent: Wednesday, July 27, 2005 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 D.Dick at uws.edu.au Wed Jul 27 20:55:41 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Thu, 28 Jul 2005 11:55:41 +1000 Subject: [AccessD] Fwd: Quitting Application Problem Message-ID: <2FDE83AF1A69C84796CBD13788DDA88364EF3C@BONHAM.AD.UWS.EDU.AU> That code will do it Put the code in the Unload of the form as the Unload Event has a cancel option So....copy and paste this code below into any form Then try and close the app. Private Sub Form_Unload(Cancel As Integer) If MsgBox("Are you sure you want to close Jeremy's way cool application completely?", vbQuestion + vbYesNo, "Confirm Application Close") = vbYes Then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc DoCmd.Quit Else 'User Chose no - so do nothing Cancel = True ' this will stop the action that faised the Unload to occur IE closing the APP :-)) End If End Sub DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 11:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Fwd: Quitting Application Problem That seems to be part of it, but something has to happen to keep the database open once it hits the Else. If I leave it as is, then the database closes when the form unloads. Is there something I can code to keep the form loaded, even if somebody tries to close the application by hitting "x"? Is there a way to hide the"x"? Thanks, Jeremy Darren Dick wrote: Hi Jeremy There are a number of ways. Here's one Have a frm call it say...frmHidden Have it open each time your app is started. Put it in an AutoExec Macro. (Lemme know if you are unsure what an AutoExec Macro is) But have the macro open the form 'hidden' - IE not visible to anyone at all. In the On Unload or OnClose of that hidden form have something like... If msgbox ("Are you sure you want to close Jeremy's way cool application completely?",vbquestion + vbyesNo, "Confirm Application Close")=vbyes then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc docmd.quit Else 'User Chose no - so do nothing End if The way it works is...if the whole app is going to be closed then this hidden form will be claosed also Sparking the OnClose or OnUnload code thus allowing them to think about closing completely or not Via the message box that pops up Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 10:03 AM To: AccessD Subject: [AccessD] Fwd: Quitting Application Problem Let me try this again. I just realized my original message never made it to the group. Help? Thanks, Jeremy Jeremy Toves wrote: Date: Wed, 27 Jul 2005 13:03:00 -0700 (PDT) From: Jeremy Toves Subject: Quitting Application Problem To: AccessD I have a database that needs to complete a few processes before it is closed. Some of the users are closing the application by using the "x" in the upper right corner of the Access database. Is there a way to disable this? Or can a message prompt the user to complete processing before exiting? Any help would be appreciated. Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 27 20:49:48 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 27 Jul 2005 18:49:48 -0700 Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 In-Reply-To: <6.2.0.14.2.20050727110543.02984a98@pop.btl.net> Message-ID: <0IKB00070EEZ8B@l-daemon> Hi Paul: By using ADO-OLE. There are many references and code that have been on it posted on the list over the years. Just go to site/page (http://www.databaseadvisors.com/archive/archive.htm ) on the DBA site and search on ADO. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul M. Jones Sent: Wednesday, July 27, 2005 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 I have an application initially written in Access 97 and then moved to 2000. It talks to a SQL Server 2000 database using tables linked through an ODBC driver. Lately I have had several instances where I call a stored procedure to perform an operation but I don't receive a response from the SQL Server even though the operation was carried out successfully. This leaves my application hanging. I suspect it has to do with the ODBC connection. Anybody has any experiences with this type of issue? On a related note, is there a better way of linking my tables to the SQL Server other than to use an ODBC driver? I have a couple of newer projects that use ADP but unfortunately, it's not an option for me at this point since I have too many queries that I'll need to convert to either stored procedures or views. Thanks Paul M. Jones ---------------------------------------------------------------------------- ------------------ Reality is the murder of a beautiful theory by a gang of ugly facts. Robert L. Glass -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From connie.kamrowski at agric.nsw.gov.au Wed Jul 27 21:01:45 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Thu, 28 Jul 2005 12:01:45 +1000 Subject: [AccessD] VBExpress videos Message-ID: Kath, We use Sagekey to deploy Access97 over multiple platforms, and when i make an upgrade I just use the exe to do it. The advantage we have found is as it takes its own references and such I do not get deployment issues despite having 2500 users over 4 different SOEs and 4 departments. I run Access97 apps across office 97, 2000, XP and all operating systems from windows98 to XP, 2000 and NT. Just a thought, if you want more information just let me know. Regards, Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange ..pretty much the same way you do Kath but I make the changes on my development system ...test it on my client simulator system ...and then put a new fe on the network for normal update by the runtime systems. ..runtimes won't solve version change problems ...but you can build code into your startup to check the current version and load the correct runtime if you anticipate version changes ...that's a bit of work and only works transparently if MS doesn't throw a monkey wrench into things ...the damn "sandbox" in 2003 is a "*(&%$ example of such ...code runs fine in full Access but errors all over the place in the runtime ...so far I've just disabled it ...the "new" file dialog object is another example of something that works fine in full mode and not at all in runtime :( William This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From jwcolby at colbyconsulting.com Wed Jul 27 21:08:07 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 27 Jul 2005 22:08:07 -0400 Subject: [AccessD] VBExpress videos In-Reply-To: Message-ID: <000701c59319$325e3f30$6c7aa8c0@ColbyM6805> You might want to change the subject of this thread John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Wednesday, July 27, 2005 10:02 PM To: accessd at databaseadvisors.com Subject: [AccessD] VBExpress videos Kath, We use Sagekey to deploy Access97 over multiple platforms, and when i make an upgrade I just use the exe to do it. The advantage we have found is as it takes its own references and such I do not get deployment issues despite having 2500 users over 4 different SOEs and 4 departments. I run Access97 apps across office 97, 2000, XP and all operating systems from windows98 to XP, 2000 and NT. Just a thought, if you want more information just let me know. Regards, Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange ..pretty much the same way you do Kath but I make the changes on my development system ...test it on my client simulator system ...and then put a new fe on the network for normal update by the runtime systems. ..runtimes won't solve version change problems ...but you can build code into your startup to check the current version and load the correct runtime if you anticipate version changes ...that's a bit of work and only works transparently if MS doesn't throw a monkey wrench into things ...the damn "sandbox" in 2003 is a "*(&%$ example of such ...code runs fine in full Access but errors all over the place in the runtime ...so far I've just disabled it ...the "new" file dialog object is another example of something that works fine in full mode and not at all in runtime :( William This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From itsame2000 at sbcglobal.net Wed Jul 27 21:08:55 2005 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Wed, 27 Jul 2005 19:08:55 -0700 (PDT) Subject: [AccessD] Fwd: Quitting Application Problem In-Reply-To: <2FDE83AF1A69C84796CBD13788DDA88364EF3C@BONHAM.AD.UWS.EDU.AU> Message-ID: <20050728020855.77475.qmail@web81502.mail.yahoo.com> Darren, Thanks for the help! Jeremy Darren Dick wrote: That code will do it Put the code in the Unload of the form as the Unload Event has a cancel option So....copy and paste this code below into any form Then try and close the app. Private Sub Form_Unload(Cancel As Integer) If MsgBox("Are you sure you want to close Jeremy's way cool application completely?", vbQuestion + vbYesNo, "Confirm Application Close") = vbYes Then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc DoCmd.Quit Else 'User Chose no - so do nothing Cancel = True ' this will stop the action that faised the Unload to occur IE closing the APP :-)) End If End Sub DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 11:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Fwd: Quitting Application Problem That seems to be part of it, but something has to happen to keep the database open once it hits the Else. If I leave it as is, then the database closes when the form unloads. Is there something I can code to keep the form loaded, even if somebody tries to close the application by hitting "x"? Is there a way to hide the"x"? Thanks, Jeremy Darren Dick wrote: Hi Jeremy There are a number of ways. Here's one Have a frm call it say...frmHidden Have it open each time your app is started. Put it in an AutoExec Macro. (Lemme know if you are unsure what an AutoExec Macro is) But have the macro open the form 'hidden' - IE not visible to anyone at all. In the On Unload or OnClose of that hidden form have something like... If msgbox ("Are you sure you want to close Jeremy's way cool application completely?",vbquestion + vbyesNo, "Confirm Application Close")=vbyes then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc docmd.quit Else 'User Chose no - so do nothing End if The way it works is...if the whole app is going to be closed then this hidden form will be claosed also Sparking the OnClose or OnUnload code thus allowing them to think about closing completely or not Via the message box that pops up Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 10:03 AM To: AccessD Subject: [AccessD] Fwd: Quitting Application Problem Let me try this again. I just realized my original message never made it to the group. Help? Thanks, Jeremy Jeremy Toves wrote: Date: Wed, 27 Jul 2005 13:03:00 -0700 (PDT) From: Jeremy Toves Subject: Quitting Application Problem To: AccessD I have a database that needs to complete a few processes before it is closed. Some of the users are closing the application by using the "x" in the upper right corner of the Access database. Is there a way to disable this? Or can a message prompt the user to complete processing before exiting? Any help would be appreciated. Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Wed Jul 27 21:24:48 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 28 Jul 2005 12:24:48 +1000 Subject: [AccessD] Runtime Vs Full Access Install References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805><002901c590ab$8fe53de0$6601a8c0@user><00b501c59246$20f72140$6601a8c0@user> Message-ID: <001901c5931b$8744a4b0$6601a8c0@user> <<...runtimes won't solve version change problems..... Really? Are you saying that if you distribute a runtime and users then install eg. a newer version of Access then it can play up? Sounds like a headache....exactly the kind of problem I have now. Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Thursday, July 28, 2005 11:34 AM Subject: Re: [AccessD] VBExpress videos ..pretty much the same way you do Kath but I make the changes on my development system ...test it on my client simulator system ...and then put a new fe on the network for normal update by the runtime systems. ..runtimes won't solve version change problems ...but you can build code into your startup to check the current version and load the correct runtime if you anticipate version changes ...that's a bit of work and only works transparently if MS doesn't throw a monkey wrench into things ...the damn "sandbox" in 2003 is a "*(&%$ example of such ...code runs fine in full Access but errors all over the place in the runtime ...so far I've just disabled it ...the "new" file dialog object is another example of something that works fine in full mode and not at all in runtime :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 8:57 PM Subject: Re: [AccessD] VBExpress videos ..hhmmm....thinking over the pros and cons.....I am getting very tired of clients changing office versions etc etc and having the app crash. And I am getting very sick of setting refs and finding that some users end up with it missing - whoops - crash again. So runtime should solve both those issues? On the other hand, with my main client (using full Access install) I can get straight on to their PC online using VNC, make a change to the mdb, recreate the mde and post it to the network from where it gets automatically downloaded the next time all users open it. That would be much harder with runtime, wouldn't it? How do you distribute upgrades? Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 1:15 PM Subject: Re: [AccessD] VBExpress videos ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Wed Jul 27 21:41:01 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 28 Jul 2005 12:41:01 +1000 Subject: [AccessD] Runtime Vs Full Access Install References: Message-ID: <002101c5931d$cb5706a0$6601a8c0@user> Hi Connie - thanks for the reply. 2500 users? That's pretty impressive. Did you notice William's email? Have you had the version change problems he mentions? Kath ----- Original Message ----- From: connie.kamrowski at agric.nsw.gov.au To: accessd at databaseadvisors.com Sent: Thursday, July 28, 2005 12:01 PM Subject: [AccessD] VBExpress videos Kath, We use Sagekey to deploy Access97 over multiple platforms, and when i make an upgrade I just use the exe to do it. The advantage we have found is as it takes its own references and such I do not get deployment issues despite having 2500 users over 4 different SOEs and 4 departments. I run Access97 apps across office 97, 2000, XP and all operating systems from windows98 to XP, 2000 and NT. Just a thought, if you want more information just let me know. Regards, Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange ..pretty much the same way you do Kath but I make the changes on my development system ...test it on my client simulator system ...and then put a new fe on the network for normal update by the runtime systems. ..runtimes won't solve version change problems ...but you can build code into your startup to check the current version and load the correct runtime if you anticipate version changes ...that's a bit of work and only works transparently if MS doesn't throw a monkey wrench into things ...the damn "sandbox" in 2003 is a "*(&%$ example of such ...code runs fine in full Access but errors all over the place in the runtime ...so far I've just disabled it ...the "new" file dialog object is another example of something that works fine in full mode and not at all in runtime :( William This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From connie.kamrowski at agric.nsw.gov.au Wed Jul 27 20:50:58 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Thu, 28 Jul 2005 11:50:58 +1000 Subject: [AccessD] Re: AccessD Digest, Vol 29, Issue 35 Message-ID: Hello List, Just when it seemed I had all the information I needed up pops another good one. I have been meeting today with a group of people who have been implementing a rather unique process for managing their data. They firstly store approximately 475000 records in one table in an Access Database, They then run a query on this database which creates 385000+ records and sticks them in a second database, they then run a query on this one generating 285000 records and store this in ... you guessed it Database number 3. To finish it off they query again, store the results in a 4th database and use this one for day to day business. The databases range in size from 1.05gigabytes back to 370Megabytes. I was in awe. I am now designing a new relational database to store and manage this data. My problem is this, the business drivers for this database have now got soem concerns for the integrity of the data (possibly based on the look on my face when they showed me the databases). And so while I am redesigning and they are finding the money for rebuilding they wish to archive off some of the records in the largest database. They would however need to be able to search and manipulate these records. What is the best way to manage this? I am astounded by the way some people use Access, Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From jwcolby at colbyconsulting.com Wed Jul 27 22:12:17 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 27 Jul 2005 23:12:17 -0400 Subject: [AccessD] Re: AccessD Digest, Vol 29, Issue 35 In-Reply-To: Message-ID: <000801c59322$2902d5f0$6c7aa8c0@ColbyM6805> >I am astounded by the way some people use Access ROTFL. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Wednesday, July 27, 2005 9:51 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: AccessD Digest, Vol 29, Issue 35 Hello List, Just when it seemed I had all the information I needed up pops another good one. I have been meeting today with a group of people who have been implementing a rather unique process for managing their data. They firstly store approximately 475000 records in one table in an Access Database, They then run a query on this database which creates 385000+ records and sticks them in a second database, they then run a query on this one generating 285000 records and store this in ... you guessed it Database number 3. To finish it off they query again, store the results in a 4th database and use this one for day to day business. The databases range in size from 1.05gigabytes back to 370Megabytes. I was in awe. I am now designing a new relational database to store and manage this data. My problem is this, the business drivers for this database have now got soem concerns for the integrity of the data (possibly based on the look on my face when they showed me the databases). And so while I am redesigning and they are finding the money for rebuilding they wish to archive off some of the records in the largest database. They would however need to be able to search and manipulate these records. What is the best way to manage this? I am astounded by the way some people use Access, Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Wed Jul 27 22:47:29 2005 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 27 Jul 2005 20:47:29 -0700 Subject: [AccessD] Fwd: Quitting Application Problem In-Reply-To: <20050728010628.69636.qmail@web81510.mail.yahoo.com> Message-ID: <002c01c59327$1455ebb0$6401a8c0@laptop1> In the form properties you can disable the "x" Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Wednesday, July 27, 2005 6:06 PM To: access at joe2.endjunk.com; Access Developers discussion and problem solving Subject: RE: [AccessD] Fwd: Quitting Application Problem That seems to be part of it, but something has to happen to keep the database open once it hits the Else. If I leave it as is, then the database closes when the form unloads. Is there something I can code to keep the form loaded, even if somebody tries to close the application by hitting "x"? Is there a way to hide the"x"? Thanks, Jeremy Darren Dick wrote: Hi Jeremy There are a number of ways. Here's one Have a frm call it say...frmHidden Have it open each time your app is started. Put it in an AutoExec Macro. (Lemme know if you are unsure what an AutoExec Macro is) But have the macro open the form 'hidden' - IE not visible to anyone at all. In the On Unload or OnClose of that hidden form have something like... If msgbox ("Are you sure you want to close Jeremy's way cool application completely?",vbquestion + vbyesNo, "Confirm Application Close")=vbyes then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc docmd.quit Else 'User Chose no - so do nothing End if The way it works is...if the whole app is going to be closed then this hidden form will be claosed also Sparking the OnClose or OnUnload code thus allowing them to think about closing completely or not Via the message box that pops up Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 10:03 AM To: AccessD Subject: [AccessD] Fwd: Quitting Application Problem Let me try this again. I just realized my original message never made it to the group. Help? Thanks, Jeremy Jeremy Toves wrote: Date: Wed, 27 Jul 2005 13:03:00 -0700 (PDT) From: Jeremy Toves Subject: Quitting Application Problem To: AccessD I have a database that needs to complete a few processes before it is closed. Some of the users are closing the application by using the "x" in the upper right corner of the Access database. Is there a way to disable this? Or can a message prompt the user to complete processing before exiting? Any help would be appreciated. Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Wed Jul 27 23:07:02 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 28 Jul 2005 00:07:02 -0400 Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software In-Reply-To: <42E7F540.6030202@shaw.ca> Message-ID: <200507280406.j6S46vR30843@databaseadvisors.com> Thanks for the addendum, Marty! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: July 27, 2005 4:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software Here is a US software escrow FAQ, Europe may differ on laws. A local lawyer who practices IP Intellectual Property rights or copyright law. or some banks in Europe used to provide this service alongside Financial Escrow. might do it cheaper. But if you are putting out a lot of versions, the US price $500 - $750 sounds right for a escrow company that does this on a daily basis. http://www.softescrow.com/faq.html Arthur Fuller wrote: >My Dutch is pretty shaky (I know only about 5 words, of which my favourite >is the word for vacuum cleaner) so I will respond in English. In a situation >such as this (assuming the good intentions of the client), what the client >is primarily concerned about is what happens should you get run over by a >tram or meet some similar demise. What you are concerned about is protecting >your source code. To protect both parties, you place the source code in >escrow, which means in the hands of a disinterested party. Should the tram >kill you, the client gets the code. Should you avoid collisions with a tram, >your source code is safe. > >Arthur From mmattys at rochester.rr.com Wed Jul 27 23:10:58 2005 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Thu, 28 Jul 2005 00:10:58 -0400 Subject: [AccessD] Re: AccessD Digest, Vol 29, Issue 35 References: Message-ID: <045401c5932a$5cf47000$0302a8c0@default> ... >They firstly store approximately 475000 records in one table in an > Access Database, They then run a query on this database which > creates 385000+ records and sticks them in a second database, > they then run a query on this one generating 285000 records and > store this in ... you guessed it Database number 3. To finish it off > they query again, store the results in a 4th database and use this > one for day to day business. Connie, can it be assumed that data-entry is done in the first db? Or, are you saying that records are transferred from the fourth db to the first at the end of the day? Perhaps they are even pulling such data from a different database system? ... > they wish to archive off some of the records in the largest database. > They would however need to be able to search and manipulate these > records. What is the best way to manage this? If I read into this correctly, there are several records per account and your new relational system will keep the track of the account number. As long as there is a Primary Key AutoNumber that can relate to a Long in the archive table(s), you can just use SQL for searches and edits. Perhaps it is not this simple, though ... ? What's missing? ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: To: Sent: Wednesday, July 27, 2005 9:50 PM Subject: [AccessD] Re: AccessD Digest, Vol 29, Issue 35 > > Hello List, > > Just when it seemed I had all the information I needed up pops another good > one. > > I have been meeting today with a group of people who have been implementing > a rather unique process for managing their data. They firstly store > approximately 475000 records in one table in an Access Database, They then > run a query on this database which creates 385000+ records and sticks them > in a second database, they then run a query on this one generating 285000 > records and store this in ... you guessed it Database number 3. To finish > it off they query again, store the results in a 4th database and use this > one for day to day business. The databases range in size from 1.05gigabytes > back to 370Megabytes. I was in awe. > > I am now designing a new relational database to store and manage this data. > > My problem is this, the business drivers for this database have now got > soem concerns for the integrity of the data (possibly based on the look on > my face when they showed me the databases). And so while I am redesigning > and they are finding the money for rebuilding they wish to archive off some > of the records in the largest database. They would however need to be able > to search and manipulate these records. What is the best way to manage > this? > > I am astounded by the way some people use Access, > > Connie Kamrowski > > Analyst/Programmer > Information Technology > NSW Department of Primary Industries > Orange From connie.kamrowski at agric.nsw.gov.au Wed Jul 27 23:30:38 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Thu, 28 Jul 2005 14:30:38 +1000 Subject: [AccessD] Re: Huge Access Database was wrongly named Re: AccessD Digest, Vol 29, Issue 35 Message-ID: Matty, Yes the data is all entered into the original Database. The 4th DB is actrually the data they need to export as a commercial venture (my headache is getting worse LOL). The original data is entered from old records and until I create the new relational model with a shiny new SQL backend this is the only electronic record of the data. The need is there to be able to seperate this based on the date it was entered and store as a historical record, Problem is they may need to search the historical data for a specific record. I am unsure of the best way to manage this volume of records I guess. There is a unique number per record, it is the serial number given by the database. The criteria they will search on is a 16 digit alphanumeric field. It is probably simple, but as I have not dealt with the whole historical record managemnt thing I am looking for advice on how to manage this in the interim. That and I wanted to share this as a hall of fame use of Access, LOL. John, What was the amusing bit??? The use of Access or my amazement.... *grin* .... they obviously didn't have access to this group or they would have known better huh? Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange >They firstly store approximately 475000 records in one table in an > Access Database, They then run a query on this database which > creates 385000+ records and sticks them in a second database, > they then run a query on this one generating 285000 records and > store this in ... you guessed it Database number 3. To finish it off > they query again, store the results in a 4th database and use this > one for day to day business. Connie, can it be assumed that data-entry is done in the first db? Or, are you saying that records are transferred from the fourth db to the first at the end of the day? Perhaps they are even pulling such data from a different database system? ... > they wish to archive off some of the records in the largest database. > They would however need to be able to search and manipulate these > records. What is the best way to manage this? If I read into this correctly, there are several records per account and your new relational system will keep the track of the account number. As long as there is a Primary Key AutoNumber that can relate to a Long in the archive table(s), you can just use SQL for searches and edits. Perhaps it is not this simple, though ... ? What's missing? This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From connie.kamrowski at agric.nsw.gov.au Wed Jul 27 23:46:35 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Thu, 28 Jul 2005 14:46:35 +1000 Subject: [AccessD] Runtime Vs Full Access Install Message-ID: Not so impressive, they are not concurrent :) Just potentially so. Databases are not always deployed across all users. I was referencing the fact that we have deployed at least one database to these users and their specific environments and have not had problems. Because of the way sagekey works we have found that as long as we encapsulate all of the things we reference into the sagekey runtime, we have had no issues at all. It may be worth a look at their website http://www.sagekey.com/ for a run down of what it does and what they promise. Just a suggestion but it has worked really well for us with the issues we were having cross deploying and installing upgrades. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax:02 6391 3290 Hi Connie - thanks for the reply. 2500 users? That's pretty impressive. Did you notice William's email? Have you had the version change problems he mentions? Kath This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From dejpolsys at hotmail.com Thu Jul 28 00:26:29 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 28 Jul 2005 01:26:29 -0400 Subject: [AccessD] Runtime Vs Full Access Install References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805><002901c590ab$8fe53de0$6601a8c0@user><00b501c59246$20f72140$6601a8c0@user> <001901c5931b$8744a4b0$6601a8c0@user> Message-ID: ..hhhmmm ...either I'm misreading you or there is a fundamental misunderstanding somewhere in here ...a runtime mdb/mde is exactly the same as a full install mdb/mde ...the difference is that Access itself is not fully installed in a runtime ...the design/coding elements are not there so a user can't change anything ...it runs exactly as you designed it to run. ..if you have an A97 mdb and an A2k runtime it should still run as long as the references are there ...but the reverse is not true ...so I use startup code to check the installed version and call the corresponding fe mdb/mde. ..if you invest in the wise install tools, they handle those issues much better than the native Access distribution tools do and the default is to let them do all the work for you. William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Wednesday, July 27, 2005 10:24 PM Subject: [AccessD] Runtime Vs Full Access Install <<...runtimes won't solve version change problems..... Really? Are you saying that if you distribute a runtime and users then install eg. a newer version of Access then it can play up? Sounds like a headache....exactly the kind of problem I have now. Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Thursday, July 28, 2005 11:34 AM Subject: Re: [AccessD] VBExpress videos ..pretty much the same way you do Kath but I make the changes on my development system ...test it on my client simulator system ...and then put a new fe on the network for normal update by the runtime systems. ..runtimes won't solve version change problems ...but you can build code into your startup to check the current version and load the correct runtime if you anticipate version changes ...that's a bit of work and only works transparently if MS doesn't throw a monkey wrench into things ...the damn "sandbox" in 2003 is a "*(&%$ example of such ...code runs fine in full Access but errors all over the place in the runtime ...so far I've just disabled it ...the "new" file dialog object is another example of something that works fine in full mode and not at all in runtime :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 8:57 PM Subject: Re: [AccessD] VBExpress videos ..hhmmm....thinking over the pros and cons.....I am getting very tired of clients changing office versions etc etc and having the app crash. And I am getting very sick of setting refs and finding that some users end up with it missing - whoops - crash again. So runtime should solve both those issues? On the other hand, with my main client (using full Access install) I can get straight on to their PC online using VNC, make a change to the mdb, recreate the mde and post it to the network from where it gets automatically downloaded the next time all users open it. That would be much harder with runtime, wouldn't it? How do you distribute upgrades? Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 1:15 PM Subject: Re: [AccessD] VBExpress videos ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Jul 28 01:37:15 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 27 Jul 2005 23:37:15 -0700 Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software References: <200507280406.j6S46vR30843@databaseadvisors.com> Message-ID: <42E87D1B.9080308@shaw.ca> Nah I have a kid brother who teaches this stuff in university to law students and he bugs me about it occasionally. This stuff changes fast. Five years ago even computer forensics was mickey mouse, now you need a Ph.D. in Comp Sci. Even local cops are grabbing accelerometer data out of car computers for crash analysis and evidence. The complete software and hardware to do it is available for under $500. I used to escrow software with a local friendly lawyer 15 years ago He did it as an oddity, just to say he was the only guy in the city doing it. And I gave him a couple of dozen new clients Now it has turned into an industry with earthquake proof vaults. Arthur Fuller wrote: >Thanks for the addendum, Marty! > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: July 27, 2005 4:58 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software > >Here is a US software escrow FAQ, Europe may differ on laws. >A local lawyer who practices IP Intellectual Property rights or >copyright law. >or some banks in Europe used to provide this service alongside Financial >Escrow. >might do it cheaper. But if you are putting out a lot of versions, the >US price $500 - $750 sounds right >for a escrow company that does this on a daily basis. >http://www.softescrow.com/faq.html > >Arthur Fuller wrote: > > > >>My Dutch is pretty shaky (I know only about 5 words, of which my favourite >>is the word for vacuum cleaner) so I will respond in English. In a >> >> >situation > > >>such as this (assuming the good intentions of the client), what the client >>is primarily concerned about is what happens should you get run over by a >>tram or meet some similar demise. What you are concerned about is >> >> >protecting > > >>your source code. To protect both parties, you place the source code in >>escrow, which means in the hands of a disinterested party. Should the tram >>kill you, the client gets the code. Should you avoid collisions with a >> >> >tram, > > >>your source code is safe. >> >>Arthur >> >> > > > -- Marty Connelly Victoria, B.C. Canada From bheid at appdevgrp.com Thu Jul 28 06:19:12 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 28 Jul 2005 07:19:12 -0400 Subject: [AccessD] Locking question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C381F3@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED81@ADGSERVER> Yes, I always do a decompile/compact/recompile before creating an MDE. I dunno if it makes a difference, but sometimes it will not compile to an MDE if I do not decompile first. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, July 27, 2005 3:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question Are you sure the FE was decompiled/compiled before it was converted to an MDE? Or since the code is 'removed' maybe that doesn't make a difference. Dan Waters From Chester_Kaup at kindermorgan.com Thu Jul 28 08:24:37 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 28 Jul 2005 08:24:37 -0500 Subject: [AccessD] Feed variable to parameter query Message-ID: I am trying to feed a variable into a parameter query. I have done this with dates but cannot get the syntax right (correct combination of single, double quotes etc.) on pushing this text field into the query. If someone has a better way to push a variable into a parameter query feel free to jump in. Thanks all. Below is the code. Option Compare Database Function Table_Data_to_Parameter_Query() Dim MyDb As Database, MyQDef As QueryDef, myds As Recordset, myds1 As Recordset Dim strSQL As String, Table_Data As String Set MyDb = CurrentDb() Set myds = MyDb.OpenRecordset("tbl Patterns to Run", dbOpenTable) Set MyQDef2 = MyDb.QueryDefs("qry Pattern Start Date") PatternName = myds.Fields(0) strSQL = "SELECT Pattern, [CO2 Injection Start Date Schedule1]" & _ "FROM [tbl Schedules]" & _ "WHERE [tbl Schedules].Pattern=PatternName;" Set MyQDef = MyDb.QueryDefs("qry Pattern Start Date") MyQDef.SQL = strSQL Set myds1 = MyQDef.OpenRecordset() Table_Data = myds1.Fields(0) Set MyQDef = Nothing Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 From Jim.Hale at FleetPride.com Thu Jul 28 08:33:28 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 28 Jul 2005 08:33:28 -0500 Subject: [AccessD] Feed variable to parameter query Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233772C@corp-es01.fleetpride.com> try "WHERE [tbl Schedules].Pattern=" & PatternName & ";" Regards, Jim Hale -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Thursday, July 28, 2005 8:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] Feed variable to parameter query I am trying to feed a variable into a parameter query. I have done this with dates but cannot get the syntax right (correct combination of single, double quotes etc.) on pushing this text field into the query. If someone has a better way to push a variable into a parameter query feel free to jump in. Thanks all. Below is the code. Option Compare Database Function Table_Data_to_Parameter_Query() Dim MyDb As Database, MyQDef As QueryDef, myds As Recordset, myds1 As Recordset Dim strSQL As String, Table_Data As String Set MyDb = CurrentDb() Set myds = MyDb.OpenRecordset("tbl Patterns to Run", dbOpenTable) Set MyQDef2 = MyDb.QueryDefs("qry Pattern Start Date") PatternName = myds.Fields(0) strSQL = "SELECT Pattern, [CO2 Injection Start Date Schedule1]" & _ "FROM [tbl Schedules]" & _ "WHERE [tbl Schedules].Pattern=PatternName;" Set MyQDef = MyDb.QueryDefs("qry Pattern Start Date") MyQDef.SQL = strSQL Set myds1 = MyQDef.OpenRecordset() Table_Data = myds1.Fields(0) Set MyQDef = Nothing Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From mikedorism at verizon.net Thu Jul 28 08:35:37 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Thu, 28 Jul 2005 09:35:37 -0400 Subject: [AccessD] Feed variable to parameter query In-Reply-To: Message-ID: <000001c59379$3de12ba0$2e01a8c0@dorismanning> Try strSQL = "SELECT Pattern, [CO2 Injection Start Date Schedule1]" & _ "FROM [tbl Schedules]" & _ "WHERE [tbl Schedules].Pattern= '" & PatternName & "';" Doris Manning Database Administrator Hargrove Inc. From mmattys at rochester.rr.com Thu Jul 28 08:40:34 2005 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Thu, 28 Jul 2005 09:40:34 -0400 Subject: [AccessD] Re: Huge Access Database was wrongly named Re: AccessD Digest, Vol 29, Issue 35 References: Message-ID: <04e201c59379$f204bd90$0302a8c0@default> Connie, 475,000 is not that many records that they needed to go to such extremes as to make these separate tables in separate databases. You should be able to achieve the same result they got in the subsequent (4th) databases by using simple queries and manage the searches/edits through there. They may have somehow changed the data/structure of those tables, though, and that could be why they're worried. You'll need a few queries - one based upon the next: The first query will simply be a date range - fast and simple. This can only produce a number of records that could possibly have been entered (from paper records) within that date range. Results may need to be appended to a temp table to increase performance. The second query will be based upon the first (or temp table) and have another general criteria that the desired records have in common Edits can take place upon the temp table and then an update query can edit the original table. There are also data-mining methods where data is denormalized and translation tables used to get at data quickly, but I think Charlotte would be better at explaining this ... ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: To: Sent: Thursday, July 28, 2005 12:30 AM Subject: [AccessD] Re: Huge Access Database was wrongly named Re: AccessD Digest, Vol 29, Issue 35 > > Matty, > > Yes the data is all entered into the original Database. The 4th DB is > actrually the data they need to export as a commercial venture (my headache > is getting worse LOL). The original data is entered from old records and > until I create the new relational model with a shiny new SQL backend this > is the only electronic record of the data. The need is there to be able to > seperate this based on the date it was entered and store as a historical > record, Problem is they may need to search the historical data for a > specific record. I am unsure of the best way to manage this volume of > records I guess. There is a unique number per record, it is the serial > number given by the database. The criteria they will search on is a 16 > digit alphanumeric field. It is probably simple, but as I have not dealt > with the whole historical record managemnt thing I am looking for advice on > how to manage this in the interim. That and I wanted to share this as a > hall of fame use of Access, LOL. > > John, > > What was the amusing bit??? The use of Access or my amazement.... *grin* > .... they obviously didn't have access to this group or they would have > known better huh? > > Connie Kamrowski > > Analyst/Programmer > Information Technology > NSW Department of Primary Industries > Orange > > >They firstly store approximately 475000 records in one table in an > > Access Database, They then run a query on this database which > > creates 385000+ records and sticks them in a second database, > > they then run a query on this one generating 285000 records and > > store this in ... you guessed it Database number 3. To finish it off > > they query again, store the results in a 4th database and use this > > one for day to day business. > > Connie, can it be assumed that data-entry is done in the first db? > Or, are you saying that records are transferred from the fourth db > to the first at the end of the day? Perhaps they are even pulling such > data from a different database system? > > ... > > they wish to archive off some of the records in the largest database. > > They would however need to be able to search and manipulate these > > records. What is the best way to manage this? > > If I read into this correctly, there are several records per account and > your new relational system will keep the track of the account number. > As long as there is a Primary Key AutoNumber that can relate to a Long > in the archive table(s), you can just use SQL for searches and edits. > Perhaps it is not this simple, though ... ? What's missing? > > > > This message is intended for the addressee named and may contain > confidential information. If you are not the intended recipient or received > it in error, please delete the message and notify sender. Views expressed > are those of the individual sender and are not necessarily the views of > their organisation. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Thu Jul 28 08:47:21 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 28 Jul 2005 08:47:21 -0500 Subject: [AccessD] Feed variable to parameter query Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233772D@corp-es01.fleetpride.com> If your variable is text, use Doris's solution (the single quotes are important), for numbers mine should work. Jim Hale -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Thursday, July 28, 2005 8:33 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Feed variable to parameter query try "WHERE [tbl Schedules].Pattern=" & PatternName & ";" Regards, Jim Hale -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Thursday, July 28, 2005 8:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] Feed variable to parameter query I am trying to feed a variable into a parameter query. I have done this with dates but cannot get the syntax right (correct combination of single, double quotes etc.) on pushing this text field into the query. If someone has a better way to push a variable into a parameter query feel free to jump in. Thanks all. Below is the code. Option Compare Database Function Table_Data_to_Parameter_Query() Dim MyDb As Database, MyQDef As QueryDef, myds As Recordset, myds1 As Recordset Dim strSQL As String, Table_Data As String Set MyDb = CurrentDb() Set myds = MyDb.OpenRecordset("tbl Patterns to Run", dbOpenTable) Set MyQDef2 = MyDb.QueryDefs("qry Pattern Start Date") PatternName = myds.Fields(0) strSQL = "SELECT Pattern, [CO2 Injection Start Date Schedule1]" & _ "FROM [tbl Schedules]" & _ "WHERE [tbl Schedules].Pattern=PatternName;" Set MyQDef = MyDb.QueryDefs("qry Pattern Start Date") MyQDef.SQL = strSQL Set myds1 = MyQDef.OpenRecordset() Table_Data = myds1.Fields(0) Set MyQDef = Nothing Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Chester_Kaup at kindermorgan.com Thu Jul 28 08:47:28 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 28 Jul 2005 08:47:28 -0500 Subject: [AccessD] Feed variable to parameter query Message-ID: Thanks. That got it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Thursday, July 28, 2005 8:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Feed variable to parameter query Try strSQL = "SELECT Pattern, [CO2 Injection Start Date Schedule1]" & _ "FROM [tbl Schedules]" & _ "WHERE [tbl Schedules].Pattern= '" & PatternName & "';" Doris Manning Database Administrator Hargrove Inc. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at outbaktech.com Thu Jul 28 09:37:56 2005 From: Jeff at outbaktech.com (Jeff Barrows) Date: Thu, 28 Jul 2005 09:37:56 -0500 Subject: [AccessD] RE: [dba-Tech] RE: [dba-OT] Cross Posted: Looking for a .NET developernear Neenah, WI Message-ID: I have already responded to one individual off-list. If anyone else is interested in additional information, please contact me directly at the email address in my signature. Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Phone: 886-5913 Fax: 886-5932 Racine, WI jeff at outbaktech.com From cfoust at infostatsystems.com Thu Jul 28 10:19:05 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 28 Jul 2005 08:19:05 -0700 Subject: [AccessD] Runtime Vs Full Access Install Message-ID: Yep, SageKey is a must for distributing runtimes, regardless of which installer you use. Their support is also incredible! Charlotte Foust -----Original Message----- From: connie.kamrowski at agric.nsw.gov.au [mailto:connie.kamrowski at agric.nsw.gov.au] Sent: Wednesday, July 27, 2005 9:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Vs Full Access Install Not so impressive, they are not concurrent :) Just potentially so. Databases are not always deployed across all users. I was referencing the fact that we have deployed at least one database to these users and their specific environments and have not had problems. Because of the way sagekey works we have found that as long as we encapsulate all of the things we reference into the sagekey runtime, we have had no issues at all. It may be worth a look at their website http://www.sagekey.com/ for a run down of what it does and what they promise. Just a suggestion but it has worked really well for us with the issues we were having cross deploying and installing upgrades. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax:02 6391 3290 Hi Connie - thanks for the reply. 2500 users? That's pretty impressive. Did you notice William's email? Have you had the version change problems he mentions? Kath This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Thu Jul 28 10:23:25 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Thu, 28 Jul 2005 11:23:25 -0400 Subject: [AccessD] strip the apostrophe's Message-ID: Hi, I'm using a sql statement behind a search box to return the member's name as a result of a search with the data being displayed by the user choosing a query (button) or a report (button). All was well until I ran into the data below: Joe's Electrical My sql statement errors out because it cannot handle the extra apostrophe. Should I be stripping any extra syntax before I process the sql statement, or should I test for this condition and handle this in a separate routine? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From Robin at rolledgold.net Thu Jul 28 10:25:53 2005 From: Robin at rolledgold.net (Robin ) Date: Thu, 28 Jul 2005 16:25:53 +0100 Subject: [AccessD] strip the apostrophe's Message-ID: <560E2B80EC8F624B93A87B943B7A9CD52E2B9B@rgiserv.rg.local> Julie, Have a look at this http://www.kamath.com/codelibrary/cl003_apostrophe.asp Rgds Robin Lawrence -----Original Message----- From: Julie Reardon-Taylor [mailto:prosoft6 at hotmail.com] Sent: Thu 28/07/2005 16:23 To: accessd at databaseadvisors.com Cc: Subject: [AccessD] strip the apostrophe's Hi, I'm using a sql statement behind a search box to return the member's name as a result of a search with the data being displayed by the user choosing a query (button) or a report (button). All was well until I ran into the data below: Joe's Electrical My sql statement errors out because it cannot handle the extra apostrophe. Should I be stripping any extra syntax before I process the sql statement, or should I test for this condition and handle this in a separate routine? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Jul 28 10:34:36 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 28 Jul 2005 08:34:36 -0700 Subject: [AccessD] Re: Huge Access Database was wrongly named Re: AccessD Digest, Vol 29, Issue 35 Message-ID: Connie, I just have to ask: how many FIELDS are in that single table?? I suspect it can be broken into multiple tables in a relational scheme and the users will never know the difference, but the data mining they want to do and the archiving requires a slightly different design approach, so you probably will still wind up with two databases, one for data entry/capture and one for data warehousing/archiving. I highly recommend Ralph Kimball's book The Data Warehouse Toolkit (watch out for a wrap) http://www.amazon.com/exec/obidos/tg/detail/-/0471153370/002-6258971-950 0008?v=glance as a reference for building dimensional data warehouses. Once you get your head around the concepts, including the star schema, the design is simply a matter of how you want to use it. Data retrieval from dimensional data warehouses is very fast and requires minimal querying because of the nature of the structure. Charlotte Foust -----Original Message----- From: connie.kamrowski at agric.nsw.gov.au [mailto:connie.kamrowski at agric.nsw.gov.au] Sent: Wednesday, July 27, 2005 9:31 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Huge Access Database was wrongly named Re: AccessD Digest, Vol 29, Issue 35 Matty, Yes the data is all entered into the original Database. The 4th DB is actrually the data they need to export as a commercial venture (my headache is getting worse LOL). The original data is entered from old records and until I create the new relational model with a shiny new SQL backend this is the only electronic record of the data. The need is there to be able to seperate this based on the date it was entered and store as a historical record, Problem is they may need to search the historical data for a specific record. I am unsure of the best way to manage this volume of records I guess. There is a unique number per record, it is the serial number given by the database. The criteria they will search on is a 16 digit alphanumeric field. It is probably simple, but as I have not dealt with the whole historical record managemnt thing I am looking for advice on how to manage this in the interim. That and I wanted to share this as a hall of fame use of Access, LOL. John, What was the amusing bit??? The use of Access or my amazement.... *grin* .... they obviously didn't have access to this group or they would have known better huh? Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange >They firstly store approximately 475000 records in one table in an >Access Database, They then run a query on this database which creates >385000+ records and sticks them in a second database, they then run a >query on this one generating 285000 records and store this in ... you >guessed it Database number 3. To finish it off they query again, store >the results in a 4th database and use this one for day to day >business. Connie, can it be assumed that data-entry is done in the first db? Or, are you saying that records are transferred from the fourth db to the first at the end of the day? Perhaps they are even pulling such data from a different database system? ... > they wish to archive off some of the records in the largest database. > They would however need to be able to search and manipulate these > records. What is the best way to manage this? If I read into this correctly, there are several records per account and your new relational system will keep the track of the account number. As long as there is a Primary Key AutoNumber that can relate to a Long in the archive table(s), you can just use SQL for searches and edits. Perhaps it is not this simple, though ... ? What's missing? This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at isharp.co.uk Thu Jul 28 10:38:34 2005 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Thu, 28 Jul 2005 16:38:34 +0100 Subject: [AccessD] strip the apostrophe's In-Reply-To: Message-ID: Julie, I think I used to do something like the following: Dim strSQL As String Dim strName as string If InStr([Field],"'")>0 ) then strName = strSQL = "SELECT [Fields] FROM [Table] WHERE Left([Field],InStr([Field],"'")-1) & Mid([Field],InStr([Field],"'")+1) = '" & strName & "'" Else strSQL = "SELECT [Fields] FROM [Table] WHERE [Field] = '" & strName & "'" Endif Written off top of my head, so may need modifying Paul -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: 28 July 2005 16:23 To: accessd at databaseadvisors.com Subject: [AccessD] strip the apostrophe's Hi, I'm using a sql statement behind a search box to return the member's name as a result of a search with the data being displayed by the user choosing a query (button) or a report (button). All was well until I ran into the data below: Joe's Electrical My sql statement errors out because it cannot handle the extra apostrophe. Should I be stripping any extra syntax before I process the sql statement, or should I test for this condition and handle this in a separate routine? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Thu Jul 28 11:08:07 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 28 Jul 2005 11:08:07 -0500 Subject: [AccessD] Missing Operator in Query Message-ID: The following SQL returns a missing operator message yet if I put it in the query grid all is good. That is a semi colon at the end even though hard to see. Maybe I am just going blind from looking at it and not seeing the error. strSQL = "SELECT concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "FROM [tbl Patterns]" & _ "INNER JOIN [tbl WAG] ON [tbl Patterns].[WAG Scheme] = [tbl WAG].[WAG Scheme]" & _ "WHERE Pattern = '" & PatternName & "' " & _ "GROUP BY concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" Set MyQDef1 = MyDb.QueryDefs("qry Pattern WAG Scheme") MyQDef1.SQL = strSQL Set myds1 = MyQDef1.OpenRecordset(). Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 From Lambert.Heenan at AIG.com Thu Jul 28 11:27:57 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 28 Jul 2005 12:27:57 -0400 Subject: [AccessD] Missing Operator in Query Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F13777929@xlivmbx21.aig.com> Could it be the very last couple of lines?... Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" ... There's no space after 'Comment' so this string winds up being "Cum_Wateri_hcpv, Fluid, CommentORDER BY Cum_Toti_hcpv;" Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, July 28, 2005 12:08 PM To: Access Developers discussion and problem solving Subject: [AccessD] Missing Operator in Query The following SQL returns a missing operator message yet if I put it in the query grid all is good. That is a semi colon at the end even though hard to see. Maybe I am just going blind from looking at it and not seeing the error. strSQL = "SELECT concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "FROM [tbl Patterns]" & _ "INNER JOIN [tbl WAG] ON [tbl Patterns].[WAG Scheme] = [tbl WAG].[WAG Scheme]" & _ "WHERE Pattern = '" & PatternName & "' " & _ "GROUP BY concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" Set MyQDef1 = MyDb.QueryDefs("qry Pattern WAG Scheme") MyQDef1.SQL = strSQL Set myds1 = MyQDef1.OpenRecordset(). Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Thu Jul 28 11:36:46 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 28 Jul 2005 12:36:46 -0400 Subject: [AccessD] Missing Operator in Query In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C38415@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED8C@ADGSERVER> For that matter, there are missing spaces at the end of many of the lines. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 28, 2005 12:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Missing Operator in Query Could it be the very last couple of lines?... Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" ... There's no space after 'Comment' so this string winds up being "Cum_Wateri_hcpv, Fluid, CommentORDER BY Cum_Toti_hcpv;" Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, July 28, 2005 12:08 PM To: Access Developers discussion and problem solving Subject: [AccessD] Missing Operator in Query The following SQL returns a missing operator message yet if I put it in the query grid all is good. That is a semi colon at the end even though hard to see. Maybe I am just going blind from looking at it and not seeing the error. strSQL = "SELECT concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "FROM [tbl Patterns]" & _ "INNER JOIN [tbl WAG] ON [tbl Patterns].[WAG Scheme] = [tbl WAG].[WAG Scheme]" & _ "WHERE Pattern = '" & PatternName & "' " & _ "GROUP BY concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" Set MyQDef1 = MyDb.QueryDefs("qry Pattern WAG Scheme") MyQDef1.SQL = strSQL Set myds1 = MyQDef1.OpenRecordset(). Chester Kaup From Chester_Kaup at kindermorgan.com Thu Jul 28 12:05:11 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 28 Jul 2005 12:05:11 -0500 Subject: [AccessD] Missing Operator in Query Message-ID: Thnaks everyone. Another set of eyes looking sometimes helps. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, July 28, 2005 11:37 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Missing Operator in Query For that matter, there are missing spaces at the end of many of the lines. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 28, 2005 12:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Missing Operator in Query Could it be the very last couple of lines?... Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" ... There's no space after 'Comment' so this string winds up being "Cum_Wateri_hcpv, Fluid, CommentORDER BY Cum_Toti_hcpv;" Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, July 28, 2005 12:08 PM To: Access Developers discussion and problem solving Subject: [AccessD] Missing Operator in Query The following SQL returns a missing operator message yet if I put it in the query grid all is good. That is a semi colon at the end even though hard to see. Maybe I am just going blind from looking at it and not seeing the error. strSQL = "SELECT concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "FROM [tbl Patterns]" & _ "INNER JOIN [tbl WAG] ON [tbl Patterns].[WAG Scheme] = [tbl WAG].[WAG Scheme]" & _ "WHERE Pattern = '" & PatternName & "' " & _ "GROUP BY concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" Set MyQDef1 = MyDb.QueryDefs("qry Pattern WAG Scheme") MyQDef1.SQL = strSQL Set myds1 = MyQDef1.OpenRecordset(). Chester Kaup -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Jul 28 13:06:18 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 28 Jul 2005 11:06:18 -0700 Subject: [AccessD] Missing Operator in Query References: Message-ID: <42E91E9A.7050309@shaw.ca> When I get one of these I look for reserved words and do a debug.print strSQL "And all is revealed" It sure beats having to look through a 200 page hexadecimal dump printout.. Kaup, Chester wrote: >Thnaks everyone. Another set of eyes looking sometimes helps. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid >Sent: Thursday, July 28, 2005 11:37 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Missing Operator in Query > >For that matter, there are missing spaces at the end of many of the >lines. > >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, >Lambert >Sent: Thursday, July 28, 2005 12:28 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Missing Operator in Query > > >Could it be the very last couple of lines?... > >Cum_Wateri_hcpv, Fluid, Comment" & _ > >"ORDER BY Cum_Toti_hcpv;" > >... There's no space after 'Comment' so this string winds up being > >"Cum_Wateri_hcpv, Fluid, CommentORDER BY Cum_Toti_hcpv;" > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester >Sent: Thursday, July 28, 2005 12:08 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Missing Operator in Query > > >The following SQL returns a missing operator message yet if I put it in >the >query grid all is good. That is a semi colon at the end even though hard >to >see. Maybe I am just going blind from looking at it and not seeing the >error. > > > >strSQL = "SELECT concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, >Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ > >"FROM [tbl Patterns]" & _ > >"INNER JOIN [tbl WAG] ON [tbl Patterns].[WAG Scheme] = [tbl WAG].[WAG >Scheme]" & _ > >"WHERE Pattern = '" & PatternName & "' " & _ > >"GROUP BY concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, >Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ > >"ORDER BY Cum_Toti_hcpv;" > > > >Set MyQDef1 = MyDb.QueryDefs("qry Pattern WAG Scheme") > >MyQDef1.SQL = strSQL > >Set myds1 = MyQDef1.OpenRecordset(). > > > >Chester Kaup > > > -- Marty Connelly Victoria, B.C. Canada From KP at sdsonline.net Thu Jul 28 19:10:15 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 29 Jul 2005 10:10:15 +1000 Subject: [AccessD] Runtime Vs Full Access Install References: Message-ID: <003f01c593d1$e683ea60$6601a8c0@user> I do own Wise and Sagekey,having bought them for a distribution for a client a couple of years ago. Unfortunately I didn't get to learn much after the initial install (which was very successful after a couple of attempts and the support was good). But the company was bought out and they changed platforms so I never moved on to distributing upgrades. So far every one of my clients have had Access so I have gone that way but I am rethinking it. This month one of my clients hit a snag which cost them a day at a crucial time of the month because Frontpage was uninstalled from the PC and I had a reference set to it - that the kind of problem I am getting. Thanks for the advice, Kath ----- Original Message ----- From: connie.kamrowski at agric.nsw.gov.au To: accessd at databaseadvisors.com Sent: Thursday, July 28, 2005 2:46 PM Subject: [AccessD] Runtime Vs Full Access Install Not so impressive, they are not concurrent :) Just potentially so. Databases are not always deployed across all users. I was referencing the fact that we have deployed at least one database to these users and their specific environments and have not had problems. Because of the way sagekey works we have found that as long as we encapsulate all of the things we reference into the sagekey runtime, we have had no issues at all. It may be worth a look at their website http://www.sagekey.com/ for a run down of what it does and what they promise. Just a suggestion but it has worked really well for us with the issues we were having cross deploying and installing upgrades. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax:02 6391 3290 Hi Connie - thanks for the reply. 2500 users? That's pretty impressive. Did you notice William's email? Have you had the version change problems he mentions? Kath This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Fri Jul 29 07:26:57 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 29 Jul 2005 17:56:57 +0530 Subject: [AccessD] Demo To Run for 30 Days References: Message-ID: <021101c59438$e5e4e570$b71865cb@winxp> Julie, Two of my sample db's mentioned below, might be of interest to you. (a) LicenseLock (b) TrialSet These are available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Julie Reardon-Taylor To: accessd at databaseadvisors.com Sent: Tuesday, July 26, 2005 20:30 Subject: [AccessD] Demo To Run for 30 Days I'd like to put a demo on my website as a download and have it run for 30 days, checking the stored date against the system date. I know I've seen this somewhere, but cannot seem to find the code. Can anyone point me in the right direction? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From Lambert.Heenan at AIG.com Fri Jul 29 08:43:16 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 29 Jul 2005 09:43:16 -0400 Subject: [AccessD] OT: Friday Humor Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F13777B15@xlivmbx21.aig.com> A MAGAZINE RECENTLY RAN A "DILBERT QUOTES" CONTEST. IT SOUGHT PEOPLE TO SUBMIT QUOTES FROM THEIR REAL-LIFE "DILBERT-TYPE" MANAGERS. HERE ARE THE TOP TEN FINALISTS: 1. "As of tomorrow, employees will only be able to access the building using individual security cards. Pictures will be taken next Wednesday and employees will receive their cards in two weeks." (The Winner) ----------------------------------------------- 2. "What I need is an exact list of specific unknown problems we might encounter." (Lykes Lines Shipping) ----------------------------------------------- 3. "E-mail is not to be used to pass on information or data. It should be used only for company business." (Accounting manager, Electric Boat Company) ----------------------------------------------- 4. "This project is so important, we can't let things that are more important interfere with it." (Advertising/Marketing manager, United Parcel Service) ----------------------------------------------- 5. "Doing it right is no excuse for not meeting the schedule. (Plant manager, Delco Corporation) ----------------------------------------------- 6. "No one will believe you solved this problem in one day! They've been working on it for months. Now, go act busy for a few weeks and I'll let you know when it's time to tell them." (R&D supervisor, Minnesota Mining and Manufacturing /3M Corp.) ----------------------------------------------- 7. Quote from the Boss: "Teamwork is a lot of people doing what I say." (Marketing executive, Citrix Corporation) ----------------------------------------------- 8. My sister passed away and her funeral was scheduled for Monday. When I told my Boss, he said she died on purpose so that I would have to miss work on the busiest day of the year. He then asked if we could change her burial to Friday. He said, "That would be better for me." (Shipping executive, FTD Florists) 9. "We know that communication is a problem, but the company is not going to discuss it with the employees." (Switching supervisor, AT&T Long Lines Division) LOL, now that's just priceless. ----------------------------------------------- 10. One day my Boss asked me to submit a status report to him concerning a project I was working on. I asked him if tomorrow would be soon enough. He said, "If I wanted it tomorrow, I would have waited until tomorrow to ask for it!" (Hallmark Cards executive) In the midst of great joy, do not promise anyone anything. In the midst of great anger, do not answer anyone's letter. ? Chinese proverb From jimdettman at earthlink.net Sat Jul 30 10:43:32 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Sat, 30 Jul 2005 11:43:32 -0400 Subject: [AccessD] Locking question In-Reply-To: Message-ID: Gary, No, you hit it right on the head. If Access cannot create a LDB file, it opens the MDB/MDE in exclusive mode. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gary Kjos Sent: Wednesday, July 27, 2005 2:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Locking question Hi Bobby, The users need to have File Creation rights in the folder that the BE database lives in so the LDB file can be created. Is there an LDB file being created for the BE when the first user is in there? I think with one user it will allow access without being able to create the LDB file but will lock out the second user? I could be out in left field wandering in my own dream world too of course. I do know that users of our Access databases need full file creation, change and deletion rights in the folder or else it doesn't work. On 7/27/05, Bobby Heid wrote: > Hey, > > Our clients use our system on a network where each user has a FE against the > BE on the server. While the app was originally written to all be on the > local pc, it has migrated to the server. Usually all goes well. > > Well, this one client has some weird happenings going on. One user will be > in the database in any given form. Another user cannot get access to the BE > until the 1st user exits the form they were in. The first thing the app > does is to relink the tables to the last BE that was loaded. It sounds like > there are some sort of issues with locking and the LDB file. > > Anyone have any pointers? > > Thanks, > Bobby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jul 30 23:43:27 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 31 Jul 2005 00:43:27 -0400 Subject: [AccessD] OT: Error 550 Message-ID: <000901c5958a$660f6e80$0300a8c0@ColbyM6805> Does anyone understand what is going on with email sent from inside of specific networks. Here's the situation... I get the following error (as an example): Your message did not reach some or all of the intended recipients. Subject: RE: Logging in to George Sent: 7/29/2005 1:00 PM The following recipient(s) could not be reached: 'Jason Ralph' on 7/29/2005 1:00 PM 550 not local host invohealthcare.com, not a gateway >From my sister-in-law's house when I try to send to this specific address, using SMPT server mail.colbyconsulting.com. If I send mail to myself I do not get this problem (to jwcolby at colbyconsulting.com). I have seen this exact same symptom if sending from my client. It never happened before from my sister-in-law's but is now. It turns out that if I look at her email smtp server (mail.rochester.rr.com), and modify my smtp server to match it works. It appears that this is the classic port 25 blocking thing. It is a royal PITA to have to find out what the correct smtp server is, modify Outlook, and send to that whenever I move from place to place. At my previous host for MY WEB SITE, they had me set up to send on a different port (26 maybe?) and then it worked regardless of where I was since only port 25 was being blocked and my web email server (mail.colbyconsulting.com) was expecting traffic on a different port. The odd part here is that I can send to myself (always), i.e. jwcolby at colbyconsulting.com. That must go on port 25 as well, so why does that go just fine, but not the other message? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From DWUTKA at marlow.com Sat Jul 30 23:51:28 2005 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Sat, 30 Jul 2005 23:51:28 -0500 Subject: [AccessD] OT: Error 550 Message-ID: <123701F54509D9119A4F00D0B747349016DB80@main2.marlow.com> It depends on how they have THEIR mail server setup. With the onslaught of spam, a lot of mail servers get down right finicky on what it will let through. I know my personal domain is/was blocked on several mail servers because the IP's in my domain were listed as dynamic, instead of static, which they WERE static. If the domain of the email you are sending 'from' doesn't match the IP's sending the mail, that's another big 'block'. Then there are several 'black lists' on the web, which store domains considered to be spam. Honestly, it's an issue that is a sore point for me (both spam, and the methods used to block). Drew -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, July 30, 2005 11:43 PM To: 'Access Developers discussion and problem solving'; Tech - Database Advisors Inc. Subject: [AccessD] OT: Error 550 Does anyone understand what is going on with email sent from inside of specific networks. Here's the situation... I get the following error (as an example): Your message did not reach some or all of the intended recipients. Subject: RE: Logging in to George Sent: 7/29/2005 1:00 PM The following recipient(s) could not be reached: 'Jason Ralph' on 7/29/2005 1:00 PM 550 not local host invohealthcare.com, not a gateway >From my sister-in-law's house when I try to send to this specific address, using SMPT server mail.colbyconsulting.com. If I send mail to myself I do not get this problem (to jwcolby at colbyconsulting.com). I have seen this exact same symptom if sending from my client. It never happened before from my sister-in-law's but is now. It turns out that if I look at her email smtp server (mail.rochester.rr.com), and modify my smtp server to match it works. It appears that this is the classic port 25 blocking thing. It is a royal PITA to have to find out what the correct smtp server is, modify Outlook, and send to that whenever I move from place to place. At my previous host for MY WEB SITE, they had me set up to send on a different port (26 maybe?) and then it worked regardless of where I was since only port 25 was being blocked and my web email server (mail.colbyconsulting.com) was expecting traffic on a different port. The odd part here is that I can send to myself (always), i.e. jwcolby at colbyconsulting.com. That must go on port 25 as well, so why does that go just fine, but not the other message? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Jul 31 00:31:17 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 31 Jul 2005 01:31:17 -0400 Subject: [AccessD] OT: Error 550 In-Reply-To: <123701F54509D9119A4F00D0B747349016DB80@main2.marlow.com> Message-ID: <000a01c59591$17cb1970$0300a8c0@ColbyM6805> Yea, but it is more than that. If I just send a test message to myself, it just goes. A few minutes later it comes back in just fine. If I send to one of these other places, it INSTANTLY gets this 550 error in my inbox. If I then change from using mail.colbyconsulting.com as the smtp server address to the "local" smtp address (RR address) it goes out just fine. So it is not a case of "we don't like this destination". It is just forcing me to send through their mail server, but NOT when sending to my own mail server. Truly odd don't you think? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Sunday, July 31, 2005 12:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT: Error 550 It depends on how they have THEIR mail server setup. With the onslaught of spam, a lot of mail servers get down right finicky on what it will let through. I know my personal domain is/was blocked on several mail servers because the IP's in my domain were listed as dynamic, instead of static, which they WERE static. If the domain of the email you are sending 'from' doesn't match the IP's sending the mail, that's another big 'block'. Then there are several 'black lists' on the web, which store domains considered to be spam. Honestly, it's an issue that is a sore point for me (both spam, and the methods used to block). Drew -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, July 30, 2005 11:43 PM To: 'Access Developers discussion and problem solving'; Tech - Database Advisors Inc. Subject: [AccessD] OT: Error 550 Does anyone understand what is going on with email sent from inside of specific networks. Here's the situation... I get the following error (as an example): Your message did not reach some or all of the intended recipients. Subject: RE: Logging in to George Sent: 7/29/2005 1:00 PM The following recipient(s) could not be reached: 'Jason Ralph' on 7/29/2005 1:00 PM 550 not local host invohealthcare.com, not a gateway >From my sister-in-law's house when I try to send to this specific >address, using SMPT server mail.colbyconsulting.com. If I send mail to myself I do not get this problem (to jwcolby at colbyconsulting.com). I have seen this exact same symptom if sending from my client. It never happened before from my sister-in-law's but is now. It turns out that if I look at her email smtp server (mail.rochester.rr.com), and modify my smtp server to match it works. It appears that this is the classic port 25 blocking thing. It is a royal PITA to have to find out what the correct smtp server is, modify Outlook, and send to that whenever I move from place to place. At my previous host for MY WEB SITE, they had me set up to send on a different port (26 maybe?) and then it worked regardless of where I was since only port 25 was being blocked and my web email server (mail.colbyconsulting.com) was expecting traffic on a different port. The odd part here is that I can send to myself (always), i.e. jwcolby at colbyconsulting.com. That must go on port 25 as well, so why does that go just fine, but not the other message? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 joeget at vgernet.net Sun Jul 31 19:02:20 2005 From: joeget at vgernet.net (John Eget) Date: Sun, 31 Jul 2005 20:02:20 -0400 Subject: [AccessD] mde....mdb format Message-ID: <002101c5962c$4d06dcf0$ebc2f63f@Desktop> I have correctly complied and ran a mdb database with no errors, yet when i convert to mde i get the error pop that the command on a click event is not available in a mde/ade format. has anyone came across this before, what happens when i create a mde? Thanks for looking John From accessd666 at yahoo.com Fri Jul 1 00:38:29 2005 From: accessd666 at yahoo.com (Sad Der) Date: Thu, 30 Jun 2005 22:38:29 -0700 (PDT) Subject: [AccessD] Check date-time problem In-Reply-To: <42C44811.6050000@shaw.ca> Message-ID: <20050701053829.34085.qmail@web31608.mail.mud.yahoo.com> Example: current time=21:37 StartPauzeAt=21:00 EndPauzeAt=3:00 The following statement checks if current time is between startpauze and endpauze: If (dtmCurrentTime > dtmStartPauze) And (dtmCurrentTime < dtmEndPauze) Then (dtmCurrentTime > dtmStartPauze) = TRUE 21:37 > 21:00 = TRUE (dtmCurrentTime < dtmEndPauze) = FALSE 21:37 < 3:00 = FALSE!! So the problem is that I'm missing a day factor here. How can I implement this. The StartPauzeAt and EndPauzeAt are flexibel and can be changed at any time. So what I need is: If dtmCrntDateTime > dtmStartPauze AND dtmCrntDateTime < dtmStartPauze then IF 1-jun-2005 21:37 > 1-jun-2005 21:00 AND 1-jun-2005 21:37 < 2-jun-2005 3:00 Hope this makes sence. SD --- MartyConnelly wrote: > So what is the problem, are you running more than 24 > hours? > > Sad Der wrote: > > >Hi group, > > > >I've got an ini file with the following values: > >[PauzeScheduling] > >StartPauzeAt=21:00 > >EndPauzeAt=3:00 > > > >I've got a 'service' that checks if the > Currenttime: > >dtmCurrentTime = CDate(Format(Time(), "hh:mm")) > > > >Is between these values. > > > >It worked fine. Settings used to be within a day. > >Somebody has got to have dealt with this problem > >before. > >What is a (very) solid way to handle this problem? > >Keep in mind that this is a long running schedule > >(e.g. forever?!) > > > >Thnx. > >SD > > > >Here's my code: > > > >'========================================================================================= > >' Function Name : PauzeScheduling > >' Parameters : dtmCurrentTime => Current > >Time' Return value : (Boolean) True: > >CurrentTime between scheduled times > >' Purpose : Check if current time is > >within the scheduled times of the ini file > >' Assumptions : --- > >' Uses : --- > >' Created : 2005-Jun-03 08:55, SaDe > >' Modifications : > >'========================================================================================= > >Public Function PauzeScheduling(dtmCurrentTime As > >Date) As Boolean > > Dim dtmStartPauze As Date > > Dim dtmEndPauze As Date > > > > On Error GoTo PauzeScheduling_Error > > > > dtmStartPauze = > >CDate(Format(g_oGenSet.GetValue("PauzeScheduling", > >"StartPauzeAt"), "HH:mm")) > > dtmEndPauze = > >CDate(Format(g_oGenSet.GetValue("PauzeScheduling", > >"EndPauzeAt"), "hh:mm")) > > > > > > If (dtmCurrentTime > dtmStartPauze) And > >(dtmCurrentTime < dtmEndPauze) Then > > PauzeScheduling = True > > Else > > PauzeScheduling = False > > End If > > > >PauzeScheduling_Exit: > > ' Collect your garbage here > > Exit Function > >PauzeScheduling_Error: > > ' Collect your garbage here > > Call > >g_oGenErr.Throw("PauzeScheduling.PauzeScheduling", > >"PauzeScheduling") > >End Function > > > > > >__________________________________________________ > >Do You Yahoo!? > >Tired of spam? Yahoo! Mail has the best spam > protection around > >http://mail.yahoo.com > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com From stuart at lexacorp.com.pg Fri Jul 1 01:51:22 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 01 Jul 2005 16:51:22 +1000 Subject: [AccessD] Check date-time problem In-Reply-To: <20050701053829.34085.qmail@web31608.mail.mud.yahoo.com> References: <42C44811.6050000@shaw.ca> Message-ID: <42C5748A.23305.AE32B@stuart.lexacorp.com.pg> On 30 Jun 2005 at 22:38, Sad Der wrote: > Example: > > current time=21:37 > StartPauzeAt=21:00 > EndPauzeAt=3:00 > Is StartPauzeAt always later than EndPauzeAt? If not you need two different conditions. If StartPauzeAt > EndPauseAt then 'wraps at midnight If currenttime > StartPauzeAt or currenttime < EndPauzeAt then ..... 'Pauze end If Else ' all in the same day If current currenttime > StartPauzeAt and currenttime < EndPauzeAt then .... 'Pause End If End If -- Stuart From Gustav at cactus.dk Fri Jul 1 04:10:11 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 01 Jul 2005 11:10:11 +0200 Subject: [AccessD] Check date-time problem Message-ID: Hi SD This should work for you: Public Function IsTimeBetween( _ ByVal dteTimeFrom As Date, _ ByVal dteTimeTo As Date, _ ByVal dteTimeToCompare As Date, _ Optional ByVal booTimeToCompareIsNextDay As Boolean) _ As Boolean ' Returns True if dteTimeToCompare falls between dteTimeFrom and dteTimeTo. ' ' 2002-04-06. Cactus Data ApS, CPH. Dim booTimeIsBetween As Boolean If DateDiff("s", dteTimeTo, dteTimeFrom) > 0 Then dteTimeTo = DateAdd("d", 1, dteTimeTo) End If If booTimeToCompareIsNextDay = True Then dteTimeToCompare = DateAdd("d", 1, dteTimeToCompare) End If If DateDiff("s", dteTimeFrom, dteTimeToCompare) >= 0 And _ DateDiff("s", dteTimeToCompare, dteTimeTo) >= 0 Then booTimeIsBetween = True End If IsTimeBetween = booTimeIsBetween End Function /gustav >>> accessd666 at yahoo.com 07/01 7:38 am >>> Example: current time=21:37 StartPauzeAt=21:00 EndPauzeAt=3:00 The following statement checks if current time is between startpauze and endpauze: If (dtmCurrentTime > dtmStartPauze) And (dtmCurrentTime < dtmEndPauze) Then (dtmCurrentTime > dtmStartPauze) = TRUE 21:37 > 21:00 = TRUE (dtmCurrentTime < dtmEndPauze) = FALSE 21:37 < 3:00 = FALSE!! So the problem is that I'm missing a day factor here. How can I implement this. The StartPauzeAt and EndPauzeAt are flexibel and can be changed at any time. So what I need is: If dtmCrntDateTime > dtmStartPauze AND dtmCrntDateTime < dtmStartPauze then IF 1-jun-2005 21:37 > 1-jun-2005 21:00 AND 1-jun-2005 21:37 < 2-jun-2005 3:00 Hope this makes sence. SD --- MartyConnelly wrote: > So what is the problem, are you running more than 24 > hours? > > Sad Der wrote: > > >Hi group, > > > >I've got an ini file with the following values: > >[PauzeScheduling] > >StartPauzeAt=21:00 > >EndPauzeAt=3:00 > > > >I've got a 'service' that checks if the > Currenttime: > >dtmCurrentTime = CDate(Format(Time(), "hh:mm")) > > > >Is between these values. > > > >It worked fine. Settings used to be within a day. > >Somebody has got to have dealt with this problem > >before. > >What is a (very) solid way to handle this problem? > >Keep in mind that this is a long running schedule > >(e.g. forever?!) > > > >Thnx. > >SD > > > >Here's my code: > > > >'========================================================================================= > >' Function Name : PauzeScheduling > >' Parameters : dtmCurrentTime => Current > >Time' Return value : (Boolean) True: > >CurrentTime between scheduled times > >' Purpose : Check if current time is > >within the scheduled times of the ini file > >' Assumptions : --- > >' Uses : --- > >' Created : 2005-Jun-03 08:55, SaDe > >' Modifications : > >'========================================================================================= > >Public Function PauzeScheduling(dtmCurrentTime As > >Date) As Boolean > > Dim dtmStartPauze As Date > > Dim dtmEndPauze As Date > > > > On Error GoTo PauzeScheduling_Error > > > > dtmStartPauze = > >CDate(Format(g_oGenSet.GetValue("PauzeScheduling", > >"StartPauzeAt"), "HH:mm")) > > dtmEndPauze = > >CDate(Format(g_oGenSet.GetValue("PauzeScheduling", > >"EndPauzeAt"), "hh:mm")) > > > > > > If (dtmCurrentTime > dtmStartPauze) And > >(dtmCurrentTime < dtmEndPauze) Then > > PauzeScheduling = True > > Else > > PauzeScheduling = False > > End If > > > >PauzeScheduling_Exit: > > ' Collect your garbage here > > Exit Function > >PauzeScheduling_Error: > > ' Collect your garbage here > > Call > >g_oGenErr.Throw("PauzeScheduling.PauzeScheduling", > >"PauzeScheduling") > >End Function > > > > > >__________________________________________________ > >Do You Yahoo!? > >Tired of spam? Yahoo! Mail has the best spam > protection around > >http://mail.yahoo.com > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Jul 1 10:01:50 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 01 Jul 2005 17:01:50 +0200 Subject: [AccessD] OT: Friday inspiration Message-ID: Hi all What a boring Friday afternoon. Much more fun to study the flash site on the Turning Torso, a masterpiece in sculptural architecture under construction at Malm?, the Swedish town 25 km east of Copenhagen, with a height of 190 m: http://www.turningtorso.com/ Note the Menu top right. Have fun! /gustav From jwcolby at colbyconsulting.com Fri Jul 1 10:27:57 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 01 Jul 2005 11:27:57 -0400 Subject: [AccessD] OT: Friday inspiration In-Reply-To: Message-ID: <001401c57e51$758924a0$6c7aa8c0@ColbyM6805> Is it a windmill by any chance? Cool looking structure. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 01, 2005 11:02 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Friday inspiration Hi all What a boring Friday afternoon. Much more fun to study the flash site on the Turning Torso, a masterpiece in sculptural architecture under construction at Malm?, the Swedish town 25 km east of Copenhagen, with a height of 190 m: http://www.turningtorso.com/ Note the Menu top right. Have fun! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Jul 1 10:42:43 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 01 Jul 2005 17:42:43 +0200 Subject: [AccessD] OT: Friday inspiration Message-ID: Hi John Many ways to look at this. Notice the pictures of the interior. No window is rectangular. /gustav >>> jwcolby at colbyconsulting.com 07/01 5:27 pm >>> Is it a windmill by any chance? Cool looking structure. From cfoust at infostatsystems.com Fri Jul 1 10:57:22 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 1 Jul 2005 08:57:22 -0700 Subject: [AccessD] OT: Friday inspiration Message-ID: Makes it hard to find window shades! Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, July 01, 2005 8:43 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT: Friday inspiration Hi John Many ways to look at this. Notice the pictures of the interior. No window is rectangular. /gustav >>> jwcolby at colbyconsulting.com 07/01 5:27 pm >>> Is it a windmill by any chance? Cool looking structure. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Fri Jul 1 11:13:54 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 1 Jul 2005 11:13:54 -0500 Subject: [AccessD] Storing variable names in a table Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723376B3@corp-es01.fleetpride.com> Sad, Thank you for the reply. I'm experimenting with your suggestion. I'll let you know how it goes. Jim Hale -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Thursday, June 30, 2005 12:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Storing variable names in a table Jim, I'm probably missing the big picture here but i'll give it a try. Suppose you have a table with the following fields: Query (Text) Parameter (Text) ParameterType (Text) It has the values: Query Parameter ParameterType A strareacode String A intCo Integer A "AreaActSummaryACT" String A "dept1" String A .Worksheets(y).Range("a11") Range You could add all parameters and there types in an array Something like this: intCntr = Select count(*) from ParameterTable where Query = "A" dim avarParameter() as variant redim avarparameter(1,intCntr) So now you now how to convert the parameter types. for lngArrayCntr = 0 to UBOUND(avarparameter) ConvertDataType(avarparameter(1,lngArrayCntr) next lngArrayCntr Did I mis it completely? :-) HTH SD --- "Hale, Jim" wrote: > In a class I have created a method that reads query > names from a table and > opens the appropriate record sets. There may be any > number of queries that > are run by a single method call. For parameter > queries life is more > complicated. I created a method which loads the > variables into a ParmArray > and then sets the query parameters to the correct > variable. The problem with > this is I can only run one parameter query at a time > from my method. a > typical call looks like: > > 'set parameter values > Call Xcel.QryParmValues(strareacode, intCo, > "AreaActSummaryACT", "dept1", > .Worksheets(y).Range("a11")) > ' read query names from table and open the > recorsets. > Xcel.MultiplePasteExcel (119) > > 119 is the case number so the method knows which the > query names to pull > from a table. Ideally I would like to store all the > parameters for all the > queries in a table and extract them as needed. > "AreaActSummaryACT", and > "dept1" are no problem since they are strings. What > I don't know how to do > is store variable names such as strareacode, intCo > as strings in a table and > then assign them the correct value from the > procedure all this is running > in. Worksheets(y).Range("a11")) will also be a > challenge to store in a table > (it picks up the parameter value from an Excel > worksheet) but I may be able > use eval() to create the correct value. If I can > solve these problems I will > be able to populate Excel workbooks with one method > call since all the info > needed to create recordsets with data to paste into > worksheets will reside > in a table. If I can't store the variable names in a > table I quess I could > expand the QryParmValues method to handle a multi > dimensional array but I > am not at all sure how to do this either. Any help > will be appreciated. > > Jim Hale > > > > *********************************************************************** > The information transmitted is intended solely for > the individual or > entity to which it is addressed and may contain > confidential and/or > privileged material. Any review, retransmission, > dissemination or > other use of or taking action in reliance upon this > information by > persons or entities other than the intended > recipient is prohibited. > If you have received this email in error please > contact the sender and > delete the material from any computer. As a > recipient of this email, > you are responsible for screening its contents and > the contents of any > attachments for the presence of viruses. No > liability is accepted for > any damages caused by any virus transmitted by this email.> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From carbonnb at sympatico.ca Fri Jul 1 11:56:47 2005 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 01 Jul 2005 12:56:47 -0400 Subject: [AccessD] OT: Friday inspiration In-Reply-To: Message-ID: On 1 Jul 2005 at 17:01, Gustav Brock wrote: > What a boring Friday afternoon. Much more fun to study the flash site > on the Turning Torso, a masterpiece in sculptural architecture under > construction at Malm?, the Swedish town 25 km east of Copenhagen, with > a height of 190 m: > > http://www.turningtorso.com/ It is a cool building. I was actually watching a program on Discovery Channel Canada last night about this. 7 days to build 1 floor. For those that get Discovery Canada and want to see it, it's on again today (July 1) at 4pm ET and again on July 3rd at 8am ET. It was one of the Extreme Engeneering episodes if you want to try and find it on a local channel. -- Bryan Carbonnell - carbonnb at sympatico.ca Blessed are they who can laugh at themselves, for they shall never cease to be amused. From martyconnelly at shaw.ca Fri Jul 1 15:59:56 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 01 Jul 2005 13:59:56 -0700 Subject: [AccessD] OT: Hockey Stick programs and global warming on Canada Day References: Message-ID: <42C5AECC.7040803@shaw.ca> Does your code measure up to this standard. This is just a quick peek at the code and the stats used. Not a argument for or against each position. This is part of the analysis, that forms the basis for billions of dollars being spent on Global Warming. Golub's CSVD routine is kind of old and if I remember right machine dependant. SVD routines (Singular Value Decomposition) are a method of solving linear least squares problems. The argument http://en.wikipedia.org/wiki/Temperature_record_of_the_past_1000_years Ok, now here is some of the original code from Mann's site, about 400 lines of text. Note the use of goto's and other achronisms. This isn't a plug for use of IDL language. ftp://holocene.evsc.virginia.edu/pub/MBH98/TREE/ITRDB/NOAMER/pca-noamer.f what routine does remove the 1902-1980 mean calc the SD over this period divide the whole series by this SD, point by point remove the linear trend from the new 1902-1980 series compute the SD again for 1902-1980 of the detrended data divide the whole series by this SD. Be aware that not all the software code and data has been fully released so their is much bickering involved. More info: William Connolley's view Anatartic Climate Modeler http://groups-beta.google.com/group/sci.environment/msg/9a3673c6a0d64c1f?hl=en&lr=&c2coff=1&rnum=5 Answer to natures rejection of McKitrick and McIntyre rejection of Mann's data and Analysis http://www.uoguelph.ca/~rmckitri/research/fallupdate04/update.fall04.html Another blog http://www.j-bradford-delong.net/movable_type/2004-2_archives/000406.html C SVD routines from "Numerical Recipes in C" book online can be had here http://www.library.cornell.edu/nr/cbookcpdf.html C SVD routines from "Numerical Recipes in C" book online can be had here http://www.library.cornell.edu/nr/cbookcpdf.html -- Marty Connelly Victoria, B.C. Canada From fhtapia at gmail.com Fri Jul 1 16:14:39 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 1 Jul 2005 14:14:39 -0700 Subject: [AccessD] I have a webservice... now what? Message-ID: Ok, so I have a webservices that returns an XML reocordset. I'd like to save that recordset w/ ado to an XML file... anybody have any samples? -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From martyconnelly at shaw.ca Fri Jul 1 18:35:06 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 01 Jul 2005 16:35:06 -0700 Subject: [AccessD] I have a webservice... now what? References: Message-ID: <42C5D32A.7060106@shaw.ca> Ok, here is some code to get you started it reads a northwind table and outputs three types of files XML Flat file format just elements plus initial XML PI XML ADTG format ( the type with zRows schema) suitable to be read directly back into an mdb CSV file Where you want to change this code is where I load the northwind SQL recordset. Replace it by what you have returned from XMLHTTP by oDOM.loadXML (objXMLHTTP.responseXML.xml) What you are getting returned in response object is just one long xml string. Application.ExportXML won't work here as it has to be an Access Object to be output. You might also want to use .validateonparse method to error check the xml you are getting initally. If you wanted to once you have your returned xml in the dom you could use Xpath to grab specific fields. Sub readmdb() Dim sSQL As String Dim iNumRecords As Integer Dim oConnection As ADODB.Connection Dim oRecordset As ADODB.Recordset Dim rstSchema As ADODB.Recordset Dim sConnStr As String 'sConnStr = "Provider=SQLOLEDB;Data Source=MySrvr;" & _ "Initial Catalog=Northwind;User Id=MyId;Password=123aBc;" ' Connection "Provider=Microsoft.Jet.OLEDB.3.51;Data Source=D:\DataBases\Northwind.mdb" 'Access 97 version Jet 3.51 ' sConnStr = "Provider=Microsoft.Jet.OLEDB.3.51;" & _ "Data Source=C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb;" & _ "User Id=admin;" & "Password=" 'Access XP Jet 4 sConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb;" & _ "User Id=admin;" & "Password=" 'On Error GoTo GetDataError ' Create and Open the Connection object. Set oConnection = New ADODB.Connection oConnection.CursorLocation = adUseClient oConnection.Open sConnStr sSQL = "SELECT ProductID, ProductName, CategoryID, UnitPrice " & _ "FROM Products" ' Create and Open the Recordset object. Set oRecordset = New ADODB.Recordset oRecordset.Open sSQL, oConnection, adOpenStatic, _ adLockBatchOptimistic, adCmdText With oRecordset Debug.Print .RecordCount Dim i As Long Dim strOut As String strOut = "" .MoveFirst For i = 0 To .RecordCount - 1 strOut = strOut & !ProductName strOut = strOut & "," & !CategoryID strOut = strOut & "," & !UnitPrice strOut = strOut & vbCrLf .MoveNext Next i End With 'Save as Access csv file WriteFile "C:\Access files\xmlfiles\strout" & Format(Now, "yyyymmddhhmmss") & ".xml", strOut Dim oDOM As MSXML2.DOMDocument Dim oXML As MSXML2.DOMDocument Dim oXSL As MSXML2.DOMDocument Dim strHTML As String Dim strTransform As String Set oDOM = CreateObject("MSXML2.DOMDocument") oDOM.async = False 'Load the XML DOM 'Put recordset into XML Dom ' Here you would load your xml string ' read from whatever is returned by xmlhttp or xnlhttpserver into the XML DOM ' I forget if it is objXMLHTTP.responseXML.xml or objXMLHTTP.responseXML ' Set objXMLHTTP = New MSXML2.XMLHTTP ' Debug.Print "returned=" & objXMLHTTP.responseXML.xml ' oDOM.loadXML (objXMLHTTP.responseXML.xml) ' in place of line below oRecordset.Save oDOM, adPersistXML '1 magic number Set oXSL = CreateObject("MSXML2.DOMDocument") oXSL.async = False oXSL.Load "C:\Access files\xmlfiles\ADOGeneric.xsl" 'your XSLT stylesheet save as unicode not ansii 'note encoding as european language encoding need for swedish characters 'you could scan the the string and convert to unicode escape characters like ' strTransform = oDOM.transformNode(oXSL) strHTML = "" & vbCrLf & _ "" & strTransform & "" 'Save as flat xml file WriteFile "C:\Access files\xmlfiles\ADOGenericProduct" & Format(Now, "yyyymmddhhmmss") & ".xml", strHTML ' 'the above XSLT transform with xsl file converts this to a flat XML format without rowset schema 'this will save to an XML file with ADTG MS Format suitable to dump back into table or recordset oRecordset.Save "C:\Access files\xmlfiles\ADOGenericProductADG.xml", adPersistXML Set oDOM = Nothing Set oXML = Nothing Set oXSL = Nothing Set oConnection = Nothing Set oRecordset = Nothing End Sub Public Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) ' Dump XML String to File for debugging Dim fhFile As Integer fhFile = FreeFile ' Debug.Print "Length of string=" & Len(sContents) Open sFileName For Output As #fhFile Print #fhFile, sContents; Close #fhFile Debug.Print "Out File" & sFileName End Sub ADOgeneric.xsl file cut and paste and save in notepad as Unicode not Ansi This is XSLT file that strips all the extraneous rowset schema from ADTG formated xml file to create flat xml <row> < > </ > </row> Francisco Tapia wrote: >Ok, so I have a webservices that returns an XML reocordset. I'd like >to save that recordset w/ ado to an XML file... anybody have any >samples? > > > > > -- Marty Connelly Victoria, B.C. Canada From fhtapia at gmail.com Fri Jul 1 18:58:15 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 1 Jul 2005 16:58:15 -0700 Subject: [AccessD] I have a webservice... now what? In-Reply-To: <42C5D32A.7060106@shaw.ca> References: <42C5D32A.7060106@shaw.ca> Message-ID: Very COOL, Thanks for the FAST response! :) On 7/1/05, MartyConnelly wrote: > Ok, here is some code to get you started it reads a northwind table > and outputs three types of files > XML Flat file format just elements plus initial XML PI > XML ADTG format ( the type with zRows schema) suitable to be read > directly back into an mdb > CSV file > > Where you want to change this code is where I load the northwind SQL > recordset. > Replace it by what you have returned from XMLHTTP by oDOM.loadXML > (objXMLHTTP.responseXML.xml) > What you are getting returned in response object is just one long xml > string. > > Application.ExportXML won't work here as it has to be an Access Object > to be output. > You might also want to use .validateonparse method to error check the > xml you are getting initally. > > If you wanted to once you have your returned xml in the dom you could > use Xpath > to grab specific fields. > > Sub readmdb() > > Dim sSQL As String > Dim iNumRecords As Integer > > Dim oConnection As ADODB.Connection > Dim oRecordset As ADODB.Recordset > Dim rstSchema As ADODB.Recordset > Dim sConnStr As String > > 'sConnStr = "Provider=SQLOLEDB;Data Source=MySrvr;" & _ > "Initial Catalog=Northwind;User Id=MyId;Password=123aBc;" > ' Connection "Provider=Microsoft.Jet.OLEDB.3.51;Data > Source=D:\DataBases\Northwind.mdb" > > 'Access 97 version Jet 3.51 > ' sConnStr = "Provider=Microsoft.Jet.OLEDB.3.51;" & _ > "Data Source=C:\Program Files\Microsoft > Office\Office\Samples\Northwind.mdb;" & _ > "User Id=admin;" & "Password=" > 'Access XP Jet 4 > sConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ > "Data Source=C:\Program Files\Microsoft > Office\Office\Samples\Northwind.mdb;" & _ > "User Id=admin;" & "Password=" > > 'On Error GoTo GetDataError > > ' Create and Open the Connection object. > Set oConnection = New ADODB.Connection > oConnection.CursorLocation = adUseClient > oConnection.Open sConnStr > > sSQL = "SELECT ProductID, ProductName, CategoryID, UnitPrice " & _ > "FROM Products" > > ' Create and Open the Recordset object. > Set oRecordset = New ADODB.Recordset > oRecordset.Open sSQL, oConnection, adOpenStatic, _ > adLockBatchOptimistic, adCmdText > With oRecordset > Debug.Print .RecordCount > Dim i As Long > Dim strOut As String > strOut = "" > .MoveFirst > For i = 0 To .RecordCount - 1 > strOut = strOut & !ProductName > strOut = strOut & "," & !CategoryID > strOut = strOut & "," & !UnitPrice > strOut = strOut & vbCrLf > .MoveNext > Next i > End With > 'Save as Access csv file > WriteFile "C:\Access files\xmlfiles\strout" & Format(Now, > "yyyymmddhhmmss") & ".xml", strOut > > Dim oDOM As MSXML2.DOMDocument > Dim oXML As MSXML2.DOMDocument > Dim oXSL As MSXML2.DOMDocument > Dim strHTML As String > Dim strTransform As String > > Set oDOM = CreateObject("MSXML2.DOMDocument") > oDOM.async = False > 'Load the XML DOM > 'Put recordset into XML Dom > ' Here you would load your xml string > ' read from whatever is returned by xmlhttp or xnlhttpserver into the > XML DOM > ' I forget if it is objXMLHTTP.responseXML.xml or objXMLHTTP.responseXML > ' Set objXMLHTTP = New MSXML2.XMLHTTP > ' Debug.Print "returned=" & objXMLHTTP.responseXML.xml > ' oDOM.loadXML (objXMLHTTP.responseXML.xml) > ' in place of line below > oRecordset.Save oDOM, adPersistXML '1 magic number > > Set oXSL = CreateObject("MSXML2.DOMDocument") > oXSL.async = False > oXSL.Load "C:\Access files\xmlfiles\ADOGeneric.xsl" 'your XSLT > stylesheet save as unicode not ansii > 'note encoding as european language encoding need for swedish characters > 'you could scan the the string and convert to unicode escape characters > like ' > strTransform = oDOM.transformNode(oXSL) > strHTML = "" & vbCrLf & _ > "" & strTransform & "" > 'Save as flat xml file > WriteFile "C:\Access files\xmlfiles\ADOGenericProduct" & Format(Now, > "yyyymmddhhmmss") & ".xml", strHTML > ' > 'the above XSLT transform with xsl file converts this to a flat XML > format without rowset schema > > 'this will save to an XML file with ADTG MS Format suitable to dump > back into table or recordset > oRecordset.Save "C:\Access files\xmlfiles\ADOGenericProductADG.xml", > adPersistXML > > Set oDOM = Nothing > Set oXML = Nothing > Set oXSL = Nothing > Set oConnection = Nothing > Set oRecordset = Nothing > End Sub > Public Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) > ' Dump XML String to File for debugging > Dim fhFile As Integer > fhFile = FreeFile > ' Debug.Print "Length of string=" & Len(sContents) > Open sFileName For Output As #fhFile > Print #fhFile, sContents; > Close #fhFile > Debug.Print "Out File" & sFileName > End Sub > > ADOgeneric.xsl file cut and paste and save in notepad as Unicode not Ansi > This is XSLT file that strips all the extraneous rowset schema from ADTG > formated xml file to create flat xml > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:z="#RowsetSchema"> > > > > > > > > <row> > > < > > > > > </ > > > > > </row> > > > > > Francisco Tapia wrote: > > >Ok, so I have a webservices that returns an XML reocordset. I'd like > >to save that recordset w/ ado to an XML file... anybody have any > >samples? > > > > > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From artful at rogers.com Sat Jul 2 12:18:45 2005 From: artful at rogers.com (Arthur Fuller) Date: Sat, 2 Jul 2005 13:18:45 -0400 Subject: [AccessD] Puzzling Form hebaviour Access 2003 In-Reply-To: Message-ID: <200507021718.j62HImR18194@databaseadvisors.com> I'm working on an inherited app which contains one huge table with numerous fields, distributed in groups across about 6 tabs. There are no subforms -- the whole form displays just one row -- 20 controls on the first tab page, 20 on the second, etc. Whenever I move the mouse over the form, most or all of the controls on the displayed tab page sort of jiggle or shimmer. They don't change values, and it happens too quickly to think they are re-querying, but nevertheless it is annoying. I've checked such event controls as keydown, onCurrent etc. and nothing looks as if it's causing this annoying behaviour. Is it possibly just because there are so many controls? Incidentally, I plan to normalise this table and that may make this problem of multiple nested tables inside one go away, but in the interim I'm wondering about this. Any clues where to look? TIA, Arthur From Gustav at cactus.dk Sat Jul 2 12:57:55 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 02 Jul 2005 19:57:55 +0200 Subject: [AccessD] Puzzling Form hebaviour Access 2003 Message-ID: Hi Arthur Could it be the same issue that Erwin and Marty dealt with 2004-11-30: Form flickers like hell in A2K3 /gustav >>> artful at rogers.com 07/02 7:18 pm >>> I'm working on an inherited app which contains one huge table with numerous fields, distributed in groups across about 6 tabs. There are no subforms -- the whole form displays just one row -- 20 controls on the first tab page, 20 on the second, etc. Whenever I move the mouse over the form, most or all of the controls on the displayed tab page sort of jiggle or shimmer. They don't change values, and it happens too quickly to think they are re-querying, but nevertheless it is annoying. I've checked such event controls as keydown, onCurrent etc. and nothing looks as if it's causing this annoying behaviour. Is it possibly just because there are so many controls? Incidentally, I plan to normalise this table and that may make this problem of multiple nested tables inside one go away, but in the interim I'm wondering about this. Any clues where to look? TIA, Arthur From artful at rogers.com Sat Jul 2 23:53:50 2005 From: artful at rogers.com (Arthur Fuller) Date: Sun, 3 Jul 2005 00:53:50 -0400 Subject: [AccessD] Puzzling Form hebaviour Access 2003 In-Reply-To: Message-ID: <200507030453.j634rkR21571@databaseadvisors.com> I don't know about that, but will try to follow up that lead. What I do know is that there are LOTS of controls on this form, all stemming from a single table (it's more than 100, but I'm not sure of the exact count). Nuts table structure, I readily admit, but that's not the point. I think I'm going to try making the tabs invisible one by one and see at what point the problem goes away. Also, I have added a bunch of other forms to this app, some relatively complex (i.e. a listbox that serves as a finder, to the left of a bunch of columns copied from an autoform, and after that an embedded form/subform) and these forms do not suffer from this flicker issue. I'm guessing at this point that hiding one or more tabs on the form is going to make the flicker go away. If correct, I will then reveal one more form and start hiding individual controls to see at which number the flicker appears. I will report results as soon as I have some. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: July 2, 2005 1:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Puzzling Form hebaviour Access 2003 Hi Arthur Could it be the same issue that Erwin and Marty dealt with 2004-11-30: Form flickers like hell in A2K3 /gustav From artful at rogers.com Sat Jul 2 23:59:26 2005 From: artful at rogers.com (Arthur Fuller) Date: Sun, 3 Jul 2005 00:59:26 -0400 Subject: [AccessD] Puzzling Form hebaviour Access 2003 In-Reply-To: <200507030453.j634rkR21571@databaseadvisors.com> Message-ID: <200507030459.j634xLR25256@databaseadvisors.com> More on this... I have just hidden all but two of the heavily populated tab pages, and I still have the flicker. This is so strange it is beginning to interest me, rather than being just an annoying problem. I'm going to rebuild this form from scratch, page by page, and see where the flicker begins to happen. Many unbillable hours, but at least I will know! A. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: July 3, 2005 12:54 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 I don't know about that, but will try to follow up that lead. What I do know is that there are LOTS of controls on this form, all stemming from a single table (it's more than 100, but I'm not sure of the exact count). Nuts table structure, I readily admit, but that's not the point. I think I'm going to try making the tabs invisible one by one and see at what point the problem goes away. Also, I have added a bunch of other forms to this app, some relatively complex (i.e. a listbox that serves as a finder, to the left of a bunch of columns copied from an autoform, and after that an embedded form/subform) and these forms do not suffer from this flicker issue. I'm guessing at this point that hiding one or more tabs on the form is going to make the flicker go away. If correct, I will then reveal one more form and start hiding individual controls to see at which number the flicker appears. I will report results as soon as I have some. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: July 2, 2005 1:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Puzzling Form hebaviour Access 2003 Hi Arthur Could it be the same issue that Erwin and Marty dealt with 2004-11-30: Form flickers like hell in A2K3 /gustav From bchacc at san.rr.com Sun Jul 3 08:48:34 2005 From: bchacc at san.rr.com (bchacc at san.rr.com) Date: Sun, 3 Jul 2005 09:48:34 -0400 Subject: [AccessD] Puzzling Form hebaviour Access 2003 Message-ID: <97460-22005703134834456@M2W103.mail2web.com> Arthur: Check the archives. I had this problem in an app and fixed it but can't remember how at the moment. I'm on vacation this week and I'm not supposed to work but if I get a chance later I'll look at that app and see if I can remember what the tweak was. IIRC it was somerthing pretty simple. Rocky Original Message: ----------------- From: Arthur Fuller artful at rogers.com Date: Sun, 03 Jul 2005 00:59:26 -0400 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 More on this... I have just hidden all but two of the heavily populated tab pages, and I still have the flicker. This is so strange it is beginning to interest me, rather than being just an annoying problem. I'm going to rebuild this form from scratch, page by page, and see where the flicker begins to happen. Many unbillable hours, but at least I will know! A. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: July 3, 2005 12:54 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 I don't know about that, but will try to follow up that lead. What I do know is that there are LOTS of controls on this form, all stemming from a single table (it's more than 100, but I'm not sure of the exact count). Nuts table structure, I readily admit, but that's not the point. I think I'm going to try making the tabs invisible one by one and see at what point the problem goes away. Also, I have added a bunch of other forms to this app, some relatively complex (i.e. a listbox that serves as a finder, to the left of a bunch of columns copied from an autoform, and after that an embedded form/subform) and these forms do not suffer from this flicker issue. I'm guessing at this point that hiding one or more tabs on the form is going to make the flicker go away. If correct, I will then reveal one more form and start hiding individual controls to see at which number the flicker appears. I will report results as soon as I have some. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: July 2, 2005 1:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Puzzling Form hebaviour Access 2003 Hi Arthur Could it be the same issue that Erwin and Marty dealt with 2004-11-30: Form flickers like hell in A2K3 /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From martyconnelly at shaw.ca Sun Jul 3 11:05:29 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 03 Jul 2005 09:05:29 -0700 Subject: [AccessD] Puzzling Form hebaviour Access 2003 References: <97460-22005703134834456@M2W103.mail2web.com> Message-ID: <42C80CC9.2060204@shaw.ca> I'll repost since I just got asked this on another list last week, A more common problem than I thought on subforms with tab and label flicker. You ain't gonna believe this but if running WinXP change your theme by right-clicking your Windows XP desktop, choosing Properties, and setting the Theme to "Windows Classic". If you cannot solve it by deselecting Use Windows Themed Controls on Forms under Tools | Options | Forms/Reports in Access 2003 The flickering or flutter goes away on my machine using Win XP Theme Classic and Access 2003 and by deselecting above option The flickering is triggered by unattached labels on the page of a tab control. The workaround is to convert these labels to text boxes. For non english speakers I found this by google searching on Screen Flutter rather than Flicker. For full explanation. and code to correct all forms if above tools option method doesn't work http://members.iinet.net.au/~allenbrowne/ser-46.html bchacc at san.rr.com wrote: >Arthur: > >Check the archives. I had this problem in an app and fixed it but can't >remember how at the moment. I'm on vacation this week and I'm not supposed >to work but if I get a chance later I'll look at that app and see if I can >remember what the tweak was. IIRC it was somerthing pretty simple. > >Rocky > >Original Message: >----------------- >From: Arthur Fuller artful at rogers.com >Date: Sun, 03 Jul 2005 00:59:26 -0400 >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 > > >More on this... > >I have just hidden all but two of the heavily populated tab pages, and I >still have the flicker. This is so strange it is beginning to interest me, >rather than being just an annoying problem. I'm going to rebuild this form >from scratch, page by page, and see where the flicker begins to happen. Many >unbillable hours, but at least I will know! > >A. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller >Sent: July 3, 2005 12:54 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 > >I don't know about that, but will try to follow up that lead. What I do know >is that there are LOTS of controls on this form, all stemming from a single >table (it's more than 100, but I'm not sure of the exact count). Nuts table >structure, I readily admit, but that's not the point. > >I think I'm going to try making the tabs invisible one by one and see at >what point the problem goes away. > >Also, I have added a bunch of other forms to this app, some relatively >complex (i.e. a listbox that serves as a finder, to the left of a bunch of >columns copied from an autoform, and after that an embedded form/subform) >and these forms do not suffer from this flicker issue. > >I'm guessing at this point that hiding one or more tabs on the form is going >to make the flicker go away. If correct, I will then reveal one more form >and start hiding individual controls to see at which number the flicker >appears. > >I will report results as soon as I have some. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: July 2, 2005 1:58 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Puzzling Form hebaviour Access 2003 > >Hi Arthur > >Could it be the same issue that Erwin and Marty dealt with 2004-11-30: > > Form flickers like hell in A2K3 > >/gustav > > > > -- Marty Connelly Victoria, B.C. Canada From R.Griffiths at bury.gov.uk Tue Jul 5 02:58:58 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 5 Jul 2005 08:58:58 +0100 Subject: [AccessD] A2K and .Net Message-ID: <200507050750.j657nwr23701@smarthost.yourcomms.net> Hi I am developing a VB.net app with A2K BE. I will deploy .net framework which provides all the data access to the mdb file. My question is this....Can I use in my Access queries code such as left, mid or specifically dateadd. Am I right in thinking these functions are part of VBA (which I do not intend to deploy) and so on a clean machine ie. without any MS Access that queries using these functions will bomb out - or will ADO.net/.net handle accordingly? TIA Richard From dejpolsys at hotmail.com Tue Jul 5 07:44:53 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 5 Jul 2005 08:44:53 -0400 Subject: [AccessD] A2K and .Net References: <200507050750.j657nwr23701@smarthost.yourcomms.net> Message-ID: VB.net and the Net framework include their own functionality, albeit at some speed penalty in the case of the framework ...rather than dateadd, you could use the TimeSpan parameter in VB.net's .Add() method. William ----- Original Message ----- From: "Griffiths, Richard" To: "AccessD" Sent: Tuesday, July 05, 2005 3:58 AM Subject: [AccessD] A2K and .Net Hi I am developing a VB.net app with A2K BE. I will deploy .net framework which provides all the data access to the mdb file. My question is this....Can I use in my Access queries code such as left, mid or specifically dateadd. Am I right in thinking these functions are part of VBA (which I do not intend to deploy) and so on a clean machine ie. without any MS Access that queries using these functions will bomb out - or will ADO.net/.net handle accordingly? TIA Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Jul 5 08:21:20 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 5 Jul 2005 14:21:20 +0100 Subject: [AccessD] A2K and .Net Message-ID: <200507051312.j65DCLr17648@smarthost.yourcomms.net> Do you know if my queries (stored procedures) that use say dateadd (ie hard coded into the query) will fail? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: 05 July 2005 13:45 To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K and .Net VB.net and the Net framework include their own functionality, albeit at some speed penalty in the case of the framework ...rather than dateadd, you could use the TimeSpan parameter in VB.net's .Add() method. William ----- Original Message ----- From: "Griffiths, Richard" To: "AccessD" Sent: Tuesday, July 05, 2005 3:58 AM Subject: [AccessD] A2K and .Net Hi I am developing a VB.net app with A2K BE. I will deploy .net framework which provides all the data access to the mdb file. My question is this....Can I use in my Access queries code such as left, mid or specifically dateadd. Am I right in thinking these functions are part of VBA (which I do not intend to deploy) and so on a clean machine ie. without any MS Access that queries using these functions will bomb out - or will ADO.net/.net handle accordingly? TIA Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Jul 5 10:59:54 2005 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 5 Jul 2005 10:59:54 -0500 Subject: [AccessD] Puzzling Form hebaviour Access 2003 Message-ID: <123701F54509D9119A4F00D0B747349016D871@main2.marlow.com> Does the form have a MouseMove event? I know in Access 97, a mouse move event will cause that sort of 'effect'. Drew -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Saturday, July 02, 2005 12:19 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Puzzling Form hebaviour Access 2003 I'm working on an inherited app which contains one huge table with numerous fields, distributed in groups across about 6 tabs. There are no subforms -- the whole form displays just one row -- 20 controls on the first tab page, 20 on the second, etc. Whenever I move the mouse over the form, most or all of the controls on the displayed tab page sort of jiggle or shimmer. They don't change values, and it happens too quickly to think they are re-querying, but nevertheless it is annoying. I've checked such event controls as keydown, onCurrent etc. and nothing looks as if it's causing this annoying behaviour. Is it possibly just because there are so many controls? Incidentally, I plan to normalise this table and that may make this problem of multiple nested tables inside one go away, but in the interim I'm wondering about this. Any clues where to look? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Jul 5 11:37:43 2005 From: artful at rogers.com (Arthur Fuller) Date: Tue, 5 Jul 2005 12:37:43 -0400 Subject: [AccessD] Puzzling Form hebaviour Access 2003 In-Reply-To: <123701F54509D9119A4F00D0B747349016D871@main2.marlow.com> Message-ID: <200507051637.j65GblR30070@databaseadvisors.com> No mousemove event either. Sorry. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: July 5, 2005 12:00 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 Does the form have a MouseMove event? I know in Access 97, a mouse move event will cause that sort of 'effect'. Drew -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Saturday, July 02, 2005 12:19 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Puzzling Form hebaviour Access 2003 I'm working on an inherited app which contains one huge table with numerous fields, distributed in groups across about 6 tabs. There are no subforms -- the whole form displays just one row -- 20 controls on the first tab page, 20 on the second, etc. Whenever I move the mouse over the form, most or all of the controls on the displayed tab page sort of jiggle or shimmer. They don't change values, and it happens too quickly to think they are re-querying, but nevertheless it is annoying. I've checked such event controls as keydown, onCurrent etc. and nothing looks as if it's causing this annoying behaviour. Is it possibly just because there are so many controls? Incidentally, I plan to normalise this table and that may make this problem of multiple nested tables inside one go away, but in the interim I'm wondering about this. Any clues where to look? TIA, Arthur From papparuff at comcast.net Tue Jul 5 11:44:20 2005 From: papparuff at comcast.net (papparuff at comcast.net) Date: Tue, 05 Jul 2005 16:44:20 +0000 Subject: [AccessD] Puzzling Form hebaviour Access 2003 Message-ID: <070520051644.5299.42CAB8E40007B608000014B3220074567200009A9D0E9F9F0E9F@comcast.net> Do you have a form header and/or form footer. If so, also check their mousemove events. -- John V. Ruff ? The Eternal Optimist :-) -------------- Original message -------------- > No mousemove event either. Sorry. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com > Sent: July 5, 2005 12:00 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 > > Does the form have a MouseMove event? I know in Access 97, a mouse move > event will cause that sort of 'effect'. > > Drew > > > -----Original Message----- > From: Arthur Fuller [mailto:artful at rogers.com] > Sent: Saturday, July 02, 2005 12:19 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Puzzling Form hebaviour Access 2003 > > > I'm working on an inherited app which contains one huge table with numerous > fields, distributed in groups across about 6 tabs. There are no subforms -- > the whole form displays just one row -- 20 controls on the first tab page, > 20 on the second, etc. > > Whenever I move the mouse over the form, most or all of the controls on the > displayed tab page sort of jiggle or shimmer. They don't change values, and > it happens too quickly to think they are re-querying, but nevertheless it is > annoying. I've checked such event controls as keydown, onCurrent etc. and > nothing looks as if it's causing this annoying behaviour. Is it possibly > just because there are so many controls? > > Incidentally, I plan to normalise this table and that may make this problem > of multiple nested tables inside one go away, but in the interim I'm > wondering about this. > > Any clues where to look? > > TIA, > Arthur > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From KIsmert at texassystems.com Tue Jul 5 12:38:16 2005 From: KIsmert at texassystems.com (Ken Ismert) Date: Tue, 5 Jul 2005 12:38:16 -0500 Subject: [AccessD] A2K and .Net Message-ID: Yes, they will fail. This is not unique to .NET. Simply put, if you open a Jet database using DAO, ADO, or ADO.NET, any queries that reference VBA functions like DateAdd will fail. Your earlier thinking was correct: to get DateAdd to work in a query, you would need Access installed on the machine, and would have to open it via automation. The Access application instance would then provide the VBA environment required to make sense of VBA function calls. .NET won't interpret the function calls, nor can you substitute .NET functions. This is because your ADO calls are going to a separate Jet server instance, which has no knowledge of the context in which it is called. In short, you are limited to native Jet SQL for your queries. This includes the aggregate functions like Sum and Avg, mathematical operators and string concatenation, and the expressions Between, In and Like. You may also be able to extend your reach by using the ODBC Scalar functions, although I haven't tried this. -Ken -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, July 05, 2005 8:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Do you know if my queries (stored procedures) that use say dateadd (ie hard coded into the query) will fail? From Jim.Hale at FleetPride.com Tue Jul 5 13:08:22 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 5 Jul 2005 13:08:22 -0500 Subject: [AccessD] A2K and .Net Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723376C0@corp-es01.fleetpride.com> Sub queries are another solution that can provide criteria for queries in cases where functions won't work. For example, I use a sub query to fetch current month and year from a period table. Jim Hale -----Original Message----- From: Ken Ismert [mailto:KIsmert at texassystems.com] Sent: Tuesday, July 05, 2005 12:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Yes, they will fail. This is not unique to .NET. Simply put, if you open a Jet database using DAO, ADO, or ADO.NET, any queries that reference VBA functions like DateAdd will fail. Your earlier thinking was correct: to get DateAdd to work in a query, you would need Access installed on the machine, and would have to open it via automation. The Access application instance would then provide the VBA environment required to make sense of VBA function calls. .NET won't interpret the function calls, nor can you substitute .NET functions. This is because your ADO calls are going to a separate Jet server instance, which has no knowledge of the context in which it is called. In short, you are limited to native Jet SQL for your queries. This includes the aggregate functions like Sum and Avg, mathematical operators and string concatenation, and the expressions Between, In and Like. You may also be able to extend your reach by using the ODBC Scalar functions, although I haven't tried this. -Ken -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, July 05, 2005 8:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Do you know if my queries (stored procedures) that use say dateadd (ie hard coded into the query) will fail? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From fhtapia at gmail.com Tue Jul 5 15:48:16 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 5 Jul 2005 13:48:16 -0700 Subject: [AccessD] Fwd: Saving string > 256 chars in field In-Reply-To: References: <6.2.1.2.0.20050706065840.02ad84e0@mail.dalyn.co.nz> Message-ID: Access 2000? I seem to remember you need to have SR1a installed... Additionally because you're trying to make it a bound form, I think I converted the field from nvarchar to ntext. The Front End will then handle it correctly for what it's worth moving up to A2003 makes this whole point moot. On 7/5/05, David Emerson wrote: > I have tried the archives but cant find anything. Francisco - can you > remember what the subject was? > > David > > At 28/06/2005, you wrote: > >This is a known issue. If you search the archives for Francisco Tapia name > >you might find the right answer. > > > >But if I remember correctly, you have to do your final select with that > >field cast as a Text, so Access (trying to be too smart) will not truncate > >what it considers a text field and then assumes it is a memo field. > > > >David > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David Emerson > >Sent: Monday, June 27, 2005 7:08 PM > >To: Access Developers discussion and problem solving > >Subject: RE: [AccessD] Saving string > 256 chars in field > > > > > >Yes - Access XP adp, SQL2000. > > > >David > > > >At 28/06/2005, you wrote: > > >Are you working in an .adp? > > > > > >Susan H. > > > > > >Yes it is bound, however the field is a nvarchar(1000). I can manually > >type > > >in more than 256 characters and they save ok. It is just when I use VB. > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From newsgrps at dalyn.co.nz Tue Jul 5 15:58:54 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 06 Jul 2005 08:58:54 +1200 Subject: [AccessD] Saving string > 256 chars in field In-Reply-To: References: <6.2.1.2.0.20050706065840.02ad84e0@mail.dalyn.co.nz> Message-ID: <6.2.1.2.0.20050706085357.02affac0@mail.dalyn.co.nz> Thanks Francisco. It is actually Access XP and it is an ADP. I do have the service packs installed. I changed the field to ntext and it works! Thanks. At 6/07/2005, you wrote: >Access 2000? I seem to remember you need to have SR1a installed... >Additionally because you're trying to make it a bound form, I think I >converted the field from nvarchar to ntext. The Front End will then >handle it correctly for what it's worth moving up to A2003 makes this >whole point moot. > > > >On 7/5/05, David Emerson wrote: > > I have tried the archives but cant find anything. Francisco - can you > > remember what the subject was? > > > > David > > > > At 28/06/2005, you wrote: > > >This is a known issue. If you search the archives for Francisco Tapia name > > >you might find the right answer. > > > > > >But if I remember correctly, you have to do your final select with that > > >field cast as a Text, so Access (trying to be too smart) will not truncate > > >what it considers a text field and then assumes it is a memo field. > > > > > >David > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David Emerson > > >Sent: Monday, June 27, 2005 7:08 PM > > >To: Access Developers discussion and problem solving > > >Subject: RE: [AccessD] Saving string > 256 chars in field > > > > > > > > >Yes - Access XP adp, SQL2000. > > > > > >David > > > > > >At 28/06/2005, you wrote: > > > >Are you working in an .adp? > > > > > > > >Susan H. > > > > > > > >Yes it is bound, however the field is a nvarchar(1000). I can manually > > >type > > > >in more than 256 characters and they save ok. It is just when I use VB. > > > >-- >-Francisco >http://pcthis.blogspot.com |PC news with out the jargon! >http://sqlthis.blogspot.com | Tsql and More... From D.Dick at uws.edu.au Tue Jul 5 19:03:29 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Wed, 6 Jul 2005 10:03:29 +1000 Subject: [AccessD] Puzzling Form hebaviour Access 2003 Message-ID: <2FDE83AF1A69C84796CBD13788DDA883534D08@BONHAM.AD.UWS.EDU.AU> This is caused by the new "feature" of non associated controls When controls such as labels are 'orphaned' i.e. have no parent control like a TextBox etc You get this shimmer/flicker effect when your mouse moves over them It's a real PITA Anyway... In design view select one of them (An unassociated controls like a label) A small yellow warning icon will appear to the left or right of the 'orphaned' control alerting you to the fact it is an orphaned control. :-)) Click on that icon and a menu list will appear. Choose associate (if you want) or ignore error. That should get rid of the flicker in run time. If you don't see these little yellow warning icons when you click on a control in design view Go to TOOLS|OPTIONS|ERROR CHECKING And put a check in each of the boxes. Close and start the app again. Then go back into design view. You should see the Yellow warning icon I speak of. Hope this is the solution See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, July 06, 2005 2:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 No mousemove event either. Sorry. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: July 5, 2005 12:00 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Puzzling Form hebaviour Access 2003 Does the form have a MouseMove event? I know in Access 97, a mouse move event will cause that sort of 'effect'. Drew -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Saturday, July 02, 2005 12:19 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Puzzling Form hebaviour Access 2003 I'm working on an inherited app which contains one huge table with numerous fields, distributed in groups across about 6 tabs. There are no subforms -- the whole form displays just one row -- 20 controls on the first tab page, 20 on the second, etc. Whenever I move the mouse over the form, most or all of the controls on the displayed tab page sort of jiggle or shimmer. They don't change values, and it happens too quickly to think they are re-querying, but nevertheless it is annoying. I've checked such event controls as keydown, onCurrent etc. and nothing looks as if it's causing this annoying behaviour. Is it possibly just because there are so many controls? Incidentally, I plan to normalise this table and that may make this problem of multiple nested tables inside one go away, but in the interim I'm wondering about this. Any clues where to look? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From D.Dick at uws.edu.au Tue Jul 5 21:00:03 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Wed, 6 Jul 2005 12:00:03 +1000 Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address Message-ID: <2FDE83AF1A69C84796CBD13788DDA883534DB9@BONHAM.AD.UWS.EDU.AU> Hi Guys Way OT, but I wanna code it into an app. On some WebPages we are forced to logon to a web site using the standard Web version of a logon box comes up asking for the User Name and password for that site. (These are NOT sites I or we have designed) It's the generic one See a screen dump at http://tripledee.com.au/accessd/Generic_Logon.jpg Anyway...my question is this I can pass credentials to an ftp session by doing something like this ftp://UserName:Password at someServer.com.au Cool When I try the same syntax using http://UserName:Password at someServer.com.au In an attempt to bypass the screen in the screen dump it fails. Does anyone know a way to do it? Many thanks Darren From Erwin.Craps at ithelps.be Wed Jul 6 02:40:44 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 6 Jul 2005 09:40:44 +0200 Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5D20@stekelbes.ithelps.local> When using the url format you are sending username and password in plain text format (un-encrypted). The special dialogbox to enter your username/password is there to send you password encrypted over the internet. Probably your webserver refuses un-encrypted passwords, which is a good thing. I'm not aware of a technique to workaround this... I think that just the point of not beeing able to do this for security reasons. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Wednesday, July 06, 2005 4:00 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address Hi Guys Way OT, but I wanna code it into an app. On some WebPages we are forced to logon to a web site using the standard Web version of a logon box comes up asking for the User Name and password for that site. (These are NOT sites I or we have designed) It's the generic one See a screen dump at http://tripledee.com.au/accessd/Generic_Logon.jpg Anyway...my question is this I can pass credentials to an ftp session by doing something like this ftp://UserName:Password at someServer.com.au Cool When I try the same syntax using http://UserName:Password at someServer.com.au In an attempt to bypass the screen in the screen dump it fails. Does anyone know a way to do it? Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Wed Jul 6 04:06:21 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Wed, 6 Jul 2005 10:06:21 +0100 Subject: [AccessD] A2K and .Net Message-ID: <200507060857.j668vJr19891@smarthost.yourcomms.net> Ken thanks, as I thought. I accept that you would need to install all the VBA dlls, but are you sure that you would need to instantiate an Access session. I'm sure most apps would use left, mid etc in queries and this would mean say for all the many 1000's of VB apps that have an Access BE they would need to install Access (runtime or full) and load an instance each time a query was used. Have you tried this? I have tried to use native JetSQL but for this query have struggled , maybe someone can offer a solution....... I have two datetime fields UnavailableFrom and UnavailableTo (e.g. 01/01/2005 08:30 and 01/01/2005 18:30) Can anyone suggest any SQL (and also native JetSQL without function calls [or with permitted function calls]) to find whether a date falls between these two datetimes - so a parameter of say 01/01/2005 would return this record. Thanks Richard ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Ken Ismert Sent: Tue 05/07/2005 18:38 To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Yes, they will fail. This is not unique to .NET. Simply put, if you open a Jet database using DAO, ADO, or ADO.NET, any queries that reference VBA functions like DateAdd will fail. Your earlier thinking was correct: to get DateAdd to work in a query, you would need Access installed on the machine, and would have to open it via automation. The Access application instance would then provide the VBA environment required to make sense of VBA function calls. .NET won't interpret the function calls, nor can you substitute .NET functions. This is because your ADO calls are going to a separate Jet server instance, which has no knowledge of the context in which it is called. In short, you are limited to native Jet SQL for your queries. This includes the aggregate functions like Sum and Avg, mathematical operators and string concatenation, and the expressions Between, In and Like. You may also be able to extend your reach by using the ODBC Scalar functions, although I haven't tried this. -Ken -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, July 05, 2005 8:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Do you know if my queries (stored procedures) that use say dateadd (ie hard coded into the query) will fail? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Jul 6 10:33:08 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 6 Jul 2005 08:33:08 -0700 Subject: [AccessD] A2K and .Net Message-ID: If you want to use Access functions, you need to be *in* Access. However, if the environment doesn't support those functions, they won't work anyhow. Left, Mid, etc., are VBA functions, not Access functions, and trying to use VBA functions in managed code in .Net can give you entirely unexpected results even when you don't get an outright error. Is there a reason you are reluctant to change the queries? Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Wednesday, July 06, 2005 2:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Ken thanks, as I thought. I accept that you would need to install all the VBA dlls, but are you sure that you would need to instantiate an Access session. I'm sure most apps would use left, mid etc in queries and this would mean say for all the many 1000's of VB apps that have an Access BE they would need to install Access (runtime or full) and load an instance each time a query was used. Have you tried this? I have tried to use native JetSQL but for this query have struggled , maybe someone can offer a solution....... I have two datetime fields UnavailableFrom and UnavailableTo (e.g. 01/01/2005 08:30 and 01/01/2005 18:30) Can anyone suggest any SQL (and also native JetSQL without function calls [or with permitted function calls]) to find whether a date falls between these two datetimes - so a parameter of say 01/01/2005 would return this record. Thanks Richard ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Ken Ismert Sent: Tue 05/07/2005 18:38 To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Yes, they will fail. This is not unique to .NET. Simply put, if you open a Jet database using DAO, ADO, or ADO.NET, any queries that reference VBA functions like DateAdd will fail. Your earlier thinking was correct: to get DateAdd to work in a query, you would need Access installed on the machine, and would have to open it via automation. The Access application instance would then provide the VBA environment required to make sense of VBA function calls. .NET won't interpret the function calls, nor can you substitute .NET functions. This is because your ADO calls are going to a separate Jet server instance, which has no knowledge of the context in which it is called. In short, you are limited to native Jet SQL for your queries. This includes the aggregate functions like Sum and Avg, mathematical operators and string concatenation, and the expressions Between, In and Like. You may also be able to extend your reach by using the ODBC Scalar functions, although I haven't tried this. -Ken -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, July 05, 2005 8:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Do you know if my queries (stored procedures) that use say dateadd (ie hard coded into the query) will fail? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Wed Jul 6 13:10:42 2005 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 06 Jul 2005 13:10:42 -0500 Subject: [AccessD] Re: A2K and .Net In-Reply-To: <200507061700.j66H0CR13813@databaseadvisors.com> References: <200507061700.j66H0CR13813@databaseadvisors.com> Message-ID: <6.2.1.2.2.20050706130915.022756d0@pop3.highstream.net> YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the VBA >dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function calls >[or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard From martyconnelly at shaw.ca Wed Jul 6 18:13:20 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 06 Jul 2005 16:13:20 -0700 Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address References: <2FDE83AF1A69C84796CBD13788DDA883534DB9@BONHAM.AD.UWS.EDU.AU> Message-ID: <42CC6590.3090507@shaw.ca> Cannot Log On to Web Site Requiring Case-Sensitive User Name http://support.microsoft.com/default.aspx?scid=kb;en-us;228914 However it is more likely bet, that this is the cause if the the below IE security patch installed. I think these series of patches went in last year. http://support.microsoft.com/kb/832894/ Look under technical details of this IE patch http://www.microsoft.com/technet/security/bulletin/MS04-004.mspx The following URL syntax is no longer supported in Internet Explorer or Windows Explorer after you install this software update: http(s)://username:password at server/resource.ext Details of workarounds for coding via WinInet or UrlMon is available below or how to do a registry hack to disable uid password suppresion. A security update is available that modifies the default behavior of Internet Explorer for handling user information in HTTP and in HTTPS URLs http://support.microsoft.com/default.aspx?scid=kb;en-us;834489 I think you can also put the uid and password in an encrypted http header and use winhhtp or xmlhttp. Darren Dick wrote: >Hi Guys >Way OT, but I wanna code it into an app. >On some WebPages we are forced to logon to a web site using >the standard Web version of a logon box comes up asking for the >User Name and password for that site. (These are NOT sites I or we have >designed) > >It's the generic one >See a screen dump at >http://tripledee.com.au/accessd/Generic_Logon.jpg > >Anyway...my question is this >I can pass credentials to an ftp session by doing something like this > >ftp://UserName:Password at someServer.com.au > >Cool > >When I try the same syntax using >http://UserName:Password at someServer.com.au >In an attempt to bypass the screen in the screen dump it fails. > >Does anyone know a way to do it? > >Many thanks > >Darren > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Wed Jul 6 18:30:25 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 06 Jul 2005 16:30:25 -0700 Subject: [AccessD] A2K and .Net References: Message-ID: <42CC6991.1050205@shaw.ca> This is just a maybe grasping at straws here but if you install Office 2003 Update: Redistributable Primary Interop Assemblies and If you are coming from dotNet and use these PIA's just maybe you can do it. Shamil has used these. http://support.microsoft.com/?scid=kb;en-us;897646&spid=2509&sid=global And from these classes Microsoft.Vbe.Interop.dll Microsoft.Office.Interop.Access.dll dao.dll http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/OfficePrimaryInteropAssembliesFAQ.asp Charlotte Foust wrote: >If you want to use Access functions, you need to be *in* Access. >However, if the environment doesn't support those functions, they won't >work anyhow. Left, Mid, etc., are VBA functions, not Access functions, >and trying to use VBA functions in managed code in .Net can give you >entirely unexpected results even when you don't get an outright error. >Is there a reason you are reluctant to change the queries? > >Charlotte Foust > > >-----Original Message----- >From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] >Sent: Wednesday, July 06, 2005 2:06 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K and .Net > > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls [or with permitted function calls]) to find whether a date falls >between these two datetimes - so a parameter of say 01/01/2005 would >return this record. > >Thanks >Richard > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Ken Ismert >Sent: Tue 05/07/2005 18:38 >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K and .Net > > > >Yes, they will fail. This is not unique to .NET. Simply put, if you open >a Jet database using DAO, ADO, or ADO.NET, any queries that reference >VBA functions like DateAdd will fail. > >Your earlier thinking was correct: to get DateAdd to work in a query, >you would need Access installed on the machine, and would have to open >it via automation. The Access application instance would then provide >the VBA environment required to make sense of VBA function calls. > >.NET won't interpret the function calls, nor can you substitute .NET >functions. This is because your ADO calls are going to a separate Jet >server instance, which has no knowledge of the context in which it is >called. > >In short, you are limited to native Jet SQL for your queries. This >includes the aggregate functions like Sum and Avg, mathematical >operators and string concatenation, and the expressions Between, In and >Like. You may also be able to extend your reach by using the ODBC Scalar >functions, although I haven't tried this. > >-Ken > > >-----Original Message----- >From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] >Sent: Tuesday, July 05, 2005 8:21 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K and .Net > >Do you know if my queries (stored procedures) that use say dateadd (ie >hard coded into the query) will fail? > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > -- Marty Connelly Victoria, B.C. Canada From D.Dick at uws.edu.au Wed Jul 6 19:05:19 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Thu, 7 Jul 2005 10:05:19 +1000 Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address Message-ID: <2FDE83AF1A69C84796CBD13788DDA883535058@BONHAM.AD.UWS.EDU.AU> Thanks to all who responded Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, July 07, 2005 9:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Putting a Password and Logon name to an HTTP address Cannot Log On to Web Site Requiring Case-Sensitive User Name http://support.microsoft.com/default.aspx?scid=kb;en-us;228914 However it is more likely bet, that this is the cause if the the below IE security patch installed. I think these series of patches went in last year. http://support.microsoft.com/kb/832894/ Look under technical details of this IE patch http://www.microsoft.com/technet/security/bulletin/MS04-004.mspx The following URL syntax is no longer supported in Internet Explorer or Windows Explorer after you install this software update: http(s)://username:password at server/resource.ext Details of workarounds for coding via WinInet or UrlMon is available below or how to do a registry hack to disable uid password suppresion. A security update is available that modifies the default behavior of Internet Explorer for handling user information in HTTP and in HTTPS URLs http://support.microsoft.com/default.aspx?scid=kb;en-us;834489 I think you can also put the uid and password in an encrypted http header and use winhhtp or xmlhttp. Darren Dick wrote: >Hi Guys >Way OT, but I wanna code it into an app. >On some WebPages we are forced to logon to a web site using >the standard Web version of a logon box comes up asking for the >User Name and password for that site. (These are NOT sites I or we have >designed) > >It's the generic one >See a screen dump at >http://tripledee.com.au/accessd/Generic_Logon.jpg > >Anyway...my question is this >I can pass credentials to an ftp session by doing something like this > >ftp://UserName:Password at someServer.com.au > >Cool > >When I try the same syntax using >http://UserName:Password at someServer.com.au >In an attempt to bypass the screen in the screen dump it fails. > >Does anyone know a way to do it? > >Many thanks > >Darren > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stephen at bondsoftware.co.nz Wed Jul 6 22:04:26 2005 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Thu, 07 Jul 2005 15:04:26 +1200 Subject: [AccessD] OT - MS Query Message-ID: <70F3D727890C784291D8433E9C418F29088B1E@server.bondsoftware.co.nz> A question from a local client - he uses MS Query. I have a defined range that I'm querying. One column contains mainly numeric data but also some characters. When I query this column it returns all rows that contain only numerals and blank rows that contain any characters. The number format for this column is 'general'. Why doesn't MSQuery show the rows with characters in this column yet the next column is mainly characters and this one displays correctly? Tried some other things and it seem that MS Query will return data from a column that contains both character or numerical entries but not both. If you have more entries with any numerals then these cells with be displayed and no cells that have characters will be displayed. It seems that query looks at what data is in the cells and displays one type or the other but not both. I my case it's a list of product codes, an example of which is below. In this example only the rows that had a character in it will be displayed. What gives? Product Code 517 0517bro 0517bsa 0517buf 0517cre 0517pwh 0517whi 1001 1001bu 1002 1002BUF 1003 1003buf 1005 1005BUF 1012 1017bsa 1017buf 1017bufr 1017cre 1017gsl 1017whi 1019 1030 1099PMC Stephen Bond From accessd at shaw.ca Thu Jul 7 02:47:12 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Jul 2005 00:47:12 -0700 Subject: [AccessD] OT Lost shares In-Reply-To: <42CC6991.1050205@shaw.ca> Message-ID: <0IJ800ADTYYRW1@l-daemon> OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. Jim From R.Griffiths at bury.gov.uk Thu Jul 7 03:13:07 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 7 Jul 2005 09:13:07 +0100 Subject: [AccessD] Re: A2K and .Net Message-ID: <200507070804.j67844r04045@smarthost.yourcomms.net> Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA >dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls >[or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Jul 7 03:15:38 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 7 Jul 2005 09:15:38 +0100 Subject: [AccessD] A2K and .Net Message-ID: <200507070806.j6786Zr04264@smarthost.yourcomms.net> Hi No, just I was struggling to get the correct SQL criteria to work without using DateAdd function or format function Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 06 July 2005 16:33 To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net If you want to use Access functions, you need to be *in* Access. However, if the environment doesn't support those functions, they won't work anyhow. Left, Mid, etc., are VBA functions, not Access functions, and trying to use VBA functions in managed code in .Net can give you entirely unexpected results even when you don't get an outright error. Is there a reason you are reluctant to change the queries? Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Wednesday, July 06, 2005 2:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Ken thanks, as I thought. I accept that you would need to install all the VBA dlls, but are you sure that you would need to instantiate an Access session. I'm sure most apps would use left, mid etc in queries and this would mean say for all the many 1000's of VB apps that have an Access BE they would need to install Access (runtime or full) and load an instance each time a query was used. Have you tried this? I have tried to use native JetSQL but for this query have struggled , maybe someone can offer a solution....... I have two datetime fields UnavailableFrom and UnavailableTo (e.g. 01/01/2005 08:30 and 01/01/2005 18:30) Can anyone suggest any SQL (and also native JetSQL without function calls [or with permitted function calls]) to find whether a date falls between these two datetimes - so a parameter of say 01/01/2005 would return this record. Thanks Richard ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Ken Ismert Sent: Tue 05/07/2005 18:38 To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Yes, they will fail. This is not unique to .NET. Simply put, if you open a Jet database using DAO, ADO, or ADO.NET, any queries that reference VBA functions like DateAdd will fail. Your earlier thinking was correct: to get DateAdd to work in a query, you would need Access installed on the machine, and would have to open it via automation. The Access application instance would then provide the VBA environment required to make sense of VBA function calls. .NET won't interpret the function calls, nor can you substitute .NET functions. This is because your ADO calls are going to a separate Jet server instance, which has no knowledge of the context in which it is called. In short, you are limited to native Jet SQL for your queries. This includes the aggregate functions like Sum and Avg, mathematical operators and string concatenation, and the expressions Between, In and Like. You may also be able to extend your reach by using the ODBC Scalar functions, although I haven't tried this. -Ken -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, July 05, 2005 8:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K and .Net Do you know if my queries (stored procedures) that use say dateadd (ie hard coded into the query) will fail? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Erwin.Craps at ithelps.be Thu Jul 7 03:23:56 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 7 Jul 2005 10:23:56 +0200 Subject: [AccessD] OT Lost shares Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5D28@stekelbes.ithelps.local> It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Paul.Rogers at SummitMedia.co.uk Thu Jul 7 04:03:49 2005 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Thu, 7 Jul 2005 10:03:49 +0100 Subject: [AccessD] Dishonest crosstab query Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F75D@s003.wolds.summitmedia.co.uk> This crosstab query should arrive with 10 columns, but it makes 15. And some of the fictitious columns have totals, so it isn't a matter of simply deleting the unwanted columns. I think the fault lies in my join arrangement - but I can't spot it. TRANSFORM Count(qryEmployees.Roots) AS Ethnicity SELECT qryEmpWorkers.DailyGrind AS Work FROM qryEmpWorkers INNER JOIN qryEmployees ON qryEmpWorkers.EmployeeIDFK = qryEmployees.EmployeeID GROUP BY qryEmpWorkers.DailyGrind PIVOT qryEmployees.Roots; Be grateful for guidance. Cheers paul -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.10/43 - Release Date: 06/07/2005 From R.Griffiths at bury.gov.uk Thu Jul 7 07:08:30 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 7 Jul 2005 13:08:30 +0100 Subject: [AccessD] Access queries to SQL Message-ID: <200507071248.j67CmAr23317@smarthost.yourcomms.net> Hi Is there a way of exporting Access queries into SQL (the import from SQL seems to over look the queries - is this correct?) _ I have a system that has many queries and I preferable wish to avoid cut and paste. I used to have a program (downloaded from somewhere) that would having specified an mdb produce code that created/recreated the completed db (tables etc) - can't find this - anyone else come across this? Thanks Richard From mikedorism at verizon.net Thu Jul 7 08:28:31 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Thu, 07 Jul 2005 09:28:31 -0400 Subject: [AccessD] Access queries to SQL In-Reply-To: <200507071248.j67CmAr23317@smarthost.yourcomms.net> Message-ID: <000601c582f7$c55ebb20$2f01a8c0@hargrove.internal> You can upsize the database to SQL and then use the upsize report results to review all the queries that didn't make it. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Thursday, July 07, 2005 8:09 AM To: AccessD Subject: [AccessD] Access queries to SQL Hi Is there a way of exporting Access queries into SQL (the import from SQL seems to over look the queries - is this correct?) _ I have a system that has many queries and I preferable wish to avoid cut and paste. I used to have a program (downloaded from somewhere) that would having specified an mdb produce code that created/recreated the completed db (tables etc) - can't find this - anyone else come across this? Thanks Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Jul 7 09:04:00 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Jul 2005 07:04:00 -0700 Subject: [AccessD] OT Lost shares In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B5D28@stekelbes.ithelps.local> Message-ID: <0IJ900N16GEP1K@l-daemon> Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 Lambert.Heenan at AIG.com Thu Jul 7 09:49:43 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 7 Jul 2005 10:49:43 -0400 Subject: [AccessD] OT Lost shares Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1279CC4F@xlivmbx21.aig.com> I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 R.Griffiths at bury.gov.uk Thu Jul 7 09:53:00 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 7 Jul 2005 15:53:00 +0100 Subject: [AccessD] Access queries to SQL Message-ID: <200507071443.j67Ehur01837@smarthost.yourcomms.net> Thanks but only 3/4 out of 40+ of my procs/queries where copied -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: 07 July 2005 14:29 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access queries to SQL You can upsize the database to SQL and then use the upsize report results to review all the queries that didn't make it. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Thursday, July 07, 2005 8:09 AM To: AccessD Subject: [AccessD] Access queries to SQL Hi Is there a way of exporting Access queries into SQL (the import from SQL seems to over look the queries - is this correct?) _ I have a system that has many queries and I preferable wish to avoid cut and paste. I used to have a program (downloaded from somewhere) that would having specified an mdb produce code that created/recreated the completed db (tables etc) - can't find this - anyone else come across this? Thanks Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Thu Jul 7 10:22:48 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 7 Jul 2005 08:22:48 -0700 Subject: [AccessD] Re: A2K and .Net Message-ID: No, it wouldn't be. YourDate is the equivalent of 07/07/2005 00:00, since dates always have a time component and the default is midnight. So YourDate would be less than UnavailableFrom. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 1:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA >dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls >[or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 R.Griffiths at bury.gov.uk Thu Jul 7 10:38:16 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 7 Jul 2005 16:38:16 +0100 Subject: [AccessD] Re: A2K and .Net Message-ID: <200507071529.j67FTCr05237@smarthost.yourcomms.net> I have now managed (I think) to get the correct SQL. If D1 is the date to check then I need to supply D2 as a parameter as well with D2= D1 + 1 day (so we get 07/07/2005 00:00 and 08/07/2005 00:00 for D1,D2) So we check if (UnavailableFrom between D1 and D2) or (UnavailableTo between D1 and D2) or (UnavailableFrom<=D1<= UnavailableTo) If any is true then we know the date (D1) falls between the date range UnavailableFrom and UnavailableTo Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 07 July 2005 16:23 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net No, it wouldn't be. YourDate is the equivalent of 07/07/2005 00:00, since dates always have a time component and the default is midnight. So YourDate would be less than UnavailableFrom. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 1:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls [or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 mikedorism at verizon.net Thu Jul 7 10:56:55 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Thu, 07 Jul 2005 11:56:55 -0400 Subject: [AccessD] Access queries to SQL In-Reply-To: <200507071443.j67Ehur01837@smarthost.yourcomms.net> Message-ID: <002701c5830c$80703290$2f01a8c0@hargrove.internal> For those that weren't copied, you will have to cut/paste or manually create them because you need to examine why they didn't port over. In most of my cases, it boiled down to a parameter issue between how Access does things and how SQL does them. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Thursday, July 07, 2005 10:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access queries to SQL Thanks but only 3/4 out of 40+ of my procs/queries where copied -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: 07 July 2005 14:29 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access queries to SQL You can upsize the database to SQL and then use the upsize report results to review all the queries that didn't make it. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Thursday, July 07, 2005 8:09 AM To: AccessD Subject: [AccessD] Access queries to SQL Hi Is there a way of exporting Access queries into SQL (the import from SQL seems to over look the queries - is this correct?) _ I have a system that has many queries and I preferable wish to avoid cut and paste. I used to have a program (downloaded from somewhere) that would having specified an mdb produce code that created/recreated the completed db (tables etc) - can't find this - anyone else come across this? Thanks Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 mikedorism at verizon.net Thu Jul 7 10:59:25 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Thu, 07 Jul 2005 11:59:25 -0400 Subject: [AccessD] Re: A2K and .Net In-Reply-To: <200507071529.j67FTCr05237@smarthost.yourcomms.net> Message-ID: <002801c5830c$d9807d90$2f01a8c0@hargrove.internal> You don't need to supply D2 as a parameter, you could let the sproc calculate it for you. DECLARE D2 datetime SET D2 = DateAdd(d, 1, D1) Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Thursday, July 07, 2005 11:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net I have now managed (I think) to get the correct SQL. If D1 is the date to check then I need to supply D2 as a parameter as well with D2= D1 + 1 day (so we get 07/07/2005 00:00 and 08/07/2005 00:00 for D1,D2) So we check if (UnavailableFrom between D1 and D2) or (UnavailableTo between D1 and D2) or (UnavailableFrom<=D1<= UnavailableTo) If any is true then we know the date (D1) falls between the date range UnavailableFrom and UnavailableTo Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 07 July 2005 16:23 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net No, it wouldn't be. YourDate is the equivalent of 07/07/2005 00:00, since dates always have a time component and the default is midnight. So YourDate would be less than UnavailableFrom. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 1:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls [or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 JRojas at tnco-inc.com Thu Jul 7 11:02:45 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Thu, 7 Jul 2005 12:02:45 -0400 Subject: [AccessD] E-Signatures and Audit Trails Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3A4@mercury.tnco-inc.com> Hi All, 2 of the Access 2000 database systems that we use here are currently being reviewed to determine if they need to be compliant to the FDA regulation 21 CFR Part 11 (Electronic Records; Electronic Signatures). My prediction is that the answer will be yes. With that said, I need to find a way to incorporate e-signatures and audit trails into our systems. I would hate to reinvent the wheel if someone has already tackled this problem and is willing to share. :) Does anyone have a solution for this that I could incorporate into our existing system that they would be will to share/sell? Or does anyone know of a site that shares/sells this kind of solution? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From john at winhaven.net Thu Jul 7 11:03:14 2005 From: john at winhaven.net (John Bartow) Date: Thu, 7 Jul 2005 11:03:14 -0500 Subject: [AccessD] OT Lost shares In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1279CC4F@xlivmbx21.aig.com> Message-ID: <200507071603.j67G3HVL100342@pimout1-ext.prodigy.net> I agree. I think its because of the way w98 announces and caches P2P computers and shares. If you remove the share from the troublesome PCs and then add a new share it will probably show up. You can sometimes force it to refresh better if you go through the Netwrok places | Entire Network | Workgroup avenue with explorer. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 cfoust at infostatsystems.com Thu Jul 7 11:04:38 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 7 Jul 2005 09:04:38 -0700 Subject: [AccessD] Re: A2K and .Net Message-ID: So you're checking a single day to see if a given date (unavailableFrom or UnavailableTo) falls within that day? Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net I have now managed (I think) to get the correct SQL. If D1 is the date to check then I need to supply D2 as a parameter as well with D2= D1 + 1 day (so we get 07/07/2005 00:00 and 08/07/2005 00:00 for D1,D2) So we check if (UnavailableFrom between D1 and D2) or (UnavailableTo between D1 and D2) or (UnavailableFrom<=D1<= UnavailableTo) If any is true then we know the date (D1) falls between the date range UnavailableFrom and UnavailableTo Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 07 July 2005 16:23 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net No, it wouldn't be. YourDate is the equivalent of 07/07/2005 00:00, since dates always have a time component and the default is midnight. So YourDate would be less than UnavailableFrom. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 1:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls [or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 earthlink.net Thu Jul 7 12:20:10 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 7 Jul 2005 13:20:10 -0400 Subject: [AccessD] OT Lost shares In-Reply-To: <200507071603.j67G3HVL100342@pimout1-ext.prodigy.net> Message-ID: <> A better way to refresh is to drop to the DOS prompt and do: NBTSTAT -R You can also use NBTSTAT to see what's going on (use it with no switch to see all the options). NBTSTAT lets you look at each machines name cache table. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Bartow Sent: Thursday, July 07, 2005 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I agree. I think its because of the way w98 announces and caches P2P computers and shares. If you remove the share from the troublesome PCs and then add a new share it will probably show up. You can sometimes force it to refresh better if you go through the Netwrok places | Entire Network | Workgroup avenue with explorer. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 DElam at jenkens.com Thu Jul 7 13:26:32 2005 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 7 Jul 2005 13:26:32 -0500 Subject: [AccessD] World Series of Poker online diary Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0492CAAE@natexch.jenkens.com> I did not want Alan to be deprived of another poker story. This should have a new entry daily for about a week. http://www.slate.com/id/2122188/entry/0/ Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From john at winhaven.net Thu Jul 7 14:09:07 2005 From: john at winhaven.net (John Bartow) Date: Thu, 7 Jul 2005 14:09:07 -0500 Subject: [AccessD] World Series of Poker online diary In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C0492CAAE@natexch.jenkens.com> Message-ID: <200507071909.j67J9AIK159960@pimout4-ext.prodigy.net> Wrong list Debbie :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, July 07, 2005 1:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] World Series of Poker online diary I did not want Alan to be deprived of another poker story. This should have a new entry daily for about a week. http://www.slate.com/id/2122188/entry/0/ Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darsant at gmail.com Thu Jul 7 14:12:18 2005 From: darsant at gmail.com (Josh McFarlane) Date: Thu, 7 Jul 2005 14:12:18 -0500 Subject: [AccessD] E-Signatures and Audit Trails In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3A4@mercury.tnco-inc.com> References: <0CC84C9461AE6445AD5A602001C41C4B05A3A4@mercury.tnco-inc.com> Message-ID: <53c8e05a05070712125c5cd808@mail.gmail.com> On 7/7/05, Joe Rojas wrote: > Hi All, > > 2 of the Access 2000 database systems that we use here are currently being > reviewed to determine if they need to be compliant to the FDA regulation 21 > CFR Part 11 (Electronic Records; Electronic Signatures). > My prediction is that the answer will be yes. > > With that said, I need to find a way to incorporate e-signatures and audit > trails into our systems. > I would hate to reinvent the wheel if someone has already tackled this > problem and is willing to share. :) > > Does anyone have a solution for this that I could incorporate into our > existing system that they would be will to share/sell? > Or does anyone know of a site that shares/sells this kind of solution? > > Thanks! > JR Depends on how you want to do it, and how picky they are. We set up a generic table with timestamp and a few other fields, then made a function that could be put before any common database updates (order processing, payments, etc) that added a record to the transaction table via the function. We made a more specialized one for inventory tracking and billing changes. Only downside is you've got to add it anywhere you touch the data you want to track. It's not the most secure thing, as someone could still go into the audit table and mess with the entries, but it helped us when we had something die on the code side and had to reconstruct the previous data. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From bheid at appdevgrp.com Thu Jul 7 14:23:48 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 7 Jul 2005 15:23:48 -0400 Subject: [AccessD] Querydef weirdness Message-ID: <916187228923D311A6FE00A0CC3FAA30ABECAC@ADGSERVER> Ok, one of my classic stupid Access issues. I'm using Access XP. The scenario is I have a form that has a combo box with projects in it. I use a union query to add '(All)' to the top of the list. When the user selects (All), we want the output to contain all of the projects. Otherwise only the project the user has selected. For this one report, I have this in the where part of the query: Iif([forms]![FormData]![ProjectID]=0,[project].[projectid],[forms]![FormData ]![ProjectID]) This basically comes out as 'where projectid=projectid' if the Formdata!ProjectID is 0 and 'where projectid=[forms]![FormData]![ProjectID]' if the Formdata!ProjectID is not 0 . This works fine when running the query by itself or from the report. Well the user wanted the sum of the data on the chooser form when a project (or '(All)' is selected. So I run the query via a querydef and I get the infamous 'expected 1 parameters' error message. If I remove the where part of the query, it runs fine from the querydef. I talked to a co-worker and he has had problems accessing forms from a query in a querydef too. Has anyone else run into this? Anyone have a work-a-round? Thanks, Bobby From DElam at jenkens.com Thu Jul 7 14:33:30 2005 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 7 Jul 2005 14:33:30 -0500 Subject: [AccessD] World Series of Poker online diary Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0492CAB2@natexch.jenkens.com> Sorry! I thought I was sending to OT. Guess I did not pay attention to the address since they are together. Debbie -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Thursday, July 07, 2005 2:09 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] World Series of Poker online diary Wrong list Debbie :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, July 07, 2005 1:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] World Series of Poker online diary I did not want Alan to be deprived of another poker story. This should have a new entry daily for about a week. http://www.slate.com/id/2122188/entry/0/ Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From accessd at shaw.ca Thu Jul 7 14:33:56 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Jul 2005 12:33:56 -0700 Subject: [AccessD] OT Lost shares In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1279CC4F@xlivmbx21.aig.com> Message-ID: <0IJ900M12VOMFU@l-daemon> Hi Lambert: After renaming the computers we could not get the machines to recognize each other on the network. We had turn-off and on each system a couple of times. This morning when I can in the computers were now communicating.... Anyway the system is now working just fine and I am not sure why it was not, before but it now is. Must be from living right. Thanks for the message and help. Now I feel a little silly. Have a good day. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 7:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 accessd at shaw.ca Thu Jul 7 14:42:09 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Jul 2005 12:42:09 -0700 Subject: [AccessD] OT Lost shares In-Reply-To: <200507071603.j67G3HVL100342@pimout1-ext.prodigy.net> Message-ID: <0IJ90030CW2C44@l-daemon> Hi John: Problem seems to have resolved it's self. See previous email for details. Maybe it is a Win98 thing. Thanks for your help and suggestions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, July 07, 2005 9:03 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I agree. I think its because of the way w98 announces and caches P2P computers and shares. If you remove the share from the troublesome PCs and then add a new share it will probably show up. You can sometimes force it to refresh better if you go through the Netwrok places | Entire Network | Workgroup avenue with explorer. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 stuart at lexacorp.com.pg Thu Jul 7 14:44:22 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 08 Jul 2005 05:44:22 +1000 Subject: [AccessD] Querydef weirdness In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABECAC@ADGSERVER> Message-ID: <42CE12B6.22139.6DF5027@stuart.lexacorp.com.pg> On 7 Jul 2005 at 15:23, Bobby Heid wrote: > This works fine when running the query by itself or from the report. Well > the user wanted the sum of the data on the chooser form when a project (or > '(All)' is selected. So I run the query via a querydef and I get the > infamous 'expected 1 parameters' error message. If I remove the where part > of the query, it runs fine from the querydef. > > I talked to a co-worker and he has had problems accessing forms from a query > in a querydef too. Has anyone else run into this? Frequently :-( > Anyone have a work-a-round? > I use a static function to hold the value from the control which I set immediately before calling the query. Something like Static Function TempStore(Optional varInput As Variant) As Variant Dim varStore As Variant 'Initialise the variant if the function is called 'the first time with no Input If varStore = Empty Then varStore = Null 'Update the store if the Input is present If Not IsMissing(varInput) Then varStore = varInput 'return the stored value TempStore = varStore End Function Replace [forms]![FormData]![ProjectID] with TempStore() in the query and use "TempStore [ProjectID]" just before you call the query. -- Stuart From john at winhaven.net Thu Jul 7 14:45:31 2005 From: john at winhaven.net (John Bartow) Date: Thu, 7 Jul 2005 14:45:31 -0500 Subject: [AccessD] World Series of Poker online diary In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C0492CAB2@natexch.jenkens.com> Message-ID: <200507071945.j67JjYpM157966@pimout1-ext.prodigy.net> I figured, that's OK. Making a little slip-up on AccessD is better than making one over on OT! ;-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, July 07, 2005 2:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] World Series of Poker online diary Sorry! I thought I was sending to OT. Guess I did not pay attention to the address since they are together. Debbie From accessd at shaw.ca Thu Jul 7 14:58:22 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Jul 2005 12:58:22 -0700 Subject: [AccessD] OT Lost shares In-Reply-To: Message-ID: <0IJ900926WTDVN@l-daemon> Thanks for that Jim. That was the item that I could just not remember. The site starting working after it sat on over-night so the system must refresh it's after a certain amount of time passes. The nbstat -R command would do the same instantly. I will not forget it for another few years. Thanks again Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, July 07, 2005 10:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares <> A better way to refresh is to drop to the DOS prompt and do: NBTSTAT -R You can also use NBTSTAT to see what's going on (use it with no switch to see all the options). NBTSTAT lets you look at each machines name cache table. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Bartow Sent: Thursday, July 07, 2005 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I agree. I think its because of the way w98 announces and caches P2P computers and shares. If you remove the share from the troublesome PCs and then add a new share it will probably show up. You can sometimes force it to refresh better if you go through the Netwrok places | Entire Network | Workgroup avenue with explorer. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Thu Jul 7 15:18:16 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 7 Jul 2005 14:18:16 -0600 Subject: [AccessD] Capturing the Drop Changes/Copy to Clipboard error message? Message-ID: We may have discussed this in years past, I don't recall. A client with a mission-critical but shoddily-written Access app ( a situation we're all far, far too familiar with) is having a problem with users stepping on one another's changes and getting that error message that says: "This record has been changed by another user since you started editing it. If you save the record, you will overwrite the changes the other user made. Copying the changes to the clipboard will let you look at the values the other user entered, and then paste your changes back in if you decide to make the changes. " There's GOT to be a way to capture this message and either handle the conflict programmatically, or swap out a friendlier message, or both.? Even if it involves hooking into an API somewhere, there's GOT to be a way. Has anyone done it, or know someone who has, or know where to find pointers on how to do it, or anything? -C- From Lambert.Heenan at AIG.com Thu Jul 7 15:40:10 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 7 Jul 2005 16:40:10 -0400 Subject: [AccessD] OT Lost shares Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1279CE4B@xlivmbx21.aig.com> I suspect that the reason was that Windows does not automatically refresh the list of computers on the LAN. There's some time interval that it waits before rebroadcasting them (if that's the right term), something around 30 minutes I think. So when you powered them all up the next day the network found all the new computer names. Something like that anyway. Jim might have a better explanation. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 3:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Lambert: After renaming the computers we could not get the machines to recognize each other on the network. We had turn-off and on each system a couple of times. This morning when I can in the computers were now communicating.... Anyway the system is now working just fine and I am not sure why it was not, before but it now is. Must be from living right. Thanks for the message and help. Now I feel a little silly. Have a good day. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 7:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 dwaters at usinternet.com Thu Jul 7 15:50:37 2005 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 7 Jul 2005 15:50:37 -0500 Subject: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? In-Reply-To: <13657529.1120768134626.JavaMail.root@sniper23> Message-ID: <000001c58335$8c270540$0200a8c0@danwaters> Christopher, If you set the database to Edited Record, then users can't step on each other's toes. When one user begins to edit a record, all others are prevented from beginning to make any changes until the first user's changes are saved to the table. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Thursday, July 07, 2005 3:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? We may have discussed this in years past, I don't recall. A client with a mission-critical but shoddily-written Access app ( a situation we're all far, far too familiar with) is having a problem with users stepping on one another's changes and getting that error message that says: "This record has been changed by another user since you started editing it. If you save the record, you will overwrite the changes the other user made. Copying the changes to the clipboard will let you look at the values the other user entered, and then paste your changes back in if you decide to make the changes. " There's GOT to be a way to capture this message and either handle the conflict programmatically, or swap out a friendlier message, or both.? Even if it involves hooking into an API somewhere, there's GOT to be a way. Has anyone done it, or know someone who has, or know where to find pointers on how to do it, or anything? -C- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Jul 7 15:58:59 2005 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 7 Jul 2005 15:58:59 -0500 Subject: [AccessD] E-Signatures and Audit Trails In-Reply-To: <11043080.1120763740299.JavaMail.root@sniper14> Message-ID: <000101c58336$b640a650$0200a8c0@danwaters> Joe, The FDA has CFR 21 Part 11 under review. You should read this as it is now, and also work with the Regulatory Manager to find out if he/she has a sense of where the regulation is going to end up. Sometimes they can get early information. Also review with the Reg Manager to see what they will need for documented validation of the system. This could be the lion's share of the work you'll need to do. Best of Luck! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Thursday, July 07, 2005 2:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] E-Signatures and Audit Trails On 7/7/05, Joe Rojas wrote: > Hi All, > > 2 of the Access 2000 database systems that we use here are currently being > reviewed to determine if they need to be compliant to the FDA regulation 21 > CFR Part 11 (Electronic Records; Electronic Signatures). > My prediction is that the answer will be yes. > > With that said, I need to find a way to incorporate e-signatures and audit > trails into our systems. > I would hate to reinvent the wheel if someone has already tackled this > problem and is willing to share. :) > > Does anyone have a solution for this that I could incorporate into our > existing system that they would be will to share/sell? > Or does anyone know of a site that shares/sells this kind of solution? > > Thanks! > JR Depends on how you want to do it, and how picky they are. We set up a generic table with timestamp and a few other fields, then made a function that could be put before any common database updates (order processing, payments, etc) that added a record to the transaction table via the function. We made a more specialized one for inventory tracking and billing changes. Only downside is you've got to add it anywhere you touch the data you want to track. It's not the most secure thing, as someone could still go into the audit table and mess with the entries, but it helped us when we had something die on the code side and had to reconstruct the previous data. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Thu Jul 7 18:01:25 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 7 Jul 2005 19:01:25 -0400 Subject: [AccessD] OT Lost shares In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1279CE4B@xlivmbx21.aig.com> Message-ID: Lambert, Yeah that's about it. When a machine boots up, one of the first things it does is try to discover if there is a Master Browser on the subnet. If no, it elects itself. If yes, then an arbitration process occurs to determine which would be the better one. The Master Browser keeps the "official" list of what's on the subnet. This is what you see when you browse network neighborhood. So if the master browser is out of date or non-existent, you've got problems. The NBTSTAT -R clears the local table and requeries the master browser for a new list. This whole thing reminds me once again how good Microsoft is at taking old technology and making it "new". The P2P built into Windows is actually the old LAN Manager product LOL. That's when we went from Win 3.1 to 3.11 (Windows for Workgroups). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 4:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I suspect that the reason was that Windows does not automatically refresh the list of computers on the LAN. There's some time interval that it waits before rebroadcasting them (if that's the right term), something around 30 minutes I think. So when you powered them all up the next day the network found all the new computer names. Something like that anyway. Jim might have a better explanation. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 3:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Lambert: After renaming the computers we could not get the machines to recognize each other on the network. We had turn-off and on each system a couple of times. This morning when I can in the computers were now communicating.... Anyway the system is now working just fine and I am not sure why it was not, before but it now is. Must be from living right. Thanks for the message and help. Now I feel a little silly. Have a good day. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 7:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Jul 7 18:07:37 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 07 Jul 2005 16:07:37 -0700 Subject: [AccessD] E-Signatures and Audit Trails References: <0CC84C9461AE6445AD5A602001C41C4B05A3A4@mercury.tnco-inc.com> Message-ID: <42CDB5B9.2010709@shaw.ca> Couple of thoughts which may or may not be useful. You might want to check through the ARMA site for general info http://www.arma.org Download a free 200 page e-book copy from Microsoft needs mail registration Keeping Your Business Safe from Attack: Passwords and Permissions is a prescriptive guide to implementing security best practices in a Windows network environment. Covers auditing and DRM http://list.windowsitpro.com/t?ctl=DEBF:29783 I have seen this method used to sign PDF forms with a key chain USB token which probably could be adapted to Access, the USB contains a digital certificate. http://www.formrouter.com/digital-signature/index.html By e-signatures do you mean something like a PGP key, digital certificate or a physical signature image Here is a partial method to start capturing signature images, yo may need a tablet or some other input device. Follow these steps to enable handwriting capabilities to Access. 1. Download and install the TabletPC SDK from MS. This will register the InkEdit and InkPicture controls. 2. Open Access and go to a form 3. Select the Additonal Controls icon and Select the Microsoft InkEdit or Microsoft InkPicture 4. Drop the control on the form , right click and select all. All the properties and methods will be exposed. The InkEdit control is a superset of the RichText control. The InkEdit control is designed to provide an easy way to capture, display, and recognize ink. InkEd.dll How did you initially install the control by the Office XP Tablet PC Pack or by the Ink SDK? 1. Download and install the TabletPC SDK. This will register the InkEdit and InkPicture controls. 2. Open Access and go to a form 3. Select the Additonal Controls icon and Select the Microsoft InkEdit or Microsoft InkPicture 4. Drop the control on the form , right click and select all. All the properties and methods will be exposed. Maybe you can set a reference to "Microsoft InkEdit Control" There should be a registry key set on non tablet pc's the SDK installer sets the DWORD \HKEY_LOCAL_MACHINE\SOFTWARE\M?icrosoft\TabletPC\Controls\Ena?bleInkCollectionOnNonTablets to be equal to 1. If you are redistributing the mdb, this has to be set manually by your installer. >Hi All, > >2 of the Access 2000 database systems that we use here are currently being >reviewed to determine if they need to be compliant to the FDA regulation 21 >CFR Part 11 (Electronic Records; Electronic Signatures). >My prediction is that the answer will be yes. > >With that said, I need to find a way to incorporate e-signatures and audit >trails into our systems. >I would hate to reinvent the wheel if someone has already tackled this >problem and is willing to share. :) > >Does anyone have a solution for this that I could incorporate into our >existing system that they would be will to share/sell? >Or does anyone know of a site that shares/sells this kind of solution? > >Thanks! >JR > > > > -- Marty Connelly Victoria, B.C. Canada From clh at christopherhawkins.com Thu Jul 7 18:17:19 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 7 Jul 2005 17:17:19 -0600 Subject: SPAM-LOW: RE: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? Message-ID: <3120136ca7004a75a1fb171854b88b58@christopherhawkins.com> Yes, I know about Edited Record.? The problem is that the creator didn't use it when the app was originally built, ?and due to the way this kludgey thing has evolved over the years, changing it to Edited Record now causes errors. Hence my need for a way to hook into that error. Surely someone at some point must have done this? -C- ---------------------------------------- From: "Dan Waters" Sent: Thursday, July 07, 2005 2:52 PM To: "'Access Developers discussion and problem solving'" Subject: SPAM-LOW: RE: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? Christopher, If you set the database to Edited Record, then users can't step on each other's toes. When one user begins to edit a record, all others are prevented from beginning to make any changes until the first user's changes are saved to the table. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Thursday, July 07, 2005 3:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? We may have discussed this in years past, I don't recall. A client with a mission-critical but shoddily-written Access app ( a situation we're all far, far too familiar with) is having a problem with users stepping on one another's changes and getting that error message that says: "This record has been changed by another user since you started editing it. If you save the record, you will overwrite the changes the other user made. Copying the changes to the clipboard will let you look at the values the other user entered, and then paste your changes back in if you decide to make the changes. " There's GOT to be a way to capture this message and either handle the conflict programmatically, or swap out a friendlier message, or both.? Even if it involves hooking into an API somewhere, there's GOT to be a way. Has anyone done it, or know someone who has, or know where to find pointers on how to do it, or anything? -C- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Jul 7 20:53:59 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Jul 2005 18:53:59 -0700 Subject: SPAM-LOW: RE: [AccessD] Capturing the Drop Changes/Copy toClipboard errormessage? In-Reply-To: <3120136ca7004a75a1fb171854b88b58@christopherhawkins.com> Message-ID: <0IJA00MNVDA215@l-daemon> Hi Christopher: Have you checked out the Forms events like Form_AfterUpdate, Form_AfterInsert or Form_Error to see if you can catch the errors there? HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Thursday, July 07, 2005 4:17 PM To: accessd at databaseadvisors.com Subject: re: SPAM-LOW: RE: [AccessD] Capturing the Drop Changes/Copy toClipboard errormessage? Yes, I know about Edited Record.? The problem is that the creator didn't use it when the app was originally built, ?and due to the way this kludgey thing has evolved over the years, changing it to Edited Record now causes errors. Hence my need for a way to hook into that error. Surely someone at some point must have done this? -C- ---------------------------------------- From: "Dan Waters" Sent: Thursday, July 07, 2005 2:52 PM To: "'Access Developers discussion and problem solving'" Subject: SPAM-LOW: RE: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? Christopher, If you set the database to Edited Record, then users can't step on each other's toes. When one user begins to edit a record, all others are prevented from beginning to make any changes until the first user's changes are saved to the table. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Thursday, July 07, 2005 3:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing the Drop Changes/Copy to Clipboard errormessage? We may have discussed this in years past, I don't recall. A client with a mission-critical but shoddily-written Access app ( a situation we're all far, far too familiar with) is having a problem with users stepping on one another's changes and getting that error message that says: "This record has been changed by another user since you started editing it. If you save the record, you will overwrite the changes the other user made. Copying the changes to the clipboard will let you look at the values the other user entered, and then paste your changes back in if you decide to make the changes. " There's GOT to be a way to capture this message and either handle the conflict programmatically, or swap out a friendlier message, or both.? Even if it involves hooking into an API somewhere, there's GOT to be a way. Has anyone done it, or know someone who has, or know where to find pointers on how to do it, or anything? -C- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 R.Griffiths at bury.gov.uk Fri Jul 8 04:47:40 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 8 Jul 2005 10:47:40 +0100 Subject: [AccessD] Re: A2K and .Net Message-ID: <200507080938.j689car26789@smarthost.yourcomms.net> Doris As per intial email, I can't use DateAdd as this is a VBA function and my vb.net FE/A2K BE will bomb out (not havinf MS Access/VBA etc installed) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: 07 July 2005 16:59 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: A2K and .Net You don't need to supply D2 as a parameter, you could let the sproc calculate it for you. DECLARE D2 datetime SET D2 = DateAdd(d, 1, D1) Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Thursday, July 07, 2005 11:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net I have now managed (I think) to get the correct SQL. If D1 is the date to check then I need to supply D2 as a parameter as well with D2= D1 + 1 day (so we get 07/07/2005 00:00 and 08/07/2005 00:00 for D1,D2) So we check if (UnavailableFrom between D1 and D2) or (UnavailableTo between D1 and D2) or (UnavailableFrom<=D1<= UnavailableTo) If any is true then we know the date (D1) falls between the date range UnavailableFrom and UnavailableTo Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 07 July 2005 16:23 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net No, it wouldn't be. YourDate is the equivalent of 07/07/2005 00:00, since dates always have a time component and the default is midnight. So YourDate would be less than UnavailableFrom. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 1:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls [or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 R.Griffiths at bury.gov.uk Fri Jul 8 04:49:21 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 8 Jul 2005 10:49:21 +0100 Subject: [AccessD] Re: A2K and .Net Message-ID: <200507080940.j689eHr26925@smarthost.yourcomms.net> Yes, simply people are booked away for dates/times and I wish to highlight those people so they are not selected to carry out a job, which takes place on a specific day. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 07 July 2005 17:05 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net So you're checking a single day to see if a given date (unavailableFrom or UnavailableTo) falls within that day? Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 8:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net I have now managed (I think) to get the correct SQL. If D1 is the date to check then I need to supply D2 as a parameter as well with D2= D1 + 1 day (so we get 07/07/2005 00:00 and 08/07/2005 00:00 for D1,D2) So we check if (UnavailableFrom between D1 and D2) or (UnavailableTo between D1 and D2) or (UnavailableFrom<=D1<= UnavailableTo) If any is true then we know the date (D1) falls between the date range UnavailableFrom and UnavailableTo Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 07 July 2005 16:23 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net No, it wouldn't be. YourDate is the equivalent of 07/07/2005 00:00, since dates always have a time component and the default is midnight. So YourDate would be less than UnavailableFrom. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Thursday, July 07, 2005 1:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: A2K and .Net Hi YourDate >= UnavailableFrom AND YourDate <= UnavailableTo does work for example UnavailableFrom=07/07/2005 09:30 UnavailableTo=07/07/2005 19:30 Yourdate=07/07/2005 YourDate >= UnavailableFrom is not satisfied Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: 06 July 2005 19:11 To: accessd at databaseadvisors.com Subject: [AccessD] Re: A2K and .Net YourDate >= UnavailableFrom AND YourDate <= UnavailableTo That should work the same as BETWEEN...AND At 12:00 PM 7/6/2005, you wrote: >Date: Wed, 6 Jul 2005 10:06:21 +0100 >From: "Griffiths, Richard" >Subject: RE: [AccessD] A2K and .Net >To: "Access Developers discussion and problem solving" > >Message-ID: <200507060857.j668vJr19891 at smarthost.yourcomms.net> >Content-Type: text/plain; charset="iso-8859-1" > >Ken >thanks, as I thought. I accept that you would need to install all the >VBA dlls, but are you sure that you would need to instantiate an Access >session. I'm sure most apps would use left, mid etc in queries and this >would mean say for all the many 1000's of VB apps that have an Access BE >they would need to install Access (runtime or full) and load an instance >each time a query was used. Have you tried this? > >I have tried to use native JetSQL but for this query have struggled , >maybe someone can offer a solution....... > > >I have two datetime fields UnavailableFrom and UnavailableTo (e.g. >01/01/2005 08:30 and 01/01/2005 18:30) > >Can anyone suggest any SQL (and also native JetSQL without function >calls [or with permitted function calls]) to find whether a date falls between >these two datetimes - so a parameter of say 01/01/2005 would return this >record. > >Thanks >Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 bheid at appdevgrp.com Fri Jul 8 06:41:51 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 8 Jul 2005 07:41:51 -0400 Subject: [AccessD] Querydef weirdness In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C149DE@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABECAE@ADGSERVER> Stuart, Thanks for the idea! Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, July 07, 2005 3:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Querydef weirdness On 7 Jul 2005 at 15:23, Bobby Heid wrote: > This works fine when running the query by itself or from the report. > Well the user wanted the sum of the data on the chooser form when a > project (or '(All)' is selected. So I run the query via a querydef > and I get the infamous 'expected 1 parameters' error message. If I > remove the where part of the query, it runs fine from the querydef. > > I talked to a co-worker and he has had problems accessing forms from a > query in a querydef too. Has anyone else run into this? Frequently :-( > Anyone have a work-a-round? > I use a static function to hold the value from the control which I set immediately before calling the query. Something like Static Function TempStore(Optional varInput As Variant) As Variant Dim varStore As Variant 'Initialise the variant if the function is called 'the first time with no Input If varStore = Empty Then varStore = Null 'Update the store if the Input is present If Not IsMissing(varInput) Then varStore = varInput 'return the stored value TempStore = varStore End Function Replace [forms]![FormData]![ProjectID] with TempStore() in the query and use "TempStore [ProjectID]" just before you call the query. -- Stuart From John.Clark at niagaracounty.com Fri Jul 8 08:20:17 2005 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 08 Jul 2005 09:20:17 -0400 Subject: [AccessD] "Like" operator help Message-ID: This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark From John.Clark at niagaracounty.com Fri Jul 8 08:24:37 2005 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 08 Jul 2005 09:24:37 -0400 Subject: [AccessD] "Like" operator help Message-ID: I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Fri Jul 8 08:30:00 2005 From: pharold at proftesting.com (Perry L Harold) Date: Fri, 8 Jul 2005 09:30:00 -0400 Subject: [AccessD] "Like" operator help Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD03D0D0@EXCHANGE.ptiorl.local> Try LIKE "Tylenol*" Like "T*" In the criteria area. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:20 AM To: accessd at databaseadvisors.com Subject: [AccessD] "Like" operator help This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Fri Jul 8 08:32:56 2005 From: pharold at proftesting.com (Perry L Harold) Date: Fri, 8 Jul 2005 09:32:56 -0400 Subject: [AccessD] "Like" operator help Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD03D0D1@EXCHANGE.ptiorl.local> Append the global "*" to whatever is the value entered (as a string) with the "&" character and then submit to the query. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 isharp.co.uk Fri Jul 8 08:37:51 2005 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Fri, 8 Jul 2005 14:37:51 +0100 Subject: [AccessD] "Like" operator help In-Reply-To: Message-ID: If I remember rightly I think it's something like Like '" & [YourField] & "*'" Like SingleQuoteDoubleQuote & [YourField] & DoubleQuote*SingleQuoteDoubleQuote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: 08 July 2005 14:25 To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 JHewson at karta.com Fri Jul 8 08:38:11 2005 From: JHewson at karta.com (Jim Hewson) Date: Fri, 8 Jul 2005 08:38:11 -0500 Subject: [AccessD] "Like" operator help Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C03629B3D@karta-exc-int.Karta.com> In the criteria of the query try this: Like forms!frmFormName!ControlName & "*" Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 8:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Fri Jul 8 08:39:24 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 8 Jul 2005 09:39:24 -0400 Subject: [AccessD] "Like" operator help Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1279CF2D@xlivmbx21.aig.com> You could put a criteria like this in your query design Like [Initial Letters] & "*" Then when the query runs the user will get a dialog asking for the initial letters and the "*" gets tacked on the end to give you the result you want. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:20 AM To: accessd at databaseadvisors.com Subject: [AccessD] "Like" operator help This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Fri Jul 8 08:47:36 2005 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 08 Jul 2005 09:47:36 -0400 Subject: [AccessD] "Like" operator help Message-ID: I really didn't want to use a form...this is just a simple table (i.e. not a whole program) that our nursing department will use...they get an update monthly (I think it is) and just want to quickly access any given drug. But, I did think a form may be the answer, so I whipped up a quick litte one. One the form I've got a text box (Text0) and a label (Text2)...I'm just playing right now, so the names are defaults. On the "On Change" property of Text0, I've got a statment that says Text2.Caption = "Like '" & Text0.Text & "*'" This is working fine in the label, as it is showing up the way I want it...although I just noticed that I only have single quotes...hmmmm. I bet if I can get double quote in there it works. Right now, if I put "t" into Text0, I see: Like 't*' in Text2, and in the query I have [Forms]![enterfrm]![Text2] in the criteria section. This little bugger is turning out to be...well...a little bugger ;( >>> pharold at proftesting.com 7/8/2005 9:32 AM >>> Append the global "*" to whatever is the value entered (as a string) with the "&" character and then submit to the query. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Fri Jul 8 08:50:11 2005 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 08 Jul 2005 09:50:11 -0400 Subject: [AccessD] "Like" operator help Message-ID: OK! This worked...thank you! But, I thought I had already tried this...I must have done a typo before. >>> Lambert.Heenan at aig.com 7/8/2005 9:39 AM >>> You could put a criteria like this in your query design Like [Initial Letters] & "*" Then when the query runs the user will get a dialog asking for the initial letters and the "*" gets tacked on the end to give you the result you want. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:20 AM To: accessd at databaseadvisors.com Subject: [AccessD] "Like" operator help This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Jul 8 11:18:19 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 08 Jul 2005 18:18:19 +0200 Subject: [AccessD] OT Lost shares Message-ID: Hi Jim This is standard behaviour of a Windows Network (peer-to-peer). /gustav >>> accessd at shaw.ca 07/07 9:58 pm >>> Thanks for that Jim. That was the item that I could just not remember. The site starting working after it sat on over-night so the system must refresh it's after a certain amount of time passes. The nbstat -R command would do the same instantly. I will not forget it for another few years. Thanks again Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, July 07, 2005 10:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares <> A better way to refresh is to drop to the DOS prompt and do: NBTSTAT -R You can also use NBTSTAT to see what's going on (use it with no switch to see all the options). NBTSTAT lets you look at each machines name cache table. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Bartow Sent: Thursday, July 07, 2005 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I agree. I think its because of the way w98 announces and caches P2P computers and shares. If you remove the share from the troublesome PCs and then add a new share it will probably show up. You can sometimes force it to refresh better if you go through the Netwrok places | Entire Network | Workgroup avenue with explorer. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 07, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Fri Jul 8 14:45:08 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 8 Jul 2005 15:45:08 -0400 Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address In-Reply-To: <42CC6590.3090507@shaw.ca> Message-ID: <200507081945.j68Jj9R15088@databaseadvisors.com> I am not sure whether to send this to this group or to dba-Tech but here is the issue... I was looking at the code supplied by Helen Fedemma for interfacing Access to Outlook, and on my boxes (two are relevant) nothing runs! I want to load her code and then talk to it via Access and I cannot make anything work. Has anyone made her code work successfully... TIA, Arthur From artful at rogers.com Fri Jul 8 14:47:11 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 8 Jul 2005 15:47:11 -0400 Subject: [AccessD] OT Lost shares In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1279CC4F@xlivmbx21.aig.com> Message-ID: <200507081947.j68JlDR15771@databaseadvisors.com> IMO, sadly, renaming a computer breaks numerous things. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: July 7, 2005 10:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares I'm pretty convinced that it's the fact that you renamed the computer. Have you tried going to the renamed machine and re-sharing a folder? Does it then show up on other computers on this (peer-to-peer?) network? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 10:04 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Lost shares Hi Erwin: Good thought but... The workgroup did not change but the renamed members do not show up any more in the network list. (This was a Windows 98 network.) That is why it seems unusual. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, July 07, 2005 1:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Lost shares It is normal that shares are lost when a computer changed name. If the computer is no longer there, shares are gone to.... Network environment does not show up computers is probably due to you also changed the workgroup name. Windows will only show up computers from the same workgroup in a P2P network. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, July 07, 2005 9:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Lost shares OT: I know this is completely off topic but I remember seeing something a while back but just can not re-find it and will need the information tomorrow. Hi All: Does anyone know why all the shares are lost from a station when the computer name is changed? Reconnecting the local shares has to be done by entering the UNC for each computer and printer and the local network no longer shows up in the file explorer display. (The network being worked on is an old Win98 one.) Any help in this area would be much appreciated. 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 artful at rogers.com Fri Jul 8 14:52:14 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 8 Jul 2005 15:52:14 -0400 Subject: [AccessD] Read the contents of a file into a memvar In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3A4@mercury.tnco-inc.com> Message-ID: <200507081952.j68JqIR16860@databaseadvisors.com> I need to do what the subject says. The file might possibly be 1000 chars but more likely fewer. What I would ideally like to do is this: Dim myText as string Dim strSourceFile as string strSourceFile = xxxx myText = ReadFile( strSourceFile ) And then, once I am done, post said text to a Word bookmark... but that part is easy. TIA, Arthur From Lambert.Heenan at AIG.com Fri Jul 8 15:39:54 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 8 Jul 2005 16:39:54 -0400 Subject: [AccessD] Read the contents of a file into a memvar Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F12CDBA30@xlivmbx21.aig.com> Try this... Function ReadFile(strFilePath As String) As String Dim strFileName As String Dim nLength As Long Dim fh As Long strFileName = Dir(strFilePath) If strFileName & "" = "" Then ReadFile = "" Else nLength = FileLen(strFilePath) fh = FreeFile Open strFilePath For Input As #fh ReadFile = Input(nLength, #fh) Close #fh End If End Function Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, July 08, 2005 3:52 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Read the contents of a file into a memvar I need to do what the subject says. The file might possibly be 1000 chars but more likely fewer. What I would ideally like to do is this: Dim myText as string Dim strSourceFile as string strSourceFile = xxxx myText = ReadFile( strSourceFile ) And then, once I am done, post said text to a Word bookmark... but that part is easy. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Fri Jul 8 15:41:38 2005 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Fri, 8 Jul 2005 15:41:38 -0500 Subject: [AccessD] Read the contents of a file into a memvar Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F804E@cpixchng-1.cpiqpc.net> Arthur, If the file you're reading is just a simple text file, then the following should work: Function ImportTextFileIntoVar() Dim strTextLine Dim strFileText As String Dim strFileName As String strFileName = "i:\test.txt" Open strFileName For Input As #1 Do While Not EOF(1) Line Input #1, strTextLine strFileText = strFileText & vbCrLf & strTextLine Loop Close 1 End Function Rusty -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, July 08, 2005 2:52 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Read the contents of a file into a memvar I need to do what the subject says. The file might possibly be 1000 chars but more likely fewer. What I would ideally like to do is this: Dim myText as string Dim strSourceFile as string strSourceFile = xxxx myText = ReadFile( strSourceFile ) And then, once I am done, post said text to a Word bookmark... but that part is easy. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From Lambert.Heenan at AIG.com Fri Jul 8 15:50:35 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 8 Jul 2005 16:50:35 -0400 Subject: [AccessD] Read the contents of a file into a memvar Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F12CDBA39@xlivmbx21.aig.com> This code will not work because you do not assign the value of strFileText to the name of the function (which is how you make a function return something). Also you did not declare the function return type, so it will default to a Variant. Not that that would prevent the function for working. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Friday, July 08, 2005 4:42 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Read the contents of a file into a memvar Arthur, If the file you're reading is just a simple text file, then the following should work: Function ImportTextFileIntoVar() Dim strTextLine Dim strFileText As String Dim strFileName As String strFileName = "i:\test.txt" Open strFileName For Input As #1 Do While Not EOF(1) Line Input #1, strTextLine strFileText = strFileText & vbCrLf & strTextLine Loop Close 1 End Function Rusty -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, July 08, 2005 2:52 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Read the contents of a file into a memvar I need to do what the subject says. The file might possibly be 1000 chars but more likely fewer. What I would ideally like to do is this: Dim myText as string Dim strSourceFile as string strSourceFile = xxxx myText = ReadFile( strSourceFile ) And then, once I am done, post said text to a Word bookmark... but that part is easy. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Fri Jul 8 15:59:25 2005 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Fri, 8 Jul 2005 15:59:25 -0500 Subject: [AccessD] Read the contents of a file into a memvar Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F804F@cpixchng-1.cpiqpc.net> Can't disagree with you there. I just got in an hurry and focused on the code to get the file text into a variable. Should have spent an extra minute or two on it. thanks -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Friday, July 08, 2005 3:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Read the contents of a file into a memvar This code will not work because you do not assign the value of strFileText to the name of the function (which is how you make a function return something). Also you did not declare the function return type, so it will default to a Variant. Not that that would prevent the function for working. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Friday, July 08, 2005 4:42 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Read the contents of a file into a memvar Arthur, If the file you're reading is just a simple text file, then the following should work: Function ImportTextFileIntoVar() Dim strTextLine Dim strFileText As String Dim strFileName As String strFileName = "i:\test.txt" Open strFileName For Input As #1 Do While Not EOF(1) Line Input #1, strTextLine strFileText = strFileText & vbCrLf & strTextLine Loop Close 1 End Function Rusty -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, July 08, 2005 2:52 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Read the contents of a file into a memvar I need to do what the subject says. The file might possibly be 1000 chars but more likely fewer. What I would ideally like to do is this: Dim myText as string Dim strSourceFile as string strSourceFile = xxxx myText = ReadFile( strSourceFile ) And then, once I am done, post said text to a Word bookmark... but that part is easy. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From stuart at lexacorp.com.pg Fri Jul 8 18:46:07 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 09 Jul 2005 09:46:07 +1000 Subject: [AccessD] Read the contents of a file into a memvar In-Reply-To: <200507081952.j68JqIR16860@databaseadvisors.com> References: <0CC84C9461AE6445AD5A602001C41C4B05A3A4@mercury.tnco-inc.com> Message-ID: <42CF9CDF.22181.459CF9E@stuart.lexacorp.com.pg> On 8 Jul 2005 at 15:52, Arthur Fuller wrote: > I need to do what the subject says. The file might possibly be 1000 chars > but more likely fewer. What I would ideally like to do is this: > > Dim myText as string > Dim strSourceFile as string > strSourceFile = xxxx > myText = ReadFile( strSourceFile ) > > And then, once I am done, post said text to a Word bookmark... but that part > is easy. > Function Readfile(SourceFile As String) As String Dim strBuffer As String 'Make the Buffer the full size of the file strBuffer = Space$(FileLen(SourceFile)) 'Allow for concurrent multi user access Open SourceFile For Binary Access Read Shared As #1 Get #1, , strBuffer Close #1 Readfile = strBuffer End Function -- Stuart From Gustav at cactus.dk Sat Jul 9 06:21:19 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 09 Jul 2005 13:21:19 +0200 Subject: [AccessD] OT: Putting a Password and Logon name to an HTTP address Message-ID: Hi Arthur Some hints may be found here: http://www.outlookcode.com/d/database.htm By the way, Helen's code is sometimes heavily non-internationalised (read: extremely US specific) which may be what is causing you problems. /gustav >>> artful at rogers.com 07/08 9:45 pm >>> I am not sure whether to send this to this group or to dba-Tech but here is the issue... I was looking at the code supplied by Helen Fedemma for interfacing Access to Outlook, and on my boxes (two are relevant) nothing runs! I want to load her code and then talk to it via Access and I cannot make anything work. Has anyone made her code work successfully... TIA, Arthur From artful at rogers.com Sat Jul 9 14:35:28 2005 From: artful at rogers.com (Arthur Fuller) Date: Sat, 9 Jul 2005 15:35:28 -0400 Subject: [AccessD] Access to Word interface In-Reply-To: Message-ID: <200507091935.j69JZTR14051@databaseadvisors.com> Thanks for the heads-up Gustav! More specifically, the issue is this. I've got a Word doc (template) that I populate with a bunch of data extracted from a query. I use bookmarks and all that works nicely. The doc (dot) also contains two bookmarks which represent where subtables should appear. (For simplicity think of the query as bank-customer info and the two tables as deposits and withdrawals. That's not the actual case but it suffices as an example.) Because I couldn't make Helen's code run satisfactorily, I have been groping for alternative solutions. But before painting myself into a corner, I'll describe the problem itself... and maybe someone has a more elegant approach. Query1: delivers a bunch of columns from several related tables in one row. I use this to populate the bookmarks in the dot/doc. ST1: (subtable 1) here I need to present the rows returned from a query (deposits, say, sticking to the aforementioned example). ST2: (subtable 2) here I need to present the rows returned from a query (withdrawals, say, again sticking to the aforementioned example). My original concept was to create both tables in the dot file, having a header row and nothing else, then dynamically add as many rows as I need. Let's assume that Query 1 returns 5 rows, and the table has 4 columns. I don't understand how to fill said table with exactly 5 new rows, planting each column into its matching table-column. Since I couldn't figure out how to do that (Helen's code looked promising but I couldn't get even her examples using Northwind to work), I opted instead for placing two bookmarks in the dot file and generating a pair of HTML files, one for each table, then reading the contents of said two files into memory and plonking their data into the two bookmarks representing table 1 and table 2. Perhaps this is a completely asinine way to go about it, but I've never had to populate a table within a Word doc before, so I'm blindly groping around for a way that works. The code that populates the bookmarks is solid. Basically, I create a new Word document object and then assign values to each bookmark from the recordset that I open. All this works splendidly. But now I come to the two sub-tables. What I'm doing at the moment works but doesn't result in exquisite layout... and besides, I'm sure there is a way hipper method of accomplishing the task. During generation of the data, I write the two sub-tables' queries to a pair of HTM files whose name is known. Then I open the Word doc, populate the bookmarks and then deal with the two embedded sub-tables. I use code supplied earlier on this thread to inhale the two HTM files, then bang their contents into the bookmarks Table1 and Table2. It works, sort of. What I would much rather do, if possible, is comprehend how to dynamically expand Table1 to accommodate the X rows that it receives on this call (and the Y rows it might receive on the next call). And ditto with Table2. I.e. Dear , Here is your bank statement for last month. Deposits: Date Amount Withdrawals: Date Amount I could create an additional row for each table and leave it blank, then start populating there and add additional rows as needed. Or each table could consist only of the header row. Or I could add N rows to each table, populate them as I go and delete the unrequired rows. What I don't understand is how to take the N rows returned from Qst 1 and bang each row's values into table T1, column by column, then next row. I have the vague feeling that Range may play a role here, but I don't know where to go with this notion. So let's ignore Q1 (which just goes into the single bookmarks)... no problem there. Now let's say Q2 returns 5 rows and Q3 returns 7 rows. How would I go about populating T1 with the 5 rows returned by Q1? Before writing this, I have invested some time reading the "help"... alas, to no avail. Any advice, guidance or free pain-killers gratefully accepted! Arthur From artful at rogers.com Sat Jul 9 14:45:56 2005 From: artful at rogers.com (Arthur Fuller) Date: Sat, 9 Jul 2005 15:45:56 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: Message-ID: <200507091945.j69JjvR16424@databaseadvisors.com> I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur From jwcolby at colbyconsulting.com Sat Jul 9 15:40:43 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 09 Jul 2005 16:40:43 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <200507091945.j69JjvR16424@databaseadvisors.com> Message-ID: <000401c584c6$7a4db070$6c7aa8c0@ColbyM6805> Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jul 9 15:50:47 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 09 Jul 2005 16:50:47 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <000401c584c6$7a4db070$6c7aa8c0@ColbyM6805> Message-ID: <000601c584c7$e509f300$6c7aa8c0@ColbyM6805> Sorry, I missed the part about wanting only specific types of controls. Function TestCtlType() Dim ctl As Control ctl.ControlType End Function Place your click on the .ControlType and hit F1. Help on ControlType will come up showing a list fo constants for all control types. You code will now look something like: Sub DumpRowSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls '<--- this is the important part 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jul 9 16:17:47 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 09 Jul 2005 17:17:47 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <000601c584c7$e509f300$6c7aa8c0@ColbyM6805> Message-ID: <000701c584cb$a7c43b50$6c7aa8c0@ColbyM6805> BTW, this is exactly how my framework's form class instantiates a class for each control found on the form. Using a big case statement I instantiate a class specific to the control type, then pass in the control to the class instance, and save a pointer to each control class in a collection in the form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sorry, I missed the part about wanting only specific types of controls. Function TestCtlType() Dim ctl As Control ctl.ControlType End Function Place your click on the .ControlType and hit F1. Help on ControlType will come up showing a list fo constants for all control types. You code will now look something like: Sub DumpRowSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls '<--- this is the important part 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sun Jul 10 03:52:03 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 10 Jul 2005 10:52:03 +0200 Subject: [AccessD] Access to Word interface Message-ID: Hi Arthur I don't work much with Word - in fact as little as possible - neither with Word tables, but this works for me: Sub AddRows(ByVal lngRowsAdd As Long) Dim tbl As Table Dim lngCount As Long Dim lngRow As Long Set tbl = ActiveDocument.Tables(1) lngRow = tbl.Rows.Count For lngCount = 1 To lngRowsAdd tbl.Rows(lngRow).Range.Rows.Add Next Set tbl = Nothing End Sub /gustav >>> artful at rogers.com 07/09 9:35 pm >>> Thanks for the heads-up Gustav! More specifically, the issue is this. I've got a Word doc (template) that I populate with a bunch of data extracted from a query. I use bookmarks and all that works nicely. The doc (dot) also contains two bookmarks which represent where subtables should appear. (For simplicity think of the query as bank-customer info and the two tables as deposits and withdrawals. That's not the actual case but it suffices as an example.) Because I couldn't make Helen's code run satisfactorily, I have been groping for alternative solutions. But before painting myself into a corner, I'll describe the problem itself... and maybe someone has a more elegant approach. Query1: delivers a bunch of columns from several related tables in one row. I use this to populate the bookmarks in the dot/doc. ST1: (subtable 1) here I need to present the rows returned from a query (deposits, say, sticking to the aforementioned example). ST2: (subtable 2) here I need to present the rows returned from a query (withdrawals, say, again sticking to the aforementioned example). My original concept was to create both tables in the dot file, having a header row and nothing else, then dynamically add as many rows as I need. Let's assume that Query 1 returns 5 rows, and the table has 4 columns. I don't understand how to fill said table with exactly 5 new rows, planting each column into its matching table-column. Since I couldn't figure out how to do that (Helen's code looked promising but I couldn't get even her examples using Northwind to work), I opted instead for placing two bookmarks in the dot file and generating a pair of HTML files, one for each table, then reading the contents of said two files into memory and plonking their data into the two bookmarks representing table 1 and table 2. Perhaps this is a completely asinine way to go about it, but I've never had to populate a table within a Word doc before, so I'm blindly groping around for a way that works. The code that populates the bookmarks is solid. Basically, I create a new Word document object and then assign values to each bookmark from the recordset that I open. All this works splendidly. But now I come to the two sub-tables. What I'm doing at the moment works but doesn't result in exquisite layout... and besides, I'm sure there is a way hipper method of accomplishing the task. During generation of the data, I write the two sub-tables' queries to a pair of HTM files whose name is known. Then I open the Word doc, populate the bookmarks and then deal with the two embedded sub-tables. I use code supplied earlier on this thread to inhale the two HTM files, then bang their contents into the bookmarks Table1 and Table2. It works, sort of. What I would much rather do, if possible, is comprehend how to dynamically expand Table1 to accommodate the X rows that it receives on this call (and the Y rows it might receive on the next call). And ditto with Table2. I.e. Dear , Here is your bank statement for last month. Deposits: Date Amount Withdrawals: Date Amount I could create an additional row for each table and leave it blank, then start populating there and add additional rows as needed. Or each table could consist only of the header row. Or I could add N rows to each table, populate them as I go and delete the unrequired rows. What I don't understand is how to take the N rows returned from Qst 1 and bang each row's values into table T1, column by column, then next row. I have the vague feeling that Range may play a role here, but I don't know where to go with this notion. So let's ignore Q1 (which just goes into the single bookmarks)... no problem there. Now let's say Q2 returns 5 rows and Q3 returns 7 rows. How would I go about populating T1 with the 5 rows returned by Q1? Before writing this, I have invested some time reading the "help"... alas, to no avail. Any advice, guidance or free pain-killers gratefully accepted! Arthur From jwcolby at colbyconsulting.com Sun Jul 10 07:07:16 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 10 Jul 2005 08:07:16 -0400 Subject: [AccessD] Access developer workbench Message-ID: <002201c58547$ee7f2790$6c7aa8c0@ColbyM6805> I just found the following utility which I have NOT tried yet but I thought looked interesting, particularly for you developers managing multiple applications and Access versions. Main Feature List >>> The software will * show you the computer and Access user name of all connections to a database. More.. * allow you to compact/repair or backup a database as soon as everyone logs off. * open the correct version of Access for you. More.. * let you keep a list of favorites along with the Access version that you want to open it, the relevant workgroup file and the minimum size to schedule a compaction. More.. * let you send messages to users and shutdown the database. More.. * allow you to compile for increased performance and decompile a database to remove compilation junk. More.. * allow you to setup reminders relevant to your database. http://www.vb123.com/workbench/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From artful at rogers.com Sun Jul 10 09:07:46 2005 From: artful at rogers.com (Arthur Fuller) Date: Sun, 10 Jul 2005 10:07:46 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <000701c584cb$a7c43b50$6c7aa8c0@ColbyM6805> Message-ID: <200507101407.j6AE7pR22822@databaseadvisors.com> I'm still doing something wrong, clearly. It doesn't seem to like the declaration (perhaps because in the outer function I'm dimming frm as an object not a form?) '--------------------------------------------------------------------------- ------------ ' Procedure : ListFormDataSources ' DateTime : 31/05/2005 09:37 ' Author : Arthur Fuller ' Purpose : list all the data sources from the forms in the current database '--------------------------------------------------------------------------- ------------ ' Sub ListFormDataSources() Dim frm As AccessObject ' changing this to object or form doesn't work Dim db As CurrentProject Dim i As Integer On Error GoTo ListFormDataSources_Error Set db = CurrentProject Application.Echo False 'Check form recordsource For Each frm In db.AllForms DoCmd.OpenForm frm.Name, acDesign If Forms(frm.Name).RecordSource <> "" Then Debug.Print i, frm.Name & ": " Debug.Print Forms(frm.Name).RecordSource End If ListRowDataSources (frm) DoCmd.Close acForm, frm.Name i = i + 1 Next frm Application.Echo True Set frm = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ListFormDataSources_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure ListFormDataSources of Module aa_Listers" End Sub 'and then your code... Sub ListRowDataSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: July 9, 2005 5:18 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form BTW, this is exactly how my framework's form class instantiates a class for each control found on the form. Using a big case statement I instantiate a class specific to the control type, then pass in the control to the class instance, and save a pointer to each control class in a collection in the form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sorry, I missed the part about wanting only specific types of controls. Function TestCtlType() Dim ctl As Control ctl.ControlType End Function Place your click on the .ControlType and hit F1. Help on ControlType will come up showing a list fo constants for all control types. You code will now look something like: Sub DumpRowSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls '<--- this is the important part 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Sun Jul 10 12:11:03 2005 From: artful at rogers.com (Arthur Fuller) Date: Sun, 10 Jul 2005 13:11:03 -0400 Subject: [AccessD] Opening a log and keeping it open (cross-posted to dba-sql) In-Reply-To: <200507101407.j6AE7pR22822@databaseadvisors.com> Message-ID: <200507101711.j6AHB6R30338@databaseadvisors.com> I've got a procedure called ExecuteCommand (which perhaps ought to have been named ExecuteSQLCommand, but anyway). It encapsulates a bunch of stuff like the current project connection and such, and contains debug code that prints the SQL it is attempting to execute, and also an error handler that reports "Problem executing " + the SQL code it received. This is all very nice and works splendidly. However, the debug window has decided limitations, so I've been thinking that I should write all this information to a sort of transaction log. Basically, take what I now print to the debug window and re-direct it to an ASCII file of a known name, etc. I have worked with reading and writing ASCII text files so I'm not a complete na?f in this regard, but I do have a question. Suppose that I revise the code such that the first time ExcuteCommand is called it opens the file, creating it if necessary, and leaves it open. Every subsequent visit to Execute Command finds the file open and simply appends its SQL statement, just as it would to the debug window... but with the advantage that I could have several hours' worth of statements recorded to the file, rather than merely the last N lines of the debug buffer. 1. Would the app suffer in terms of performance if I did this? 2. Assuming that I opened the file in the usual way (as #1 or whatever), and assuming that somewhere in the app I also open another text file, should I protect myself by opening it as #98765 or somesuch, so that if you drop said module into one of your apps, it would be guaranteed to work even if your app opens a dozen other text files at various points? 3. Presumably the code would also need a "close the file" chunk, but in the ideal world I wouldn't want you to have to code any special thing into your "close app" procedure. So perhaps this might be better dealt with as a class? But I seem to recall from Shamil's writing on classes that there is an issue regarding the proper termination and garbage disposal of a class. Any suggestions, anyone? Arthur From clh at christopherhawkins.com Sun Jul 10 13:31:00 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Sun, 10 Jul 2005 12:31:00 -0600 Subject: [AccessD] Access developer workbench Message-ID: <1a227ac00c254eb6a37076ee063bc3c4@christopherhawkins.com> Interesting.? The author appears to have taken the best Access utilities scattered around the web an re-written them into an integrated package. That's almost cool enough to make me wish I still did a lot of Access work.? Almost.? ;)? -C- ---------------------------------------- From: "John W. Colby" Sent: Sunday, July 10, 2005 6:08 AM To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Access developer workbench I just found the following utility which I have NOT tried yet but I thought looked interesting, particularly for you developers managing multiple applications and Access versions. Main Feature List >>> The software will * show you the computer and Access user name of all connections to a database. More.. * allow you to compact/repair or backup a database as soon as everyone logs off. * open the correct version of Access for you. More.. * let you keep a list of favorites along with the Access version that you want to open it, the relevant workgroup file and the minimum size to schedule a compaction. More.. * let you send messages to users and shutdown the database. More.. * allow you to compile for increased performance and decompile a database to remove compilation junk. More.. * allow you to setup reminders relevant to your database. http://www.vb123.com/workbench/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Jul 10 14:24:46 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 11 Jul 2005 05:24:46 +1000 Subject: [AccessD] Re: [dba-SQLServer] Opening a log and keeping it open (cross-posted to dba-sql) In-Reply-To: <200507101711.j6AHB6R30337@databaseadvisors.com> References: <200507101407.j6AE7pR22822@databaseadvisors.com> Message-ID: <42D2029E.4819.DB72EEA@stuart.lexacorp.com.pg> On 10 Jul 2005 at 13:11, Arthur Fuller wrote: > Suppose that I > revise the code such that the first time ExcuteCommand is called it opens > the file, creating it if necessary, and leaves it open. Every subsequent > visit to Execute Command finds the file open and simply appends its SQL > statement, just as it would to the debug window... but with the advantage > that I could have several hours' worth of statements recorded to the file, > rather than merely the last N lines of the debug buffer. The problem with leaving the file open is that the OS is likely to keep a lock on it if your app crashes. Keeping it open may also prevent you from accessing the log info while your app is running. Depending on how frequently you will be logging, try opening the file, appending the log entry and then closing it again. Although slightly slower, it is much safer. > > 1. Would the app suffer in terms of performance if I did this? Writing out to a text file is pretty fast. It all depends on how often you are expecting ExecuteCommand to Execute. I wouldn't expect any noticable performance drop in normal circumstances. > 2. Assuming that I opened the file in the usual way (as #1 or whatever), and > assuming that somewhere in the app I also open another text file, should I > protect myself by opening it as #98765 or somesuch, You have to use file numbers in the range 1?255, inclusive for files not accessible to other applications or file numbers in the range 256?511 for files accessible from other applications. > so that if you drop said > module into one of your apps, it would be guaranteed to work even if your > app opens a dozen other text files at various points? Use FreeFile or FreeFile(0) to get the next available handle in the range 1 - 255 or FreeFile(1) to get the next available handle in the range 256 - a511. > 3. Presumably the code would also need a "close the file" chunk, but in the > ideal world I wouldn't want you to have to code any special thing into your > "close app" procedure. So perhaps this might be better dealt with as a > class? But I seem to recall from Shamil's writing on classes that there is > an issue regarding the proper termination and garbage disposal of a class. > > Any suggestions, anyone? Here's a simple shell for the above ideas without an error handling Function Log(strLogInfo as String) Dim intLogFileNunber as Integer Dim strLogFile as String strLogFile = "Logfile.txt" intLogFileNumber = Freefile Open strLogFile For Append As #intLogFileNumber Print#1, strLogInfo Close $intLogFileNumber End Function -- Stuart From jwcolby at colbyconsulting.com Sun Jul 10 14:31:05 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 10 Jul 2005 15:31:05 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <200507101407.j6AE7pR22822@databaseadvisors.com> Message-ID: <003801c58585$ea5cc4e0$6c7aa8c0@ColbyM6805> Yes, you cannot pass an object in as a form John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Sunday, July 10, 2005 10:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form I'm still doing something wrong, clearly. It doesn't seem to like the declaration (perhaps because in the outer function I'm dimming frm as an object not a form?) '--------------------------------------------------------------------------- ------------ ' Procedure : ListFormDataSources ' DateTime : 31/05/2005 09:37 ' Author : Arthur Fuller ' Purpose : list all the data sources from the forms in the current database '--------------------------------------------------------------------------- ------------ ' Sub ListFormDataSources() Dim frm As AccessObject ' changing this to object or form doesn't work Dim db As CurrentProject Dim i As Integer On Error GoTo ListFormDataSources_Error Set db = CurrentProject Application.Echo False 'Check form recordsource For Each frm In db.AllForms DoCmd.OpenForm frm.Name, acDesign If Forms(frm.Name).RecordSource <> "" Then Debug.Print i, frm.Name & ": " Debug.Print Forms(frm.Name).RecordSource End If ListRowDataSources (frm) DoCmd.Close acForm, frm.Name i = i + 1 Next frm Application.Echo True Set frm = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ListFormDataSources_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure ListFormDataSources of Module aa_Listers" End Sub 'and then your code... Sub ListRowDataSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: July 9, 2005 5:18 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form BTW, this is exactly how my framework's form class instantiates a class for each control found on the form. Using a big case statement I instantiate a class specific to the control type, then pass in the control to the class instance, and save a pointer to each control class in a collection in the form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sorry, I missed the part about wanting only specific types of controls. Function TestCtlType() Dim ctl As Control ctl.ControlType End Function Place your click on the .ControlType and hit F1. Help on ControlType will come up showing a list fo constants for all control types. You code will now look something like: Sub DumpRowSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls '<--- this is the important part 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 clh at christopherhawkins.com Sun Jul 10 15:08:18 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Sun, 10 Jul 2005 14:08:18 -0600 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? Message-ID: This message should be a fun one, as there is a technical issue and a business issue.? Feel free to comment on whichever one you want.? ;) First, the technical: This is related to my recent inquiry into whether or not there is a way to capture the write conflict error when it happens.? I noticed that the client with the home-brewed Access app had their DB-level Default Record Locking set to No Locks.? I'm talking about the option you find at Tools > Options > Advanced > Default Record Locking.? So, I went ahead and set that to Edited Record. However, as I've mentioned before, the actual forms are all set to No Locks.? The first thing I tried was changing all these forms to Edited Record, but there is a bunch of creaky state-management code that causes errors to be thrown when this setting is in place. I'm testing the system, but to be frank I've never been able to duplicate the write conflict, although my client's employees seem to do it all the time.? Sadly, they can't do it in my presence or tell me the exact steps to reproduce.? They do manage to send me the screenshots, though.? ;)? I really want to get these folks squared away, but they just can't communicate to me what they're doing, so I've got ot figure it out on my own. Here is what I am curious about:? in a case where the DB-level settings specify Edited Record locks and the forms themselves specify No Locks, which setting wins?? I've been poring over support.microsoft.com but have found no answers to this question so far. Now, the business question: As you may or may not know,?my?business?specializes in remediation work - that is to say, most of my clients come to me with projects in-crisis because they tried to go the do-it-yourself route, or because they tried to pinch pennies by hiring some amateur, and they've ended up with poorly-working or even outright broken systems.? Most of the time, I manage to get the systems in workable shape.? Of course, there is only so much you can do with a badly-written codebase once it gets to a certain level of depth, but over the years I have developed a pretty good track record of bringing out the good in bad systems. Here is an interesting twist - the client with the Access db in the technical example above wants me to offer a warranty on the whole application.? Bear in mind that I did not write this application - I am only fixing specific problems and adding a few features.? I always warrant my own work when it is ground-up, but how can one possibly give a warranty on a codebase that is 85% written by someone else?? In particular, we're taliking about a deep and poorly-written codebase;?since I'm positioned as an expert on rescuing at-risk projects, nobody comes to me when their projects are going well? ;).? Even with decent testing (that most clients are reluctant to pay for, ironically), I find it is?diffucult to predict?when real-world usage will cause some rarely-used subroutine to rise from the depths and do something that breaks my sparkly, new, well-designed code.? I notice that this expectation is becoming more and more frequent, and I am of the opinion that it is just not reasonable.? Of course, at the same time I want to be as useful as possible to my clients.? I am highly empathetic to the fact that people who lack a foundation in software cratsmanship/engineering?probably don't understand that hiring your 19-year old nephew who "knows computers" to build an?enterprise ERP system for $15/hour is 99% guaranteed to be a disaster.? Is anyone else struggling with the issue of being expected to offer a warranty on the entirety of?an existing codebase once you've made a few changes to it?? If so, how are you handling it? -C- From stuart at lexacorp.com.pg Sun Jul 10 15:24:46 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 11 Jul 2005 06:24:46 +1000 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? In-Reply-To: charset=iso-8859-1 Message-ID: <42D210AE.22730.DEE174F@stuart.lexacorp.com.pg> On 10 Jul 2005 at 14:08, Christopher Hawkins wrote: > First, the technical: > > Tools > Options > Advanced > Default Record Locking.? So, I went ahead and set that to Edited > ...... > Here is what I am curious about:? in a case where the DB-level settings specify Edited Record > locks and the forms themselves specify No Locks, which setting wins?? I've been poring over > support.microsoft.com but have found no answers to this question so far. Note the word "Default" under Tools-Options.... it's just that - a default so that you don't have to set it on every object if you generally want the same setting. The actual setting on an object will override this. What you specify on the Form is what you get. -- Stuart From stuart at lexacorp.com.pg Sun Jul 10 15:28:58 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 11 Jul 2005 06:28:58 +1000 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? In-Reply-To: charset=iso-8859-1 Message-ID: <42D211AA.12818.DF1F0C9@stuart.lexacorp.com.pg> On 10 Jul 2005 at 14:08, Christopher Hawkins wrote: > Is anyone else struggling with the issue of being expected to offer a warranty on the entirety > of?an existing codebase once you've made a few changes to it?? If so, how are you handling it? As JC said a couple of weaks ago when I said that I was remediating a similar system: "And of course the last developer to touch the db is responsible for ALL problems." No way do you warrant anything unless you built it yourself. That way lies ruin. -- Stuart From bheygood at abestsystems.com Sun Jul 10 15:51:36 2005 From: bheygood at abestsystems.com (Bob Heygood) Date: Sun, 10 Jul 2005 13:51:36 -0700 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <1a227ac00c254eb6a37076ee063bc3c4@christopherhawkins.com> Message-ID: Hello to the list, I want to change the Caption property of a report from a form via code. Can anyone help me? thanks,, bob From dwaters at usinternet.com Sun Jul 10 16:26:51 2005 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 10 Jul 2005 16:26:51 -0500 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <24778749.1121028183485.JavaMail.root@sniper21> Message-ID: <000001c58596$18aff320$0300a8c0@danwaters> Bob, Programmatically, you'll need to open the report in Design mode, then change the caption, then close and save the report. I suspect this will only work if your database is an .mdb. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, July 10, 2005 3:52 PM To: Access Developers discussion and problem solving Subject: [AccessD] Change Reports Caption From Code Hello to the list, I want to change the Caption property of a report from a form via code. Can anyone help me? thanks,, bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Sun Jul 10 22:01:26 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Sun, 10 Jul 2005 21:01:26 -0600 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? Message-ID: <1a121a6f40a0412b85336fd0069ba425@christopherhawkins.com> "The actual setting on an object will override this. What you specify on the Form is what you get." I had a feeling.? ;) -C- ---------------------------------------- From: "Stuart McLachlan" Sent: Sunday, July 10, 2005 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? On 10 Jul 2005 at 14:08, Christopher Hawkins wrote: > First, the technical: > > Tools > Options > Advanced > Default Record Locking.? So, I went ahead and set that to Edited > ...... > Here is what I am curious about:? in a case where the DB-level settings specify Edited Record > locks and the forms themselves specify No Locks, which setting wins?? I've been poring over > support.microsoft.com but have found no answers to this question so far. Note the word "Default" under Tools-Options.... it's just that - a default so that you don't have to set it on every object if you generally want the same setting. The actual setting on an object will override this. What you specify on the Form is what you get. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Sun Jul 10 22:01:43 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Sun, 10 Jul 2005 21:01:43 -0600 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? Message-ID: <743f743200314db39d203a3176af62f8@christopherhawkins.com> That's what I'm thinking. -C- ---------------------------------------- From: "Stuart McLachlan" Sent: Sunday, July 10, 2005 2:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? On 10 Jul 2005 at 14:08, Christopher Hawkins wrote: > Is anyone else struggling with the issue of being expected to offer a warranty on the entirety > of?an existing codebase once you've made a few changes to it?? If so, how are you handling it? As JC said a couple of weaks ago when I said that I was remediating a similar system: "And of course the last developer to touch the db is responsible for ALL problems." No way do you warrant anything unless you built it yourself. That way lies ruin. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sun Jul 10 23:03:49 2005 From: john at winhaven.net (John Bartow) Date: Sun, 10 Jul 2005 23:03:49 -0500 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: Message-ID: <200507110404.j6B43sj5081082@pimout2-ext.prodigy.net> Bob, Some basic code below for doing this. Private Sub cmdCaptionTest_Click() DoCmd.OpenReport "rptCaptionTest", acPreview Application.Reports.rptCaptionTest.Caption = "TestCaptionSimple" Exit Sub End Sub This is A97 so it should work in newer versions although I haven't tested it. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, July 10, 2005 3:52 PM To: Access Developers discussion and problem solving Subject: [AccessD] Change Reports Caption From Code Hello to the list, I want to change the Caption property of a report from a form via code. Can anyone help me? thanks,, bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sun Jul 10 23:57:41 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 10 Jul 2005 21:57:41 -0700 Subject: [AccessD] Access developer workbench References: <1a227ac00c254eb6a37076ee063bc3c4@christopherhawkins.com> Message-ID: <042f01c585d5$11bdd930$6701a8c0@HAL9004> Didn't see a price on that. Do you know? Rocky ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Sunday, July 10, 2005 11:31 AM Subject: re: [AccessD] Access developer workbench Interesting. The author appears to have taken the best Access utilities scattered around the web an re-written them into an integrated package. That's almost cool enough to make me wish I still did a lot of Access work. Almost. ;) -C- ---------------------------------------- From: "John W. Colby" Sent: Sunday, July 10, 2005 6:08 AM To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Access developer workbench I just found the following utility which I have NOT tried yet but I thought looked interesting, particularly for you developers managing multiple applications and Access versions. Main Feature List >>> The software will * show you the computer and Access user name of all connections to a database. More.. * allow you to compact/repair or backup a database as soon as everyone logs off. * open the correct version of Access for you. More.. * let you keep a list of favorites along with the Access version that you want to open it, the relevant workgroup file and the minimum size to schedule a compaction. More.. * let you send messages to users and shutdown the database. More.. * allow you to compile for increased performance and decompile a database to remove compilation junk. More.. * allow you to setup reminders relevant to your database. http://www.vb123.com/workbench/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 11 01:49:45 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 11 Jul 2005 16:49:45 +1000 Subject: [AccessD] Access developer workbench In-Reply-To: <042f01c585d5$11bdd930$6701a8c0@HAL9004> Message-ID: <42D2A329.158.102A4779@stuart.lexacorp.com.pg> On 10 Jul 2005 at 21:57, Rocky Smolin - Beach Access S wrote: > Didn't see a price on that. Do you know? > On their on-line order page - USD89.95 But Darren, Bruce, Connie etc can probably get it in AUD since they are a Sydney based company :-) -- Stuart From jwcolby at colbyconsulting.com Mon Jul 11 06:23:39 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 11 Jul 2005 07:23:39 -0400 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - whowins? In-Reply-To: <1a121a6f40a0412b85336fd0069ba425@christopherhawkins.com> Message-ID: <000a01c5860b$00a765e0$6c7aa8c0@ColbyM6805> Default usually means that as you start to desing an object, that is what that property will start as. If you change it during design, then it ends up different. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Sunday, July 10, 2005 11:01 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] DB-level Edited Record vs. Form-level No Lock - whowins? "The actual setting on an object will override this. What you specify on the Form is what you get." I had a feeling.? ;) -C- ---------------------------------------- From: "Stuart McLachlan" Sent: Sunday, July 10, 2005 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? On 10 Jul 2005 at 14:08, Christopher Hawkins wrote: > First, the technical: > > Tools > Options > Advanced > Default Record Locking.? So, I went ahead > and set that to Edited > ...... > Here is what I am curious about:? in a case where the DB-level > settings specify Edited Record locks and the forms themselves specify > No Locks, which setting wins?? I've been poring over > support.microsoft.com but have found no answers to this question so > far. Note the word "Default" under Tools-Options.... it's just that - a default so that you don't have to set it on every object if you generally want the same setting. The actual setting on an object will override this. What you specify on the Form is what you get. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 11 10:27:29 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 11 Jul 2005 08:27:29 -0700 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <003801c58585$ea5cc4e0$6c7aa8c0@ColbyM6805> Message-ID: <0IJG001AMYXQYD@l-daemon> ...but this would work. Dim frm as Form Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, July 10, 2005 12:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Yes, you cannot pass an object in as a form John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Sunday, July 10, 2005 10:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form I'm still doing something wrong, clearly. It doesn't seem to like the declaration (perhaps because in the outer function I'm dimming frm as an object not a form?) '--------------------------------------------------------------------------- ------------ ' Procedure : ListFormDataSources ' DateTime : 31/05/2005 09:37 ' Author : Arthur Fuller ' Purpose : list all the data sources from the forms in the current database '--------------------------------------------------------------------------- ------------ ' Sub ListFormDataSources() Dim frm As AccessObject ' changing this to object or form doesn't work Dim db As CurrentProject Dim i As Integer On Error GoTo ListFormDataSources_Error Set db = CurrentProject Application.Echo False 'Check form recordsource For Each frm In db.AllForms DoCmd.OpenForm frm.Name, acDesign If Forms(frm.Name).RecordSource <> "" Then Debug.Print i, frm.Name & ": " Debug.Print Forms(frm.Name).RecordSource End If ListRowDataSources (frm) DoCmd.Close acForm, frm.Name i = i + 1 Next frm Application.Echo True Set frm = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ListFormDataSources_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure ListFormDataSources of Module aa_Listers" End Sub 'and then your code... Sub ListRowDataSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: July 9, 2005 5:18 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form BTW, this is exactly how my framework's form class instantiates a class for each control found on the form. Using a big case statement I instantiate a class specific to the control type, then pass in the control to the class instance, and save a pointer to each control class in a collection in the form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sorry, I missed the part about wanting only specific types of controls. Function TestCtlType() Dim ctl As Control ctl.ControlType End Function Place your click on the .ControlType and hit F1. Help on ControlType will come up showing a list fo constants for all control types. You code will now look something like: Sub DumpRowSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls '<--- this is the important part 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jul 11 10:38:11 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 11 Jul 2005 11:38:11 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <0IJG001AMYXQYD@l-daemon> Message-ID: <000301c5862e$8b7d4ef0$6c7aa8c0@ColbyM6805> We need to see the code that calls this function and where it resides. If it is being called from the form itself, then there is no need to dim anything, just call the function passing in "me". John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, July 11, 2005 11:27 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form ...but this would work. Dim frm as Form Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, July 10, 2005 12:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Yes, you cannot pass an object in as a form John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Sunday, July 10, 2005 10:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form I'm still doing something wrong, clearly. It doesn't seem to like the declaration (perhaps because in the outer function I'm dimming frm as an object not a form?) '--------------------------------------------------------------------------- ------------ ' Procedure : ListFormDataSources ' DateTime : 31/05/2005 09:37 ' Author : Arthur Fuller ' Purpose : list all the data sources from the forms in the current database '--------------------------------------------------------------------------- ------------ ' Sub ListFormDataSources() Dim frm As AccessObject ' changing this to object or form doesn't work Dim db As CurrentProject Dim i As Integer On Error GoTo ListFormDataSources_Error Set db = CurrentProject Application.Echo False 'Check form recordsource For Each frm In db.AllForms DoCmd.OpenForm frm.Name, acDesign If Forms(frm.Name).RecordSource <> "" Then Debug.Print i, frm.Name & ": " Debug.Print Forms(frm.Name).RecordSource End If ListRowDataSources (frm) DoCmd.Close acForm, frm.Name i = i + 1 Next frm Application.Echo True Set frm = Nothing Set db = Nothing On Error GoTo 0 Exit Sub ListFormDataSources_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure ListFormDataSources of Module aa_Listers" End Sub 'and then your code... Sub ListRowDataSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: July 9, 2005 5:18 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form BTW, this is exactly how my framework's form class instantiates a class for each control found on the form. Using a big case statement I instantiate a class specific to the control type, then pass in the control to the class instance, and save a pointer to each control class in a collection in the form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sorry, I missed the part about wanting only specific types of controls. Function TestCtlType() Dim ctl As Control ctl.ControlType End Function Place your click on the .ControlType and hit F1. Help on ControlType will come up showing a list fo constants for all control types. You code will now look something like: Sub DumpRowSources(f As Form) Dim ctl As Control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.Print f.Name For Each ctl In f.Controls '<--- this is the important part 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, July 09, 2005 4:41 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Walk the controls on a given form Sub DumpRowSources ( f as Form ) Dim ctl as control 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.Controls '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" & ctl.RowSource End If Next End Sub John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 09, 2005 3:46 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Walk the controls on a given form I think I have asked this previously, but if I received an answer then I misplaced it. Here is exactly what I need.... This is pseudo-code. Don't expect it to compile! Sub DumpRowSources ( f as Form ) 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Debug.print f.name For Each ctl in f.ControlsCollection '<--- this is the important part If the control is either a listbox or combo-box Debug.print ctl.Name & ":" Debug.print ctl.RowSource End If Next End Sub TIA! Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 11 10:50:50 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 11 Jul 2005 08:50:50 -0700 Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? In-Reply-To: Message-ID: <0IJH00J0M00P9E@l-daemon> Hi Christopher: I have run into similar issues in the past. It was with a number of clients so I started applying a month charge and described that charge as an insurance policy. It did not guarantee that there would not be an error just those errors would be fixed at a flat fee. Sometimes issues came up and I ended up working for $10.00 an hour but when the yearly rate was tallied up it was always more than profitable. The clients liked it as there were no surprises. When they wanted a major upgrade or new module that fell into the category of special projects and they were billed separately. You can also set up a system where you slowly upgrade the whole project drawing from a banked pool of money that the client and you have set up. Working for a number of government agencies here, there is a policy that any amounts tended or required for a specific project over ten thousand dollars must go to bid, under that amount there no such constraints. The worked capital pool would be replenished as long as the project portion was marked as completed. This method worked for years. Those are a few creative accounting ideas that you may find interesting. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Sunday, July 10, 2005 1:08 PM To: accessd at databaseadvisors.com Subject: [AccessD] DB-level Edited Record vs. Form-level No Lock - who wins? This message should be a fun one, as there is a technical issue and a business issue.? Feel free to comment on whichever one you want.? ;) First, the technical: This is related to my recent inquiry into whether or not there is a way to capture the write conflict error when it happens.? I noticed that the client with the home-brewed Access app had their DB-level Default Record Locking set to No Locks.? I'm talking about the option you find at Tools > Options > Advanced > Default Record Locking.? So, I went ahead and set that to Edited Record. However, as I've mentioned before, the actual forms are all set to No Locks.? The first thing I tried was changing all these forms to Edited Record, but there is a bunch of creaky state-management code that causes errors to be thrown when this setting is in place. I'm testing the system, but to be frank I've never been able to duplicate the write conflict, although my client's employees seem to do it all the time.? Sadly, they can't do it in my presence or tell me the exact steps to reproduce.? They do manage to send me the screenshots, though.? ;)? I really want to get these folks squared away, but they just can't communicate to me what they're doing, so I've got ot figure it out on my own. Here is what I am curious about:? in a case where the DB-level settings specify Edited Record locks and the forms themselves specify No Locks, which setting wins?? I've been poring over support.microsoft.com but have found no answers to this question so far. Now, the business question: As you may or may not know,?my?business?specializes in remediation work - that is to say, most of my clients come to me with projects in-crisis because they tried to go the do-it-yourself route, or because they tried to pinch pennies by hiring some amateur, and they've ended up with poorly-working or even outright broken systems.? Most of the time, I manage to get the systems in workable shape.? Of course, there is only so much you can do with a badly-written codebase once it gets to a certain level of depth, but over the years I have developed a pretty good track record of bringing out the good in bad systems. Here is an interesting twist - the client with the Access db in the technical example above wants me to offer a warranty on the whole application.? Bear in mind that I did not write this application - I am only fixing specific problems and adding a few features.? I always warrant my own work when it is ground-up, but how can one possibly give a warranty on a codebase that is 85% written by someone else?? In particular, we're taliking about a deep and poorly-written codebase;?since I'm positioned as an expert on rescuing at-risk projects, nobody comes to me when their projects are going well? ;).? Even with decent testing (that most clients are reluctant to pay for, ironically), I find it is?diffucult to predict?when real-world usage will cause some rarely-used subroutine to rise from the depths and do something that breaks my sparkly, new, well-designed code.? I notice that this expectation is becoming more and more frequent, and I am of the opinion that it is just not reasonable.? Of course, at the same time I want to be as useful as possible to my clients.? I am highly empathetic to the fact that people who lack a foundation in software cratsmanship/engineering?probably don't understand that hiring your 19-year old nephew who "knows computers" to build an?enterprise ERP system for $15/hour is 99% guaranteed to be a disaster.? Is anyone else struggling with the issue of being expected to offer a warranty on the entirety of?an existing codebase once you've made a few changes to it?? If so, how are you handling it? -C- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Jul 11 11:43:53 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 11 Jul 2005 09:43:53 -0700 Subject: [AccessD] Walk the controls on a given form References: <0IJG001AMYXQYD@l-daemon> Message-ID: <42D2A1C9.1080909@shaw.ca> This works just pass form name and set form in subroutine Sub ListRowDataSources(fname As String) Dim ctl As Control Dim f As Form 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Set f = Forms(fname) Debug.Print f.Name For Each ctl In f.Controls 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next set f=nothing set ctl=nothing End Sub Jim Lawrence wrote: >...but this would work. > >Dim frm as Form > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >Sent: Sunday, July 10, 2005 12:31 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Walk the controls on a given form > >Yes, you cannot pass an object in as a form > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller >Sent: Sunday, July 10, 2005 10:08 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Walk the controls on a given form > > >I'm still doing something wrong, clearly. It doesn't seem to like the >declaration (perhaps because in the outer function I'm dimming frm as an >object not a form?) > >'--------------------------------------------------------------------------- >------------ >' Procedure : ListFormDataSources >' DateTime : 31/05/2005 09:37 >' Author : Arthur Fuller >' Purpose : list all the data sources from the forms in the current >database >'--------------------------------------------------------------------------- >------------ >' >Sub ListFormDataSources() > > Dim frm As AccessObject ' changing this to object or form doesn't work > Dim db As CurrentProject > Dim i As Integer > On Error GoTo ListFormDataSources_Error > > Set db = CurrentProject > > Application.Echo False > > 'Check form recordsource > For Each frm In db.AllForms > DoCmd.OpenForm frm.Name, acDesign > If Forms(frm.Name).RecordSource <> "" Then > Debug.Print i, frm.Name & ": " > Debug.Print Forms(frm.Name).RecordSource > End If > ListRowDataSources (frm) > DoCmd.Close acForm, frm.Name > i = i + 1 > Next frm > > Application.Echo True > > Set frm = Nothing > Set db = Nothing > > On Error GoTo 0 > Exit Sub > >ListFormDataSources_Error: > > MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure >ListFormDataSources of Module aa_Listers" > > End Sub > > >'and then your code... > >Sub ListRowDataSources(f As Form) >Dim ctl As Control > 'assume the form has already been opened by the calling process > 'I want to walk the controls > 'the only controls of interest are combos or listboxes so I can skip > 'over all others > Debug.Print f.Name > For Each ctl In f.Controls > 'If the control is either a listbox or combo-box > Select Case ctl.ControlType > Case acComboBox, acListBox > Debug.Print ctl.Name & ":" & ctl.RowSource > Case Else > End Select > Next >End Sub > >Arthur > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >Sent: July 9, 2005 5:18 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Walk the controls on a given form > >BTW, this is exactly how my framework's form class instantiates a class for >each control found on the form. Using a big case statement I instantiate a >class specific to the control type, then pass in the control to the class >instance, and save a pointer to each control class in a collection in the >form. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >Sent: Saturday, July 09, 2005 4:51 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Walk the controls on a given form > > >Sorry, I missed the part about wanting only specific types of controls. > >Function TestCtlType() >Dim ctl As Control > ctl.ControlType >End Function > >Place your click on the .ControlType and hit F1. Help on ControlType will >come up showing a list fo constants for all control types. You code will >now look something like: > >Sub DumpRowSources(f As Form) >Dim ctl As Control > 'assume the form has already been opened by the calling process > 'I want to walk the controls > 'the only controls of interest are combos or listboxes so I can skip > 'over all others > Debug.Print f.Name > For Each ctl In f.Controls '<--- this is the important part > 'If the control is either a listbox or combo-box > Select Case ctl.ControlType > Case acComboBox, acListBox > Debug.Print ctl.Name & ":" & ctl.RowSource > Case Else > End Select > Next >End Sub > > > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >Sent: Saturday, July 09, 2005 4:41 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Walk the controls on a given form > > > >Sub DumpRowSources ( f as Form ) >Dim ctl as control > 'assume the form has already been opened by the calling process > 'I want to walk the controls > 'the only controls of interest are combos or listboxes so I can skip > 'over all others > Debug.print f.name > For Each ctl in f.Controls '<--- this is the important part > If the control is either a listbox or combo-box > Debug.print ctl.Name & ":" & ctl.RowSource > End If > Next >End Sub > > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller >Sent: Saturday, July 09, 2005 3:46 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Walk the controls on a given form > > >I think I have asked this previously, but if I received an answer then I >misplaced it. Here is exactly what I need.... This is pseudo-code. Don't >expect it to compile! > >Sub DumpRowSources ( f as Form ) > 'assume the form has already been opened by the calling process > 'I want to walk the controls > 'the only controls of interest are combos or listboxes so I can skip > 'over all others > Debug.print f.name > For Each ctl in f.ControlsCollection '<--- this is the important part > If the control is either a listbox or combo-box > Debug.print ctl.Name & ":" > Debug.print ctl.RowSource > End If > Next >End Sub > >TIA! >Arthur > > > -- Marty Connelly Victoria, B.C. Canada From KP at sdsonline.net Mon Jul 11 18:42:07 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 12 Jul 2005 09:42:07 +1000 Subject: [AccessD] OT: Friday inspiration References: Message-ID: <00d801c58672$27389320$6601a8c0@user> Absolutely incredible - when do they say it will it will be finished Gustav? Kath ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Saturday, July 02, 2005 1:42 AM Subject: RE: [AccessD] OT: Friday inspiration Hi John Many ways to look at this. Notice the pictures of the interior. No window is rectangular. /gustav >>> jwcolby at colbyconsulting.com 07/01 5:27 pm >>> Is it a windmill by any chance? Cool looking structure. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Mon Jul 11 19:32:55 2005 From: artful at rogers.com (Arthur Fuller) Date: Mon, 11 Jul 2005 20:32:55 -0400 Subject: [AccessD] Walk the controls on a given form In-Reply-To: <42D2A1C9.1080909@shaw.ca> Message-ID: <200507120032.j6C0WvR07017@databaseadvisors.com> Works a treat. Thanks much! Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: July 11, 2005 12:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Walk the controls on a given form This works just pass form name and set form in subroutine Sub ListRowDataSources(fname As String) Dim ctl As Control Dim f As Form 'assume the form has already been opened by the calling process 'I want to walk the controls 'the only controls of interest are combos or listboxes so I can skip 'over all others Set f = Forms(fname) Debug.Print f.Name For Each ctl In f.Controls 'If the control is either a listbox or combo-box Select Case ctl.ControlType Case acComboBox, acListBox Debug.Print ctl.Name & ":" & ctl.RowSource Case Else End Select Next set f=nothing set ctl=nothing End Sub From kathryn at bassett.net Mon Jul 11 22:39:34 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Mon, 11 Jul 2005 20:39:34 -0700 Subject: [AccessD] Zip code format Message-ID: <20050712033939.004D540722@omta18.mta.everyone.net> In my table (members), I have a text field called Zip. The input mask is 00000\-9999;;_ Some people I have the 5 digit code, and others the zip+4, so this works. When I look at a query, a person's zip will show up as 91502- or 91006-2046 as I expect. However, when I make the mailing labels, I get 910062046 instead of 91006-2046. The 91502- does correctly show as 91502 without the dash. In the table field definition, there is a space for "format" but if I put the same 00000\-9999;;_ I still get same result. There is no "predefined format" in the drop down box. What do I do? This is a flat database with only 28 records, so I've got some play leeway. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From ssharkins at bellsouth.net Mon Jul 11 22:56:05 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 11 Jul 2005 23:56:05 -0400 Subject: [AccessD] Zip code format In-Reply-To: <20050712033939.004D540722@omta18.mta.everyone.net> Message-ID: <20050712035606.OWPC18668.ibm62aec.bellsouth.net@SUSANONE> Kathryn, there's no built-in way to handle this -- you have a couple of options. Store the - in the table with the data by changing the format code to 00000\-9999;0; -- that last 0 stores formatting with the data. Then, you can base the report on a query and use the following expression to get rid of the - FormattedZIP: Iif(Len(ZIPCODE) = 6, Left(ZIPCODE,5), ZIPCODE) If you don't want to store the - in the data, then you'll need an expression that handles putting it in instead of taking it out. I don't have that off the top of my head -- but I could come up with it. This really shouldn't be so hard -- maybe someone has a simpler solution. My solution has to always just omit the last four digits -- I don't know any po that actually requires them. :) Am I wrong on that? Maybe you need them if you're using bulk mail or something. Susan H. In my table (members), I have a text field called Zip. The input mask is 00000\-9999;;_ Some people I have the 5 digit code, and others the zip+4, so this works. When I look at a query, a person's zip will show up as 91502- or 91006-2046 as I expect. However, when I make the mailing labels, I get 910062046 instead of 91006-2046. The 91502- does correctly show as 91502 without the dash. In the table field definition, there is a space for "format" but if I put the same _ I still get same result. There is no "predefined format" in the drop down box. What do I do? This is a flat database with only 28 records, so I've got some play leeway. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Mon Jul 11 23:43:17 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Mon, 11 Jul 2005 21:43:17 -0700 Subject: [AccessD] Zip code format In-Reply-To: <20050712035606.OWPC18668.ibm62aec.bellsouth.net@SUSANONE> Message-ID: <20050712044321.023924072B@omta18.mta.everyone.net> It's only the report I'm having a problem. The box is =Trim([City] & " " & [St] & " " & [Zip]) But the Zip is leaving out the hyphen. Hmm, just realized, the hyphen isn't really there, that's just the mask. I think I'll take the easy way out and just make two fields for the zip. And yeah, I use the +four as much as possible. Personal experimentation has proved that it does make a difference in the speed with which it is delivered. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Susan Harkins > Sent: 11 Jul 2005 8:56 pm > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Zip code format > > Kathryn, there's no built-in way to handle this -- you have a > couple of options. > > Store the - in the table with the data by changing the format > code to 00000\-9999;0; -- that last 0 stores formatting with > the data. > > Then, you can base the report on a query and use the > following expression to get rid of the - > > FormattedZIP: Iif(Len(ZIPCODE) = 6, Left(ZIPCODE,5), ZIPCODE) > > If you don't want to store the - in the data, then you'll > need an expression that handles putting it in instead of > taking it out. I don't have that off the top of my head -- > but I could come up with it. > > This really shouldn't be so hard -- maybe someone has a > simpler solution. > > My solution has to always just omit the last four digits -- I > don't know any po that actually requires them. :) Am I wrong > on that? Maybe you need them if you're using bulk mail or something. > > Susan H. > > In my table (members), I have a text field called Zip. The > input mask is 00000\-9999;;_ > > Some people I have the 5 digit code, and others the zip+4, so > this works. > When I look at a query, a person's zip will show up as 91502- > or 91006-2046 as I expect. However, when I make the mailing > labels, I get 910062046 instead of 91006-2046. The 91502- > does correctly show as 91502 without the dash. > > In the table field definition, there is a space for "format" > but if I put the same _ I still get same result. There is no > "predefined format" in the drop down box. > > What do I do? This is a flat database with only 28 records, > so I've got some play leeway. > > -- > Kathryn Rhinehart Bassett (Pasadena CA) > "Genealogy is my bag" "GH is my soap" > kathryn at bassett.net > http://bassett.net > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rbgajewski at adelphia.net Mon Jul 11 23:56:00 2005 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Tue, 12 Jul 2005 00:56:00 -0400 Subject: [AccessD] Zip code format In-Reply-To: <20050712044321.023924072B@omta18.mta.everyone.net> Message-ID: <20050712045603.NLJR29002.mta9.adelphia.net@DG1P2N21> Kathryn How about this? =[City] & " " & [St] & " " & IIf([Zip]<99999,Left$([Zip],5),Left$([Zip],5) & "-" & Right$([Zip],4)) Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: Tuesday, July 12, 2005 00:43 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Zip code format It's only the report I'm having a problem. The box is =Trim([City] & " " & [St] & " " & [Zip]) But the Zip is leaving out the hyphen. Hmm, just realized, the hyphen isn't really there, that's just the mask. I think I'll take the easy way out and just make two fields for the zip. And yeah, I use the +four as much as possible. Personal experimentation has proved that it does make a difference in the speed with which it is delivered. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > Harkins > Sent: 11 Jul 2005 8:56 pm > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Zip code format > > Kathryn, there's no built-in way to handle this -- you have a couple > of options. > > Store the - in the table with the data by changing the format code to > 00000\-9999;0; -- that last 0 stores formatting with the data. > > Then, you can base the report on a query and use the following > expression to get rid of the - > > FormattedZIP: Iif(Len(ZIPCODE) = 6, Left(ZIPCODE,5), ZIPCODE) > > If you don't want to store the - in the data, then you'll need an > expression that handles putting it in instead of taking it out. I > don't have that off the top of my head -- but I could come up with it. > > This really shouldn't be so hard -- maybe someone has a simpler > solution. > > My solution has to always just omit the last four digits -- I don't > know any po that actually requires them. :) Am I wrong on that? Maybe > you need them if you're using bulk mail or something. > > Susan H. > > In my table (members), I have a text field called Zip. The input mask > is 00000\-9999;;_ > > Some people I have the 5 digit code, and others the zip+4, so this > works. > When I look at a query, a person's zip will show up as 91502- or > 91006-2046 as I expect. However, when I make the mailing labels, I get > 910062046 instead of 91006-2046. The 91502- does correctly show as > 91502 without the dash. > > In the table field definition, there is a space for "format" > but if I put the same _ I still get same result. There is no > "predefined format" in the drop down box. > > What do I do? This is a flat database with only 28 records, so I've > got some play leeway. > > -- > Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is > my soap" > kathryn at bassett.net > http://bassett.net > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Tue Jul 12 00:32:08 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Mon, 11 Jul 2005 22:32:08 -0700 Subject: [AccessD] Zip code format In-Reply-To: <20050712045603.NLJR29002.mta9.adelphia.net@DG1P2N21> Message-ID: <20050712053212.B7E23401E2@omta16.mta.everyone.net> Yes! That did it. I don't use the left/right string enough to have thought about that. Thanks a bunch! My mailing labels are now printed so I can get this stuff in the mail in the morning. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bob Gajewski > Sent: 11 Jul 2005 9:56 pm > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Zip code format > > Kathryn > > How about this? > > =[City] & " " & [St] & " " & > IIf([Zip]<99999,Left$([Zip],5),Left$([Zip],5) & "-" & Right$([Zip],4)) > > Regards, > Bob Gajewski From adtp at touchtelindia.net Tue Jul 12 01:03:08 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Tue, 12 Jul 2005 11:33:08 +0530 Subject: [AccessD] Change Reports Caption From Code References: Message-ID: <00df01c586a7$79b62dd0$ac1865cb@winxp> Bob, Sample code as given below, in report's open event, should set its caption as per text box named TxtCaption (on form named F_Test). Private Sub Report_Open(Cancel As Integer) Me.Caption = Forms("F_Test")("TxtCaption") End Sub Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Bob Heygood To: Access Developers discussion and problem solving Sent: Monday, July 11, 2005 02:21 Subject: [AccessD] Change Reports Caption From Code Hello to the list, I want to change the Caption property of a report from a form via code. Can anyone help me? thanks,, bob From Gustav at cactus.dk Tue Jul 12 02:06:27 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 12 Jul 2005 09:06:27 +0200 Subject: [AccessD] OT: Friday inspiration Message-ID: Hi Kath It is expected to be November 2005 - at that time at least the first apartments are ready. If you click the menu a FAQ can be found. Among other things it contains all sorts of dates related to the building. http://www.turningtorso.com/ /gustav >>> KP at sdsonline.net 07/12 1:42 am >>> Absolutely incredible - when do they say it will it will be finished Gustav? Kath ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Saturday, July 02, 2005 1:42 AM Subject: RE: [AccessD] OT: Friday inspiration Hi John Many ways to look at this. Notice the pictures of the interior. No window is rectangular. /gustav >>> jwcolby at colbyconsulting.com 07/01 5:27 pm >>> Is it a windmill by any chance? Cool looking structure. From mll at homekeyinc.com Tue Jul 12 04:37:19 2005 From: mll at homekeyinc.com (Michael Laferriere) Date: Tue, 12 Jul 2005 05:37:19 -0400 Subject: [AccessD] Multilingual Access Message-ID: <200507120928.j6C9SPR00380@databaseadvisors.com> Hi Folks - We developed an Access 2002 database in English. The client wants to create a copy of the database and prep it for the Chinese language. Does anyone know what's involved? Or where to start? Thanks. Michael From R.Griffiths at bury.gov.uk Tue Jul 12 05:16:40 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 12 Jul 2005 11:16:40 +0100 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: <200507121007.j6CA7Tr18640@smarthost.yourcomms.net> Hi Groups I have a task of processing a file in DIF format - Access does not seem to have this as a filter type - is this correct? I know Excel can read DIF files but I have hit the limit of 65,000 records. Does anyone have experience of processing/importing DIF (large) files into MS Access, Excel, SQL or other? Many thanks Richard From stuart at lexacorp.com.pg Tue Jul 12 08:10:48 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 12 Jul 2005 23:10:48 +1000 Subject: [AccessD] Reading DIF format (A97 etc) In-Reply-To: <200507121007.j6CA7Tr18640@smarthost.yourcomms.net> Message-ID: <42D44DF8.6581.16AD8050@stuart.lexacorp.com.pg> On 12 Jul 2005 at 11:16, Griffiths, Richard wrote: > Does anyone have experience of processing/importing DIF (large) files > into MS Access, Excel, SQL or other? > Never tried it before, but the DIF format is quite simple and is available at http://www.wotsit.org. Looking at the 2KB DIF specification file from there and saving a simple tabular spreadsheet as DIF to check exactly what it looks like, I knocked this routine up in a few minutes. This one is very basic. 1. You need to define a table with the appropriate fields first. If you wanted, you could extend the function to actually create the table based on the Table (name) and Tuple (columns) headers. You could also make an initial pass through the file to try and determine the field types. 2. This function just imports into numeric and text fields, but a bit of playing with it would allow for dates etc (you'd just need to check rs(lngColPointer).Type and parse the data appropriately. Function ImportDIF(DIFFilename As String, Tablename As String) Dim strTemp1 As String Dim strTemp2 As String Dim lngColumns As Long Dim lngFields As Long Dim lngColPointer As Long Dim rs As DAO.Recordset Dim blnFirstRecord As Boolean Set rs = CurrentDb.OpenRecordset(Tablename) lngFields = rs.Fields.Count Open DIFFilename For Input As #1 'headers Line Input #1, strTemp1 While strTemp1 <> "DATA" Line Input #1, strTemp1 Select Case strTemp1 Case "TABLE" Line Input #1, strTemp1 '0, 1 Line Input #1, strTemp1 'Table Name Case "VECTORS" 'rows topic Line Input #1, strTemp1 '0, row count Line Input #1, strTemp1 ' blank Case "TUPLES" 'columns topic Line Input #1, strTemp1 '0, column count lngColumns = Split(strTemp1, ",")(1) If lngColumns <> lngFields Then MsgBox "Table has " & lngFields & " fields, but DIF field has " & lngColumns & " Columns!" Close #1 Exit Function End If Line Input #1, strTemp1 ' blank Case Else ' optional headers End Select Line Input #1, strTemp1 Wend Line Input #1, strTemp1 '0,0 Line Input #1, strTemp1 ' blank 'Data blnFirstRecord = True Do Line Input #1, strTemp1 'type, numerical value Line Input #1, strTemp2 'string value Select Case Split(strTemp1, ",")(1) Case -1 ' special value If strTemp2 = "BOT" Then If Not blnFirstRecord Then rs.Update blnFirstRecord = False End If rs.AddNew lngColPointer = 0 ' new row End If If strTemp = "EOD" Then Exit Function Case 0 ' numeric value in strTemp1 rs(lngColPointer) = Split(strTemp1, ",")(2) lngColPointer = lngColPointer + 1 Case 1 ' string value in strTemp2 'trim leading and trailing quotes from string strTemp2 = Mid$(strTemp2, 2, Len(strTemp2) - 2) rs(lngColPointer) = strTemp2 lngColPointer = lngColPointer + 1 End Select Loop Close #1 End Function -- Stuart From ssharkins at bellsouth.net Tue Jul 12 08:30:23 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 12 Jul 2005 09:30:23 -0400 Subject: [AccessD] Zip code format In-Reply-To: <20050712044321.023924072B@omta18.mta.everyone.net> Message-ID: <20050712133023.TPRN23762.ibm56aec.bellsouth.net@SUSANONE> Actually Kathryn, believe it or not -- that is probably the most efficient and simplest solution of all. :) Susan H. It's only the report I'm having a problem. The box is =Trim([City] & " " & [St] & " " & [Zip]) But the Zip is leaving out the hyphen. Hmm, just realized, the hyphen isn't really there, that's just the mask. I think I'll take the easy way out and just make two fields for the zip. And yeah, I use the +four as much as possible. Personal experimentation has proved that it does make a difference in the speed with which it is delivered. From R.Griffiths at bury.gov.uk Tue Jul 12 09:37:04 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 12 Jul 2005 15:37:04 +0100 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: <200507121427.j6CERqr06334@smarthost.yourcomms.net> Stuart Thanks I will look, can you help me on the line of code lngColumns = Split(strTemp1, ",")(1) Split - is this your user def function na dwhat about the (1) bit?? Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 12 July 2005 14:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Reading DIF format (A97 etc) On 12 Jul 2005 at 11:16, Griffiths, Richard wrote: > Does anyone have experience of processing/importing DIF (large) files > into MS Access, Excel, SQL or other? > Never tried it before, but the DIF format is quite simple and is available at http://www.wotsit.org. Looking at the 2KB DIF specification file from there and saving a simple tabular spreadsheet as DIF to check exactly what it looks like, I knocked this routine up in a few minutes. This one is very basic. 1. You need to define a table with the appropriate fields first. If you wanted, you could extend the function to actually create the table based on the Table (name) and Tuple (columns) headers. You could also make an initial pass through the file to try and determine the field types. 2. This function just imports into numeric and text fields, but a bit of playing with it would allow for dates etc (you'd just need to check rs(lngColPointer).Type and parse the data appropriately. Function ImportDIF(DIFFilename As String, Tablename As String) Dim strTemp1 As String Dim strTemp2 As String Dim lngColumns As Long Dim lngFields As Long Dim lngColPointer As Long Dim rs As DAO.Recordset Dim blnFirstRecord As Boolean Set rs = CurrentDb.OpenRecordset(Tablename) lngFields = rs.Fields.Count Open DIFFilename For Input As #1 'headers Line Input #1, strTemp1 While strTemp1 <> "DATA" Line Input #1, strTemp1 Select Case strTemp1 Case "TABLE" Line Input #1, strTemp1 '0, 1 Line Input #1, strTemp1 'Table Name Case "VECTORS" 'rows topic Line Input #1, strTemp1 '0, row count Line Input #1, strTemp1 ' blank Case "TUPLES" 'columns topic Line Input #1, strTemp1 '0, column count lngColumns = Split(strTemp1, ",")(1) If lngColumns <> lngFields Then MsgBox "Table has " & lngFields & " fields, but DIF field has " & lngColumns & " Columns!" Close #1 Exit Function End If Line Input #1, strTemp1 ' blank Case Else ' optional headers End Select Line Input #1, strTemp1 Wend Line Input #1, strTemp1 '0,0 Line Input #1, strTemp1 ' blank 'Data blnFirstRecord = True Do Line Input #1, strTemp1 'type, numerical value Line Input #1, strTemp2 'string value Select Case Split(strTemp1, ",")(1) Case -1 ' special value If strTemp2 = "BOT" Then If Not blnFirstRecord Then rs.Update blnFirstRecord = False End If rs.AddNew lngColPointer = 0 ' new row End If If strTemp = "EOD" Then Exit Function Case 0 ' numeric value in strTemp1 rs(lngColPointer) = Split(strTemp1, ",")(2) lngColPointer = lngColPointer + 1 Case 1 ' string value in strTemp2 'trim leading and trailing quotes from string strTemp2 = Mid$(strTemp2, 2, Len(strTemp2) - 2) rs(lngColPointer) = strTemp2 lngColPointer = lngColPointer + 1 End Select Loop Close #1 End Function -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Jul 12 10:06:16 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 12 Jul 2005 11:06:16 -0400 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F12CDBE78@xlivmbx21.aig.com> "Split()" is an Access 2000+ function which takes a string as its first parameter and a second string parameter which is a delimiter used to split the first string into components. The split function breaks the whole string up and returns all the parts in an array. So the "(1)" at the end is in fact an array index, retrieving element 1 from the array returned by Split(). This is piece of shorthand code writing (possibly the author learned to code in the terse world of C/C++ ???), but I would not use it personally, simply because it is a little confusing to read. I'd explicitly assign the returned array to a Variant and then retrieve element 1 from that. Dim StrParts as Variant ... StrParts = Split(strTemp1, ",") lngColumns = StrParts(1) ... My 2?. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, July 12, 2005 10:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) Stuart Thanks I will look, can you help me on the line of code lngColumns = Split(strTemp1, ",")(1) Split - is this your user def function na dwhat about the (1) bit?? Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 12 July 2005 14:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Reading DIF format (A97 etc) On 12 Jul 2005 at 11:16, Griffiths, Richard wrote: > Does anyone have experience of processing/importing DIF (large) files > into MS Access, Excel, SQL or other? > Never tried it before, but the DIF format is quite simple and is available at http://www.wotsit.org. Looking at the 2KB DIF specification file from there and saving a simple tabular spreadsheet as DIF to check exactly what it looks like, I knocked this routine up in a few minutes. This one is very basic. 1. You need to define a table with the appropriate fields first. If you wanted, you could extend the function to actually create the table based on the Table (name) and Tuple (columns) headers. You could also make an initial pass through the file to try and determine the field types. 2. This function just imports into numeric and text fields, but a bit of playing with it would allow for dates etc (you'd just need to check rs(lngColPointer).Type and parse the data appropriately. Function ImportDIF(DIFFilename As String, Tablename As String) Dim strTemp1 As String Dim strTemp2 As String Dim lngColumns As Long Dim lngFields As Long Dim lngColPointer As Long Dim rs As DAO.Recordset Dim blnFirstRecord As Boolean Set rs = CurrentDb.OpenRecordset(Tablename) lngFields = rs.Fields.Count Open DIFFilename For Input As #1 'headers Line Input #1, strTemp1 While strTemp1 <> "DATA" Line Input #1, strTemp1 Select Case strTemp1 Case "TABLE" Line Input #1, strTemp1 '0, 1 Line Input #1, strTemp1 'Table Name Case "VECTORS" 'rows topic Line Input #1, strTemp1 '0, row count Line Input #1, strTemp1 ' blank Case "TUPLES" 'columns topic Line Input #1, strTemp1 '0, column count lngColumns = Split(strTemp1, ",")(1) If lngColumns <> lngFields Then MsgBox "Table has " & lngFields & " fields, but DIF field has " & lngColumns & " Columns!" Close #1 Exit Function End If Line Input #1, strTemp1 ' blank Case Else ' optional headers End Select Line Input #1, strTemp1 Wend Line Input #1, strTemp1 '0,0 Line Input #1, strTemp1 ' blank 'Data blnFirstRecord = True Do Line Input #1, strTemp1 'type, numerical value Line Input #1, strTemp2 'string value Select Case Split(strTemp1, ",")(1) Case -1 ' special value If strTemp2 = "BOT" Then If Not blnFirstRecord Then rs.Update blnFirstRecord = False End If rs.AddNew lngColPointer = 0 ' new row End If If strTemp = "EOD" Then Exit Function Case 0 ' numeric value in strTemp1 rs(lngColPointer) = Split(strTemp1, ",")(2) lngColPointer = lngColPointer + 1 Case 1 ' string value in strTemp2 'trim leading and trailing quotes from string strTemp2 = Mid$(strTemp2, 2, Len(strTemp2) - 2) rs(lngColPointer) = strTemp2 lngColPointer = lngColPointer + 1 End Select Loop Close #1 End Function -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Tue Jul 12 10:17:02 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 12 Jul 2005 08:17:02 -0700 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: Actually, Split(), Join(),etc., are VBA 6 functions, which makes them available to Access 2000 and later. Charlotte Foust -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, July 12, 2005 8:06 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Reading DIF format (A97 etc) "Split()" is an Access 2000+ function which takes a string as its first parameter and a second string parameter which is a delimiter used to split the first string into components. The split function breaks the whole string up and returns all the parts in an array. So the "(1)" at the end is in fact an array index, retrieving element 1 from the array returned by Split(). This is piece of shorthand code writing (possibly the author learned to code in the terse world of C/C++ ???), but I would not use it personally, simply because it is a little confusing to read. I'd explicitly assign the returned array to a Variant and then retrieve element 1 from that. Dim StrParts as Variant ... StrParts = Split(strTemp1, ",") lngColumns = StrParts(1) ... My 2?. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, July 12, 2005 10:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) Stuart Thanks I will look, can you help me on the line of code lngColumns = Split(strTemp1, ",")(1) Split - is this your user def function na dwhat about the (1) bit?? Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 12 July 2005 14:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Reading DIF format (A97 etc) On 12 Jul 2005 at 11:16, Griffiths, Richard wrote: > Does anyone have experience of processing/importing DIF (large) files > into MS Access, Excel, SQL or other? > Never tried it before, but the DIF format is quite simple and is available at http://www.wotsit.org. Looking at the 2KB DIF specification file from there and saving a simple tabular spreadsheet as DIF to check exactly what it looks like, I knocked this routine up in a few minutes. This one is very basic. 1. You need to define a table with the appropriate fields first. If you wanted, you could extend the function to actually create the table based on the Table (name) and Tuple (columns) headers. You could also make an initial pass through the file to try and determine the field types. 2. This function just imports into numeric and text fields, but a bit of playing with it would allow for dates etc (you'd just need to check rs(lngColPointer).Type and parse the data appropriately. Function ImportDIF(DIFFilename As String, Tablename As String) Dim strTemp1 As String Dim strTemp2 As String Dim lngColumns As Long Dim lngFields As Long Dim lngColPointer As Long Dim rs As DAO.Recordset Dim blnFirstRecord As Boolean Set rs = CurrentDb.OpenRecordset(Tablename) lngFields = rs.Fields.Count Open DIFFilename For Input As #1 'headers Line Input #1, strTemp1 While strTemp1 <> "DATA" Line Input #1, strTemp1 Select Case strTemp1 Case "TABLE" Line Input #1, strTemp1 '0, 1 Line Input #1, strTemp1 'Table Name Case "VECTORS" 'rows topic Line Input #1, strTemp1 '0, row count Line Input #1, strTemp1 ' blank Case "TUPLES" 'columns topic Line Input #1, strTemp1 '0, column count lngColumns = Split(strTemp1, ",")(1) If lngColumns <> lngFields Then MsgBox "Table has " & lngFields & " fields, but DIF field has " & lngColumns & " Columns!" Close #1 Exit Function End If Line Input #1, strTemp1 ' blank Case Else ' optional headers End Select Line Input #1, strTemp1 Wend Line Input #1, strTemp1 '0,0 Line Input #1, strTemp1 ' blank 'Data blnFirstRecord = True Do Line Input #1, strTemp1 'type, numerical value Line Input #1, strTemp2 'string value Select Case Split(strTemp1, ",")(1) Case -1 ' special value If strTemp2 = "BOT" Then If Not blnFirstRecord Then rs.Update blnFirstRecord = False End If rs.AddNew lngColPointer = 0 ' new row End If If strTemp = "EOD" Then Exit Function Case 0 ' numeric value in strTemp1 rs(lngColPointer) = Split(strTemp1, ",")(2) lngColPointer = lngColPointer + 1 Case 1 ' string value in strTemp2 'trim leading and trailing quotes from string strTemp2 = Mid$(strTemp2, 2, Len(strTemp2) - 2) rs(lngColPointer) = strTemp2 lngColPointer = lngColPointer + 1 End Select Loop Close #1 End Function -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 R.Griffiths at bury.gov.uk Tue Jul 12 10:28:19 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 12 Jul 2005 16:28:19 +0100 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: <200507121519.j6CFJ7r10201@smarthost.yourcomms.net> Thanks, I was using A97 hence the confusion. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 12 July 2005 16:17 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) Actually, Split(), Join(),etc., are VBA 6 functions, which makes them available to Access 2000 and later. Charlotte Foust -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, July 12, 2005 8:06 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Reading DIF format (A97 etc) "Split()" is an Access 2000+ function which takes a string as its first parameter and a second string parameter which is a delimiter used to split the first string into components. The split function breaks the whole string up and returns all the parts in an array. So the "(1)" at the end is in fact an array index, retrieving element 1 from the array returned by Split(). This is piece of shorthand code writing (possibly the author learned to code in the terse world of C/C++ ???), but I would not use it personally, simply because it is a little confusing to read. I'd explicitly assign the returned array to a Variant and then retrieve element 1 from that. Dim StrParts as Variant ... StrParts = Split(strTemp1, ",") lngColumns = StrParts(1) ... My 2?. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, July 12, 2005 10:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) Stuart Thanks I will look, can you help me on the line of code lngColumns = Split(strTemp1, ",")(1) Split - is this your user def function na dwhat about the (1) bit?? Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 12 July 2005 14:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Reading DIF format (A97 etc) On 12 Jul 2005 at 11:16, Griffiths, Richard wrote: > Does anyone have experience of processing/importing DIF (large) files > into MS Access, Excel, SQL or other? > Never tried it before, but the DIF format is quite simple and is available at http://www.wotsit.org. Looking at the 2KB DIF specification file from there and saving a simple tabular spreadsheet as DIF to check exactly what it looks like, I knocked this routine up in a few minutes. This one is very basic. 1. You need to define a table with the appropriate fields first. If you wanted, you could extend the function to actually create the table based on the Table (name) and Tuple (columns) headers. You could also make an initial pass through the file to try and determine the field types. 2. This function just imports into numeric and text fields, but a bit of playing with it would allow for dates etc (you'd just need to check rs(lngColPointer).Type and parse the data appropriately. Function ImportDIF(DIFFilename As String, Tablename As String) Dim strTemp1 As String Dim strTemp2 As String Dim lngColumns As Long Dim lngFields As Long Dim lngColPointer As Long Dim rs As DAO.Recordset Dim blnFirstRecord As Boolean Set rs = CurrentDb.OpenRecordset(Tablename) lngFields = rs.Fields.Count Open DIFFilename For Input As #1 'headers Line Input #1, strTemp1 While strTemp1 <> "DATA" Line Input #1, strTemp1 Select Case strTemp1 Case "TABLE" Line Input #1, strTemp1 '0, 1 Line Input #1, strTemp1 'Table Name Case "VECTORS" 'rows topic Line Input #1, strTemp1 '0, row count Line Input #1, strTemp1 ' blank Case "TUPLES" 'columns topic Line Input #1, strTemp1 '0, column count lngColumns = Split(strTemp1, ",")(1) If lngColumns <> lngFields Then MsgBox "Table has " & lngFields & " fields, but DIF field has " & lngColumns & " Columns!" Close #1 Exit Function End If Line Input #1, strTemp1 ' blank Case Else ' optional headers End Select Line Input #1, strTemp1 Wend Line Input #1, strTemp1 '0,0 Line Input #1, strTemp1 ' blank 'Data blnFirstRecord = True Do Line Input #1, strTemp1 'type, numerical value Line Input #1, strTemp2 'string value Select Case Split(strTemp1, ",")(1) Case -1 ' special value If strTemp2 = "BOT" Then If Not blnFirstRecord Then rs.Update blnFirstRecord = False End If rs.AddNew lngColPointer = 0 ' new row End If If strTemp = "EOD" Then Exit Function Case 0 ' numeric value in strTemp1 rs(lngColPointer) = Split(strTemp1, ",")(2) lngColPointer = lngColPointer + 1 Case 1 ' string value in strTemp2 'trim leading and trailing quotes from string strTemp2 = Mid$(strTemp2, 2, Len(strTemp2) - 2) rs(lngColPointer) = strTemp2 lngColPointer = lngColPointer + 1 End Select Loop Close #1 End Function -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Jul 12 10:34:29 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 12 Jul 2005 11:34:29 -0400 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F12CDBE9F@xlivmbx21.aig.com> I think "is an Access 2000+ function" says just about the same thing. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, July 12, 2005 11:17 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) Actually, Split(), Join(),etc., are VBA 6 functions, which makes them available to Access 2000 and later. Charlotte Foust -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, July 12, 2005 8:06 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Reading DIF format (A97 etc) "Split()" is an Access 2000+ function which takes a string as its first parameter and a second string parameter which is a delimiter used to split the first string into components. The split function breaks the whole string up and returns all the parts in an array. So the "(1)" at the end is in fact an array index, retrieving element 1 from the array returned by Split(). This is piece of shorthand code writing (possibly the author learned to code in the terse world of C/C++ ???), but I would not use it personally, simply because it is a little confusing to read. I'd explicitly assign the returned array to a Variant and then retrieve element 1 from that. Dim StrParts as Variant ... StrParts = Split(strTemp1, ",") lngColumns = StrParts(1) ... My 2?. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, July 12, 2005 10:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) Stuart Thanks I will look, can you help me on the line of code lngColumns = Split(strTemp1, ",")(1) Split - is this your user def function na dwhat about the (1) bit?? Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 12 July 2005 14:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Reading DIF format (A97 etc) On 12 Jul 2005 at 11:16, Griffiths, Richard wrote: > Does anyone have experience of processing/importing DIF (large) files > into MS Access, Excel, SQL or other? > Never tried it before, but the DIF format is quite simple and is available at http://www.wotsit.org. Looking at the 2KB DIF specification file from there and saving a simple tabular spreadsheet as DIF to check exactly what it looks like, I knocked this routine up in a few minutes. This one is very basic. 1. You need to define a table with the appropriate fields first. If you wanted, you could extend the function to actually create the table based on the Table (name) and Tuple (columns) headers. You could also make an initial pass through the file to try and determine the field types. 2. This function just imports into numeric and text fields, but a bit of playing with it would allow for dates etc (you'd just need to check rs(lngColPointer).Type and parse the data appropriately. Function ImportDIF(DIFFilename As String, Tablename As String) Dim strTemp1 As String Dim strTemp2 As String Dim lngColumns As Long Dim lngFields As Long Dim lngColPointer As Long Dim rs As DAO.Recordset Dim blnFirstRecord As Boolean Set rs = CurrentDb.OpenRecordset(Tablename) lngFields = rs.Fields.Count Open DIFFilename For Input As #1 'headers Line Input #1, strTemp1 While strTemp1 <> "DATA" Line Input #1, strTemp1 Select Case strTemp1 Case "TABLE" Line Input #1, strTemp1 '0, 1 Line Input #1, strTemp1 'Table Name Case "VECTORS" 'rows topic Line Input #1, strTemp1 '0, row count Line Input #1, strTemp1 ' blank Case "TUPLES" 'columns topic Line Input #1, strTemp1 '0, column count lngColumns = Split(strTemp1, ",")(1) If lngColumns <> lngFields Then MsgBox "Table has " & lngFields & " fields, but DIF field has " & lngColumns & " Columns!" Close #1 Exit Function End If Line Input #1, strTemp1 ' blank Case Else ' optional headers End Select Line Input #1, strTemp1 Wend Line Input #1, strTemp1 '0,0 Line Input #1, strTemp1 ' blank 'Data blnFirstRecord = True Do Line Input #1, strTemp1 'type, numerical value Line Input #1, strTemp2 'string value Select Case Split(strTemp1, ",")(1) Case -1 ' special value If strTemp2 = "BOT" Then If Not blnFirstRecord Then rs.Update blnFirstRecord = False End If rs.AddNew lngColPointer = 0 ' new row End If If strTemp = "EOD" Then Exit Function Case 0 ' numeric value in strTemp1 rs(lngColPointer) = Split(strTemp1, ",")(2) lngColPointer = lngColPointer + 1 Case 1 ' string value in strTemp2 'trim leading and trailing quotes from string strTemp2 = Mid$(strTemp2, 2, Len(strTemp2) - 2) rs(lngColPointer) = strTemp2 lngColPointer = lngColPointer + 1 End Select Loop Close #1 End Function -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 bheygood at abestsystems.com Tue Jul 12 12:59:47 2005 From: bheygood at abestsystems.com (Bob Heygood) Date: Tue, 12 Jul 2005 10:59:47 -0700 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <00df01c586a7$79b62dd0$ac1865cb@winxp> Message-ID: Thanks to all who responded. The on open event is what I used. I thot of it earlier, but thot twice about using a global variable. Not to start another rant/discussion, but I feel this is a good example a good use of a global. I am creating 79 PDFs from code, which involves opening a report. The neat news is that the reports caption property is what Acrobat uses for the resulting file name. Hence my need to change the caption each time I programmically open the report. thanks again. bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.Tejpal Sent: Monday, July 11, 2005 11:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change Reports Caption From Code Bob, Sample code as given below, in report's open event, should set its caption as per text box named TxtCaption (on form named F_Test). Private Sub Report_Open(Cancel As Integer) Me.Caption = Forms("F_Test")("TxtCaption") End Sub Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Bob Heygood To: Access Developers discussion and problem solving Sent: Monday, July 11, 2005 02:21 Subject: [AccessD] Change Reports Caption From Code Hello to the list, I want to change the Caption property of a report from a form via code. Can anyone help me? thanks,, bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Tue Jul 12 14:42:59 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 12 Jul 2005 15:42:59 -0400 Subject: [AccessD] Unbound Report Only Showing Last Record Message-ID: On my Detail section of my report, I am referencing a module that using my current recordset. The code steps through just fine, but the report is only showing my last record, not writing each record as it steps through the procedure. I tried the OnFormat event, but that gave me duplicates of my last record, and the OnPrint event seems to work. Do I need to bookmark the record and store it in a variable? If so, how can I get Access to write each record to my report. I would use a temporary table, but I never know how many fields the report is going to hold. It may hold one field or up to 57 fields. That is the reason for the "unboundness". Any ideas? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From prosoft6 at hotmail.com Tue Jul 12 14:48:18 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 12 Jul 2005 15:48:18 -0400 Subject: [AccessD] Unbound Report Only Showing Last Record In-Reply-To: Message-ID: Set db = CurrentDb() Here is the code, if this helps! Set rs = db.OpenRecordset("qryLocalAuthority", dbOpenDynaset) i = 0 rs.MoveFirst If Forms![frmmembersearch]![Index] = 0 Then Do Until i = Forms![frmmembersearch]![ListCount] MsgBox i MsgBox rs!Field0 Reports![rptMemberSearch]![Text0] = rs![Field0] rs.MoveNext i = i + 1 Loop Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From stuart at lexacorp.com.pg Tue Jul 12 17:04:54 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 13 Jul 2005 08:04:54 +1000 Subject: [AccessD] Reading DIF format (A97 etc) In-Reply-To: <200507121519.j6CFJ7r10201@smarthost.yourcomms.net> Message-ID: <42D4CB26.14173.18966BF2@stuart.lexacorp.com.pg> On 12 Jul 2005 at 16:28, Griffiths, Richard wrote: > Thanks, I was using A97 hence the confusion. > For A97 replace: Split(strTemp,",")(1) with Left$(strTemp,Instr(StrTemp,",") -1) and Split(strTemp,",")(2) with Mid$(strTemp,Instr(StrTemp,",")+1) -- Stuart From stuart at lexacorp.com.pg Tue Jul 12 17:08:08 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 13 Jul 2005 08:08:08 +1000 Subject: [AccessD] Reading DIF format (A97 etc) In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F12CDBE78@xlivmbx21.aig.com> Message-ID: <42D4CBE8.10318.1899623F@stuart.lexacorp.com.pg> On 12 Jul 2005 at 11:06, Heenan, Lambert wrote: > This is piece of shorthand code writing (possibly the author learned to code > in the terse world of C/C++ ???), Never learnt C/C++ , I've never found a need to :-) > but I would not use it personally, simply > because it is a little confusing to read. Why is it confusing? You know that Split() returns an array, so why not just index it. -- Stuart From darsant at gmail.com Tue Jul 12 17:52:48 2005 From: darsant at gmail.com (Josh McFarlane) Date: Tue, 12 Jul 2005 17:52:48 -0500 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: References: <00df01c586a7$79b62dd0$ac1865cb@winxp> Message-ID: <53c8e05a050712155277000d77@mail.gmail.com> On 7/12/05, Bob Heygood wrote: > Thanks to all who responded. The on open event is what I used. > I thot of it earlier, but thot twice about using a global variable. > Not to start another rant/discussion, but I feel this is a good example a > good use of a global. > > I am creating 79 PDFs from code, which involves opening a report. The neat > news is that the reports caption property is what Acrobat uses for the > resulting file name. Hence my need to change the caption each time I > programmically open the report. > > > thanks again. > > bob You may wish to consider using OpenArgs. When calling the report via code, you can pass it arguments via the DoCmd.OpenReport, then with the OnOpen code, change the caption of the current report. I do this with an form that I use to determine date range (changes form caption to be the name of the report it is called to open) and it works like a charm. DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" Then in the on open handler: Caption = OpenArgs or something similar to fit your needs. -- HTH Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From stuart at lexacorp.com.pg Tue Jul 12 18:06:03 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 13 Jul 2005 09:06:03 +1000 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <53c8e05a050712155277000d77@mail.gmail.com> References: Message-ID: <42D4D97B.12035.18CE6683@stuart.lexacorp.com.pg> On 12 Jul 2005 at 17:52, Josh McFarlane wrote: > > DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" > > Then in the on open handler: > Caption = OpenArgs > > or something similar to fit your needs. > -- In a similar vein, has any looked into changing the Caption in a query datasheet or print preview. I often shortcut in simple applications and display a query to the user rather than going to the effort of producing a report based on the query. It would be nice to customise the header on a printout of the query. -- Stuart From jwcolby at colbyconsulting.com Tue Jul 12 20:00:39 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 12 Jul 2005 21:00:39 -0400 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <53c8e05a050712155277000d77@mail.gmail.com> Message-ID: <003101c58746$4c43f630$6c7aa8c0@ColbyM6805> >You may wish to consider using OpenArgs. In my framework I use a pair of classes for this purpose. Openargs (in my system) are in the format ArgName1=ArgValue1;ArgName2=ArgValue2;... With as many arguments as the developer needs to pass in to the form. clsOpenArg (singular) is a simple class with a name/value pair of variables and properties to read them back out. clsOpenArgs (plural) is the "supervisor" It is passed the openarg string by the form class. It parses the openargs and creates an instance of clsOpenArg for each openarg passed in, saving each instance in a colOpenArgs using the argument name as the key. The nice thing about using a class pair like this is that the form (or report) then has a place to go to retrieve the arguments in a consistent manner. You (the developer) no longer need to parse arguments inside any form that has arguments passed it, just instantiate the supervisor (clsOpenArgs (plural)) and pass in the openargs string (in OnOpen of the form / report) and then just read out the argument values using variable names that you know exist because you set them. For example: OpenArgs - FormCaption=MyForm;lblCompanyName=Colby Consulting;...MoreArgs=MoreValues; In the form or report header, you dim an instance of the supervisor class Dim lclsOpenArgs As clsOpenArgs In OnOpen you set up the class and pass in the openargs, then just reference the arguments: Private Sub Form_Open(Cancel As Integer) lclsOpenArgs = New clsOpenArgs With lclsOpenArgs .OpenArgs = Me.OpenArgs ...the .OpenArgs method accepts the openargs string and parses them, placing them into OpenArg class instances, then placing those class instances in a colOpenArgs keyed on the argument name. lblCompanyName.Caption = .Arg("lblCompanyName") Me.Caption = .Arg("FormCaption") End With End Sub As you can see, the form code then just reads the argument values out by passing in the name of an OpenArg it expects to receive and does something with that value. You can have one or 40 openargs, and clsOpenArgs just parses them and gets them ready to use. The form can read the values out of the supervisor class clsOpenArgs by name. The form class can read the values out anywhere they are needed, in any event or even in functions that do something complex. Another trick I use is to have a method in clsOpenArgs that looks up the argument names in the properties collection of the form. If the name matches a property, the property is set to the value of the argument. This allows me to open a generic form and setup things like AllowEdits, AllowDeletes etc using arguments passed in to OpenArgs. Not always useful, but when I need to do something like this it is just automatic. Classic class programming. This code and more will be found in a book I am madly (but slowly) writing to be available at a bookseller near you sometime next year. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Tuesday, July 12, 2005 6:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change Reports Caption From Code On 7/12/05, Bob Heygood wrote: > Thanks to all who responded. The on open event is what I used. I thot > of it earlier, but thot twice about using a global variable. Not to > start another rant/discussion, but I feel this is a good example a > good use of a global. > > I am creating 79 PDFs from code, which involves opening a report. The > neat news is that the reports caption property is what Acrobat uses > for the resulting file name. Hence my need to change the caption each > time I programmically open the report. > > > thanks again. > > bob You may wish to consider using OpenArgs. When calling the report via code, you can pass it arguments via the DoCmd.OpenReport, then with the OnOpen code, change the caption of the current report. I do this with an form that I use to determine date range (changes form caption to be the name of the report it is called to open) and it works like a charm. DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" Then in the on open handler: Caption = OpenArgs or something similar to fit your needs. -- HTH Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Jul 12 21:52:44 2005 From: john at winhaven.net (John Bartow) Date: Tue, 12 Jul 2005 21:52:44 -0500 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <003101c58746$4c43f630$6c7aa8c0@ColbyM6805> Message-ID: <200507130252.j6D2qqBK122764@pimout4-ext.prodigy.net> Ahhh, I can finally stop holding my breath! I threw my poor excuse of an answer out there just to keep this thread alive, I had a feeling you had this done in classes and I was just waiting for you to describe how you did it. :o) So your writing a book on it all! Can you feed some chapters out on it for proof reading purposes or something? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code >You may wish to consider using OpenArgs. In my framework I use a pair of classes for this purpose. Openargs (in my system) are in the format ArgName1=ArgValue1;ArgName2=ArgValue2;... With as many arguments as the developer needs to pass in to the form. clsOpenArg (singular) is a simple class with a name/value pair of variables and properties to read them back out. clsOpenArgs (plural) is the "supervisor" It is passed the openarg string by the form class. It parses the openargs and creates an instance of clsOpenArg for each openarg passed in, saving each instance in a colOpenArgs using the argument name as the key. The nice thing about using a class pair like this is that the form (or report) then has a place to go to retrieve the arguments in a consistent manner. You (the developer) no longer need to parse arguments inside any form that has arguments passed it, just instantiate the supervisor (clsOpenArgs (plural)) and pass in the openargs string (in OnOpen of the form / report) and then just read out the argument values using variable names that you know exist because you set them. For example: OpenArgs - FormCaption=MyForm;lblCompanyName=Colby Consulting;...MoreArgs=MoreValues; In the form or report header, you dim an instance of the supervisor class Dim lclsOpenArgs As clsOpenArgs In OnOpen you set up the class and pass in the openargs, then just reference the arguments: Private Sub Form_Open(Cancel As Integer) lclsOpenArgs = New clsOpenArgs With lclsOpenArgs .OpenArgs = Me.OpenArgs ...the .OpenArgs method accepts the openargs string and parses them, placing them into OpenArg class instances, then placing those class instances in a colOpenArgs keyed on the argument name. lblCompanyName.Caption = .Arg("lblCompanyName") Me.Caption = .Arg("FormCaption") End With End Sub As you can see, the form code then just reads the argument values out by passing in the name of an OpenArg it expects to receive and does something with that value. You can have one or 40 openargs, and clsOpenArgs just parses them and gets them ready to use. The form can read the values out of the supervisor class clsOpenArgs by name. The form class can read the values out anywhere they are needed, in any event or even in functions that do something complex. Another trick I use is to have a method in clsOpenArgs that looks up the argument names in the properties collection of the form. If the name matches a property, the property is set to the value of the argument. This allows me to open a generic form and setup things like AllowEdits, AllowDeletes etc using arguments passed in to OpenArgs. Not always useful, but when I need to do something like this it is just automatic. Classic class programming. This code and more will be found in a book I am madly (but slowly) writing to be available at a bookseller near you sometime next year. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Tuesday, July 12, 2005 6:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change Reports Caption From Code On 7/12/05, Bob Heygood wrote: > Thanks to all who responded. The on open event is what I used. I thot > of it earlier, but thot twice about using a global variable. Not to > start another rant/discussion, but I feel this is a good example a > good use of a global. > > I am creating 79 PDFs from code, which involves opening a report. The > neat news is that the reports caption property is what Acrobat uses > for the resulting file name. Hence my need to change the caption each > time I programmically open the report. > > > thanks again. > > bob You may wish to consider using OpenArgs. When calling the report via code, you can pass it arguments via the DoCmd.OpenReport, then with the OnOpen code, change the caption of the current report. I do this with an form that I use to determine date range (changes form caption to be the name of the report it is called to open) and it works like a charm. DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" Then in the on open handler: Caption = OpenArgs or something similar to fit your needs. -- HTH Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jul 12 22:44:57 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 12 Jul 2005 23:44:57 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <200507130252.j6D2qqBK122764@pimout4-ext.prodigy.net> Message-ID: <003201c5875d$42e13190$6c7aa8c0@ColbyM6805> Around the end of last year, I started rewriting my framework for the third time, in fact I now call it C2DbFW3G meaning 3rd generation. It is Access2K or better - A97 not supported mostly because I use RaiseEvents which are unsupported in A97. This version is still not fully fleshed out simply because I have ported (rewritten) the old 2nd generation framework piece by piece as I needed the modules, and I haven't needed the form / control stuff that I had in the 2G version. In fact I started on it because of a project that is generating reports for a client. The application is a report system for a call center for short term disability insurance. I (re)wrote the call center software from scratch but the reporting stuff kinda sorta worked and I never rewrote it from scratch. The insurance company that hires my client to do the call center is completely changing THEIR software, which now supports completely automated data feeds. In the past, my system generated Word documents with "new claim notices" and "advise to pay" notices. These reports were generated automatically and attached to emails to the insurer, where they were opened and keyed in to the system. Because it was always done that way! Sigh. It always sucked, errors on their end keying in the reports etc. So... Since the new system takes an automated feed, fixed width fields, text files, FTPd to a site where it is opened and loaded in to the system automatically, I had the opportunity to rebuild this reporting thing from scratch. The kinds of framework things I needed for this application were distinctly different from the framework things I needed for a typical form based data entry / call center application. At the same time, entire pieces are pretty similar or even identical. So I yanked the useful classes and code other than form / control stuff from the 2G framework, took the opportunity to clean it up a LOT, and "started from scratch", although not exactly as I have intimated. The result is a lot cleaner, even more heavily class based, and uses a "service plug-in" concept. A framework is really about providing services to an application. These services may be clearly a service, such as logging to text files, zipping / unzipping files, encryption etc., or they may be less clearly a service, such as a form class that loads control classes that provide record selectors, JIT subforms, OpenArgs etc. In the end though, even these are just services to an application. What I am trying very hard to do this time is set up the framework to allow plug-in services where the service is loaded if it is needed, with a "socket" kind of interface - at least for the non-form based services. Things like SysVars, Zip/Unzip, logging etc are really easy to do this with. The classes exist and if the application wants a logger it asks for one. It is stored in a collection keyed by name and the app can then use it by calling a .log method of the framework, passing the name of the logger and the text to log. If a logger by that name isn't loaded, it loads and then stores the text that needs to be stored in the log file. Like that. It turns out that a log file like that works well for these NCN and ATP reports. The application asks for an NCN log, gathers the data and builds up the fixed width field strings. When each string (NCN or ATP record) is finished, the app just writes it to the log file. When all the records are written to the log file, the file is emailed or FTPd as desired. The log and the email or FTP is just a service. The APPLICATION has to build ATP and NCN reports, but it just asks the framework for a log and when the log is done, asks the framework to email or FTP the log somewhere. Services. Neat stuff and lots of fun to do. As for the book, well... I have worked on a couple of books for Wrox, but they gave a lukewarm reception to the idea of this stuff written into a book. I am just "doing it myself" and will then pitch it when it is closer to written. Sometimes the powers that be just don't "get" what you want to do. Or maybe it just won't sell and I'll be sitting on a years worth of writing. I have never seen a book like this for the Access arena so I just want to do it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, July 12, 2005 10:53 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code Ahhh, I can finally stop holding my breath! I threw my poor excuse of an answer out there just to keep this thread alive, I had a feeling you had this done in classes and I was just waiting for you to describe how you did it. :o) So your writing a book on it all! Can you feed some chapters out on it for proof reading purposes or something? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code >You may wish to consider using OpenArgs. In my framework I use a pair of classes for this purpose. Openargs (in my system) are in the format ArgName1=ArgValue1;ArgName2=ArgValue2;... With as many arguments as the developer needs to pass in to the form. clsOpenArg (singular) is a simple class with a name/value pair of variables and properties to read them back out. clsOpenArgs (plural) is the "supervisor" It is passed the openarg string by the form class. It parses the openargs and creates an instance of clsOpenArg for each openarg passed in, saving each instance in a colOpenArgs using the argument name as the key. The nice thing about using a class pair like this is that the form (or report) then has a place to go to retrieve the arguments in a consistent manner. You (the developer) no longer need to parse arguments inside any form that has arguments passed it, just instantiate the supervisor (clsOpenArgs (plural)) and pass in the openargs string (in OnOpen of the form / report) and then just read out the argument values using variable names that you know exist because you set them. For example: OpenArgs - FormCaption=MyForm;lblCompanyName=Colby Consulting;...MoreArgs=MoreValues; In the form or report header, you dim an instance of the supervisor class Dim lclsOpenArgs As clsOpenArgs In OnOpen you set up the class and pass in the openargs, then just reference the arguments: Private Sub Form_Open(Cancel As Integer) lclsOpenArgs = New clsOpenArgs With lclsOpenArgs .OpenArgs = Me.OpenArgs ...the .OpenArgs method accepts the openargs string and parses them, placing them into OpenArg class instances, then placing those class instances in a colOpenArgs keyed on the argument name. lblCompanyName.Caption = .Arg("lblCompanyName") Me.Caption = .Arg("FormCaption") End With End Sub As you can see, the form code then just reads the argument values out by passing in the name of an OpenArg it expects to receive and does something with that value. You can have one or 40 openargs, and clsOpenArgs just parses them and gets them ready to use. The form can read the values out of the supervisor class clsOpenArgs by name. The form class can read the values out anywhere they are needed, in any event or even in functions that do something complex. Another trick I use is to have a method in clsOpenArgs that looks up the argument names in the properties collection of the form. If the name matches a property, the property is set to the value of the argument. This allows me to open a generic form and setup things like AllowEdits, AllowDeletes etc using arguments passed in to OpenArgs. Not always useful, but when I need to do something like this it is just automatic. Classic class programming. This code and more will be found in a book I am madly (but slowly) writing to be available at a bookseller near you sometime next year. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Tuesday, July 12, 2005 6:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change Reports Caption From Code On 7/12/05, Bob Heygood wrote: > Thanks to all who responded. The on open event is what I used. I thot > of it earlier, but thot twice about using a global variable. Not to > start another rant/discussion, but I feel this is a good example a > good use of a global. > > I am creating 79 PDFs from code, which involves opening a report. The > neat news is that the reports caption property is what Acrobat uses > for the resulting file name. Hence my need to change the caption each > time I programmically open the report. > > > thanks again. > > bob You may wish to consider using OpenArgs. When calling the report via code, you can pass it arguments via the DoCmd.OpenReport, then with the OnOpen code, change the caption of the current report. I do this with an form that I use to determine date range (changes form caption to be the name of the report it is called to open) and it works like a charm. DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" Then in the on open handler: Caption = OpenArgs or something similar to fit your needs. -- HTH Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 at winhaven.net Tue Jul 12 23:45:26 2005 From: john at winhaven.net (John Bartow) Date: Tue, 12 Jul 2005 23:45:26 -0500 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <003201c5875d$42e13190$6c7aa8c0@ColbyM6805> Message-ID: <200507130445.j6D4jX38247366@pimout4-ext.prodigy.net> Sounds interesting! The book would target a very specific audience and I suppose that bodes low returns for a publisher. The downside of capitalism :o( You could probably bring Susan on as editor and have the benefit of her connections. I don't know if you lurk the OT list or not but she has been doing children's books in addition to her technical articles. She seems to be the most prolific author for Access Advisor magazine lately. Works in conjunction with a lot of past and present DBA people. I think this last issue she did an article with Mike Gunderloy and the one before with Gustav Brock. I could proof read it for you too. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 10:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Framework book - was caption from code Around the end of last year, I started rewriting my framework for the third time, in fact I now call it C2DbFW3G meaning 3rd generation. It is Access2K or better - A97 not supported mostly because I use RaiseEvents which are unsupported in A97. This version is still not fully fleshed out simply because I have ported (rewritten) the old 2nd generation framework piece by piece as I needed the modules, and I haven't needed the form / control stuff that I had in the 2G version. In fact I started on it because of a project that is generating reports for a client. The application is a report system for a call center for short term disability insurance. I (re)wrote the call center software from scratch but the reporting stuff kinda sorta worked and I never rewrote it from scratch. The insurance company that hires my client to do the call center is completely changing THEIR software, which now supports completely automated data feeds. In the past, my system generated Word documents with "new claim notices" and "advise to pay" notices. These reports were generated automatically and attached to emails to the insurer, where they were opened and keyed in to the system. Because it was always done that way! Sigh. It always sucked, errors on their end keying in the reports etc. So... Since the new system takes an automated feed, fixed width fields, text files, FTPd to a site where it is opened and loaded in to the system automatically, I had the opportunity to rebuild this reporting thing from scratch. The kinds of framework things I needed for this application were distinctly different from the framework things I needed for a typical form based data entry / call center application. At the same time, entire pieces are pretty similar or even identical. So I yanked the useful classes and code other than form / control stuff from the 2G framework, took the opportunity to clean it up a LOT, and "started from scratch", although not exactly as I have intimated. The result is a lot cleaner, even more heavily class based, and uses a "service plug-in" concept. A framework is really about providing services to an application. These services may be clearly a service, such as logging to text files, zipping / unzipping files, encryption etc., or they may be less clearly a service, such as a form class that loads control classes that provide record selectors, JIT subforms, OpenArgs etc. In the end though, even these are just services to an application. What I am trying very hard to do this time is set up the framework to allow plug-in services where the service is loaded if it is needed, with a "socket" kind of interface - at least for the non-form based services. Things like SysVars, Zip/Unzip, logging etc are really easy to do this with. The classes exist and if the application wants a logger it asks for one. It is stored in a collection keyed by name and the app can then use it by calling a .log method of the framework, passing the name of the logger and the text to log. If a logger by that name isn't loaded, it loads and then stores the text that needs to be stored in the log file. Like that. It turns out that a log file like that works well for these NCN and ATP reports. The application asks for an NCN log, gathers the data and builds up the fixed width field strings. When each string (NCN or ATP record) is finished, the app just writes it to the log file. When all the records are written to the log file, the file is emailed or FTPd as desired. The log and the email or FTP is just a service. The APPLICATION has to build ATP and NCN reports, but it just asks the framework for a log and when the log is done, asks the framework to email or FTP the log somewhere. Services. Neat stuff and lots of fun to do. As for the book, well... I have worked on a couple of books for Wrox, but they gave a lukewarm reception to the idea of this stuff written into a book. I am just "doing it myself" and will then pitch it when it is closer to written. Sometimes the powers that be just don't "get" what you want to do. Or maybe it just won't sell and I'll be sitting on a years worth of writing. I have never seen a book like this for the Access arena so I just want to do it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, July 12, 2005 10:53 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code Ahhh, I can finally stop holding my breath! I threw my poor excuse of an answer out there just to keep this thread alive, I had a feeling you had this done in classes and I was just waiting for you to describe how you did it. :o) So your writing a book on it all! Can you feed some chapters out on it for proof reading purposes or something? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code >You may wish to consider using OpenArgs. In my framework I use a pair of classes for this purpose. Openargs (in my system) are in the format ArgName1=ArgValue1;ArgName2=ArgValue2;... With as many arguments as the developer needs to pass in to the form. clsOpenArg (singular) is a simple class with a name/value pair of variables and properties to read them back out. clsOpenArgs (plural) is the "supervisor" It is passed the openarg string by the form class. It parses the openargs and creates an instance of clsOpenArg for each openarg passed in, saving each instance in a colOpenArgs using the argument name as the key. The nice thing about using a class pair like this is that the form (or report) then has a place to go to retrieve the arguments in a consistent manner. You (the developer) no longer need to parse arguments inside any form that has arguments passed it, just instantiate the supervisor (clsOpenArgs (plural)) and pass in the openargs string (in OnOpen of the form / report) and then just read out the argument values using variable names that you know exist because you set them. For example: OpenArgs - FormCaption=MyForm;lblCompanyName=Colby Consulting;...MoreArgs=MoreValues; In the form or report header, you dim an instance of the supervisor class Dim lclsOpenArgs As clsOpenArgs In OnOpen you set up the class and pass in the openargs, then just reference the arguments: Private Sub Form_Open(Cancel As Integer) lclsOpenArgs = New clsOpenArgs With lclsOpenArgs .OpenArgs = Me.OpenArgs ...the .OpenArgs method accepts the openargs string and parses them, placing them into OpenArg class instances, then placing those class instances in a colOpenArgs keyed on the argument name. lblCompanyName.Caption = .Arg("lblCompanyName") Me.Caption = .Arg("FormCaption") End With End Sub As you can see, the form code then just reads the argument values out by passing in the name of an OpenArg it expects to receive and does something with that value. You can have one or 40 openargs, and clsOpenArgs just parses them and gets them ready to use. The form can read the values out of the supervisor class clsOpenArgs by name. The form class can read the values out anywhere they are needed, in any event or even in functions that do something complex. Another trick I use is to have a method in clsOpenArgs that looks up the argument names in the properties collection of the form. If the name matches a property, the property is set to the value of the argument. This allows me to open a generic form and setup things like AllowEdits, AllowDeletes etc using arguments passed in to OpenArgs. Not always useful, but when I need to do something like this it is just automatic. Classic class programming. This code and more will be found in a book I am madly (but slowly) writing to be available at a bookseller near you sometime next year. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Tuesday, July 12, 2005 6:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change Reports Caption From Code On 7/12/05, Bob Heygood wrote: > Thanks to all who responded. The on open event is what I used. I thot > of it earlier, but thot twice about using a global variable. Not to > start another rant/discussion, but I feel this is a good example a > good use of a global. > > I am creating 79 PDFs from code, which involves opening a report. The > neat news is that the reports caption property is what Acrobat uses > for the resulting file name. Hence my need to change the caption each > time I programmically open the report. > > > thanks again. > > bob You may wish to consider using OpenArgs. When calling the report via code, you can pass it arguments via the DoCmd.OpenReport, then with the OnOpen code, change the caption of the current report. I do this with an form that I use to determine date range (changes form caption to be the name of the report it is called to open) and it works like a charm. DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" Then in the on open handler: Caption = OpenArgs or something similar to fit your needs. -- HTH Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 13 01:29:24 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 12 Jul 2005 23:29:24 -0700 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <003201c5875d$42e13190$6c7aa8c0@ColbyM6805> Message-ID: <0IJJ00F1DZCXNY@l-daemon> Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 8:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Framework book - was caption from code Around the end of last year, I started rewriting my framework for the third time, in fact I now call it C2DbFW3G meaning 3rd generation. It is Access2K or better - A97 not supported mostly because I use RaiseEvents which are unsupported in A97. This version is still not fully fleshed out simply because I have ported (rewritten) the old 2nd generation framework piece by piece as I needed the modules, and I haven't needed the form / control stuff that I had in the 2G version. In fact I started on it because of a project that is generating reports for a client. The application is a report system for a call center for short term disability insurance. I (re)wrote the call center software from scratch but the reporting stuff kinda sorta worked and I never rewrote it from scratch. The insurance company that hires my client to do the call center is completely changing THEIR software, which now supports completely automated data feeds. In the past, my system generated Word documents with "new claim notices" and "advise to pay" notices. These reports were generated automatically and attached to emails to the insurer, where they were opened and keyed in to the system. Because it was always done that way! Sigh. It always sucked, errors on their end keying in the reports etc. So... Since the new system takes an automated feed, fixed width fields, text files, FTPd to a site where it is opened and loaded in to the system automatically, I had the opportunity to rebuild this reporting thing from scratch. The kinds of framework things I needed for this application were distinctly different from the framework things I needed for a typical form based data entry / call center application. At the same time, entire pieces are pretty similar or even identical. So I yanked the useful classes and code other than form / control stuff from the 2G framework, took the opportunity to clean it up a LOT, and "started from scratch", although not exactly as I have intimated. The result is a lot cleaner, even more heavily class based, and uses a "service plug-in" concept. A framework is really about providing services to an application. These services may be clearly a service, such as logging to text files, zipping / unzipping files, encryption etc., or they may be less clearly a service, such as a form class that loads control classes that provide record selectors, JIT subforms, OpenArgs etc. In the end though, even these are just services to an application. What I am trying very hard to do this time is set up the framework to allow plug-in services where the service is loaded if it is needed, with a "socket" kind of interface - at least for the non-form based services. Things like SysVars, Zip/Unzip, logging etc are really easy to do this with. The classes exist and if the application wants a logger it asks for one. It is stored in a collection keyed by name and the app can then use it by calling a .log method of the framework, passing the name of the logger and the text to log. If a logger by that name isn't loaded, it loads and then stores the text that needs to be stored in the log file. Like that. It turns out that a log file like that works well for these NCN and ATP reports. The application asks for an NCN log, gathers the data and builds up the fixed width field strings. When each string (NCN or ATP record) is finished, the app just writes it to the log file. When all the records are written to the log file, the file is emailed or FTPd as desired. The log and the email or FTP is just a service. The APPLICATION has to build ATP and NCN reports, but it just asks the framework for a log and when the log is done, asks the framework to email or FTP the log somewhere. Services. Neat stuff and lots of fun to do. As for the book, well... I have worked on a couple of books for Wrox, but they gave a lukewarm reception to the idea of this stuff written into a book. I am just "doing it myself" and will then pitch it when it is closer to written. Sometimes the powers that be just don't "get" what you want to do. Or maybe it just won't sell and I'll be sitting on a years worth of writing. I have never seen a book like this for the Access arena so I just want to do it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, July 12, 2005 10:53 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code Ahhh, I can finally stop holding my breath! I threw my poor excuse of an answer out there just to keep this thread alive, I had a feeling you had this done in classes and I was just waiting for you to describe how you did it. :o) So your writing a book on it all! Can you feed some chapters out on it for proof reading purposes or something? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 8:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code >You may wish to consider using OpenArgs. In my framework I use a pair of classes for this purpose. Openargs (in my system) are in the format ArgName1=ArgValue1;ArgName2=ArgValue2;... With as many arguments as the developer needs to pass in to the form. clsOpenArg (singular) is a simple class with a name/value pair of variables and properties to read them back out. clsOpenArgs (plural) is the "supervisor" It is passed the openarg string by the form class. It parses the openargs and creates an instance of clsOpenArg for each openarg passed in, saving each instance in a colOpenArgs using the argument name as the key. The nice thing about using a class pair like this is that the form (or report) then has a place to go to retrieve the arguments in a consistent manner. You (the developer) no longer need to parse arguments inside any form that has arguments passed it, just instantiate the supervisor (clsOpenArgs (plural)) and pass in the openargs string (in OnOpen of the form / report) and then just read out the argument values using variable names that you know exist because you set them. For example: OpenArgs - FormCaption=MyForm;lblCompanyName=Colby Consulting;...MoreArgs=MoreValues; In the form or report header, you dim an instance of the supervisor class Dim lclsOpenArgs As clsOpenArgs In OnOpen you set up the class and pass in the openargs, then just reference the arguments: Private Sub Form_Open(Cancel As Integer) lclsOpenArgs = New clsOpenArgs With lclsOpenArgs .OpenArgs = Me.OpenArgs ...the .OpenArgs method accepts the openargs string and parses them, placing them into OpenArg class instances, then placing those class instances in a colOpenArgs keyed on the argument name. lblCompanyName.Caption = .Arg("lblCompanyName") Me.Caption = .Arg("FormCaption") End With End Sub As you can see, the form code then just reads the argument values out by passing in the name of an OpenArg it expects to receive and does something with that value. You can have one or 40 openargs, and clsOpenArgs just parses them and gets them ready to use. The form can read the values out of the supervisor class clsOpenArgs by name. The form class can read the values out anywhere they are needed, in any event or even in functions that do something complex. Another trick I use is to have a method in clsOpenArgs that looks up the argument names in the properties collection of the form. If the name matches a property, the property is set to the value of the argument. This allows me to open a generic form and setup things like AllowEdits, AllowDeletes etc using arguments passed in to OpenArgs. Not always useful, but when I need to do something like this it is just automatic. Classic class programming. This code and more will be found in a book I am madly (but slowly) writing to be available at a bookseller near you sometime next year. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Tuesday, July 12, 2005 6:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change Reports Caption From Code On 7/12/05, Bob Heygood wrote: > Thanks to all who responded. The on open event is what I used. I thot > of it earlier, but thot twice about using a global variable. Not to > start another rant/discussion, but I feel this is a good example a > good use of a global. > > I am creating 79 PDFs from code, which involves opening a report. The > neat news is that the reports caption property is what Acrobat uses > for the resulting file name. Hence my need to change the caption each > time I programmically open the report. > > > thanks again. > > bob You may wish to consider using OpenArgs. When calling the report via code, you can pass it arguments via the DoCmd.OpenReport, then with the OnOpen code, change the caption of the current report. I do this with an form that I use to determine date range (changes form caption to be the name of the report it is called to open) and it works like a charm. DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" Then in the on open handler: Caption = OpenArgs or something similar to fit your needs. -- HTH Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 martyconnelly at shaw.ca Wed Jul 13 01:56:04 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 12 Jul 2005 23:56:04 -0700 Subject: [AccessD] Multilingual Access References: <200507120928.j6C9SPR00380@databaseadvisors.com> Message-ID: <42D4BB04.8070809@shaw.ca> Rocky just went through that maybe he can supply the gory details. Some sites that might help http://www.microsoft.com/office/editions/prodinfo/language/default.mspx http://www.microsoft.com/office/editions/prodinfo/language/localized.mspx You might also want to read your way through this MS Globalization site http://www.microsoft.com/globaldev and Dr. International's Faq's http://www.microsoft.com/globaldev/drintl/ Maybe this Russian(Moscow Access User Group) developed Access Translator might help with Captions and Controls. Translator collects text information from Access Forms, Reports and Command bars and its controls - labels, textboxes, etc. Then developer translates collected text to other languages, and at last Translator writes translated text back to Access controls. Demo version available. Michael Kaplan gives it a thumbs up. Although not sure if it handles Bidi langauges like arabic and hebrew. Or chinese which might require an IME http://c85.cemi.rssi.ru/access/Downloads/Trans/Trans.asp Michael Laferriere wrote: >Hi Folks - We developed an Access 2002 database >in English. The client wants to create a copy of the database and prep it >for the Chinese language. Does anyone know what's involved? Or where to start? Thanks. > > > >Michael > > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Wed Jul 13 06:35:15 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 13 Jul 2005 07:35:15 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <0IJJ00F1DZCXNY@l-daemon> Message-ID: <002101c5879e$f3d65660$6c7aa8c0@ColbyM6805> Jim, My framework (the part that had to do with forms and controls) was indeed aimed at bound forms. However the concept works for unbound forms as well. Indeed it would be even more critical to use a framework as you the developer are doing so much of the work that Access was doing for you - loading all of the data into the controls, checking for updates to the data by other people before you wrote changes back to the table, writing the data back from controls into fields in the tables, stuff like that. All of that code would be framework material. Once written and stored in the framework, the doing of it would be automatic by the framework. If you are one of the unholy (unbounders) why don't you give a thumbnail sketch of how you manage all of that work. I will then brainstorm how I would look at doing it in a framework. Remember that the concept of a framework is to make it as automatic as possible. For example (in a bound form) I have a form class and I have a class for each control type. The form class runs a control scanner, gets the control type of each control, loads a class instance for each control found. Once this is done, the form class and control classes can work together to do tasks. As an example, I can literally just drop a pair of controls on the form, a text box named RecID that exposes (is bound to) the PK (always an autonumber) and an unbound combo called RecSel. The names are specific and if the control scanner finds this pair of controls it knows that a record selector exists and runs the code. The afterupdate of the combo by that name calls a method of the parent form saying "move to recid XXXX". The column 0 of the combo is the PK of the record in the form so it knows the PK. The form's OnCurrent knows that it needs to keep the combo synced to the displayed record in the form so it calls a method of the combo class telling it to display the data relevant to the current record in the form. Thus the form, the combo and a text box all work as a system to form a record selector. If the developer drops these two controls on the form he "just has" a record selector. Nothing else is required - other than binding RecSel to the PK field and setting the combo's query to display the data and get the PK of the records in the table. As an unbounder, you need to think about how to achieve this kind of "automaticness" in the things you do. Naturally some tasks do require feeding data into init() methods of classes to set the classes up to do their job. After that though the "systems" need to just work together. Load the data into the unbound form / controls. Store flags in each control's class saying that control's data was modified. Scan for all controls with modified data and update the underlying data in the record. Check for data changes in the data you are about to update and inform the user that another user edited the record since you loaded the data. Etc. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 2:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) Jim From jimdettman at earthlink.net Wed Jul 13 06:55:07 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 13 Jul 2005 07:55:07 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <002101c5879e$f3d65660$6c7aa8c0@ColbyM6805> Message-ID: John, <> There was a discussion long ago on this very point; why there were not more frameworks available for Access. The consensus at the time was that Access did a lot of what a traditional framework did for you. For example, I work with VMP which is a framework for VFP and one of the base services it offers is PK generation. Foxpro for the longest time didn't have an Autonumber, while Access has had this from day one. The other problem was that Access did not provide many hooks, so it was difficult to achieve certain things. A lot has changed since then and yet there is still a fundamental lack of frameworks for Access. It's strange to because in working with many applications, I see that other developers have come up with things to solve the very same problems (PK generation, pick lists, calendars, etc). I'm still scratching my head as to why. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, July 13, 2005 7:35 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Jim, My framework (the part that had to do with forms and controls) was indeed aimed at bound forms. However the concept works for unbound forms as well. Indeed it would be even more critical to use a framework as you the developer are doing so much of the work that Access was doing for you - loading all of the data into the controls, checking for updates to the data by other people before you wrote changes back to the table, writing the data back from controls into fields in the tables, stuff like that. All of that code would be framework material. Once written and stored in the framework, the doing of it would be automatic by the framework. If you are one of the unholy (unbounders) why don't you give a thumbnail sketch of how you manage all of that work. I will then brainstorm how I would look at doing it in a framework. Remember that the concept of a framework is to make it as automatic as possible. For example (in a bound form) I have a form class and I have a class for each control type. The form class runs a control scanner, gets the control type of each control, loads a class instance for each control found. Once this is done, the form class and control classes can work together to do tasks. As an example, I can literally just drop a pair of controls on the form, a text box named RecID that exposes (is bound to) the PK (always an autonumber) and an unbound combo called RecSel. The names are specific and if the control scanner finds this pair of controls it knows that a record selector exists and runs the code. The afterupdate of the combo by that name calls a method of the parent form saying "move to recid XXXX". The column 0 of the combo is the PK of the record in the form so it knows the PK. The form's OnCurrent knows that it needs to keep the combo synced to the displayed record in the form so it calls a method of the combo class telling it to display the data relevant to the current record in the form. Thus the form, the combo and a text box all work as a system to form a record selector. If the developer drops these two controls on the form he "just has" a record selector. Nothing else is required - other than binding RecSel to the PK field and setting the combo's query to display the data and get the PK of the records in the table. As an unbounder, you need to think about how to achieve this kind of "automaticness" in the things you do. Naturally some tasks do require feeding data into init() methods of classes to set the classes up to do their job. After that though the "systems" need to just work together. Load the data into the unbound form / controls. Store flags in each control's class saying that control's data was modified. Scan for all controls with modified data and update the underlying data in the record. Check for data changes in the data you are about to update and inform the user that another user edited the record since you loaded the data. Etc. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 2:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Wed Jul 13 08:08:42 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 13 Jul 2005 09:08:42 -0400 Subject: [AccessD] Reading DIF format (A97 etc) Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F12CDC123@xlivmbx21.aig.com> Did I say it made no sense? Did I say I could not understand it? Did I say it turned my brain to mush looking at the *unconventional* syntax? No. I answered another liseter's question. Someone who *did not* understand it. That is why I diplomatically described it as "a little confusing". Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, July 12, 2005 6:08 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reading DIF format (A97 etc) On 12 Jul 2005 at 11:06, Heenan, Lambert wrote: > This is piece of shorthand code writing (possibly the author learned > to code in the terse world of C/C++ ???), Never learnt C/C++ , I've never found a need to :-) > but I would not use it personally, simply > because it is a little confusing to read. Why is it confusing? You know that Split() returns an array, so why not just index it. -- Stuart -- 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 Jul 13 08:31:48 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 13 Jul 2005 08:31:48 -0500 Subject: [AccessD] Cannot delete from specified tables Message-ID: When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 From mikedorism at verizon.net Wed Jul 13 09:54:45 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Wed, 13 Jul 2005 10:54:45 -0400 Subject: [AccessD] Cannot delete from specified tables In-Reply-To: Message-ID: <000001c587ba$d0370260$2f01a8c0@dorismanning> Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- 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 Jul 13 10:06:42 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 13 Jul 2005 10:06:42 -0500 Subject: [AccessD] Cannot delete from specified tables Message-ID: Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 mikedorism at verizon.net Wed Jul 13 10:12:05 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Wed, 13 Jul 2005 11:12:05 -0400 Subject: [AccessD] Cannot delete from specified tables In-Reply-To: Message-ID: <000101c587bd$3b71a740$2f01a8c0@dorismanning> It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Chester_Kaup at kindermorgan.com Wed Jul 13 10:32:30 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 13 Jul 2005 10:32:30 -0500 Subject: [AccessD] Cannot delete from specified tables Message-ID: So for the ignorant here how do I know if I have non updateable query and what can I do about it? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 10:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Rich_Lavsa at pghcorning.com Wed Jul 13 10:39:53 2005 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Wed, 13 Jul 2005 11:39:53 -0400 Subject: [AccessD] Cannot delete from specified tables Message-ID: <2A261FF9D5EBCA46940C11688CE872EE01E96A18@goexchange2.pghcorning.com> I've recently had this very error 3086. I found no suggestions to my solution however came to realize that there was no records being returned thus causing the error, or so I believed this to be my cause. Because I call this query from code, I captured this error and exit the sub without any issues. To find out if you are returning any records, open the query in design mode then simply click on the "Datasheet View", this will show you what your results will be, but will not execute the delete command. Anyone else have any similar experiences with a delete query. My delete query contained a sub-query and was not doing any joins. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 11:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Chester_Kaup at kindermorgan.com Wed Jul 13 10:46:13 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 13 Jul 2005 10:46:13 -0500 Subject: [AccessD] Cannot delete from specified tables Message-ID: Datasheet view shows several hundred records to delete so something else is happening to prevent the records from being deleted. Thanks for the idea. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 13, 2005 10:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables I've recently had this very error 3086. I found no suggestions to my solution however came to realize that there was no records being returned thus causing the error, or so I believed this to be my cause. Because I call this query from code, I captured this error and exit the sub without any issues. To find out if you are returning any records, open the query in design mode then simply click on the "Datasheet View", this will show you what your results will be, but will not execute the delete command. Anyone else have any similar experiences with a delete query. My delete query contained a sub-query and was not doing any joins. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 11:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Wed Jul 13 10:54:11 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 13 Jul 2005 08:54:11 -0700 Subject: [AccessD] Cannot delete from specified tables Message-ID: Try adding the DISTINCTROW keyword to your query (or set the unique records property to true in the query properties) and see if that makes a difference. It often does. Charlotte Foust -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Wednesday, July 13, 2005 8:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Datasheet view shows several hundred records to delete so something else is happening to prevent the records from being deleted. Thanks for the idea. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 13, 2005 10:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables I've recently had this very error 3086. I found no suggestions to my solution however came to realize that there was no records being returned thus causing the error, or so I believed this to be my cause. Because I call this query from code, I captured this error and exit the sub without any issues. To find out if you are returning any records, open the query in design mode then simply click on the "Datasheet View", this will show you what your results will be, but will not execute the delete command. Anyone else have any similar experiences with a delete query. My delete query contained a sub-query and was not doing any joins. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 11:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 donald.a.Mcgillivray at mail.sprint.com Wed Jul 13 10:56:15 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Wed, 13 Jul 2005 10:56:15 -0500 Subject: [AccessD] Cannot delete from specified tables Message-ID: A delete query against an empty recordset simply exits without error. "DELETE * FROM tblMyTable WHERE tblMyTable.MyField = 2;" simply runs and exits if there are no MyFields in tblMyTable with values equal to 2. No error. I'd say that Doris's suspicion that the recordset is non-updateable is the more likely cause of Chester's problem. You may want to re-visit your code to ensure that you're not missing some other circumstance that is causing your delete queries to fail. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 13, 2005 8:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables I've recently had this very error 3086. I found no suggestions to my solution however came to realize that there was no records being returned thus causing the error, or so I believed this to be my cause. Because I call this query from code, I captured this error and exit the sub without any issues. To find out if you are returning any records, open the query in design mode then simply click on the "Datasheet View", this will show you what your results will be, but will not execute the delete command. Anyone else have any similar experiences with a delete query. My delete query contained a sub-query and was not doing any joins. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 11:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Chester_Kaup at kindermorgan.com Wed Jul 13 10:58:57 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 13 Jul 2005 10:58:57 -0500 Subject: [AccessD] Cannot delete from specified tables Message-ID: That made it work. Now my day is mush better. I did not want to delete 3000+ records by hand. Thanks all -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, July 13, 2005 10:54 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Try adding the DISTINCTROW keyword to your query (or set the unique records property to true in the query properties) and see if that makes a difference. It often does. Charlotte Foust -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Wednesday, July 13, 2005 8:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Datasheet view shows several hundred records to delete so something else is happening to prevent the records from being deleted. Thanks for the idea. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 13, 2005 10:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables I've recently had this very error 3086. I found no suggestions to my solution however came to realize that there was no records being returned thus causing the error, or so I believed this to be my cause. Because I call this query from code, I captured this error and exit the sub without any issues. To find out if you are returning any records, open the query in design mode then simply click on the "Datasheet View", this will show you what your results will be, but will not execute the delete command. Anyone else have any similar experiences with a delete query. My delete query contained a sub-query and was not doing any joins. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 11:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 accessd at shaw.ca Wed Jul 13 11:16:39 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 13 Jul 2005 09:16:39 -0700 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <002101c5879e$f3d65660$6c7aa8c0@ColbyM6805> Message-ID: <0IJK005EDQJPG2@l-daemon> Hi John: The methods I have used were designed about eight years ago and have copied/improved again and again. Here are the basics and a step by step methodology: 1. I always use ADO-OLE. (One exception is MySQL... a bit of a pain. If someone could figure out a method that would not require a station by station visit to install the MySQL ODBC drivers I would be for ever indebted.) 2. The forms and subforms are populated as the user moves through the records and but until the user actually changes field content on a form or attempts to delete the current record, the recordset used to feed the form is static. 3. a) A record or group of records in the case of a subform being displayed, are first pulled into a recordset, and content are then used to populate the form collection. In theory the record exists in three places. b) If there is a change of deletion request the recordset is locked by creating a dynamic recordset with record-lock attribute. c) If an 'already locked' error occurs when this lock is being applied then the user is informed of the condition and given the appropriate options. d) When using a 'real' :-) SQL DB (MS SQL/Oracle etc.) much of the record handling is managed internally as soon as the 'BeginTrans' is applied and closed or resolved when the 'CommitTrans' or 'RollbackTrans' runs. It may initially seem a little complex but it gives a full range of options for managing the data and it allows the client to build large databases with many users and only requires the purchase a few licenses/seats. (ie. 20 licenses and 100 users.) Using ADO makes is easy to switch or attach different data sources with little effort. (In theory one line of code.) Even web applications can be created leveraging the same methods. That is not totally true but given that SQL versions are standardizing coupled with the use of Store Procedures/Queries, with passing parameters, very few changes are needed. I am still pacing around the XML pool but believe in the long run that is where to go. So there is the 'thumb-nail' sketch of the 'non-bounder' application implementation methodology. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, July 13, 2005 4:35 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Jim, My framework (the part that had to do with forms and controls) was indeed aimed at bound forms. However the concept works for unbound forms as well. Indeed it would be even more critical to use a framework as you the developer are doing so much of the work that Access was doing for you - loading all of the data into the controls, checking for updates to the data by other people before you wrote changes back to the table, writing the data back from controls into fields in the tables, stuff like that. All of that code would be framework material. Once written and stored in the framework, the doing of it would be automatic by the framework. If you are one of the unholy (unbounders) why don't you give a thumbnail sketch of how you manage all of that work. I will then brainstorm how I would look at doing it in a framework. Remember that the concept of a framework is to make it as automatic as possible. For example (in a bound form) I have a form class and I have a class for each control type. The form class runs a control scanner, gets the control type of each control, loads a class instance for each control found. Once this is done, the form class and control classes can work together to do tasks. As an example, I can literally just drop a pair of controls on the form, a text box named RecID that exposes (is bound to) the PK (always an autonumber) and an unbound combo called RecSel. The names are specific and if the control scanner finds this pair of controls it knows that a record selector exists and runs the code. The afterupdate of the combo by that name calls a method of the parent form saying "move to recid XXXX". The column 0 of the combo is the PK of the record in the form so it knows the PK. The form's OnCurrent knows that it needs to keep the combo synced to the displayed record in the form so it calls a method of the combo class telling it to display the data relevant to the current record in the form. Thus the form, the combo and a text box all work as a system to form a record selector. If the developer drops these two controls on the form he "just has" a record selector. Nothing else is required - other than binding RecSel to the PK field and setting the combo's query to display the data and get the PK of the records in the table. As an unbounder, you need to think about how to achieve this kind of "automaticness" in the things you do. Naturally some tasks do require feeding data into init() methods of classes to set the classes up to do their job. After that though the "systems" need to just work together. Load the data into the unbound form / controls. Store flags in each control's class saying that control's data was modified. Scan for all controls with modified data and update the underlying data in the record. Check for data changes in the data you are about to update and inform the user that another user edited the record since you loaded the data. Etc. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 2:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Jul 13 12:05:59 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 13 Jul 2005 10:05:59 -0700 Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book References: <0IJK005EDQJPG2@l-daemon> Message-ID: <42D549F7.8090307@shaw.ca> Got this today from my local dotnet usergroup in Victoria http://www.vicdotnet.org Microsoft has been releasing a lot of .NET 2.0 and SQL Server 2005 training resources over the last little while, gearing up for the release of both in November. Here are a few of the highlights. These free offers have a decent retail value, and are only available for free for a "limited" time (though we aren't exactly sure what that means): Training Courses ASP.NET: http://msdn.microsoft.com/asp.net/learn/asptraining/ Visual Studio 2005: https://www.microsoftelearning.com/visualstudio2005/ SQL Server 2005: https://www.microsoftelearning.com/sqlserver2005/ Free VB.NET 2005 ebook: http://msdn.microsoft.com/vbasic/whidbey/introto2005/ 22.5 Meg download http://www.vicdotnet.org -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Wed Jul 13 12:15:29 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 13 Jul 2005 10:15:29 -0700 Subject: OT: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book In-Reply-To: <42D549F7.8090307@shaw.ca> Message-ID: <0IJK00A6ZT9QEQ@l-daemon> Hi Marty: Have we ever met? My daughter's boy-friend, another geek and my self have regularly attended the dotnet usergroup meetings and have never heard you name bandied about. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, July 13, 2005 10:06 AM To: Access Developers discussion and problem solving Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book Got this today from my local dotnet usergroup in Victoria http://www.vicdotnet.org Microsoft has been releasing a lot of .NET 2.0 and SQL Server 2005 training resources over the last little while, gearing up for the release of both in November. Here are a few of the highlights. These free offers have a decent retail value, and are only available for free for a "limited" time (though we aren't exactly sure what that means): Training Courses ASP.NET: http://msdn.microsoft.com/asp.net/learn/asptraining/ Visual Studio 2005: https://www.microsoftelearning.com/visualstudio2005/ SQL Server 2005: https://www.microsoftelearning.com/sqlserver2005/ Free VB.NET 2005 ebook: http://msdn.microsoft.com/vbasic/whidbey/introto2005/ 22.5 Meg download http://www.vicdotnet.org -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Rich_Lavsa at pghcorning.com Wed Jul 13 12:34:03 2005 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Wed, 13 Jul 2005 13:34:03 -0400 Subject: [AccessD] Cannot delete from specified tables Message-ID: <2A261FF9D5EBCA46940C11688CE872EE01E96A1B@goexchange2.pghcorning.com> I tried the DistinctRow and checked to see if it was updateable. I did do testing on a statement that returns no records to delete and yes I agree that it simply exits without error. However I noticed that in those cases if you did a view datasheet you saw a single blank record, and in the case where I get an error I get no record at all.. Just the titles of the fields. After typing the above comments I thought of something... The subquery is actually querying a stored procedure, which is not updatable. So I simulated that query using Linked Tables to SQL Server which seemed to do the trick. So from this I gather that the subquery must be updateable as well, of which I do not understand as it is reading order no's from a different database just to be used as criteria for the delete query. If it is only being used as criteria, why would it need to be updateable as well?? I open to suggestions. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mcgillivray, Don [ITS] Sent: Wednesday, July 13, 2005 11:56 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables A delete query against an empty recordset simply exits without error. "DELETE * FROM tblMyTable WHERE tblMyTable.MyField = 2;" simply runs and exits if there are no MyFields in tblMyTable with values equal to 2. No error. I'd say that Doris's suspicion that the recordset is non-updateable is the more likely cause of Chester's problem. You may want to re-visit your code to ensure that you're not missing some other circumstance that is causing your delete queries to fail. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 13, 2005 8:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables I've recently had this very error 3086. I found no suggestions to my solution however came to realize that there was no records being returned thus causing the error, or so I believed this to be my cause. Because I call this query from code, I captured this error and exit the sub without any issues. To find out if you are returning any records, open the query in design mode then simply click on the "Datasheet View", this will show you what your results will be, but will not execute the delete command. Anyone else have any similar experiences with a delete query. My delete query contained a sub-query and was not doing any joins. Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 11:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables It is highly possible that with the joined tables, you've created a non-updatable query. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cannot delete from specified tables Thanks for the suggestion but I still get a message cannot delete from specified tables. I don't understand why since this a stand alone database on my local computer (C drive). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 13, 2005 9:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Cannot delete from specified tables Try DELETE [tbl Allocations].* FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, July 13, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cannot delete from specified tables When I try to run the sql below I get the message cannot delete from specified tables. The tables are native to a stand alone access DB. I have tried many combinations but still no luck. DELETE [tbl Allocations].*, [tbl Allocations].SourceNAME, [tbl Allocations].TargetPID FROM [tbl Allocations] INNER JOIN [tbl Patterns to delete from Allocation table] ON ([tbl Allocations].TargetPID = [tbl Patterns to delete from Allocation table].TargetPID) AND ([tbl Allocations].SourceNAME = [tbl Patterns to delete from Allocation table].SourceNAME) WHERE ((([tbl Allocations].SourceNAME)=[tbl Patterns to delete from Allocation table]![SourceNAME]) AND (([tbl Allocations].TargetPID)=[tbl Patterns to delete from Allocation table]![TargetPID])); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Gustav at cactus.dk Wed Jul 13 12:38:52 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 13 Jul 2005 19:38:52 +0200 Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book Message-ID: Hi Marty Thanks! "Microsoft E-Learning for Visual Studio 2005 is free until November 8, 2005" /gustav >>> martyconnelly at shaw.ca 07/13 7:05 pm >>> Got this today from my local dotnet usergroup in Victoria http://www.vicdotnet.org Microsoft has been releasing a lot of .NET 2.0 and SQL Server 2005 training resources over the last little while, gearing up for the release of both in November. Here are a few of the highlights. These free offers have a decent retail value, and are only available for free for a "limited" time (though we aren't exactly sure what that means): Training Courses ASP.NET: http://msdn.microsoft.com/asp.net/learn/asptraining/ Visual Studio 2005: https://www.microsoftelearning.com/visualstudio2005/ SQL Server 2005: https://www.microsoftelearning.com/sqlserver2005/ Free VB.NET 2005 ebook: http://msdn.microsoft.com/vbasic/whidbey/introto2005/ 22.5 Meg download http://www.vicdotnet.org -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Wed Jul 13 12:48:00 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 13 Jul 2005 10:48:00 -0700 Subject: OT: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book References: <0IJK00A6ZT9QEQ@l-daemon> Message-ID: <42D553D0.3030302@shaw.ca> I have only been to a couple, I found the last one a bit torpid, so I snuck out and went back to the grad pub to talk to a couple of profs about Fast Fourier ADPCM methods use with speech and video storage for records mangement, found out there are some new optical disks (write once) coming out next year or 2007 that hold a terabyte via holographic methods. It was more informative to me. Maybe I am just a weirder duck. Jim Lawrence wrote: >Hi Marty: > >Have we ever met? My daughter's boy-friend, another geek and my self have >regularly attended the dotnet usergroup meetings and have never heard you >name bandied about. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Wednesday, July 13, 2005 10:06 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book > >Got this today from my local dotnet usergroup in Victoria >http://www.vicdotnet.org > > Microsoft has been releasing a lot of .NET 2.0 and SQL Server 2005 >training resources > over the last little while, gearing up for the release of both in November. > >Here are a few of the highlights. These free offers have a decent retail >value, >and are only available for free for a "limited" time (though we aren't >exactly sure what that means): > >Training Courses >ASP.NET: > http://msdn.microsoft.com/asp.net/learn/asptraining/ > >Visual Studio 2005: > https://www.microsoftelearning.com/visualstudio2005/ > >SQL Server 2005: >https://www.microsoftelearning.com/sqlserver2005/ > >Free VB.NET 2005 ebook: > http://msdn.microsoft.com/vbasic/whidbey/introto2005/ > 22.5 Meg download > >http://www.vicdotnet.org > > > -- Marty Connelly Victoria, B.C. Canada From bheid at appdevgrp.com Wed Jul 13 13:04:14 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 13 Jul 2005 14:04:14 -0400 Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C15267@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABECDF@ADGSERVER> Here's another freebie book: Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic .NET http://msdn.microsoft.com/vbrun/staythepath/additionalresources/upgradingvb6 / Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, July 13, 2005 1:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book Got this today from my local dotnet usergroup in Victoria http://www.vicdotnet.org Microsoft has been releasing a lot of .NET 2.0 and SQL Server 2005 training resources over the last little while, gearing up for the release of both in November. Here are a few of the highlights. These free offers have a decent retail value, and are only available for free for a "limited" time (though we aren't exactly sure what that means): Training Courses ASP.NET: http://msdn.microsoft.com/asp.net/learn/asptraining/ Visual Studio 2005: https://www.microsoftelearning.com/visualstudio2005/ SQL Server 2005: https://www.microsoftelearning.com/sqlserver2005/ Free VB.NET 2005 ebook: http://msdn.microsoft.com/vbasic/whidbey/introto2005/ 22.5 Meg download http://www.vicdotnet.org -- Marty Connelly Victoria, B.C. Canada From KIsmert at texassystems.com Wed Jul 13 17:58:21 2005 From: KIsmert at texassystems.com (Ken Ismert) Date: Wed, 13 Jul 2005 17:58:21 -0500 Subject: [AccessD] Framework book - was caption from code Message-ID: (Jim Dettman) <> A fundamental barrier is the lack of an easy way to distribute true components for use in Access. Any framework library built entirely in Access lacks a reliable way to share objects with its clients. For Office 2000 and later, the Office Add-In was touted by Microsoft as a way of building components for the Office Suite. But it suffers from the same object-sharing drawbacks as libraries, and because of its extremely limited distribution, has generated very little interest from the Access developer community. The core technical limitation centers around Access and its use of COM. Access uses Project Compatibility for generating the GUIDs required for identifying objects and their interfaces. Project Compatibility means the object IDs are private to the project, and are re-generated each time you fully-compile the project. That produces behavior noted before in this group: when you reference the library in an MDB, and compile them together, you can share objects, because Project Compatibility enforces consistency between the two. But, if you open the library separately, and save changes, the MDB referencing it will break, because all the old object IDs have been replaced in the new library. The way out of this dilemma is to build a Type Library, or TLB file. The TLB is a separate file which provides a stand-alone, unchanging definition of the objects and interfaces to be shared between the MDB and the library. Both the MDB and library reference the TLB, and use it when declaring shared objects. This way, the library can be updated independently of the MDB, shared between multiple MDBs, and distributed to third parties. The TLB is the key ingredient that enables reliable object sharing. The catch is, you can't make a Type Library in Access. You would need a copy of Visual Basic or Visual Studio to get the utilities required do that task. Because a large number of Access developers don't have these tools, you have not seen any significant number of distributed frameworks built entirely in Access. -Ken From KP at sdsonline.net Wed Jul 13 19:24:13 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 14 Jul 2005 10:24:13 +1000 Subject: [AccessD] Create reference only when needed Message-ID: <000a01c5880a$5d8d77d0$6601a8c0@user> Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath From robert at servicexp.com Wed Jul 13 19:42:38 2005 From: robert at servicexp.com (Robert Gracie) Date: Wed, 13 Jul 2005 20:42:38 -0400 Subject: [AccessD] Framework book - was caption from code Message-ID: <3C6BD610FA11044CADFC8C13E6D5508F4EDB@gbsserver.GBS.local> All I know is that I have been waiting an awful long time for this book...... :-) Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, July 13, 2005 12:01 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Framework book - was caption from code Around the end of last year, I started rewriting my framework for the third time, in fact I now call it C2DbFW3G meaning 3rd generation. It is Access2K or better - A97 not supported mostly because I use RaiseEvents which are unsupported in A97. This version is still not fully fleshed out simply because I have ported (rewritten) the old 2nd generation framework piece by piece as I needed the modules, and I haven't needed the form / control stuff that I had in the 2G version. SNIP From cfoust at infostatsystems.com Wed Jul 13 19:49:11 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 13 Jul 2005 17:49:11 -0700 Subject: [AccessD] Create reference only when needed Message-ID: There was a thread on this sometime last year for Access 2002. It gets ugly because the code to check the references has to be the first thing run and it has to be written so that it works even if there are broken references. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Wednesday, July 13, 2005 5:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Wed Jul 13 19:56:39 2005 From: john at winhaven.net (John Bartow) Date: Wed, 13 Jul 2005 19:56:39 -0500 Subject: [AccessD] Create reference only when needed In-Reply-To: <000a01c5880a$5d8d77d0$6601a8c0@user> Message-ID: <200507140056.j6E0ukR3116346@pimout3-ext.prodigy.net> Have you considered late binding? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, July 13, 2005 7:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Wed Jul 13 19:57:16 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 14 Jul 2005 10:57:16 +1000 Subject: [AccessD] Create reference only when needed References: Message-ID: <002901c5880e$fab20ea0$6601a8c0@user> Thanks Charlotte - there is quite a bit on the archive - I'll make my way through it.... Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Thursday, July 14, 2005 10:49 AM Subject: RE: [AccessD] Create reference only when needed There was a thread on this sometime last year for Access 2002. It gets ugly because the code to check the references has to be the first thing run and it has to be written so that it works even if there are broken references. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Wednesday, July 13, 2005 5:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Jul 13 20:03:40 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 13 Jul 2005 21:03:40 -0400 Subject: [AccessD] Create reference only when needed In-Reply-To: Message-ID: <20050714010356.EQDI7514.ibm70aec.bellsouth.net@SUSANONE> Yes, we discussed this at length. My written response to it all appeared in Inside Microsoft Access -- the Feb 2005 issue. Ken Ismert helped me write it. Kath, I'm sending you a copy draft privately. I hope you find something to help. Susan H. There was a thread on this sometime last year for Access 2002. It gets ugly because the code to check the references has to be the first thing run and it has to be written so that it works even if there are broken references. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Wednesday, July 13, 2005 5:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Jul 13 20:04:56 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 13 Jul 2005 21:04:56 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <0IJJ00F1DZCXNY@l-daemon> Message-ID: <000201c58810$10145770$6c7aa8c0@ColbyM6805> I suppose you could pester Wrox about it if you think it would be a book you would buy. Maybe forward this to email to Jim Minatel at JMinatel at wiley.com with your personal experiences and opinions re the lack of good advanced books for the Access / office arena. I tried to tell them that I quit buying new books ages ago because I just wasn't learning anything new from them. Maybe if they heard it from members of this list, developers who actually do this for a living, they might decide there is indeed a market. I know we don't have thousands of list members but we do represent a large market segment. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 2:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 12, 2005 8:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Framework book - was caption from code Around the end of last year, I started rewriting my framework for the third time, in fact I now call it C2DbFW3G meaning 3rd generation. It is Access2K or better - A97 not supported mostly because I use RaiseEvents which are unsupported in A97. This version is still not fully fleshed out simply because I have ported (rewritten) the old 2nd generation framework piece by piece as I needed the modules, and I haven't needed the form / control stuff that I had in the 2G version. In fact I started on it because of a project that is generating reports for a client. The application is a report system for a call center for short term disability insurance. I (re)wrote the call center software from scratch but the reporting stuff kinda sorta worked and I never rewrote it from scratch. The insurance company that hires my client to do the call center is completely changing THEIR software, which now supports completely automated data feeds. In the past, my system generated Word documents with "new claim notices" and "advise to pay" notices. These reports were generated automatically and attached to emails to the insurer, where they were opened and keyed in to the system. Because it was always done that way! Sigh. It always sucked, errors on their end keying in the reports etc. So... Since the new system takes an automated feed, fixed width fields, text files, FTPd to a site where it is opened and loaded in to the system automatically, I had the opportunity to rebuild this reporting thing from scratch. The kinds of framework things I needed for this application were distinctly different from the framework things I needed for a typical form based data entry / call center application. At the same time, entire pieces are pretty similar or even identical. So I yanked the useful classes and code other than form / control stuff from the 2G framework, took the opportunity to clean it up a LOT, and "started from scratch", although not exactly as I have intimated. The result is a lot cleaner, even more heavily class based, and uses a "service plug-in" concept. A framework is really about providing services to an application. These services may be clearly a service, such as logging to text files, zipping / unzipping files, encryption etc., or they may be less clearly a service, such as a form class that loads control classes that provide record selectors, JIT subforms, OpenArgs etc. In the end though, even these are just services to an application. What I am trying very hard to do this time is set up the framework to allow plug-in services where the service is loaded if it is needed, with a "socket" kind of interface - at least for the non-form based services. Things like SysVars, Zip/Unzip, logging etc are really easy to do this with. The classes exist and if the application wants a logger it asks for one. It is stored in a collection keyed by name and the app can then use it by calling a .log method of the framework, passing the name of the logger and the text to log. If a logger by that name isn't loaded, it loads and then stores the text that needs to be stored in the log file. Like that. It turns out that a log file like that works well for these NCN and ATP reports. The application asks for an NCN log, gathers the data and builds up the fixed width field strings. When each string (NCN or ATP record) is finished, the app just writes it to the log file. When all the records are written to the log file, the file is emailed or FTPd as desired. The log and the email or FTP is just a service. The APPLICATION has to build ATP and NCN reports, but it just asks the framework for a log and when the log is done, asks the framework to email or FTP the log somewhere. Services. Neat stuff and lots of fun to do. As for the book, well... I have worked on a couple of books for Wrox, but they gave a lukewarm reception to the idea of this stuff written into a book. I am just "doing it myself" and will then pitch it when it is closer to written. Sometimes the powers that be just don't "get" what you want to do. Or maybe it just won't sell and I'll be sitting on a years worth of writing. I have never seen a book like this for the Access arena so I just want to do it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, July 12, 2005 10:53 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Change Reports Caption From Code Ahhh, I can finally stop holding my breath! I threw my poor excuse of an answer out there just to keep this thread alive, I had a feeling you had this done in classes and I was just waiting for you to describe how you did it. :o) So your writing a book on it all! Can you feed some chapters out on it for proof reading purposes or something? John B. From KP at sdsonline.net Wed Jul 13 20:14:45 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 14 Jul 2005 11:14:45 +1000 Subject: [AccessD] Create reference only when needed References: <200507140056.j6E0ukR3116346@pimout3-ext.prodigy.net> Message-ID: <001e01c58811$6be97250$6601a8c0@user> John - I've never used it. BUT it may be the solution to this case as only some of my users *have* Frontpage installed at all. I'm a bit scared of the speed issues, but how do In convert code below to use late binding instaed? Kath Private Sub CmdOpenFP_Click() Dim oFPweb As FrontPage.Web Dim oFP As FrontPage.Application Dim FrontPageRunning As Boolean 'Determine whether FrontPage is already open or not FrontPageRunning = IsFrontPageRunning() If Not FrontPageRunning Then Set oFP = CreateObject("Frontpage.Application") Else Set oFP = GetObject(, "Frontpage.Application") End If 'add code here later to make a copy of my file 'open file in front page------------------------------------------------ oFP.Webs.Open ("E:/Sds/Clients/CPP/Webletters/template.html") ' Show FrontPage oFPweb.Activate 'Set oFP = Nothing End Sub ----- Original Message ----- From: John Bartow To: 'Access Developers discussion and problem solving' Sent: Thursday, July 14, 2005 10:56 AM Subject: RE: [AccessD] Create reference only when needed Have you considered late binding? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, July 13, 2005 7:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 at winhaven.net Wed Jul 13 21:40:24 2005 From: john at winhaven.net (John Bartow) Date: Wed, 13 Jul 2005 21:40:24 -0500 Subject: [AccessD] Create reference only when needed In-Reply-To: <001e01c58811$6be97250$6601a8c0@user> Message-ID: <200507140240.j6E2eV8s323538@pimout2-ext.prodigy.net> Kath, Speed shouldn't be a big deal. I use late binding with Word and it doesn't seem to take any longer than earlier binding plus it works with all versions of word. I say seems because to be clock ticks are not as important as user impression. Give them the hourglass at the start of the routine and turn if on and off a few times. Builds hope :o) Here's an article from our newsletter that explains it quite well: http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat ionlpt1.htm It really should be fairly easy after you browse that. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, July 13, 2005 8:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create reference only when needed John - I've never used it. BUT it may be the solution to this case as only some of my users *have* Frontpage installed at all. I'm a bit scared of the speed issues, but how do In convert code below to use late binding instaed? Kath Private Sub CmdOpenFP_Click() Dim oFPweb As FrontPage.Web Dim oFP As FrontPage.Application Dim FrontPageRunning As Boolean 'Determine whether FrontPage is already open or not FrontPageRunning = IsFrontPageRunning() If Not FrontPageRunning Then Set oFP = CreateObject("Frontpage.Application") Else Set oFP = GetObject(, "Frontpage.Application") End If 'add code here later to make a copy of my file 'open file in front page------------------------------------------------ oFP.Webs.Open ("E:/Sds/Clients/CPP/Webletters/template.html") ' Show FrontPage oFPweb.Activate 'Set oFP = Nothing End Sub ----- Original Message ----- From: John Bartow To: 'Access Developers discussion and problem solving' Sent: Thursday, July 14, 2005 10:56 AM Subject: RE: [AccessD] Create reference only when needed Have you considered late binding? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, July 13, 2005 7:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Jul 13 23:13:35 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 14 Jul 2005 00:13:35 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <000201c58810$10145770$6c7aa8c0@ColbyM6805> Message-ID: <20050714041334.RYLD16323.ibm59aec.bellsouth.net@SUSANONE> Wrox no longer exists. They went bankrupt owing me money. :( Susan H. I suppose you could pester Wrox about it if you think it would be a book you would buy. Maybe From jwcolby at colbyconsulting.com Wed Jul 13 23:29:23 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 14 Jul 2005 00:29:23 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <0IJK005EDQJPG2@l-daemon> Message-ID: <000001c5882c$9f82dfa0$6c7aa8c0@ColbyM6805> OK, bear with me since I am new to this unbound (but data aware) form business. Forms have a recordset correct, just not bound to one. Controls on each form are created manually and the named. The corresponding field is set how? IOW how is the control made aware of the data that it is unbound to. Do you (currently) use classes for this at all? Off the top of my head, I see a need to load a class instance for each control, which will hold the field name that the control loads data from and writes changes back to. A "dirty" variable to indicate that the control (data) has been modified. The form class then has a control scanner that loads a control instance for each control discovered on the form. The form init will init the form class, then go back and initialize each control with the field name that it is unbound to. The form class knows how to read data and then iterates the control classes pushing in data values to the control class, which in turn pushes the value in to the control. Or the control class just uses the control as the structure that holds the data value. Correct me if I'm wrong, but unbound controls don't manipulate the OldValue property the way that bound controls do, correct? Thus the control class needs to store the value into an OldVal variable in the control class. What events work correctly with unbound forms and controls, and which events do not fire or exhibit issues due to the unboundness? IOW it seems that a form BeforeUpdate / AfterUpdate etc simply wouldn't fire since there is no bound recordset to monitor. What about controls? Is there any documentation anywhere that discusses the event differences between bound and unbound forms and controls? My bound object classes sink the events for the object that they represent and can (and do) run code in those events. I need to know the differences between bound object events and unbound object events. I actually have a tiny little form (8 controls or so) that I need to take unbound to eliminate locking issues that I simply cannot resolve with the bound version. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 12:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: The methods I have used were designed about eight years ago and have copied/improved again and again. Here are the basics and a step by step methodology: 1. I always use ADO-OLE. (One exception is MySQL... a bit of a pain. If someone could figure out a method that would not require a station by station visit to install the MySQL ODBC drivers I would be for ever indebted.) 2. The forms and subforms are populated as the user moves through the records and but until the user actually changes field content on a form or attempts to delete the current record, the recordset used to feed the form is static. 3. a) A record or group of records in the case of a subform being displayed, are first pulled into a recordset, and content are then used to populate the form collection. In theory the record exists in three places. b) If there is a change of deletion request the recordset is locked by creating a dynamic recordset with record-lock attribute. c) If an 'already locked' error occurs when this lock is being applied then the user is informed of the condition and given the appropriate options. d) When using a 'real' :-) SQL DB (MS SQL/Oracle etc.) much of the record handling is managed internally as soon as the 'BeginTrans' is applied and closed or resolved when the 'CommitTrans' or 'RollbackTrans' runs. It may initially seem a little complex but it gives a full range of options for managing the data and it allows the client to build large databases with many users and only requires the purchase a few licenses/seats. (ie. 20 licenses and 100 users.) Using ADO makes is easy to switch or attach different data sources with little effort. (In theory one line of code.) Even web applications can be created leveraging the same methods. That is not totally true but given that SQL versions are standardizing coupled with the use of Store Procedures/Queries, with passing parameters, very few changes are needed. I am still pacing around the XML pool but believe in the long run that is where to go. So there is the 'thumb-nail' sketch of the 'non-bounder' application implementation methodology. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, July 13, 2005 4:35 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Jim, My framework (the part that had to do with forms and controls) was indeed aimed at bound forms. However the concept works for unbound forms as well. Indeed it would be even more critical to use a framework as you the developer are doing so much of the work that Access was doing for you - loading all of the data into the controls, checking for updates to the data by other people before you wrote changes back to the table, writing the data back from controls into fields in the tables, stuff like that. All of that code would be framework material. Once written and stored in the framework, the doing of it would be automatic by the framework. If you are one of the unholy (unbounders) why don't you give a thumbnail sketch of how you manage all of that work. I will then brainstorm how I would look at doing it in a framework. Remember that the concept of a framework is to make it as automatic as possible. For example (in a bound form) I have a form class and I have a class for each control type. The form class runs a control scanner, gets the control type of each control, loads a class instance for each control found. Once this is done, the form class and control classes can work together to do tasks. As an example, I can literally just drop a pair of controls on the form, a text box named RecID that exposes (is bound to) the PK (always an autonumber) and an unbound combo called RecSel. The names are specific and if the control scanner finds this pair of controls it knows that a record selector exists and runs the code. The afterupdate of the combo by that name calls a method of the parent form saying "move to recid XXXX". The column 0 of the combo is the PK of the record in the form so it knows the PK. The form's OnCurrent knows that it needs to keep the combo synced to the displayed record in the form so it calls a method of the combo class telling it to display the data relevant to the current record in the form. Thus the form, the combo and a text box all work as a system to form a record selector. If the developer drops these two controls on the form he "just has" a record selector. Nothing else is required - other than binding RecSel to the PK field and setting the combo's query to display the data and get the PK of the records in the table. As an unbounder, you need to think about how to achieve this kind of "automaticness" in the things you do. Naturally some tasks do require feeding data into init() methods of classes to set the classes up to do their job. After that though the "systems" need to just work together. Load the data into the unbound form / controls. Store flags in each control's class saying that control's data was modified. Scan for all controls with modified data and update the underlying data in the record. Check for data changes in the data you are about to update and inform the user that another user edited the record since you loaded the data. Etc. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 2:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) 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 jwcolby at colbyconsulting.com Wed Jul 13 23:31:13 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 14 Jul 2005 00:31:13 -0400 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <20050714041334.RYLD16323.ibm59aec.bellsouth.net@SUSANONE> Message-ID: <000101c5882c$de51d290$6c7aa8c0@ColbyM6805> Not true, many of the assets (specific book titles) were purchased by Wiley, including the Wrox name. The last book I worked on was published by Wiley but under the Wrox moniker. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, July 14, 2005 12:14 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Wrox no longer exists. They went bankrupt owing me money. :( Susan H. I suppose you could pester Wrox about it if you think it would be a book you would buy. Maybe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Jul 14 01:31:57 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 14 Jul 2005 02:31:57 -0400 Subject: [AccessD] Framework book - was caption from code References: Message-ID: "You would need a copy of Visual Basic or Visual Studio to get the utilities required do that task. Because a large number of Access developers don't have these tools, you have not seen any significant number of distributed frameworks built entirely in Access." Ken ..for the first time it suddenly dawns on me that packaging the Access 2003 Developer Tools with VB.Net/Visual Studio might actually have made some kind of sense ...I'd just assumed it was another MS ploy to force me to buy stuff I had no intention of ever using just to get the old ODE goodies :( William ----- Original Message ----- From: "Ken Ismert" To: "Access Developers discussion and problem solving" Sent: Wednesday, July 13, 2005 6:58 PM Subject: RE: [AccessD] Framework book - was caption from code > > (Jim Dettman) > < more frameworks available for Access . . . I see that other developers > have come up with things to solve the very same problems (PK generation, > pick lists, calendars, etc). I'm still scratching my head as to why.>> > > A fundamental barrier is the lack of an easy way to distribute true > components for use in Access. Any framework library built entirely in > Access lacks a reliable way to share objects with its clients. For > Office 2000 and later, the Office Add-In was touted by Microsoft as a > way of building components for the Office Suite. But it suffers from the > same object-sharing drawbacks as libraries, and because of its extremely > limited distribution, has generated very little interest from the Access > developer community. > > The core technical limitation centers around Access and its use of COM. > Access uses Project Compatibility for generating the GUIDs required for > identifying objects and their interfaces. Project Compatibility means > the object IDs are private to the project, and are re-generated each > time you fully-compile the project. That produces behavior noted before > in this group: when you reference the library in an MDB, and compile > them together, you can share objects, because Project Compatibility > enforces consistency between the two. But, if you open the library > separately, and save changes, the MDB referencing it will break, because > all the old object IDs have been replaced in the new library. > > The way out of this dilemma is to build a Type Library, or TLB file. The > TLB is a separate file which provides a stand-alone, unchanging > definition of the objects and interfaces to be shared between the MDB > and the library. Both the MDB and library reference the TLB, and use it > when declaring shared objects. This way, the library can be updated > independently of the MDB, shared between multiple MDBs, and distributed > to third parties. The TLB is the key ingredient that enables reliable > object sharing. > > The catch is, you can't make a Type Library in Access. You would need a > copy of Visual Basic or Visual Studio to get the utilities required do > that task. Because a large number of Access developers don't have these > tools, you have not seen any significant number of distributed > frameworks built entirely in Access. > > -Ken > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From KP at sdsonline.net Thu Jul 14 03:42:18 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 14 Jul 2005 18:42:18 +1000 Subject: [AccessD] Create reference only when needed References: <200507140240.j6E2eV8s323538@pimout2-ext.prodigy.net> Message-ID: <005601c5884f$f6547050$6601a8c0@user> <<.....plus it works with all versions That part sounds good....the most frustrating aspect of being an access /vba developer has to be the fragility of the systems. Compared to writing mainframe applications, I still find this the trickiest aspect. The user changes something on the PC and crash goes the application. So this is something I need to learn. Thanks. Kath ----- Original Message ----- From: John Bartow To: 'Access Developers discussion and problem solving' Sent: Thursday, July 14, 2005 12:40 PM Subject: RE: [AccessD] Create reference only when needed Kath, Speed shouldn't be a big deal. I use late binding with Word and it doesn't seem to take any longer than earlier binding plus it works with all versions of word. I say seems because to be clock ticks are not as important as user impression. Give them the hourglass at the start of the routine and turn if on and off a few times. Builds hope :o) Here's an article from our newsletter that explains it quite well: http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat ionlpt1.htm It really should be fairly easy after you browse that. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, July 13, 2005 8:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create reference only when needed John - I've never used it. BUT it may be the solution to this case as only some of my users *have* Frontpage installed at all. I'm a bit scared of the speed issues, but how do In convert code below to use late binding instaed? Kath Private Sub CmdOpenFP_Click() Dim oFPweb As FrontPage.Web Dim oFP As FrontPage.Application Dim FrontPageRunning As Boolean 'Determine whether FrontPage is already open or not FrontPageRunning = IsFrontPageRunning() If Not FrontPageRunning Then Set oFP = CreateObject("Frontpage.Application") Else Set oFP = GetObject(, "Frontpage.Application") End If 'add code here later to make a copy of my file 'open file in front page------------------------------------------------ oFP.Webs.Open ("E:/Sds/Clients/CPP/Webletters/template.html") ' Show FrontPage oFPweb.Activate 'Set oFP = Nothing End Sub ----- Original Message ----- From: John Bartow To: 'Access Developers discussion and problem solving' Sent: Thursday, July 14, 2005 10:56 AM Subject: RE: [AccessD] Create reference only when needed Have you considered late binding? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, July 13, 2005 7:24 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Create reference only when needed Can someone tell mew how to set a reference to a program (in this case Frontpage) only if the user has the software installed. I have an app that crashed because of missing references, so I want to remove them and set them using code when / if needed. TIA Kath -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 14 06:47:18 2005 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 14 Jul 2005 07:47:18 -0400 Subject: FW: [AccessD] "Like" operator help Message-ID: Sorry that I didn't reply to this Rusty. I was cleaning out my Junk mail folder and noticed it somehow got sent into there...don't you feel special? I don't usually even look in here, but I am expecting a quote on some Cisco equipment from a new vendor, and being new they sometimes get put in there. Ya just gotta love how the spammers have created a mess for us. Anyhow, I don't know where they get the drug list. I am assumming that, because we are a govt. agency, that it probably comes from the state (NY) or medicaid (more probable). I did this as a favor for my co-worker, who is out this week, and I don't know who she was speaking with, so I can't check w/them. If you would like, I could look into it next week for you. Take care! John W Clark >>> 7/8/2005 10:07:21 AM >>> John, you mentioned they get a monthly update of their drug list. Do you know where they are getting this drug list and what the cost is? I'm working on an app that requires a drug list. Thanks, Rusty Hammond -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, July 08, 2005 8:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] "Like" operator help I really didn't want to use a form...this is just a simple table (i.e. not a whole program) that our nursing department will use...they get an update monthly (I think it is) and just want to quickly access any given drug. But, I did think a form may be the answer, so I whipped up a quick litte one. One the form I've got a text box (Text0) and a label (Text2)...I'm just playing right now, so the names are defaults. On the "On Change" property of Text0, I've got a statment that says Text2.Caption = "Like '" & Text0.Text & "*'" This is working fine in the label, as it is showing up the way I want it...although I just noticed that I only have single quotes...hmmmm. I bet if I can get double quote in there it works. Right now, if I put "t" into Text0, I see: Like 't*' in Text2, and in the query I have [Forms]![enterfrm]![Text2] in the criteria section. This little bugger is turning out to be...well...a little bugger ;( >>> pharold at proftesting.com 7/8/2005 9:32 AM >>> Append the global "*" to whatever is the value entered (as a string) with the "&" character and then submit to the query. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From cyx5 at cdc.gov Thu Jul 14 07:36:26 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 14 Jul 2005 08:36:26 -0400 Subject: FW: [AccessD] "Like" operator help Message-ID: Isn't working for the government cool? Here is a link to download the drug information released by the FDA: http://www.fda.gov/cder/ndc/index.htm -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, July 14, 2005 7:47 AM To: rusty.hammond at cpiqpc.com; accessd at databaseadvisors.com Subject: Re: FW: [AccessD] "Like" operator help Sorry that I didn't reply to this Rusty. I was cleaning out my Junk mail folder and noticed it somehow got sent into there...don't you feel special? I don't usually even look in here, but I am expecting a quote on some Cisco equipment from a new vendor, and being new they sometimes get put in there. Ya just gotta love how the spammers have created a mess for us. Anyhow, I don't know where they get the drug list. I am assumming that, because we are a govt. agency, that it probably comes from the state (NY) or medicaid (more probable). I did this as a favor for my co-worker, who is out this week, and I don't know who she was speaking with, so I can't check w/them. If you would like, I could look into it next week for you. Take care! John W Clark >>> 7/8/2005 10:07:21 AM >>> John, you mentioned they get a monthly update of their drug list. Do you know where they are getting this drug list and what the cost is? I'm working on an app that requires a drug list. Thanks, Rusty Hammond -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, July 08, 2005 8:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] "Like" operator help I really didn't want to use a form...this is just a simple table (i.e. not a whole program) that our nursing department will use...they get an update monthly (I think it is) and just want to quickly access any given drug. But, I did think a form may be the answer, so I whipped up a quick litte one. One the form I've got a text box (Text0) and a label (Text2)...I'm just playing right now, so the names are defaults. On the "On Change" property of Text0, I've got a statment that says Text2.Caption = "Like '" & Text0.Text & "*'" This is working fine in the label, as it is showing up the way I want it...although I just noticed that I only have single quotes...hmmmm. I bet if I can get double quote in there it works. Right now, if I put "t" into Text0, I see: Like 't*' in Text2, and in the query I have [Forms]![enterfrm]![Text2] in the criteria section. This little bugger is turning out to be...well...a little bugger ;( >>> pharold at proftesting.com 7/8/2005 9:32 AM >>> Append the global "*" to whatever is the value entered (as a string) with the "&" character and then submit to the query. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Thu Jul 14 09:06:35 2005 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Thu, 14 Jul 2005 09:06:35 -0500 Subject: FW: [AccessD] "Like" operator help Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F807E@cpixchng-1.cpiqpc.net> John, thanks for the reply but I think the link Karen provided is going to work for me. Thanks Karen. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, July 14, 2005 7:36 AM To: Access Developers discussion and problem solving Subject: RE: FW: [AccessD] "Like" operator help Isn't working for the government cool? Here is a link to download the drug information released by the FDA: http://www.fda.gov/cder/ndc/index.htm -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, July 14, 2005 7:47 AM To: rusty.hammond at cpiqpc.com; accessd at databaseadvisors.com Subject: Re: FW: [AccessD] "Like" operator help Sorry that I didn't reply to this Rusty. I was cleaning out my Junk mail folder and noticed it somehow got sent into there...don't you feel special? I don't usually even look in here, but I am expecting a quote on some Cisco equipment from a new vendor, and being new they sometimes get put in there. Ya just gotta love how the spammers have created a mess for us. Anyhow, I don't know where they get the drug list. I am assumming that, because we are a govt. agency, that it probably comes from the state (NY) or medicaid (more probable). I did this as a favor for my co-worker, who is out this week, and I don't know who she was speaking with, so I can't check w/them. If you would like, I could look into it next week for you. Take care! John W Clark >>> 7/8/2005 10:07:21 AM >>> John, you mentioned they get a monthly update of their drug list. Do you know where they are getting this drug list and what the cost is? I'm working on an app that requires a drug list. Thanks, Rusty Hammond -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, July 08, 2005 8:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] "Like" operator help I really didn't want to use a form...this is just a simple table (i.e. not a whole program) that our nursing department will use...they get an update monthly (I think it is) and just want to quickly access any given drug. But, I did think a form may be the answer, so I whipped up a quick litte one. One the form I've got a text box (Text0) and a label (Text2)...I'm just playing right now, so the names are defaults. On the "On Change" property of Text0, I've got a statment that says Text2.Caption = "Like '" & Text0.Text & "*'" This is working fine in the label, as it is showing up the way I want it...although I just noticed that I only have single quotes...hmmmm. I bet if I can get double quote in there it works. Right now, if I put "t" into Text0, I see: Like 't*' in Text2, and in the query I have [Forms]![enterfrm]![Text2] in the criteria section. This little bugger is turning out to be...well...a little bugger ;( >>> pharold at proftesting.com 7/8/2005 9:32 AM >>> Append the global "*" to whatever is the value entered (as a string) with the "&" character and then submit to the query. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From John.Clark at niagaracounty.com Thu Jul 14 10:24:03 2005 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 14 Jul 2005 11:24:03 -0400 Subject: FW: [AccessD] "Like" operator help Message-ID: In some ways yes, but in many other ways no Thanks for covering this link! >>> cyx5 at cdc.gov 7/14/2005 8:36:26 AM >>> Isn't working for the government cool? Here is a link to download the drug information released by the FDA: http://www.fda.gov/cder/ndc/index.htm -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, July 14, 2005 7:47 AM To: rusty.hammond at cpiqpc.com; accessd at databaseadvisors.com Subject: Re: FW: [AccessD] "Like" operator help Sorry that I didn't reply to this Rusty. I was cleaning out my Junk mail folder and noticed it somehow got sent into there...don't you feel special? I don't usually even look in here, but I am expecting a quote on some Cisco equipment from a new vendor, and being new they sometimes get put in there. Ya just gotta love how the spammers have created a mess for us. Anyhow, I don't know where they get the drug list. I am assumming that, because we are a govt. agency, that it probably comes from the state (NY) or medicaid (more probable). I did this as a favor for my co-worker, who is out this week, and I don't know who she was speaking with, so I can't check w/them. If you would like, I could look into it next week for you. Take care! John W Clark >>> 7/8/2005 10:07:21 AM >>> John, you mentioned they get a monthly update of their drug list. Do you know where they are getting this drug list and what the cost is? I'm working on an app that requires a drug list. Thanks, Rusty Hammond -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Friday, July 08, 2005 8:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] "Like" operator help I really didn't want to use a form...this is just a simple table (i.e. not a whole program) that our nursing department will use...they get an update monthly (I think it is) and just want to quickly access any given drug. But, I did think a form may be the answer, so I whipped up a quick litte one. One the form I've got a text box (Text0) and a label (Text2)...I'm just playing right now, so the names are defaults. On the "On Change" property of Text0, I've got a statment that says Text2.Caption = "Like '" & Text0.Text & "*'" This is working fine in the label, as it is showing up the way I want it...although I just noticed that I only have single quotes...hmmmm. I bet if I can get double quote in there it works. Right now, if I put "t" into Text0, I see: Like 't*' in Text2, and in the query I have [Forms]![enterfrm]![Text2] in the criteria section. This little bugger is turning out to be...well...a little bugger ;( >>> pharold at proftesting.com 7/8/2005 9:32 AM >>> Append the global "*" to whatever is the value entered (as a string) with the "&" character and then submit to the query. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, July 08, 2005 9:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] "Like" operator help I should clarify that I did get: Like "ty*" to work, but I want to leave it to the user to enter the letter(s). And, I am using A2K >>> John.Clark at niagaracounty.com 7/8/2005 9:20 AM >>> This is probably beyond simple, but I really don't use it very often, and I just ran into a problem. I am trying to whip up a table of approximately 20,000 drugs. Many of the drug listings are actually the same drug, but with different strengths. For example: Field5 ID Field1 Field2 Field3 Field4 Field6 Field7 ABILIFY 1 MG/ML SOLUTION 13 BEX 59148-0012-15 2.31031 0 OTSUKA AMERICA ABILIFY 10 MG TABLET 14 BEX 59148-0008-13 10.04479 0 OTSUKA AMERICA ABILIFY 15 MG TABLET 15 BEX 59148-0009-13 10.04479 0 OTSUKA AMERICA ABILIFY 20 MG TABLET 16 BEX 59148-0010-13 14.20458 0 OTSUKA AMERICA ABILIFY 30 MG TABLET 17 BEX 59148-0011-13 14.20458 0 OTSUKA AMERICA ABILIFY 5 MG TABLET 18 BEX 59148-0007-13 10.04479 0 OTSUKA AMERICA I want to build a query that let you type in Tylenol and get to that drug, or even "T" and get to that point of the list, where the "t"s are located. I tried using a "Like" statement in the query, but it didn't work. How is this done? Thank you! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Thu Jul 14 10:41:39 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 14 Jul 2005 11:41:39 -0400 Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book In-Reply-To: <42D549F7.8090307@shaw.ca> Message-ID: <200507141541.j6EFffR08526@databaseadvisors.com> After your tantalizing offer, I have just wasted about an hour going around in circles. I have even tried it on two machines, just to make sure that I`m not going crazy. I select the course. I go to the content page. I select All then, download selected items. It tells me the Offline player is not installed. I download it and install it, then close the browser and try again. Same scenario exactly -- the offline player is not installed. Try again. Same problem. I`d love to grab all this material, but somehow I must convince Windows that the offline player is installed. Incidentally, one box is running winServer2003 and the other is running winXP Pro. Any suggestions greatly appreciated... Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: July 13, 2005 1:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book Got this today from my local dotnet usergroup in Victoria http://www.vicdotnet.org Microsoft has been releasing a lot of .NET 2.0 and SQL Server 2005 training resources over the last little while, gearing up for the release of both in November. Here are a few of the highlights. These free offers have a decent retail value, and are only available for free for a "limited" time (though we aren't exactly sure what that means): Training Courses ASP.NET: http://msdn.microsoft.com/asp.net/learn/asptraining/ Visual Studio 2005: https://www.microsoftelearning.com/visualstudio2005/ SQL Server 2005: https://www.microsoftelearning.com/sqlserver2005/ Free VB.NET 2005 ebook: http://msdn.microsoft.com/vbasic/whidbey/introto2005/ 22.5 Meg download http://www.vicdotnet.org -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Thu Jul 14 12:05:28 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 14 Jul 2005 22:35:28 +0530 Subject: [AccessD] Change Reports Caption From Code References: <42D4D97B.12035.18CE6683@stuart.lexacorp.com.pg> Message-ID: <002201c58896$6b074e40$f31865cb@winxp> Stuart, Sub-routine named P_QueryFriendlyCaption() given below, should be able to get the desired effect. Essentially, it involves making a temporary copy of the query, under the specified descriptive name. Whenever, a fresh query needs to be displayed, previously existing temp query (if any) gets deleted, so that at any given stage, there is no more than one temp query. Finally when the form is closed, any temp query still around, gets deleted, so that the status of queries collection remains undisturbed. Complete code for form's module is given below. Query to be displayed is selected via combo box named CboQuery. Desired friendly caption is entered in text box named TxtCaption. On clicking the command button (CmdShow), the query gets displayed with appropriate caption (If TxtCaption is left blank, the query gets displayed under its original name). Best wishes, A.D.Tejpal -------------- Form's Code Module =================================== ' General Declarations section Private TempQuery As String ' Global variable ------------------------------------------------------------ Private Sub P_QueryFriendlyCaption(ByVal RealName _ As String, ByVal DisplayName As String) On Error Resume Next ' Delete TempQuery if any and also query named ' DisplayName if any If Len(TempQuery) > 0 And _ TempQuery <> RealName Then DoCmd.DeleteObject acQuery, TempQuery ' Reset the value for global variable ' (Useful in clearing temp query in form's Close event) TempQuery = "" End If If DisplayName <> RealName Then DoCmd.DeleteObject acQuery, DisplayName End If ' Copy query named RealName as a temp query ' named DisplayName If DisplayName <> RealName Then ' Set global variable - for deletion of temp query ' in next round TempQuery = DisplayName DoCmd.CopyObject , DisplayName, _ acQuery, RealName End If ' Display the newly copied query DoCmd.OpenQuery DisplayName DoCmd.Maximize On Error GoTo 0 End Sub Private Sub CmdShow_Click() If Len(CboQuery) > 0 Then P_QueryFriendlyCaption CboQuery, _ Nz(TxtCaption, CboQuery) End If End Sub Private Sub Form_Activate() DoCmd.Restore End Sub Private Sub Form_Close() ' Delete temp query if any If Len(TempQuery) > 0 Then DoCmd.DeleteObject acQuery, TempQuery End If End Sub =================================== ----- Original Message ----- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Wednesday, July 13, 2005 04:36 Subject: Re: [AccessD] Change Reports Caption From Code On 12 Jul 2005 at 17:52, Josh McFarlane wrote: > > DoCmd.OpenReport ReportTest, acPreview,,,,"Report Caption" > > Then in the on open handler: > Caption = OpenArgs > > or something similar to fit your needs. > -- In a similar vein, has any looked into changing the Caption in a query datasheet or print preview. I often shortcut in simple applications and display a query to the user rather than going to the effort of producing a report based on the query. It would be nice to customise the header on a printout of the query. -- Stuart From artful at rogers.com Thu Jul 14 12:41:01 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 14 Jul 2005 13:41:01 -0400 Subject: [AccessD] List of users Message-ID: <200507141741.j6EHf9R04354@databaseadvisors.com> I know that JWC and others have devised methods of detemining the users in an app. My question is this - given that say three front-ends are talking to a single back-end, what does the list of users show. front-end users or back-end users. TIA, Arthur From cfoust at infostatsystems.com Thu Jul 14 12:57:01 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 14 Jul 2005 10:57:01 -0700 Subject: [AccessD] List of users Message-ID: Using ADO and monitoring the *back end*, you get the users connected to the backend, including your own connection. It doesn't know anything about how the connection was made, just that there is one. Charlotte -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Thursday, July 14, 2005 10:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] List of users I know that JWC and others have devised methods of detemining the users in an app. My question is this - given that say three front-ends are talking to a single back-end, what does the list of users show. front-end users or back-end users. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Thu Jul 14 13:13:31 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 14 Jul 2005 14:13:31 -0400 Subject: [AccessD] List of users In-Reply-To: Message-ID: <200507141813.j6EIDWR12208@databaseadvisors.com> Thanks! One more question on same.... given an ADP connection, I am likely to see redundant names of the individual users. (This is because it is smart and opens new connections to populate combo-boxes etc.) Does this occur in a classic FE-BE setup. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: July 14, 2005 1:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List of users Using ADO and monitoring the *back end*, you get the users connected to the backend, including your own connection. It doesn't know anything about how the connection was made, just that there is one. Charlotte -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Thursday, July 14, 2005 10:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] List of users I know that JWC and others have devised methods of detemining the users in an app. My question is this - given that say three front-ends are talking to a single back-end, what does the list of users show. front-end users or back-end users. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Jul 14 14:58:21 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 14 Jul 2005 12:58:21 -0700 Subject: [AccessD] List of users Message-ID: Not unless you have ODBC connections and are also creating OLEDb connections in code. Then you would see redundant names. And actually, you'll see the machine names plus the Access security login. Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Thursday, July 14, 2005 11:14 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List of users Thanks! One more question on same.... given an ADP connection, I am likely to see redundant names of the individual users. (This is because it is smart and opens new connections to populate combo-boxes etc.) Does this occur in a classic FE-BE setup. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: July 14, 2005 1:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List of users Using ADO and monitoring the *back end*, you get the users connected to the backend, including your own connection. It doesn't know anything about how the connection was made, just that there is one. Charlotte -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Thursday, July 14, 2005 10:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] List of users I know that JWC and others have devised methods of detemining the users in an app. My question is this - given that say three front-ends are talking to a single back-end, what does the list of users show. front-end users or back-end users. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Jul 14 15:00:13 2005 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 14 Jul 2005 13:00:13 -0700 Subject: [AccessD] List of users In-Reply-To: <16669435.1121365030985.JavaMail.root@sniper18> Message-ID: <000201c588ae$a7264f80$0518820a@danwaters> Arthur, This is the code I use to populate a temp table, and then display a list of current users. Note that this is looking at the workgroup file, not the FE or the BE. Private Sub butWhosLoggedIn_Click() If ErrorTrapping = True Then On Error GoTo EH Dim con As New ADODB.Connection Dim rst As New ADODB.Recordset Dim rstData As DAO.Recordset Dim stgData As String Dim stg As String Dim stgFullName As String Dim rstFullname As DAO.Recordset Dim stgUserName As String '-- The user roster is exposed as a provider-specific schema rowset _ in the Jet 4.0 OLE DB provider. You have to use a GUID to _ reference the schema, as provider-specific schemas are not _ listed in ADO's type library for schema rowsets '-- This is partly from MSKB 198755 and is specific to Access 2000 & up con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" _ & SystemFolderPath & "\Workgroup\" & SystemWorkgroupName Set rst = con.OpenSchema(adSchemaProviderSpecific, , "{947bb102-5d43-11d1-bdbf-00c04fb92675}") '-- Output the list of all users in the current database. stg = "DELETE * FROM tblCurrentUsers" DoCmd.SetWarnings False DoCmd.RunSQL stg DoCmd.SetWarnings True stgData = "SELECT * FROM tblCurrentUsers" Set rstData = DBEngine(0)(0).OpenRecordset(stgData, dbOpenDynaset) Do While Not rst.EOF stgUserName = Left$(rst.Fields(1), InStr(1, rst.Fields(1), Chr(0)) - 1) If stgUserName <> "Admin" Then rstData.AddNew rstData!ComputerName = Left$(rst.Fields(0), InStr(1, rst.Fields(0), Chr(0)) - 1) rstData!UserName = stgUserName stgFullName = "SELECT Person FROM tblPeopleMain" _ & " WHERE UserName = '" & rstData!UserName & "'" Set rstFullname = DBEngine(0)(0).OpenRecordset(stgFullName, dbOpenSnapshot) rstData!FullName = rstFullname!Person rstData!Connected = rst.Fields(2).Value If IsNull(rst.Fields(3)) Then rstData!Suspect = Null Else rstData!Suspect = Left$(rst.Fields(3), InStr(1, rst.Fields(3), Chr(0)) - 1) End If rstData.Update rstFullname.Close Set rstFullname = Nothing End If rst.MoveNext Loop DoCmd.OpenReport "rptCurrentUsers", acViewPreview rst.Close Set rst = Nothing rstData.Close Set rstData = Nothing Exit Sub EH: Application.Echo True DoCmd.SetWarnings True Call GlobalErrors("", Err.Number, Err.Description, Me.Name, "butWhosLoggedIn_Click") End Sub HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, July 14, 2005 11:14 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List of users Thanks! One more question on same.... given an ADP connection, I am likely to see redundant names of the individual users. (This is because it is smart and opens new connections to populate combo-boxes etc.) Does this occur in a classic FE-BE setup. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: July 14, 2005 1:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List of users Using ADO and monitoring the *back end*, you get the users connected to the backend, including your own connection. It doesn't know anything about how the connection was made, just that there is one. Charlotte -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Thursday, July 14, 2005 10:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] List of users I know that JWC and others have devised methods of detemining the users in an app. My question is this - given that say three front-ends are talking to a single back-end, what does the list of users show. front-end users or back-end users. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- 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 Jul 14 16:49:37 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 15 Jul 2005 07:49:37 +1000 Subject: [AccessD] Change Reports Caption From Code In-Reply-To: <002201c58896$6b074e40$f31865cb@winxp> Message-ID: <42D76A91.23004.247ACE6@stuart.lexacorp.com.pg> On 14 Jul 2005 at 22:35, A.D.Tejpal wrote: > > Sub-routine named P_QueryFriendlyCaption() given below, should be able to get the desired > effect. Essentially, it involves making a temporary copy of the query, under the specified > descriptive name. > > Whenever, a fresh query needs to be displayed, previously existing temp query (if any) gets > deleted, so that at any given stage, there is no more than one temp query. Finally when the form > is closed, any temp query still around, gets deleted, so that the status of queries collection > remains undisturbed. That's smart thinking. Why didn't I think of that :-( Thanks, -- Stuart From jwcolby at colbyconsulting.com Thu Jul 14 19:28:22 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 14 Jul 2005 20:28:22 -0400 Subject: [AccessD] Reporting field properties Message-ID: <000501c588d4$1e985070$6c7aa8c0@ColbyM6805> As part of the reporting app I am writing for the call center, I need to do some data validation and report fields that fail the validation. The query that pulls data for the reports can come from many different tables, as many as 8 or 10. The issue is how to report that the data in FieldName X in TableName Y is invalid. I have to build a report of data that fails the validation, and issue the report so that the data can be fixed. For example some fields are critical to the client, i.e. "do not send the record in the report if the data in fields A, F, G, K, or X are missing". The nature of this business is that data is collected piecemeal over time but specific pieces just absolutely have to be there before these reports (data extracts) can be sent to the client. I already have a system that builds classes to hold the reporting information about the export, the record and the fields IN THE QUERY but one thing that is tough to get (directly) is the actual table name and field name in the source field of a query. As a result I designed a little class to accept a field object from DAO and grab specific properties from that field object. The specifics looks something like: In the class header: Private mstrForeignName As String Private mstrName As String Private mvarDefaultValue As Variant Private mblnAllowZeroLength As Boolean Private mblnDataUpdatable As Boolean Private mvarOriginalValue As Variant Private mblnRequired As Boolean Private mlngSize As Long Private mstrSourceField As String Private mstrSourceTable As String Private mintType As Integer Private mstrValidationRule As String Private mstrValidationText As String Private mvarValue As Variant Private mvarVisibleValue As Variant And the class method that accepts a field object and pulls these properties out: Public Function mReadClassProperties(lFld As DAO.Field) On Error GoTo Err_mReadClassProperties On Error Resume Next With lFld mblnAllowZeroLength = .AllowZeroLength mblnDataUpdatable = .DataUpdatable mvarDefaultValue = .DefaultValue mstrForeignName = .ForeignName mstrName = .Name mvarOriginalValue = .OriginalValue mblnRequired = .Required mlngSize = .Size mstrSourceField = .SourceField mstrSourceTable = .SourceTable mintType = .Type mstrValidationRule = .ValidationRule mstrValidationText = .ValidationText mvarValue = .Value mvarVisibleValue = .VisibleValue End With Exit_mReadClassProperties: Exit Function Err_mReadClassProperties: MsgBox Err.Description, , "Error in Function clsDAOFld.mReadClassProperties" Resume Exit_mReadClassProperties Resume 0 '.FOR TROUBLESHOOTING End Function And of course methods to read the property values: Public Property Get pForeignName() As String pForeignName = mstrForeignName End Property Public Property Get pName() As String pName = mstrName End Property Public Property Get pDefaultValue() As Variant pDefaultValue = mvarDefaultValue End Property Etc etc. The reason that I store these field properties in my own class is that I need to gather the data about each field in the big query one time, as the recordset is opened, rather than each time a record is read (for speed). I am currently really only interested in the static stuff like SourceField and SourceTable but for completeness just added the rest. Notice that some of the field properties are dynamic and some are static, i.e. some are about data and others are about the format of the data. I could (and probably will eventually) break this down into two methods, one that grabs the static properties such as AllowZeroLength, DefaultValue, SourceField, stuff like that ONE TIME, and another method that grabs the dynamic data every time the record changes - Value and Original Value, stuff like that. At any rate, I now have a class that I can open a recordset from a query, iterate through the fields collection instantiating one of these classes for each field, then save the properties at the instant the recordset opens. I then have any static properties - specifically of interest right now is SourceField and SourceTable - to use whenever I need to report or log a field as being empty. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Thu Jul 14 22:25:22 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 14 Jul 2005 23:25:22 -0400 Subject: [AccessD] Reporting field properties In-Reply-To: <000501c588d4$1e985070$6c7aa8c0@ColbyM6805> Message-ID: <000601c588ec$d5f8f810$6c7aa8c0@ColbyM6805> I have tried the same thing with the ADODB.Field object but there is nothing like the wealth of properties that DAO makes available, and I see nothing like SourceTable and SourceField. Anyone know if this is possible with ADO? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, July 14, 2005 8:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Reporting field properties As part of the reporting app I am writing for the call center, I need to do some data validation and report fields that fail the validation. The query that pulls data for the reports can come from many different tables, as many as 8 or 10. The issue is how to report that the data in FieldName X in TableName Y is invalid. I have to build a report of data that fails the validation, and issue the report so that the data can be fixed. For example some fields are critical to the client, i.e. "do not send the record in the report if the data in fields A, F, G, K, or X are missing". The nature of this business is that data is collected piecemeal over time but specific pieces just absolutely have to be there before these reports (data extracts) can be sent to the client. I already have a system that builds classes to hold the reporting information about the export, the record and the fields IN THE QUERY but one thing that is tough to get (directly) is the actual table name and field name in the source field of a query. As a result I designed a little class to accept a field object from DAO and grab specific properties from that field object. The specifics looks something like: In the class header: Private mstrForeignName As String Private mstrName As String Private mvarDefaultValue As Variant Private mblnAllowZeroLength As Boolean Private mblnDataUpdatable As Boolean Private mvarOriginalValue As Variant Private mblnRequired As Boolean Private mlngSize As Long Private mstrSourceField As String Private mstrSourceTable As String Private mintType As Integer Private mstrValidationRule As String Private mstrValidationText As String Private mvarValue As Variant Private mvarVisibleValue As Variant And the class method that accepts a field object and pulls these properties out: Public Function mReadClassProperties(lFld As DAO.Field) On Error GoTo Err_mReadClassProperties On Error Resume Next With lFld mblnAllowZeroLength = .AllowZeroLength mblnDataUpdatable = .DataUpdatable mvarDefaultValue = .DefaultValue mstrForeignName = .ForeignName mstrName = .Name mvarOriginalValue = .OriginalValue mblnRequired = .Required mlngSize = .Size mstrSourceField = .SourceField mstrSourceTable = .SourceTable mintType = .Type mstrValidationRule = .ValidationRule mstrValidationText = .ValidationText mvarValue = .Value mvarVisibleValue = .VisibleValue End With Exit_mReadClassProperties: Exit Function Err_mReadClassProperties: MsgBox Err.Description, , "Error in Function clsDAOFld.mReadClassProperties" Resume Exit_mReadClassProperties Resume 0 '.FOR TROUBLESHOOTING End Function And of course methods to read the property values: Public Property Get pForeignName() As String pForeignName = mstrForeignName End Property Public Property Get pName() As String pName = mstrName End Property Public Property Get pDefaultValue() As Variant pDefaultValue = mvarDefaultValue End Property Etc etc. The reason that I store these field properties in my own class is that I need to gather the data about each field in the big query one time, as the recordset is opened, rather than each time a record is read (for speed). I am currently really only interested in the static stuff like SourceField and SourceTable but for completeness just added the rest. Notice that some of the field properties are dynamic and some are static, i.e. some are about data and others are about the format of the data. I could (and probably will eventually) break this down into two methods, one that grabs the static properties such as AllowZeroLength, DefaultValue, SourceField, stuff like that ONE TIME, and another method that grabs the dynamic data every time the record changes - Value and Original Value, stuff like that. At any rate, I now have a class that I can open a recordset from a query, iterate through the fields collection instantiating one of these classes for each field, then save the properties at the instant the recordset opens. I then have any static properties - specifically of interest right now is SourceField and SourceTable - to use whenever I need to report or log a field as being empty. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- 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 Jul 15 01:36:13 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 15 Jul 2005 16:36:13 +1000 Subject: [AccessD] Reporting field properties In-Reply-To: <000601c588ec$d5f8f810$6c7aa8c0@ColbyM6805> References: <000501c588d4$1e985070$6c7aa8c0@ColbyM6805> Message-ID: <42D7E5FD.25420.429C3F0@stuart.lexacorp.com.pg> On 14 Jul 2005 at 23:25, John W. Colby wrote: > I have tried the same thing with the ADODB.Field object but there is nothing > like the wealth of properties that DAO makes available, and I see nothing > like SourceTable and SourceField. > > Anyone know if this is possible with ADO? > ADO is an "abstraction layer" between the data source and your application. The whole idea is that you don't need to know anything about the physical storage methods behind the recordset that you are working with. AFAIK, there is no way with an ADO recordset to tell where a particular piece of data came from. -- Stuart From jwcolby at colbyconsulting.com Fri Jul 15 09:38:33 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 15 Jul 2005 10:38:33 -0400 Subject: [AccessD] Reporting field properties In-Reply-To: <42D7E5FD.25420.429C3F0@stuart.lexacorp.com.pg> Message-ID: <001101c5894a$e3ac9210$6c7aa8c0@ColbyM6805> That's what I thought. In cases like this it is useful to be able to get at the physical layer. DAO is occasionally still useful. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, July 15, 2005 2:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 14 Jul 2005 at 23:25, John W. Colby wrote: > I have tried the same thing with the ADODB.Field object but there is > nothing like the wealth of properties that DAO makes available, and I > see nothing like SourceTable and SourceField. > > Anyone know if this is possible with ADO? > ADO is an "abstraction layer" between the data source and your application. The whole idea is that you don't need to know anything about the physical storage methods behind the recordset that you are working with. AFAIK, there is no way with an ADO recordset to tell where a particular piece of data came from. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Jul 15 10:11:11 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 15 Jul 2005 08:11:11 -0700 Subject: [AccessD] Reporting field properties Message-ID: The closest you come to a DAO.Field object is the ADOX.Column object. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, July 14, 2005 8:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Reporting field properties I have tried the same thing with the ADODB.Field object but there is nothing like the wealth of properties that DAO makes available, and I see nothing like SourceTable and SourceField. Anyone know if this is possible with ADO? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, July 14, 2005 8:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Reporting field properties As part of the reporting app I am writing for the call center, I need to do some data validation and report fields that fail the validation. The query that pulls data for the reports can come from many different tables, as many as 8 or 10. The issue is how to report that the data in FieldName X in TableName Y is invalid. I have to build a report of data that fails the validation, and issue the report so that the data can be fixed. For example some fields are critical to the client, i.e. "do not send the record in the report if the data in fields A, F, G, K, or X are missing". The nature of this business is that data is collected piecemeal over time but specific pieces just absolutely have to be there before these reports (data extracts) can be sent to the client. I already have a system that builds classes to hold the reporting information about the export, the record and the fields IN THE QUERY but one thing that is tough to get (directly) is the actual table name and field name in the source field of a query. As a result I designed a little class to accept a field object from DAO and grab specific properties from that field object. The specifics looks something like: In the class header: Private mstrForeignName As String Private mstrName As String Private mvarDefaultValue As Variant Private mblnAllowZeroLength As Boolean Private mblnDataUpdatable As Boolean Private mvarOriginalValue As Variant Private mblnRequired As Boolean Private mlngSize As Long Private mstrSourceField As String Private mstrSourceTable As String Private mintType As Integer Private mstrValidationRule As String Private mstrValidationText As String Private mvarValue As Variant Private mvarVisibleValue As Variant And the class method that accepts a field object and pulls these properties out: Public Function mReadClassProperties(lFld As DAO.Field) On Error GoTo Err_mReadClassProperties On Error Resume Next With lFld mblnAllowZeroLength = .AllowZeroLength mblnDataUpdatable = .DataUpdatable mvarDefaultValue = .DefaultValue mstrForeignName = .ForeignName mstrName = .Name mvarOriginalValue = .OriginalValue mblnRequired = .Required mlngSize = .Size mstrSourceField = .SourceField mstrSourceTable = .SourceTable mintType = .Type mstrValidationRule = .ValidationRule mstrValidationText = .ValidationText mvarValue = .Value mvarVisibleValue = .VisibleValue End With Exit_mReadClassProperties: Exit Function Err_mReadClassProperties: MsgBox Err.Description, , "Error in Function clsDAOFld.mReadClassProperties" Resume Exit_mReadClassProperties Resume 0 '.FOR TROUBLESHOOTING End Function And of course methods to read the property values: Public Property Get pForeignName() As String pForeignName = mstrForeignName End Property Public Property Get pName() As String pName = mstrName End Property Public Property Get pDefaultValue() As Variant pDefaultValue = mvarDefaultValue End Property Etc etc. The reason that I store these field properties in my own class is that I need to gather the data about each field in the big query one time, as the recordset is opened, rather than each time a record is read (for speed). I am currently really only interested in the static stuff like SourceField and SourceTable but for completeness just added the rest. Notice that some of the field properties are dynamic and some are static, i.e. some are about data and others are about the format of the data. I could (and probably will eventually) break this down into two methods, one that grabs the static properties such as AllowZeroLength, DefaultValue, SourceField, stuff like that ONE TIME, and another method that grabs the dynamic data every time the record changes - Value and Original Value, stuff like that. At any rate, I now have a class that I can open a recordset from a query, iterate through the fields collection instantiating one of these classes for each field, then save the properties at the instant the recordset opens. I then have any static properties - specifically of interest right now is SourceField and SourceTable - to use whenever I need to report or log a field as being empty. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 prosoft6 at hotmail.com Fri Jul 15 10:25:41 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Fri, 15 Jul 2005 11:25:41 -0400 Subject: [AccessD] File Maker Pro vs. Access Message-ID: Hi Everyone, Just wondered if there were some opinions about developing in File Maker Pro vs. Access. I have heard a few opinions on the topic in the past, but wondered if anyone out there has experience in both. I'm supporting an application (backup support) that was written in File Maker Pro, and the users keep complaining that it runs really slowly around the first of the month(when they are the busiest) Since the application was written by another company, I dont' have any rights to make changes. The company claims that everything is working great.......but the users of course aren't happy. It seems that File Maker is opening every single module, even though the users may only be calling one portion of the program. You can actually sit there and watch all of the screens load. There must be at least fifteen of them. Just wondering if this is a File Maker standard type occurrence, or maybe just the way the programmer made things happen. Any opinions? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From cfoust at infostatsystems.com Fri Jul 15 10:56:15 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 15 Jul 2005 08:56:15 -0700 Subject: [AccessD] File Maker Pro vs. Access Message-ID: You can create some incredibly BAD applicatons in File Maker, how bad depends on the version. :-< There is very little distinction in FileMaker between the GUI and the data structures and only the latest version actually keeps all the tables and "relationships" in a single file instead of separate files. I'm not sure there ARE any "standard" occurrences in FileMaker, but you can download a 30-day free trial of the latest version and play with it to see how it behaves. It is enough to make any Access developer fall to their knees in gratitude that they don't have to use FileMaker! Charlotte Foust -----Original Message----- From: Julie Reardon-Taylor [mailto:prosoft6 at hotmail.com] Sent: Friday, July 15, 2005 8:26 AM To: accessd at databaseadvisors.com Subject: [AccessD] File Maker Pro vs. Access Hi Everyone, Just wondered if there were some opinions about developing in File Maker Pro vs. Access. I have heard a few opinions on the topic in the past, but wondered if anyone out there has experience in both. I'm supporting an application (backup support) that was written in File Maker Pro, and the users keep complaining that it runs really slowly around the first of the month(when they are the busiest) Since the application was written by another company, I dont' have any rights to make changes. The company claims that everything is working great.......but the users of course aren't happy. It seems that File Maker is opening every single module, even though the users may only be calling one portion of the program. You can actually sit there and watch all of the screens load. There must be at least fifteen of them. Just wondering if this is a File Maker standard type occurrence, or maybe just the way the programmer made things happen. Any opinions? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Jul 15 12:32:16 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 15 Jul 2005 13:32:16 -0400 Subject: [AccessD] Changing Combo Box Data Source Message-ID: I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. From accessd at shaw.ca Fri Jul 15 12:40:21 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 15 Jul 2005 10:40:21 -0700 Subject: [AccessD] Framework book - was caption from code In-Reply-To: <000001c5882c$9f82dfa0$6c7aa8c0@ColbyM6805> Message-ID: <0IJO0057JJR652@l-daemon> Hi John: I will answer inline... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, July 13, 2005 9:29 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code OK, bear with me since I am new to this unbound (but data aware) form business. Forms have a recordset correct, just not bound to one. Controls on each form are created manually and the named. The corresponding field is set how? IOW how is the control made aware of the data that it is unbound to. Do you (currently) use classes for this at all? > I do not use classes to do this but should... It definitely leads itself toward a class. I am/have doing classes but they are in VB and subsequently VB.Net. The fields are filled from the recordset like: With rsCardList If .BOF = False And .EOF = False Then txtNameonCard = ![Name] end if End With ..or... Here is a very simplified version of filling the Form fields from memory. The recordset fields have to precisely match the form layout for this to work but position of the fields ... For i = 0 to frm.Controls.Count With MyRecordset Frm.Controls(i) = .Fields(i) End With Next i ... .. and a while loop if a subform < Off the top of my head, I see a need to load a class instance for each control, which will hold the field name that the control loads data from and writes changes back to. A "dirty" variable to indicate that the control (data) has been modified. The form class then has a control scanner that loads a control instance for each control discovered on the form. > It is not the form being 'bound' or 'unbound' that indicated whether a field has been changed 'dirty' on a form but it is whether the field .text or .value is different. To test whether form values have been changed you can check the 'dirty' flag, monitor the validation event, compare the field .text and .value info or compare the values against the recordset values. Each combo box list values are collected first, used to populate the list data and generally remain static until the user leaves the form or even the application. If the list value are continually changing then they must be managed like standard form fields. < The form init will init the form class, then go back and initialize each control with the field name that it is unbound to. The form class knows how to read data and then iterates the control classes pushing in data values to the control class, which in turn pushes the value in to the control. Or the control class just uses the control as the structure that holds the data value. Correct me if I'm wrong, but unbound controls don't manipulate the OldValue property the way that bound controls do, correct? > Actually they do; see above... < Thus the control class needs to store the value into an OldVal variable in the control class. What events work correctly with unbound forms and controls, and which events do not fire or exhibit issues due to the unboundness? IOW it seems that a form BeforeUpdate / AfterUpdate etc simply wouldn't fire since there is no bound recordset to monitor. What about controls? > As soon as a change is made to a form/record the data for the specific recordset/form is re-acquired. The following assumes a text request though I try to keep most of my calls done through queries or stored procedures. This command attempts to lock out any other uses until the recordset is closed. It works as if it was originating from a 'bound' form and really there is only two lines of important code... the rest relates to the ADO data methodology. Below is part of a snippet: ... With objCmd .CommandType = adCmdText .CommandText = "select * from Company where recordID = " & Str(glbRecordID) End With Err.Clear rsCompany.Open objCmd, , adOpenDynamic, adLockPessimistic If Err.Number > 0 Then ... Handle the errors or warnings here ... End If ... Here is a site you can check over with more code and samples" http://support.sas.com/rnd/eai/oledb/rr_locking.htm < Is there any documentation anywhere that discusses the event differences between bound and unbound forms and controls? My bound object classes sink the events for the object that they represent and can (and do) run code in those events. I need to know the differences between bound object events and unbound object events. I actually have a tiny little form (8 controls or so) that I need to take unbound to eliminate locking issues that I simply cannot resolve with the bound version. > Hope this helps...Jim < John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 12:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: The methods I have used were designed about eight years ago and have copied/improved again and again. Here are the basics and a step by step methodology: 1. I always use ADO-OLE. (One exception is MySQL... a bit of a pain. If someone could figure out a method that would not require a station by station visit to install the MySQL ODBC drivers I would be for ever indebted.) 2. The forms and subforms are populated as the user moves through the records and but until the user actually changes field content on a form or attempts to delete the current record, the recordset used to feed the form is static. 3. a) A record or group of records in the case of a subform being displayed, are first pulled into a recordset, and content are then used to populate the form collection. In theory the record exists in three places. b) If there is a change of deletion request the recordset is locked by creating a dynamic recordset with record-lock attribute. c) If an 'already locked' error occurs when this lock is being applied then the user is informed of the condition and given the appropriate options. d) When using a 'real' :-) SQL DB (MS SQL/Oracle etc.) much of the record handling is managed internally as soon as the 'BeginTrans' is applied and closed or resolved when the 'CommitTrans' or 'RollbackTrans' runs. It may initially seem a little complex but it gives a full range of options for managing the data and it allows the client to build large databases with many users and only requires the purchase a few licenses/seats. (ie. 20 licenses and 100 users.) Using ADO makes is easy to switch or attach different data sources with little effort. (In theory one line of code.) Even web applications can be created leveraging the same methods. That is not totally true but given that SQL versions are standardizing coupled with the use of Store Procedures/Queries, with passing parameters, very few changes are needed. I am still pacing around the XML pool but believe in the long run that is where to go. So there is the 'thumb-nail' sketch of the 'non-bounder' application implementation methodology. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, July 13, 2005 4:35 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Jim, My framework (the part that had to do with forms and controls) was indeed aimed at bound forms. However the concept works for unbound forms as well. Indeed it would be even more critical to use a framework as you the developer are doing so much of the work that Access was doing for you - loading all of the data into the controls, checking for updates to the data by other people before you wrote changes back to the table, writing the data back from controls into fields in the tables, stuff like that. All of that code would be framework material. Once written and stored in the framework, the doing of it would be automatic by the framework. If you are one of the unholy (unbounders) why don't you give a thumbnail sketch of how you manage all of that work. I will then brainstorm how I would look at doing it in a framework. Remember that the concept of a framework is to make it as automatic as possible. For example (in a bound form) I have a form class and I have a class for each control type. The form class runs a control scanner, gets the control type of each control, loads a class instance for each control found. Once this is done, the form class and control classes can work together to do tasks. As an example, I can literally just drop a pair of controls on the form, a text box named RecID that exposes (is bound to) the PK (always an autonumber) and an unbound combo called RecSel. The names are specific and if the control scanner finds this pair of controls it knows that a record selector exists and runs the code. The afterupdate of the combo by that name calls a method of the parent form saying "move to recid XXXX". The column 0 of the combo is the PK of the record in the form so it knows the PK. The form's OnCurrent knows that it needs to keep the combo synced to the displayed record in the form so it calls a method of the combo class telling it to display the data relevant to the current record in the form. Thus the form, the combo and a text box all work as a system to form a record selector. If the developer drops these two controls on the form he "just has" a record selector. Nothing else is required - other than binding RecSel to the PK field and setting the combo's query to display the data and get the PK of the records in the table. As an unbounder, you need to think about how to achieve this kind of "automaticness" in the things you do. Naturally some tasks do require feeding data into init() methods of classes to set the classes up to do their job. After that though the "systems" need to just work together. Load the data into the unbound form / controls. Store flags in each control's class saying that control's data was modified. Scan for all controls with modified data and update the underlying data in the record. Check for data changes in the data you are about to update and inform the user that another user edited the record since you loaded the data. Etc. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, July 13, 2005 2:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Framework book - was caption from code Hi John: Save a copy for me. It sounds like a good read...but I guess it only works with bound forms.(?) 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 jwcolby at colbyconsulting.com Fri Jul 15 12:44:55 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 15 Jul 2005 13:44:55 -0400 Subject: [AccessD] Changing Combo Box Data Source In-Reply-To: Message-ID: <001701c58964$e9b9a5c0$6c7aa8c0@ColbyM6805> The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Fri Jul 15 13:00:49 2005 From: JHewson at karta.com (Jim Hewson) Date: Fri, 15 Jul 2005 13:00:49 -0500 Subject: [AccessD] Changing Combo Box Data Source Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C03629CF6@karta-exc-int.Karta.com> I'm not sure what that would do? Karen wants the combo box to show FILTERED records unless the user wants to see UNFILTERED records. I agree that a SQL statement would be able to give the data she wants. On the after update event of a button somewhere on the form; change the Row Source of the combo box with an appropriate SQL statement. Changing the Caption of the Button from "All" to "Open Only" would help the user and indicate which SQL statement was used. Then refresh the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 mikedorism at verizon.net Fri Jul 15 13:13:23 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Fri, 15 Jul 2005 14:13:23 -0400 Subject: [AccessD] Changing Combo Box Data Source In-Reply-To: <001701c58964$e9b9a5c0$6c7aa8c0@ColbyM6805> Message-ID: <000201c58968$e48172a0$2f01a8c0@dorismanning> How is that the "correct" way? The OnEnter event occurs when the control receives focus and the OnExit event occurs when the control loses focus. You suggested solution would have records always UNFILTERED with no way to FILTER them because as soon as the user leaves the combo to do something to a filtered record, the records would unfilter again. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 1:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Jul 15 13:15:18 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 15 Jul 2005 14:15:18 -0400 Subject: [AccessD] Changing Combo Box Data Source In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C03629CF6@karta-exc-int.Karta.com> Message-ID: <001801c58969$2853d040$6c7aa8c0@ColbyM6805> If this is a bound form, then if you filter the combo but don't filter the records underneath the form, any records where the FK in the underlying record is missing from the combo will show a blank in the combo. That is what the solution I gave is designed to address. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, July 15, 2005 2:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Changing Combo Box Data Source I'm not sure what that would do? Karen wants the combo box to show FILTERED records unless the user wants to see UNFILTERED records. I agree that a SQL statement would be able to give the data she wants. On the after update event of a button somewhere on the form; change the Row Source of the combo box with an appropriate SQL statement. Changing the Caption of the Button from "All" to "Open Only" would help the user and indicate which SQL statement was used. Then refresh the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cyx5 at cdc.gov Fri Jul 15 13:16:36 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 15 Jul 2005 14:16:36 -0400 Subject: [AccessD] Changing Combo Box Data Source Message-ID: What is the code? After update, me.combobox.recordsource= blaah blaah? I am looking for the syntax. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Friday, July 15, 2005 2:13 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source How is that the "correct" way? The OnEnter event occurs when the control receives focus and the OnExit event occurs when the control loses focus. You suggested solution would have records always UNFILTERED with no way to FILTER them because as soon as the user leaves the combo to do something to a filtered record, the records would unfilter again. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 1:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cyx5 at cdc.gov Fri Jul 15 13:20:46 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 15 Jul 2005 14:20:46 -0400 Subject: [AccessD] Changing Combo Box Data Source Message-ID: It is not bound. The first unbound combo box has the user select a test. There are around 400 tests. Once the test is selected, the second combo box stores the projects on which the selected test has occurred. At any given time, a test might be outstanding on four or five projects. But, since the beginning of time, that test may have been on seven hundred projects. Normally the user only needs to see those projects that are open. But the PIA wants to see all on occassion so I just wanted to put a little button to change the datasource of the project box to show all of them. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 2:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source If this is a bound form, then if you filter the combo but don't filter the records underneath the form, any records where the FK in the underlying record is missing from the combo will show a blank in the combo. That is what the solution I gave is designed to address. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, July 15, 2005 2:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Changing Combo Box Data Source I'm not sure what that would do? Karen wants the combo box to show FILTERED records unless the user wants to see UNFILTERED records. I agree that a SQL statement would be able to give the data she wants. On the after update event of a button somewhere on the form; change the Row Source of the combo box with an appropriate SQL statement. Changing the Caption of the Button from "All" to "Open Only" would help the user and indicate which SQL statement was used. Then refresh the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Jul 15 13:34:02 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 15 Jul 2005 14:34:02 -0400 Subject: [AccessD] Changing Combo Box Data Source In-Reply-To: <000201c58968$e48172a0$2f01a8c0@dorismanning> Message-ID: <001a01c5896b$c9039b90$6c7aa8c0@ColbyM6805> My solution is designed to display ALL records from the table filling the combo when the combo does NOT have the focus. This allows the combo to display any of it's valid values when the form is just being browsed. If the combo is going to be used to SELECT filtered records from the table filling the combo, then the query is changed as the user clicks into the combo. The user can now ONLY SELECT filtered records from the combo's table. It sounds like that is what she wanted. If you filter the combo to only display open projects, but the form displays ALL projects, then as the user browses the records, the records with CLOSED projects will display a blank in the combo. The combo MUST DISPLAY ALL possible choices when JUST BROWSING, but filter down to only allow OPEN projects when adding new records. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Friday, July 15, 2005 2:13 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source How is that the "correct" way? The OnEnter event occurs when the control receives focus and the OnExit event occurs when the control loses focus. You suggested solution would have records always UNFILTERED with no way to FILTER them because as soon as the user leaves the combo to do something to a filtered record, the records would unfilter again. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, July 15, 2005 1:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source The "correct" way to handle this is to have a query that shows ALL records (UNFILTERED) and another that shows FILTERED records. In OnEnter, change the query to the FILTERED query, in OnExit change the query to the UNFILTERED query. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 prosoft6 at hotmail.com Fri Jul 15 13:39:15 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Fri, 15 Jul 2005 14:39:15 -0400 Subject: [AccessD] File Maker Pro vs. Access In-Reply-To: Message-ID: Wow! This application that I am referring to is being sold right now across the country. The even have a Quickbooks add-in. The company that developed it is growing like crazy. Maybe it's time to make an Access version! Thank you for your opinions! Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From john at winhaven.net Fri Jul 15 13:44:50 2005 From: john at winhaven.net (John Bartow) Date: Fri, 15 Jul 2005 13:44:50 -0500 Subject: [AccessD] Changing Combo Box Data Source In-Reply-To: Message-ID: <200507151844.j6FIixPi298550@pimout4-ext.prodigy.net> Karen, I have an A97 app where I had to allow for (eventually) 9 different filters in a list box. It started out with less choices and they kept growing so building it this way made it very flexible. I needed to keep the app small so I did it using SQL statements (This was back when floppies were still the removable media of choice). The UI is a frame with 9 buttons. The default recordset and each button calls a subroutine that sets the recordset using a case statement. I've condensed it below: Private Sub ChooseList() Dim strListSelectSQL As String Dim strListWhereSQL As String Dim strListOrderSQL As String Dim strListFullSQL As String DoCmd.Hourglass True strListSelectSQL = "SELECT [sql select statement] " Select Case fraListChoices Case 1: strListWhereSQL = "WHERE [sql order statement] " strListOrderSQL = " ORDER BY [sql order statement];" Case 2: strListWhereSQL = " "WHERE [sql order statement] " strListOrderSQL = " ORDER BY [sql order statement];" Case Else: strListWhereSQL = " "WHERE [sql order statement] " strListOrderSQL = " ORDER BY [sql order statement];" End Select strListFullSQL = strListSelectSQL & strListWhereSQL & strListOrderSQL Me.lstList.RowSource = strListFullSQL Call SetListMess 'if no record tell user End Sub You could do the same thing with queries set with different filters if the resulting bloat didn't matter. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 12:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Fri Jul 15 13:47:21 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Fri, 15 Jul 2005 14:47:21 -0400 Subject: [AccessD] Changing Combo Box Data Source In-Reply-To: Message-ID: Karen, Why don't you just show the unfiltered records on the OnDoubleClick event and show the filtered records all other times? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From cyx5 at cdc.gov Fri Jul 15 13:50:14 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 15 Jul 2005 14:50:14 -0400 Subject: [AccessD] Changing Combo Box Data Source Message-ID: That is it. Thank you so much. Happy Friday! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, July 15, 2005 2:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Changing Combo Box Data Source Karen, I have an A97 app where I had to allow for (eventually) 9 different filters in a list box. It started out with less choices and they kept growing so building it this way made it very flexible. I needed to keep the app small so I did it using SQL statements (This was back when floppies were still the removable media of choice). The UI is a frame with 9 buttons. The default recordset and each button calls a subroutine that sets the recordset using a case statement. I've condensed it below: Private Sub ChooseList() Dim strListSelectSQL As String Dim strListWhereSQL As String Dim strListOrderSQL As String Dim strListFullSQL As String DoCmd.Hourglass True strListSelectSQL = "SELECT [sql select statement] " Select Case fraListChoices Case 1: strListWhereSQL = "WHERE [sql order statement] " strListOrderSQL = " ORDER BY [sql order statement];" Case 2: strListWhereSQL = " "WHERE [sql order statement] " strListOrderSQL = " ORDER BY [sql order statement];" Case Else: strListWhereSQL = " "WHERE [sql order statement] " strListOrderSQL = " ORDER BY [sql order statement];" End Select strListFullSQL = strListSelectSQL & strListWhereSQL & strListOrderSQL Me.lstList.RowSource = strListFullSQL Call SetListMess 'if no record tell user End Sub You could do the same thing with queries set with different filters if the resulting bloat didn't matter. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, July 15, 2005 12:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Changing Combo Box Data Source I know there is a way to do this. Where are the Friday Jokes? My form opens. The combo box on the form is filtering for only "Open" items. However, PIA user wants the option to see all projects, open and closed. What code do I throw on a button to change the record source of the combo box to take off the filter? Is it setting the recordset? Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 15 17:56:47 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 16 Jul 2005 08:56:47 +1000 Subject: [AccessD] Reporting field properties In-Reply-To: <001101c5894a$e3ac9210$6c7aa8c0@ColbyM6805> References: <42D7E5FD.25420.429C3F0@stuart.lexacorp.com.pg> Message-ID: <42D8CBCF.28262.7AB81A7@stuart.lexacorp.com.pg> On 15 Jul 2005 at 10:38, John W. Colby wrote: > That's what I thought. In cases like this it is useful to be able to get at > the physical layer. DAO is occasionally still useful. > Ocassionally? If you are working with Jet(using Access as your data store) I don't know a single advantage of ADO over DAO. I do know several advantages DAO has over ADO. I use ADO in VB regularly, but every time I create a new Access application, the first thing I do is remove the ADO reference and replace it with a reference to DAO :-) -- Stuart From stuart at lexacorp.com.pg Fri Jul 15 18:21:19 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 16 Jul 2005 09:21:19 +1000 Subject: [AccessD] File Maker Pro vs. Access In-Reply-To: Message-ID: <42D8D18F.21693.7C1F891@stuart.lexacorp.com.pg> On 15 Jul 2005 at 8:56, Charlotte Foust wrote: > You can create some incredibly BAD applicatons in File Maker, how bad > depends on the version. :-< > > There is very little distinction in FileMaker between the GUI and the > data structures and only the latest version actually keeps all the > tables and "relationships" in a single file instead of separate files. > I'm not sure there ARE any "standard" occurrences in FileMaker, but you > can download a 30-day free trial of the latest version and play with it > to see how it behaves. It is enough to make any Access developer fall > to their knees in gratitude that they don't have to use FileMaker! > See: http://advisorforums.com/dFileMaker001.nsf/0/28b623cbbee234d193b008918e2948b 8?OpenDocument A bit old: http://www.techsoup.org/howto/articlepage.cfm?ArticleId=207&topicid=6 -- Stuart From artful at rogers.com Fri Jul 15 18:22:55 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 15 Jul 2005 19:22:55 -0400 Subject: [AccessD] Reporting field properties In-Reply-To: <42D8CBCF.28262.7AB81A7@stuart.lexacorp.com.pg> Message-ID: <200507152322.j6FNMsR17848@databaseadvisors.com> We take exactly opposite approaches there, Stuart. First thing I do is look for the DAO references and immediately start transforming them to ADO + ADOX. I started out with DAO since there was no alternative, and then I switched because that was the best way to talk to SQL... and once I got there I would _never_ go back. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: July 15, 2005 6:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 15 Jul 2005 at 10:38, John W. Colby wrote: > That's what I thought. In cases like this it is useful to be able to get at > the physical layer. DAO is occasionally still useful. > Ocassionally? If you are working with Jet(using Access as your data store) I don't know a single advantage of ADO over DAO. I do know several advantages DAO has over ADO. I use ADO in VB regularly, but every time I create a new Access application, the first thing I do is remove the ADO reference and replace it with a reference to DAO :-) Not to say that I am right, but merely that I am 100 times more comfortable in ADO + ADOX than in DAO. It just makes more sense to me, plus it works lots better with ADP + SQL apps. A. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Jul 16 00:12:20 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 15 Jul 2005 22:12:20 -0700 Subject: [AccessD] Reporting field properties In-Reply-To: <42D8CBCF.28262.7AB81A7@stuart.lexacorp.com.pg> Message-ID: <0IJP001EVFSG85@l-daemon> Hi Stuart: I must say that agree with Arthur on this approach. The ADO connection layer allows so much flexibility when writing Access applications. Most of my clients initially started out with small applications but as they grew they always moved to a MS SQL or Oracle backend. If I had written the program in DAO it would have been a huge and expensive re-write. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, July 15, 2005 3:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 15 Jul 2005 at 10:38, John W. Colby wrote: > That's what I thought. In cases like this it is useful to be able to get at > the physical layer. DAO is occasionally still useful. > Ocassionally? If you are working with Jet(using Access as your data store) I don't know a single advantage of ADO over DAO. I do know several advantages DAO has over ADO. I use ADO in VB regularly, but every time I create a new Access application, the first thing I do is remove the ADO reference and replace it with a reference to DAO :-) -- Stuart -- 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 Jul 16 01:17:39 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 16 Jul 2005 16:17:39 +1000 Subject: [AccessD] Reporting field properties In-Reply-To: <0IJP001EVFSG85@l-daemon> References: <42D8CBCF.28262.7AB81A7@stuart.lexacorp.com.pg> Message-ID: <42D93323.3667.93F2244@stuart.lexacorp.com.pg> On 15 Jul 2005 at 22:12, Jim Lawrence wrote: > Hi Stuart: > > I must say that agree with Arthur on this approach. The ADO connection layer > allows so much flexibility when writing Access applications. Most of my > clients initially started out with small applications but as they grew they > always moved to a MS SQL or Oracle backend. If I had written the program in > DAO it would have been a huge and expensive re-write. > You can still use DAO with SQL Server or Oracle. Just link to the backend using an ODBC SQL driver. -- Stuart From artful at rogers.com Sat Jul 16 07:51:23 2005 From: artful at rogers.com (Arthur Fuller) Date: Sat, 16 Jul 2005 08:51:23 -0400 Subject: [AccessD] Reporting field properties In-Reply-To: <42D93323.3667.93F2244@stuart.lexacorp.com.pg> Message-ID: <200507161251.j6GCpSR08661@databaseadvisors.com> Well, with Oracle you have a point, but with MS-SQL, why on earth use ODBC when you can use an ADP project instead. Does not compute... save and except that you might need to support both platforms. But aside from all that, I simply found ADO to be much more understandable and intuitive than DAO. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: July 16, 2005 2:18 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 15 Jul 2005 at 22:12, Jim Lawrence wrote: > Hi Stuart: > > I must say that agree with Arthur on this approach. The ADO connection layer > allows so much flexibility when writing Access applications. Most of my > clients initially started out with small applications but as they grew they > always moved to a MS SQL or Oracle backend. If I had written the program in > DAO it would have been a huge and expensive re-write. > You can still use DAO with SQL Server or Oracle. Just link to the backend using an ODBC SQL driver. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sat Jul 16 08:52:34 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 16 Jul 2005 15:52:34 +0200 Subject: [AccessD] File Maker Pro vs. Access Message-ID: Hi Julie What is this app doing? /gustav >>> prosoft6 at hotmail.com 07/15 8:39 pm >>> Wow! This application that I am referring to is being sold right now across the country. The even have a Quickbooks add-in. The company that developed it is growing like crazy. Maybe it's time to make an Access version! Thank you for your opinions! Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From accessd at shaw.ca Sat Jul 16 13:17:39 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 16 Jul 2005 11:17:39 -0700 Subject: [AccessD] Reporting field properties In-Reply-To: <42D93323.3667.93F2244@stuart.lexacorp.com.pg> Message-ID: <0IJQ00IKNG5D2N@l-daemon> Hi Stuart: If you have a number of computers users, many far-flung, from you how do you make sure that the operators have the specific ODBC driver setup and installed? It traditionally takes a manual installation to set up the Oracle/SQL drivers. With ADO these drivers are automatically installed on every computer. ADO drivers are significantly faster any ODBC driver. Case in point; given a client using an Oracle ODBC driver to connect from their Access application to their data. A simple query could take upwards 5 minutes to process (Especially if it required returning a large amount of data...like a report). Abandoning the ODBC driver for an ADO-OLE configuration reduced the process time to less than a minute. The only place where DAO shows superior performance to ADO is when it is connecting to an MDB database but even then it is not a major difference. The only time I use the default DAO drivers is when I am trying to boiler-plate a quickie for a client or a service call on an existing system. I have not built a major application on the DAO data tier since 1998 so I apologies for being very prejudice. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, July 15, 2005 11:18 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 15 Jul 2005 at 22:12, Jim Lawrence wrote: > Hi Stuart: > > I must say that agree with Arthur on this approach. The ADO connection layer > allows so much flexibility when writing Access applications. Most of my > clients initially started out with small applications but as they grew they > always moved to a MS SQL or Oracle backend. If I had written the program in > DAO it would have been a huge and expensive re-write. > You can still use DAO with SQL Server or Oracle. Just link to the backend using an ODBC SQL driver. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Jul 16 13:24:03 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 16 Jul 2005 11:24:03 -0700 Subject: [AccessD] Reporting field properties In-Reply-To: <200507161251.j6GCpSR08661@databaseadvisors.com> Message-ID: <0IJQ00K0XGG1LT@l-daemon> Hi Arthur: You have touched on one area where I have no knowledge...trying to connect a MySQL database without an ODBC driver or designing an ADP project for that matter. (I guess I should be reading your book?) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 16, 2005 5:51 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Reporting field properties Well, with Oracle you have a point, but with MS-SQL, why on earth use ODBC when you can use an ADP project instead. Does not compute... save and except that you might need to support both platforms. But aside from all that, I simply found ADO to be much more understandable and intuitive than DAO. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: July 16, 2005 2:18 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 15 Jul 2005 at 22:12, Jim Lawrence wrote: > Hi Stuart: > > I must say that agree with Arthur on this approach. The ADO connection layer > allows so much flexibility when writing Access applications. Most of my > clients initially started out with small applications but as they grew they > always moved to a MS SQL or Oracle backend. If I had written the program in > DAO it would have been a huge and expensive re-write. > You can still use DAO with SQL Server or Oracle. Just link to the backend using an ODBC SQL driver. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 bchacc at san.rr.com Sat Jul 16 18:45:19 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 16 Jul 2005 16:45:19 -0700 Subject: [AccessD] Getting rid of the Access Background Message-ID: <010801c58a60$6cc2b3c0$6a01a8c0@HAL9004> Dear List: I have an app which is an mde and I'd like the forms to appear without the standard access background frame. Sort of float over the desktop as it were. The forms have no max, min, and close buttons and no menu or tool bars and border style of dialog. Any way to do this? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From stuart at lexacorp.com.pg Sat Jul 16 20:26:23 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 17 Jul 2005 11:26:23 +1000 Subject: [AccessD] Getting rid of the Access Background In-Reply-To: <010801c58a60$6cc2b3c0$6a01a8c0@HAL9004> Message-ID: <42DA405F.16144.D5AC9D6@stuart.lexacorp.com.pg> On 16 Jul 2005 at 16:45, Rocky Smolin - Beach Access Software wrote: > Dear List: > > I have an app which is an mde and I'd like the forms to appear without the standard access > background frame. Sort of float over the desktop as it were. The forms have no max, min, and > close buttons and no menu or tool bars and border style of dialog. Any way to do this? > See http://www.mvps.org/access/api/api0019.htm -- Stuart From bchacc at san.rr.com Sat Jul 16 23:50:10 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 16 Jul 2005 21:50:10 -0700 Subject: [AccessD] Getting rid of the Access Background References: <42DA405F.16144.D5AC9D6@stuart.lexacorp.com.pg> Message-ID: <018301c58a8b$02f19080$6a01a8c0@HAL9004> Hey Stuart, that looks like it! Thank you. Regards, Rocky ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Saturday, July 16, 2005 6:26 PM Subject: Re: [AccessD] Getting rid of the Access Background > On 16 Jul 2005 at 16:45, Rocky Smolin - Beach Access Software wrote: > >> Dear List: >> >> I have an app which is an mde and I'd like the forms to appear without >> the standard access >> background frame. Sort of float over the desktop as it were. The forms >> have no max, min, and >> close buttons and no menu or tool bars and border style of dialog. Any >> way to do this? >> > > See http://www.mvps.org/access/api/api0019.htm > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Sun Jul 17 05:28:28 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 17 Jul 2005 12:28:28 +0200 Subject: [AccessD] Getting rid of the Access Background Message-ID: Hi Rocky I've had better luck with the code from Drew - that from Dev always complained that either a form was missing or was too much - quite confusing. Drew's code doesn't have those limitations and works nicely. I modified it slightly: Option Compare Database Option Explicit Const SW_HIDE As Long = 0 Const SW_SHOWNORMAL As Long = 1 Const SW_SHOWMINIMIZED As Long = 2 Const SW_SHOWMAXIMIZED As Long = 3 Private Declare Function IsWindowVisible Lib "user32" ( _ ByVal hwnd As Long) _ As Long Private Declare Function ShowWindow Lib "user32" ( _ ByVal hwnd As Long, _ ByVal nCmdShow As Long) _ As Long Public Function fAccessWindow( _ Optional Procedure As String, _ Optional SwitchStatus As Boolean, _ Optional StatusCheck As Boolean) _ As Boolean Dim lngState As Long Dim lngReturn As Long Dim booVisible As Boolean MsgBox Application.hWndAccessApp If SwitchStatus = False Then Select Case Procedure Case "Hide" lngState = SW_HIDE Case "Show", "Normal" lngState = SW_SHOWNORMAL Case "Minimize" lngState = SW_SHOWMINIMIZED Case "Maximize" lngState = SW_SHOWMAXIMIZED Case Else lngState = -1 End Select Else If IsWindowVisible(hWndAccessApp) = 1 Then lngState = SW_HIDE Else lngState = SW_SHOWNORMAL End If End If If lngState >= 0 Then lngReturn = ShowWindow(Application.hWndAccessApp, lngState) End If If StatusCheck = True Then If IsWindowVisible(hWndAccessApp) = 1 Then booVisible = True End If End If fAccessWindow = booVisible End Function Have in mind that reports cannot be previewed with the MDI hidden. /gustav >>> bchacc at san.rr.com 07/17 1:45 am >>> Dear List: I have an app which is an mde and I'd like the forms to appear without the standard access background frame. Sort of float over the desktop as it were. The forms have no max, min, and close buttons and no menu or tool bars and border style of dialog. Any way to do this? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From bchacc at san.rr.com Sun Jul 17 09:32:34 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 17 Jul 2005 07:32:34 -0700 Subject: [AccessD] Getting rid of the Access Background References: Message-ID: <005501c58adc$5fa9f820$6a01a8c0@HAL9004> Gustav: This: "Have in mind that reports cannot be previewed with the MDI hidden." is going to be a deal breaker, I think. I suppose I could "reappear" it for the reports, but I wonder if that will look awkward. I'll test and see. Thanks and regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Sunday, July 17, 2005 3:28 AM Subject: Re: [AccessD] Getting rid of the Access Background > Hi Rocky > > I've had better luck with the code from Drew - that from Dev always > complained that either a form was missing or was too much - quite > confusing. > Drew's code doesn't have those limitations and works nicely. > I modified it slightly: > > Option Compare Database > Option Explicit > > Const SW_HIDE As Long = 0 > Const SW_SHOWNORMAL As Long = 1 > Const SW_SHOWMINIMIZED As Long = 2 > Const SW_SHOWMAXIMIZED As Long = 3 > > Private Declare Function IsWindowVisible Lib "user32" ( _ > ByVal hwnd As Long) _ > As Long > > Private Declare Function ShowWindow Lib "user32" ( _ > ByVal hwnd As Long, _ > ByVal nCmdShow As Long) _ > As Long > > Public Function fAccessWindow( _ > Optional Procedure As String, _ > Optional SwitchStatus As Boolean, _ > Optional StatusCheck As Boolean) _ > As Boolean > > Dim lngState As Long > Dim lngReturn As Long > Dim booVisible As Boolean > > MsgBox Application.hWndAccessApp > > If SwitchStatus = False Then > Select Case Procedure > Case "Hide" > lngState = SW_HIDE > Case "Show", "Normal" > lngState = SW_SHOWNORMAL > Case "Minimize" > lngState = SW_SHOWMINIMIZED > Case "Maximize" > lngState = SW_SHOWMAXIMIZED > Case Else > lngState = -1 > End Select > Else > If IsWindowVisible(hWndAccessApp) = 1 Then > lngState = SW_HIDE > Else > lngState = SW_SHOWNORMAL > End If > End If > > If lngState >= 0 Then > lngReturn = ShowWindow(Application.hWndAccessApp, lngState) > End If > > If StatusCheck = True Then > If IsWindowVisible(hWndAccessApp) = 1 Then > booVisible = True > End If > End If > > fAccessWindow = booVisible > > End Function > > Have in mind that reports cannot be previewed with the MDI hidden. > > /gustav > >>>> bchacc at san.rr.com 07/17 1:45 am >>> > Dear List: > > I have an app which is an mde and I'd like the forms to appear without > the standard access background frame. Sort of float over the desktop as > it were. The forms have no max, min, and close buttons and no menu or > tool bars and border style of dialog. Any way to do this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Johncliviger at aol.com Mon Jul 18 06:33:03 2005 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Mon, 18 Jul 2005 07:33:03 EDT Subject: [AccessD] Finding a record in a subform Message-ID: <1da.401b6dad.300ced6f@aol.com> Hi all This must so easy but my brains are not in gear. I have a form with a subform (both in form view) and with one-to-many relationship. How do I find a particular record in the subform in? TIA johnc From adtp at touchtelindia.net Mon Jul 18 06:49:29 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Mon, 18 Jul 2005 17:19:29 +0530 Subject: [AccessD] Getting rid of the Access Background References: Message-ID: <004d01c58b8e$e0552320$2b1865cb@winxp> Rocky, My sample db named AppointmentsAlert might also be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com It demonstrates a form (without Access background window) to pop-up on the desktop, providing an audio-visual alert for imminent scheduled appointments (if any). The form materializes on top of other applications that might be in use. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Sunday, July 17, 2005 15:58 Subject: Re: [AccessD] Getting rid of the Access Background Hi Rocky I've had better luck with the code from Drew - that from Dev always complained that either a form was missing or was too much - quite confusing. Drew's code doesn't have those limitations and works nicely. I modified it slightly: Option Compare Database Option Explicit Const SW_HIDE As Long = 0 Const SW_SHOWNORMAL As Long = 1 Const SW_SHOWMINIMIZED As Long = 2 Const SW_SHOWMAXIMIZED As Long = 3 Private Declare Function IsWindowVisible Lib "user32" ( _ ByVal hwnd As Long) _ As Long Private Declare Function ShowWindow Lib "user32" ( _ ByVal hwnd As Long, _ ByVal nCmdShow As Long) _ As Long Public Function fAccessWindow( _ Optional Procedure As String, _ Optional SwitchStatus As Boolean, _ Optional StatusCheck As Boolean) _ As Boolean Dim lngState As Long Dim lngReturn As Long Dim booVisible As Boolean MsgBox Application.hWndAccessApp If SwitchStatus = False Then Select Case Procedure Case "Hide" lngState = SW_HIDE Case "Show", "Normal" lngState = SW_SHOWNORMAL Case "Minimize" lngState = SW_SHOWMINIMIZED Case "Maximize" lngState = SW_SHOWMAXIMIZED Case Else lngState = -1 End Select Else If IsWindowVisible(hWndAccessApp) = 1 Then lngState = SW_HIDE Else lngState = SW_SHOWNORMAL End If End If If lngState >= 0 Then lngReturn = ShowWindow(Application.hWndAccessApp, lngState) End If If StatusCheck = True Then If IsWindowVisible(hWndAccessApp) = 1 Then booVisible = True End If End If fAccessWindow = booVisible End Function Have in mind that reports cannot be previewed with the MDI hidden. /gustav >>> bchacc at san.rr.com 07/17 1:45 am >>> Dear List: I have an app which is an mde and I'd like the forms to appear without the standard access background frame. Sort of float over the desktop as it were. The forms have no max, min, and close buttons and no menu or tool bars and border style of dialog. Any way to do this? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From prosoft6 at hotmail.com Mon Jul 18 08:18:44 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 18 Jul 2005 09:18:44 -0400 Subject: [AccessD] File Maker Pro vs. Access In-Reply-To: Message-ID: It is a public housing application to trac tenants. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From prosoft6 at hotmail.com Mon Jul 18 08:46:24 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 18 Jul 2005 09:46:24 -0400 Subject: [AccessD] Reporting field properties In-Reply-To: <0IJQ00IKNG5D2N@l-daemon> Message-ID: Jim, That is all very good information. I am currently working on a DAO project and was worried about the references. Are you saying that if I install ADO all of the references appear automatically? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From accessd at shaw.ca Mon Jul 18 09:05:17 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 18 Jul 2005 07:05:17 -0700 Subject: [AccessD] Getting rid of the Access Background In-Reply-To: <010801c58a60$6cc2b3c0$6a01a8c0@HAL9004> Message-ID: <0IJT00K1PTSRR2@l-daemon> Hi Rocky: Check out one of the items in the last DBA news letters. It is an article from Darren Dick on using FTP in access but one of the programs features was that it removed the background Access frame. See: http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreate anftpclientwithinaccess/howtocreateanftpclientwithinaccess.htm Definitely watch for wrap Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Saturday, July 16, 2005 4:45 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Getting rid of the Access Background Dear List: I have an app which is an mde and I'd like the forms to appear without the standard access background frame. Sort of float over the desktop as it were. The forms have no max, min, and close buttons and no menu or tool bars and border style of dialog. Any way to do this? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Jul 18 09:18:17 2005 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 18 Jul 2005 09:18:17 -0500 Subject: [AccessD] Getting rid of the Access Background Message-ID: <123701F54509D9119A4F00D0B747349016D9BE@main2.marlow.com> Also Rocky, in Access 97, you only need the forms to have the Popup property set to True. In A2k and up, you need to set the Modal property to true also, unless you use slightly different code. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Sunday, July 17, 2005 9:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting rid of the Access Background Gustav: This: "Have in mind that reports cannot be previewed with the MDI hidden." is going to be a deal breaker, I think. I suppose I could "reappear" it for the reports, but I wonder if that will look awkward. I'll test and see. Thanks and regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Sunday, July 17, 2005 3:28 AM Subject: Re: [AccessD] Getting rid of the Access Background > Hi Rocky > > I've had better luck with the code from Drew - that from Dev always > complained that either a form was missing or was too much - quite > confusing. > Drew's code doesn't have those limitations and works nicely. > I modified it slightly: > > Option Compare Database > Option Explicit > > Const SW_HIDE As Long = 0 > Const SW_SHOWNORMAL As Long = 1 > Const SW_SHOWMINIMIZED As Long = 2 > Const SW_SHOWMAXIMIZED As Long = 3 > > Private Declare Function IsWindowVisible Lib "user32" ( _ > ByVal hwnd As Long) _ > As Long > > Private Declare Function ShowWindow Lib "user32" ( _ > ByVal hwnd As Long, _ > ByVal nCmdShow As Long) _ > As Long > > Public Function fAccessWindow( _ > Optional Procedure As String, _ > Optional SwitchStatus As Boolean, _ > Optional StatusCheck As Boolean) _ > As Boolean > > Dim lngState As Long > Dim lngReturn As Long > Dim booVisible As Boolean > > MsgBox Application.hWndAccessApp > > If SwitchStatus = False Then > Select Case Procedure > Case "Hide" > lngState = SW_HIDE > Case "Show", "Normal" > lngState = SW_SHOWNORMAL > Case "Minimize" > lngState = SW_SHOWMINIMIZED > Case "Maximize" > lngState = SW_SHOWMAXIMIZED > Case Else > lngState = -1 > End Select > Else > If IsWindowVisible(hWndAccessApp) = 1 Then > lngState = SW_HIDE > Else > lngState = SW_SHOWNORMAL > End If > End If > > If lngState >= 0 Then > lngReturn = ShowWindow(Application.hWndAccessApp, lngState) > End If > > If StatusCheck = True Then > If IsWindowVisible(hWndAccessApp) = 1 Then > booVisible = True > End If > End If > > fAccessWindow = booVisible > > End Function > > Have in mind that reports cannot be previewed with the MDI hidden. > > /gustav > >>>> bchacc at san.rr.com 07/17 1:45 am >>> > Dear List: > > I have an app which is an mde and I'd like the forms to appear without > the standard access background frame. Sort of float over the desktop as > it were. The forms have no max, min, and close buttons and no menu or > tool bars and border style of dialog. Any way to do this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Jul 18 09:27:34 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 18 Jul 2005 07:27:34 -0700 Subject: [AccessD] Reporting field properties In-Reply-To: Message-ID: <0IJT00J8HUTWN0@l-daemon> Hi Julie: No, all references do not appear automatically but all Windows computers from 98 on have a version of ADO stored in their common file area and once a reference to that is established it will be virtually guaranteed regardless of the computer. To check it out, view Program Files/Common Files/System/ADO, on any Windows computer. If you are using some of the more recent features of ADO versions, like streaming (great for embedded pictures) an update may be required. For the latest version check out http://www.microsoft.com/downloads/details.aspx?FamilyID=6C050FE3-C795-4B7D- B037-185D0506396C&displaylang=en HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: Monday, July 18, 2005 6:46 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Reporting field properties Jim, That is all very good information. I am currently working on a DAO project and was worried about the references. Are you saying that if I install ADO all of the references appear automatically? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Mon Jul 18 09:30:01 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 18 Jul 2005 15:30:01 +0100 Subject: [AccessD] Finding a record in a subform Message-ID: <20050718142957.E25262512AC@smtp.nildram.co.uk> Hi John When you say find a record in the subform are we talking about positioing the user there? If so how about something along the lines of (not tested): Dim rst as Recordset set rst=Me!subThingy.Form.RecordsetClone rst.FindFirst etc If Not rst.NoMatch Then Me!subThingy.Form.Bookmark=rst.Bookmark End If rst.Close Set rst=Nothing -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "accessD at databaseadvisors.com" Subject: [AccessD] Finding a record in a subform Date: 18/07/05 11:34 Hi all This must so easy but my brains are not in gear. I have a form with a subform (both in form view) and with one-to-many relationship. How do I find a particular record in the subform in? TIA johnc -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From Johncliviger at aol.com Mon Jul 18 09:58:34 2005 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Mon, 18 Jul 2005 10:58:34 EDT Subject: [AccessD] Finding a record in a subform Message-ID: <12f.614fc445.300d1d9a@aol.com> In a message dated 18/07/2005 15:36:01 GMT Daylight Time, andy at minstersystems.co.uk writes: set rst=Me!subThingy.Form.RecordsetClone Hi Andy Thank you for the comments. At the Form level I have the following code and it works just fine. Private Sub FindDealership(varDealership As Variant) Dim LV As Variant Dim rec As DAO.Recordset Dim strBookmark As String On Error Resume Next LV = Trim(varDealership) If IsNull(varDealership) Then MsgBox "No Record Found", vbInformation, "Error!" Exit Sub End If Forms!frmOutlets.SetFocus DoCmd.GoToControl Forms!frmOutlets!txtName.Name Set rec = Forms!frmOutlets.RecordsetClone rec.FindFirst "[supplierID] = " & CLng(LV) ' & """" If Not rec.NoMatch Then strBookmark = rec.Bookmark Forms!frmOutlets.Bookmark = strBookmark End If DoCmd.GoToControl Forms!frmOutlets!txtName.Name DoCmd.Close A_FORM, "fdlgFind" rec.Close End Sub I've since found that the line that is failing is .. I can't get it to focus on the subform where the recordset Forms![frmOutlets]![frm_Rejection]!Form.SetFocus The subform frm_Rejection is both Form name and the local Name. I changed that but no change. So... From prosoft6 at hotmail.com Mon Jul 18 09:59:53 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 18 Jul 2005 10:59:53 -0400 Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VB E-book In-Reply-To: <42D549F7.8090307@shaw.ca> Message-ID: I'd like both of you to sign up for one of these free courses before the 90 days runs out, specifically, Visual Studio. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From prosoft6 at hotmail.com Mon Jul 18 10:01:00 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 18 Jul 2005 11:01:00 -0400 Subject: [AccessD] Freebie VS 2005 training courses ASP VB SQL and VBE-book In-Reply-To: Message-ID: Sorry. Wrong e-mail address! Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From andy at minstersystems.co.uk Mon Jul 18 10:32:17 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 18 Jul 2005 16:32:17 +0100 Subject: [AccessD] Finding a record in a subform Message-ID: <20050718153214.547AB24F207@smtp.nildram.co.uk> John a)You've got a bang where you need a . in front of Form and b) It looks to me as if you need to set focus to a specific control, thus Forms![frmOutlets]![frm_Rejection].Form!txtxyz.SetFocus -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "accessd at databaseadvisors.com" Subject: Re: [AccessD] Finding a record in a subform Date: 18/07/05 14:59 In a message dated 18/07/2005 15:36:01 GMT Daylight Time, andy at minstersystems.co.uk writes: set rst=Me!subThingy.Form.RecordsetClone Hi Andy Thank you for the comments. At the Form level I have the following code and it works just fine. Private Sub FindDealership(varDealership As Variant) Dim LV As Variant Dim rec As DAO.Recordset Dim strBookmark As String On Error Resume Next LV = Trim(varDealership) If IsNull(varDealership) Then MsgBox "No Record Found", vbInformation, "Error!" Exit Sub End If Forms!frmOutlets.SetFocus DoCmd.GoToControl Forms!frmOutlets!txtName.Name Set rec = Forms!frmOutlets.RecordsetClone rec.FindFirst "[supplierID] = " & CLng(LV) ' & """" If Not rec.NoMatch Then strBookmark = rec.Bookmark Forms!frmOutlets.Bookmark = strBookmark End If DoCmd.GoToControl Forms!frmOutlets!txtName.Name DoCmd.Close A_FORM, "fdlgFind" rec.Close End Sub I've since found that the line that is failing is .. I can't get it to focus on the subform where the recordset Forms![frmOutlets]![frm_Rejection]!Form.SetFocus The subform frm_Rejection is both Form name and the local Name. I changed that but no change. So... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From JRojas at tnco-inc.com Mon Jul 18 14:02:44 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 18 Jul 2005 15:02:44 -0400 Subject: [AccessD] MRP Coding Examples Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3D2@mercury.tnco-inc.com> Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From john at winhaven.net Mon Jul 18 15:03:46 2005 From: john at winhaven.net (John Bartow) Date: Mon, 18 Jul 2005 15:03:46 -0500 Subject: [AccessD] MRP Coding Examples In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3D2@mercury.tnco-inc.com> Message-ID: <200507182004.j6IK3uWS263390@pimout3-ext.prodigy.net> Have you checked with Rocky? http://www.e-z-mrp.com/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: Monday, July 18, 2005 2:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MRP Coding Examples Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Jul 18 15:10:25 2005 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 18 Jul 2005 15:10:25 -0500 Subject: [AccessD] MRP Coding Examples In-Reply-To: <2605777.1121713528462.JavaMail.root@sniper14> Message-ID: <000c01c58bd4$bda6ccc0$0200a8c0@danwaters> Joe, A member of this list develops a shrink-wrap product called E Z MRP, but I don't know who it is. You can find this on the internet. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: Monday, July 18, 2005 2:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MRP Coding Examples Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Jul 18 16:07:49 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 18 Jul 2005 14:07:49 -0700 Subject: [AccessD] File Maker Pro vs. Access Message-ID: Yes, that first one pretty much sums it up. :-> Charlotte Foust -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Friday, July 15, 2005 4:21 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] File Maker Pro vs. Access On 15 Jul 2005 at 8:56, Charlotte Foust wrote: > You can create some incredibly BAD applicatons in File Maker, how bad > depends on the version. :-< > > There is very little distinction in FileMaker between the GUI and the > data structures and only the latest version actually keeps all the > tables and "relationships" in a single file instead of separate files. > I'm not sure there ARE any "standard" occurrences in FileMaker, but > you can download a 30-day free trial of the latest version and play > with it to see how it behaves. It is enough to make any Access > developer fall to their knees in gratitude that they don't have to use > FileMaker! > See: http://advisorforums.com/dFileMaker001.nsf/0/28b623cbbee234d193b008918e2 948b 8?OpenDocument A bit old: http://www.techsoup.org/howto/articlepage.cfm?ArticleId=207&topicid=6 -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Jul 18 16:10:12 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 18 Jul 2005 17:10:12 -0400 Subject: [AccessD] MRP Coding Examples In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3D2@mercury.tnco-inc.com> Message-ID: JR, What is it that your looking of examples for? "MRP" covers a lot of ground; BOM's, Routings, Time Phased Inventory, Purchasing, Quality control, Scrap and Rejection, Capacity planning, etc. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Monday, July 18, 2005 3:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MRP Coding Examples Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Jul 18 16:12:59 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 18 Jul 2005 14:12:59 -0700 Subject: [AccessD] Reporting field properties Message-ID: I can't agree with you, Stuart. I've created split Access databases with no linked tables using ADO. DAO would have been useless for that. DAO is primarily useful in dealing with the Jet engine structures and peculiarities and is optimized for that purpose. It tends to fall on its face when dealing with anything else. ADO is intended to handle data access, regardless of datasource, and I prefer it because it is far more powerful and flexible than DAO in data handling. It all depends on what you do with either one of them. Charlotte Foust -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Friday, July 15, 2005 3:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reporting field properties On 15 Jul 2005 at 10:38, John W. Colby wrote: > That's what I thought. In cases like this it is useful to be able to > get at the physical layer. DAO is occasionally still useful. > Ocassionally? If you are working with Jet(using Access as your data store) I don't know a single advantage of ADO over DAO. I do know several advantages DAO has over ADO. I use ADO in VB regularly, but every time I create a new Access application, the first thing I do is remove the ADO reference and replace it with a reference to DAO :-) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Tue Jul 19 07:09:06 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 19 Jul 2005 07:09:06 -0500 Subject: [AccessD] How big can table get? Message-ID: I have a table that I am going to be populating with data. I know the field types and sizes. Is there a way to estimate the maximum number of records the table can hold within the database? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 From jwcolby at colbyconsulting.com Tue Jul 19 07:25:30 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 19 Jul 2005 08:25:30 -0400 Subject: [AccessD] How big can table get? In-Reply-To: Message-ID: <000901c58c5c$f3c17930$6c7aa8c0@ColbyM6805> Yes, with the exception of memo fields which can hold anywhere from 0 to 32K bytes. A definition of how many bytes are required for each data type is available out there somewhere. Just add them up. An MDB container can contain 2gbytes IIRC. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, July 19, 2005 8:09 AM To: Access Developers discussion and problem solving Subject: [AccessD] How big can table get? I have a table that I am going to be populating with data. I know the field types and sizes. Is there a way to estimate the maximum number of records the table can hold within the database? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Tue Jul 19 07:29:30 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 19 Jul 2005 08:29:30 -0400 Subject: [AccessD] How big can table get? Message-ID: I think if you have to ask then you probably should consider the back end being in SQL server. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, July 19, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] How big can table get? Yes, with the exception of memo fields which can hold anywhere from 0 to 32K bytes. A definition of how many bytes are required for each data type is available out there somewhere. Just add them up. An MDB container can contain 2gbytes IIRC. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, July 19, 2005 8:09 AM To: Access Developers discussion and problem solving Subject: [AccessD] How big can table get? I have a table that I am going to be populating with data. I know the field types and sizes. Is there a way to estimate the maximum number of records the table can hold within the database? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 vrm at tim-cms.com Tue Jul 19 08:10:37 2005 From: vrm at tim-cms.com (Marcel Vreuls) Date: Tue, 19 Jul 2005 15:10:37 +0200 Subject: [AccessD] OT: work and employment In-Reply-To: Message-ID: <200507190907578.SM03480@MarcelPC> Hi All, I have been a freelance programmer for about 6 years now. I like the "freedom" I have got and it helped me al lot. As I have been on and off this list in the last few years and most of the time reading I thought just drop the question perhaps someone can help me. As I had some really heavy problems the last one and a half year I am think of emigrating to another country (at this time I am living in the netherlands). Mind you no illegal shit and so, but problems with ex-wife, child protection, etc. As a father you always start 6-0 behind, have to make it even and then get your advantage. I do not think this is any different in other countries so that is not the main reason. The main reason is start all over again. Now I have some questions and I hope your experience can help me. I know I cannot go to another country and go life there. There are all kind of rules that apply but for this example, I meet those rules - anyone any ideas how to get a (freelance) job in for example America, Canada or Australia. Any suggestions, references, contacts, offers and help are welcome. Here in Holland there are companies, sort of temp offices, who offer jobs to freelancers where you have to register. Most companies never do direct business with freelancers. It cost you about 10% of your our rate, but it is the only way. - What kind of insurance, taxes do I have to deal with as freelancer? - How are the rates, salary?? - Any experience with school and after school-support for kids when you are working?? About me. I am 32 year old, have 1 kid and am MCSE and MCSD vb6, .NET certified and about 10 years of hand-on IT experience Thxs, again, Marcel From Johncliviger at aol.com Tue Jul 19 09:18:08 2005 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Tue, 19 Jul 2005 10:18:08 EDT Subject: [AccessD] Finding a record in a subform Message-ID: <42.6d5f83eb.300e65a0@aol.com> Andy It works fine now. Thanks. Just one character wrong and the whole job stops! But that programming. Johnc From bchacc at san.rr.com Tue Jul 19 09:43:11 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 19 Jul 2005 07:43:11 -0700 Subject: [AccessD] Getting rid of the Access Background References: Message-ID: <001401c58c70$2feb9040$6a01a8c0@HAL9004> Gustav: There a line of code in there: "lngReturn = ShowWindow(Application.hWndAccessApp, lngState)" but ShowWindow is undefined. Is there a snip missing? Regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Sunday, July 17, 2005 3:28 AM Subject: Re: [AccessD] Getting rid of the Access Background > Hi Rocky > > I've had better luck with the code from Drew - that from Dev always > complained that either a form was missing or was too much - quite > confusing. > Drew's code doesn't have those limitations and works nicely. > I modified it slightly: > > Option Compare Database > Option Explicit > > Const SW_HIDE As Long = 0 > Const SW_SHOWNORMAL As Long = 1 > Const SW_SHOWMINIMIZED As Long = 2 > Const SW_SHOWMAXIMIZED As Long = 3 > > Private Declare Function IsWindowVisible Lib "user32" ( _ > ByVal hwnd As Long) _ > As Long > > Private Declare Function ShowWindow Lib "user32" ( _ > ByVal hwnd As Long, _ > ByVal nCmdShow As Long) _ > As Long > > Public Function fAccessWindow( _ > Optional Procedure As String, _ > Optional SwitchStatus As Boolean, _ > Optional StatusCheck As Boolean) _ > As Boolean > > Dim lngState As Long > Dim lngReturn As Long > Dim booVisible As Boolean > > MsgBox Application.hWndAccessApp > > If SwitchStatus = False Then > Select Case Procedure > Case "Hide" > lngState = SW_HIDE > Case "Show", "Normal" > lngState = SW_SHOWNORMAL > Case "Minimize" > lngState = SW_SHOWMINIMIZED > Case "Maximize" > lngState = SW_SHOWMAXIMIZED > Case Else > lngState = -1 > End Select > Else > If IsWindowVisible(hWndAccessApp) = 1 Then > lngState = SW_HIDE > Else > lngState = SW_SHOWNORMAL > End If > End If > > If lngState >= 0 Then > lngReturn = ShowWindow(Application.hWndAccessApp, lngState) > End If > > If StatusCheck = True Then > If IsWindowVisible(hWndAccessApp) = 1 Then > booVisible = True > End If > End If > > fAccessWindow = booVisible > > End Function > > Have in mind that reports cannot be previewed with the MDI hidden. > > /gustav > >>>> bchacc at san.rr.com 07/17 1:45 am >>> > Dear List: > > I have an app which is an mde and I'd like the forms to appear without > the standard access background frame. Sort of float over the desktop as > it were. The forms have no max, min, and close buttons and no menu or > tool bars and border style of dialog. Any way to do this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Jul 19 09:59:21 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 19 Jul 2005 07:59:21 -0700 Subject: [AccessD] Getting rid of the Access Background References: <001401c58c70$2feb9040$6a01a8c0@HAL9004> Message-ID: <000a01c58c72$7285d120$6a01a8c0@HAL9004> Never mind. Changed it to apiShowWindwo and it worked. Rocky ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 19, 2005 7:43 AM Subject: Re: [AccessD] Getting rid of the Access Background > Gustav: > > There a line of code in there: > "lngReturn = ShowWindow(Application.hWndAccessApp, lngState)" > > but ShowWindow is undefined. Is there a snip missing? > > Regards, > > Rocky > > > ----- Original Message ----- > From: "Gustav Brock" > To: > Sent: Sunday, July 17, 2005 3:28 AM > Subject: Re: [AccessD] Getting rid of the Access Background > > >> Hi Rocky >> >> I've had better luck with the code from Drew - that from Dev always >> complained that either a form was missing or was too much - quite >> confusing. >> Drew's code doesn't have those limitations and works nicely. I modified >> it slightly: >> >> Option Compare Database >> Option Explicit >> >> Const SW_HIDE As Long = 0 >> Const SW_SHOWNORMAL As Long = 1 >> Const SW_SHOWMINIMIZED As Long = 2 >> Const SW_SHOWMAXIMIZED As Long = 3 >> >> Private Declare Function IsWindowVisible Lib "user32" ( _ >> ByVal hwnd As Long) _ >> As Long >> >> Private Declare Function ShowWindow Lib "user32" ( _ >> ByVal hwnd As Long, _ >> ByVal nCmdShow As Long) _ >> As Long >> >> Public Function fAccessWindow( _ >> Optional Procedure As String, _ >> Optional SwitchStatus As Boolean, _ >> Optional StatusCheck As Boolean) _ >> As Boolean >> >> Dim lngState As Long >> Dim lngReturn As Long >> Dim booVisible As Boolean >> MsgBox Application.hWndAccessApp >> >> If SwitchStatus = False Then >> Select Case Procedure >> Case "Hide" >> lngState = SW_HIDE >> Case "Show", "Normal" >> lngState = SW_SHOWNORMAL >> Case "Minimize" >> lngState = SW_SHOWMINIMIZED >> Case "Maximize" >> lngState = SW_SHOWMAXIMIZED >> Case Else >> lngState = -1 >> End Select >> Else >> If IsWindowVisible(hWndAccessApp) = 1 Then >> lngState = SW_HIDE >> Else >> lngState = SW_SHOWNORMAL >> End If >> End If >> If lngState >= 0 Then >> lngReturn = ShowWindow(Application.hWndAccessApp, lngState) >> End If >> >> If StatusCheck = True Then >> If IsWindowVisible(hWndAccessApp) = 1 Then >> booVisible = True >> End If >> End If >> fAccessWindow = booVisible >> >> End Function >> >> Have in mind that reports cannot be previewed with the MDI hidden. >> >> /gustav >> >>>>> bchacc at san.rr.com 07/17 1:45 am >>> >> Dear List: >> >> I have an app which is an mde and I'd like the forms to appear without >> the standard access background frame. Sort of float over the desktop as >> it were. The forms have no max, min, and close buttons and no menu or >> tool bars and border style of dialog. Any way to do this? >> >> MTIA, >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com 858-259-4334 >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 Tue Jul 19 10:02:05 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 19 Jul 2005 17:02:05 +0200 Subject: [AccessD] Getting rid of the Access Background Message-ID: Hi Rocky It's declared in the header, though as Private ... /gustav >>> bchacc at san.rr.com 07/19 4:43 pm >>> Gustav: There a line of code in there: "lngReturn = ShowWindow(Application.hWndAccessApp, lngState)" but ShowWindow is undefined. Is there a snip missing? Regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Sunday, July 17, 2005 3:28 AM Subject: Re: [AccessD] Getting rid of the Access Background > Hi Rocky > > I've had better luck with the code from Drew - that from Dev always > complained that either a form was missing or was too much - quite > confusing. > Drew's code doesn't have those limitations and works nicely. > I modified it slightly: > > Option Compare Database > Option Explicit > > Const SW_HIDE As Long = 0 > Const SW_SHOWNORMAL As Long = 1 > Const SW_SHOWMINIMIZED As Long = 2 > Const SW_SHOWMAXIMIZED As Long = 3 > > Private Declare Function IsWindowVisible Lib "user32" ( _ > ByVal hwnd As Long) _ > As Long > > Private Declare Function ShowWindow Lib "user32" ( _ > ByVal hwnd As Long, _ > ByVal nCmdShow As Long) _ > As Long > > Public Function fAccessWindow( _ > Optional Procedure As String, _ > Optional SwitchStatus As Boolean, _ > Optional StatusCheck As Boolean) _ > As Boolean > > Dim lngState As Long > Dim lngReturn As Long > Dim booVisible As Boolean > > MsgBox Application.hWndAccessApp > > If SwitchStatus = False Then > Select Case Procedure > Case "Hide" > lngState = SW_HIDE > Case "Show", "Normal" > lngState = SW_SHOWNORMAL > Case "Minimize" > lngState = SW_SHOWMINIMIZED > Case "Maximize" > lngState = SW_SHOWMAXIMIZED > Case Else > lngState = -1 > End Select > Else > If IsWindowVisible(hWndAccessApp) = 1 Then > lngState = SW_HIDE > Else > lngState = SW_SHOWNORMAL > End If > End If > > If lngState >= 0 Then > lngReturn = ShowWindow(Application.hWndAccessApp, lngState) > End If > > If StatusCheck = True Then > If IsWindowVisible(hWndAccessApp) = 1 Then > booVisible = True > End If > End If > > fAccessWindow = booVisible > > End Function > > Have in mind that reports cannot be previewed with the MDI hidden. > > /gustav > >>>> bchacc at san.rr.com 07/17 1:45 am >>> > Dear List: > > I have an app which is an mde and I'd like the forms to appear without > the standard access background frame. Sort of float over the desktop as > it were. The forms have no max, min, and close buttons and no menu or > tool bars and border style of dialog. Any way to do this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 From DElam at jenkens.com Tue Jul 19 11:40:44 2005 From: DElam at jenkens.com (Elam, Debbie) Date: Tue, 19 Jul 2005 11:40:44 -0500 Subject: [AccessD] OT: work and employment Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0492CB35@natexch.jenkens.com> I can't give any advice on other countries, but the US is tough to immigrate to without employer sponsorship. If you are determined to stay freelance, register for the immigration lottery and cross your fingers. Health insurance is probably a lot more than you would expect since the US does not have subsidized health care. As an immigrant, you will probably be required to carry insurance too instead of relying on the free health care that is provided for the indigent here. Employers generally cover a large portion of health care costs, but if you do not have that, you will need to bill more to cover this. A healthy person can generally expect to spend at least $300/month (probably more) in insurance. For taxes, there is more paperwork, but it is not too bad as long as you stay on top of it. There are lots of websites for the self employed that could get you started. For one or two jobs, you could probably get a temporary work visa without too much trouble. This would be of limited assistance though, since once the work is done, you are in an only slightly better position to be given permanent residency. Debbie -----Original Message----- From: Marcel Vreuls [mailto:vrm at tim-cms.com] Sent: Tuesday, July 19, 2005 8:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: work and employment Hi All, I have been a freelance programmer for about 6 years now. I like the "freedom" I have got and it helped me al lot. As I have been on and off this list in the last few years and most of the time reading I thought just drop the question perhaps someone can help me. As I had some really heavy problems the last one and a half year I am think of emigrating to another country (at this time I am living in the netherlands). Mind you no illegal shit and so, but problems with ex-wife, child protection, etc. As a father you always start 6-0 behind, have to make it even and then get your advantage. I do not think this is any different in other countries so that is not the main reason. The main reason is start all over again. Now I have some questions and I hope your experience can help me. I know I cannot go to another country and go life there. There are all kind of rules that apply but for this example, I meet those rules - anyone any ideas how to get a (freelance) job in for example America, Canada or Australia. Any suggestions, references, contacts, offers and help are welcome. Here in Holland there are companies, sort of temp offices, who offer jobs to freelancers where you have to register. Most companies never do direct business with freelancers. It cost you about 10% of your our rate, but it is the only way. - What kind of insurance, taxes do I have to deal with as freelancer? - How are the rates, salary?? - Any experience with school and after school-support for kids when you are working?? About me. I am 32 year old, have 1 kid and am MCSE and MCSD vb6, .NET certified and about 10 years of hand-on IT experience Thxs, again, Marcel -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From JRojas at tnco-inc.com Tue Jul 19 12:00:54 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Tue, 19 Jul 2005 13:00:54 -0400 Subject: [AccessD] MRP Coding Examples Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3D5@mercury.tnco-inc.com> Determining requirements, really. Assuming that I have all the underlying data, I need to figure out how to generate a Make/Buy report looking at it by time periods. I just talked to Rocky and using EZ-MRP maybe a solution... I don't know what is involved in creating my own system so it is hard to determine which way to go... Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, July 18, 2005 5:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MRP Coding Examples JR, What is it that your looking of examples for? "MRP" covers a lot of ground; BOM's, Routings, Time Phased Inventory, Purchasing, Quality control, Scrap and Rejection, Capacity planning, etc. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Monday, July 18, 2005 3:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MRP Coding Examples Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From accessd at shaw.ca Tue Jul 19 12:48:39 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 19 Jul 2005 10:48:39 -0700 Subject: [AccessD] OT: work and employment In-Reply-To: <200507190907578.SM03480@MarcelPC> Message-ID: <0IJV00JG7YT0W9@l-daemon> Hi Marcel: You certifications would put you in the top 6% of in-demand programmers, especially with .Net credentials. (According to one survey I saw.) You would have to immigrate if you wanted to easily get a job in either US or Canada but I have no idea about Australia. There are working Visas in Canada and Green Cards and H1B Visas in the US but you have to get a future 'local' employer to sponsor you if your want to go that route. Not always easy if there is a saturated market. Immigration might be your best choice but you have to have specific requirements and candidates are selected on a range of things from type of expertise, age, money, degrees/certifications etc. In Canada, there is a Federal immigration web site location that you can enter your stats. If you qualifications add up to 75 points out of a possible 100, you're in. One friend, who has a degree in Computer Science, married for 10 years, two kids, owned house, an expert in Java and C++ took 15 days to be cleared into Canada. On the other-hand another friend, with photography certifications, took over 6 years to get accepted and it was not until he put a qualification in an odd 'Multilith News Printer' type that he got the nod. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Marcel Vreuls Sent: Tuesday, July 19, 2005 6:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: work and employment Hi All, I have been a freelance programmer for about 6 years now. I like the "freedom" I have got and it helped me al lot. As I have been on and off this list in the last few years and most of the time reading I thought just drop the question perhaps someone can help me. As I had some really heavy problems the last one and a half year I am think of emigrating to another country (at this time I am living in the netherlands). Mind you no illegal shit and so, but problems with ex-wife, child protection, etc. As a father you always start 6-0 behind, have to make it even and then get your advantage. I do not think this is any different in other countries so that is not the main reason. The main reason is start all over again. Now I have some questions and I hope your experience can help me. I know I cannot go to another country and go life there. There are all kind of rules that apply but for this example, I meet those rules - anyone any ideas how to get a (freelance) job in for example America, Canada or Australia. Any suggestions, references, contacts, offers and help are welcome. Here in Holland there are companies, sort of temp offices, who offer jobs to freelancers where you have to register. Most companies never do direct business with freelancers. It cost you about 10% of your our rate, but it is the only way. - What kind of insurance, taxes do I have to deal with as freelancer? - How are the rates, salary?? - Any experience with school and after school-support for kids when you are working?? About me. I am 32 year old, have 1 kid and am MCSE and MCSD vb6, .NET certified and about 10 years of hand-on IT experience Thxs, again, Marcel -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darsant at gmail.com Tue Jul 19 13:15:30 2005 From: darsant at gmail.com (Josh McFarlane) Date: Tue, 19 Jul 2005 13:15:30 -0500 Subject: [AccessD] OT: work and employment In-Reply-To: <0IJV00JG7YT0W9@l-daemon> References: <200507190907578.SM03480@MarcelPC> <0IJV00JG7YT0W9@l-daemon> Message-ID: <53c8e05a05071911157d239483@mail.gmail.com> On 7/19/05, Jim Lawrence wrote: > Hi Marcel: > > You certifications would put you in the top 6% of in-demand programmers, > especially with .Net credentials. (According to one survey I saw.) You would > have to immigrate if you wanted to easily get a job in either US or Canada > but I have no idea about Australia. There are working Visas in Canada and > Green Cards and H1B Visas in the US but you have to get a future 'local' > employer to sponsor you if your want to go that route. Not always easy if > there is a saturated market. > > Immigration might be your best choice but you have to have specific > requirements and candidates are selected on a range of things from type of > expertise, age, money, degrees/certifications etc. In Canada, there is a > Federal immigration web site location that you can enter your stats. If you > qualifications add up to 75 points out of a possible 100, you're in. One > friend, who has a degree in Computer Science, married for 10 years, two > kids, owned house, an expert in Java and C++ took 15 days to be cleared into > Canada. On the other-hand another friend, with photography certifications, > took over 6 years to get accepted and it was not until he put a > qualification in an odd 'Multilith News Printer' type that he got the nod. > > HTH > Jim Took a loko at the test out of curiosity, and it seems like they dropped the acceptance to 67, so it should be easier for you to get in now. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From accessd at shaw.ca Tue Jul 19 13:25:10 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 19 Jul 2005 11:25:10 -0700 Subject: [AccessD] OT: work and employment In-Reply-To: <53c8e05a05071911157d239483@mail.gmail.com> Message-ID: <0IJW0040M0HWWQ@l-daemon> Totally OT: I wonder how many Canadian could actually get back into the country once their citizenship was removed if they had to take the test? What is your bet 30% more, less? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Tuesday, July 19, 2005 11:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: work and employment On 7/19/05, Jim Lawrence wrote: > Hi Marcel: > > You certifications would put you in the top 6% of in-demand programmers, > especially with .Net credentials. (According to one survey I saw.) You would > have to immigrate if you wanted to easily get a job in either US or Canada > but I have no idea about Australia. There are working Visas in Canada and > Green Cards and H1B Visas in the US but you have to get a future 'local' > employer to sponsor you if your want to go that route. Not always easy if > there is a saturated market. > > Immigration might be your best choice but you have to have specific > requirements and candidates are selected on a range of things from type of > expertise, age, money, degrees/certifications etc. In Canada, there is a > Federal immigration web site location that you can enter your stats. If you > qualifications add up to 75 points out of a possible 100, you're in. One > friend, who has a degree in Computer Science, married for 10 years, two > kids, owned house, an expert in Java and C++ took 15 days to be cleared into > Canada. On the other-hand another friend, with photography certifications, > took over 6 years to get accepted and it was not until he put a > qualification in an odd 'Multilith News Printer' type that he got the nod. > > HTH > Jim Took a loko at the test out of curiosity, and it seems like they dropped the acceptance to 67, so it should be easier for you to get in now. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Jul 19 13:41:34 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 19 Jul 2005 14:41:34 -0400 Subject: [AccessD] OT: work and employment Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F13237ADD@xlivmbx21.aig.com> Umm... How do you mean 'once their citizenship was removed'? Or is this not just 'Totally OT' but 'Totally hypothetical' as well? As far as I know you can't have your citizenship 'removed'. Even in the case of becoming a naturalized US citizen, where the oath requires you to renounce your previous citizenship, it does not mean you are no longer a citizen of the other country, you just say it to get the US passport. The other countries treat it as a quaint ritual, but you still keep the original citizenship. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, July 19, 2005 2:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: work and employment Totally OT: I wonder how many Canadian could actually get back into the country once their citizenship was removed if they had to take the test? What is your bet 30% more, less? Jim From mikedorism at verizon.net Tue Jul 19 13:48:22 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 19 Jul 2005 14:48:22 -0400 Subject: [AccessD] OT: work and employment In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F13237ADD@xlivmbx21.aig.com> Message-ID: <000201c58c92$70fefc80$2f01a8c0@dorismanning> Please move this discussion to the OT list. Doris Manning AccessD Moderator -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, July 19, 2005 2:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: work and employment Umm... How do you mean 'once their citizenship was removed'? Or is this not just 'Totally OT' but 'Totally hypothetical' as well? As far as I know you can't have your citizenship 'removed'. Even in the case of becoming a naturalized US citizen, where the oath requires you to renounce your previous citizenship, it does not mean you are no longer a citizen of the other country, you just say it to get the US passport. The other countries treat it as a quaint ritual, but you still keep the original citizenship. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, July 19, 2005 2:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: work and employment Totally OT: I wonder how many Canadian could actually get back into the country once their citizenship was removed if they had to take the test? What is your bet 30% more, less? Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Tue Jul 19 17:57:53 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 19 Jul 2005 18:57:53 -0400 Subject: [AccessD] MRP Coding Examples In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3D5@mercury.tnco-inc.com> Message-ID: Joe, I have BOM explosion logic that is SQL based and VBA based, which will generate material requirements that can be time phased. There are a bunch of other things that then come into play; Planed orders, demand time fences, fixed and/or variable lead times, safety stock, minimum order qty, economic order qty, independent demands, etc I can recommend a DB design that has worked well for me over the years. But it's a lot of work and a major undertaking to do it right. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Tuesday, July 19, 2005 1:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MRP Coding Examples Determining requirements, really. Assuming that I have all the underlying data, I need to figure out how to generate a Make/Buy report looking at it by time periods. I just talked to Rocky and using EZ-MRP maybe a solution... I don't know what is involved in creating my own system so it is hard to determine which way to go... Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, July 18, 2005 5:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MRP Coding Examples JR, What is it that your looking of examples for? "MRP" covers a lot of ground; BOM's, Routings, Time Phased Inventory, Purchasing, Quality control, Scrap and Rejection, Capacity planning, etc. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Monday, July 18, 2005 3:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MRP Coding Examples Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bruce.Bruen at railcorp.nsw.gov.au Tue Jul 19 18:16:05 2005 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Wed, 20 Jul 2005 09:16:05 +1000 Subject: [AccessD] the dreaded n-recursive parts explosion (BOM) query... again Message-ID: Hi folks, I thought I had got over this one years ago and can't find the SQL query template someone (Lembit???) here kindly supplied last time. But it has come back to get me again, so.... Does someone have a "template" query to return all the parts in an n-level parts explosion, preferably in binary-tree pre-order order. * all components, subcomponents and parts are held in the same table, * it is a one way tree - i.e. parts that are used in multiple assemblies appear multiple times in the table (i.e.i.e. the pkey for the tree table is not the SKU) tia bruce This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From martyconnelly at shaw.ca Tue Jul 19 18:49:05 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 19 Jul 2005 16:49:05 -0700 Subject: [AccessD] the dreaded n-recursive parts explosion (BOM) query... again References: Message-ID: <42DD9171.2010200@shaw.ca> Do you mean the nested set solution from Joe Celko It is further written up in his book "SQL for Smarties" http://www.mvps.org/access/queries/qry0023.htm or this one http://www.mvps.org/access/modules/mdl0027.htm Bruen, Bruce wrote: >Hi folks, > >I thought I had got over this one years ago and can't find the SQL query >template someone (Lembit???) here kindly supplied last time. > >But it has come back to get me again, so.... > >Does someone have a "template" query to return all the parts in an >n-level parts explosion, preferably in binary-tree pre-order order. >* all components, subcomponents and parts are held in the same table, >* it is a one way tree - i.e. parts that are used in multiple assemblies >appear multiple times in the table (i.e.i.e. the pkey for the tree table >is not the SKU) > > >tia >bruce > > > -- Marty Connelly Victoria, B.C. Canada From KP at sdsonline.net Tue Jul 19 19:00:08 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Wed, 20 Jul 2005 10:00:08 +1000 Subject: [AccessD] OT: work and employment References: <200507190907578.SM03480@MarcelPC> Message-ID: <00b201c58cbd$feb3a1e0$6601a8c0@user> Hi Marcel - Here are some links for Australian immigration. Main website: http://www.immigrationinfoaustralia.com/default.asp?fid=103076 You can also use the website to complete an assessment which will give you a 'score' (based on the points system). Essentially, based on your age, qualifications, family setup, health etc. they allocate you a score and that score can mean that you qualify as a skilled immigrant. To see that page, go to: https://www.migrationexpert.com/register.asp?type=1&fid=100135 I'm sure that your qualifications, age and skills would be fairly in demand in Australia - but it depends on what they are looking for at any point in time. A friend of mine's brother who is mid 30's, married, 3 small children has just qualified to immigrate from Wales - he is a painter (walls, not art) and that is in demand right now. Good luck. Kath ----- Original Message ----- From: Marcel Vreuls To: 'Access Developers discussion and problem solving' Sent: Tuesday, July 19, 2005 11:10 PM Subject: [AccessD] OT: work and employment Hi All, I have been a freelance programmer for about 6 years now. I like the "freedom" I have got and it helped me al lot. As I have been on and off this list in the last few years and most of the time reading I thought just drop the question perhaps someone can help me. As I had some really heavy problems the last one and a half year I am think of emigrating to another country (at this time I am living in the netherlands). Mind you no illegal shit and so, but problems with ex-wife, child protection, etc. As a father you always start 6-0 behind, have to make it even and then get your advantage. I do not think this is any different in other countries so that is not the main reason. The main reason is start all over again. Now I have some questions and I hope your experience can help me. I know I cannot go to another country and go life there. There are all kind of rules that apply but for this example, I meet those rules - anyone any ideas how to get a (freelance) job in for example America, Canada or Australia. Any suggestions, references, contacts, offers and help are welcome. Here in Holland there are companies, sort of temp offices, who offer jobs to freelancers where you have to register. Most companies never do direct business with freelancers. It cost you about 10% of your our rate, but it is the only way. - What kind of insurance, taxes do I have to deal with as freelancer? - How are the rates, salary?? - Any experience with school and after school-support for kids when you are working?? About me. I am 32 year old, have 1 kid and am MCSE and MCSD vb6, .NET certified and about 10 years of hand-on IT experience Thxs, again, Marcel -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bruce.Bruen at railcorp.nsw.gov.au Tue Jul 19 21:18:26 2005 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Wed, 20 Jul 2005 12:18:26 +1000 Subject: [AccessD] the dreaded n-recursive parts explosion (BOM) query...again Message-ID: Thanks Marty! That's the one bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, 20 July 2005 9:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] the dreaded n-recursive parts explosion (BOM) query...again Do you mean the nested set solution from Joe Celko It is further written up in his book "SQL for Smarties" http://www.mvps.org/access/queries/qry0023.htm or this one http://www.mvps.org/access/modules/mdl0027.htm Bruen, Bruce wrote: >Hi folks, > >I thought I had got over this one years ago and can't find the SQL >query template someone (Lembit???) here kindly supplied last time. > >But it has come back to get me again, so.... > >Does someone have a "template" query to return all the parts in an >n-level parts explosion, preferably in binary-tree pre-order order. >* all components, subcomponents and parts are held in the same table, >* it is a one way tree - i.e. parts that are used in multiple >assemblies appear multiple times in the table (i.e.i.e. the pkey for >the tree table is not the SKU) > > >tia >bruce > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From Bruce.Bruen at railcorp.nsw.gov.au Tue Jul 19 21:20:31 2005 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Wed, 20 Jul 2005 12:20:31 +1000 Subject: [AccessD] the dreaded n-recursive parts explosion (BOM) query...again Message-ID: Sorry, I meant Joe Celko's was the one! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, 20 July 2005 9:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] the dreaded n-recursive parts explosion (BOM) query...again Do you mean the nested set solution from Joe Celko It is further written up in his book "SQL for Smarties" http://www.mvps.org/access/queries/qry0023.htm or this one http://www.mvps.org/access/modules/mdl0027.htm Bruen, Bruce wrote: >Hi folks, > >I thought I had got over this one years ago and can't find the SQL >query template someone (Lembit???) here kindly supplied last time. > >But it has come back to get me again, so.... > >Does someone have a "template" query to return all the parts in an >n-level parts explosion, preferably in binary-tree pre-order order. >* all components, subcomponents and parts are held in the same table, >* it is a one way tree - i.e. parts that are used in multiple >assemblies appear multiple times in the table (i.e.i.e. the pkey for >the tree table is not the SKU) > > >tia >bruce > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From robert at servicexp.com Tue Jul 19 21:33:24 2005 From: robert at servicexp.com (Robert Gracie) Date: Tue, 19 Jul 2005 22:33:24 -0400 Subject: [AccessD] OT: Outlook 2003 Message-ID: <3C6BD610FA11044CADFC8C13E6D5508F4EE0@gbsserver.GBS.local> I have 3 machines, all Win Xp Pro. 2 of the 3 machines I own, the other at work. The problem is occasionally Outlook 2003 will open and then immediately shut down. This can go on for several attempts... I have search the internet and can't seem to find anything about this problem.. Any Idea's Robert From JRojas at tnco-inc.com Wed Jul 20 07:16:55 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Wed, 20 Jul 2005 08:16:55 -0400 Subject: [AccessD] MRP Coding Examples Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3DC@mercury.tnco-inc.com> Thanks for the reply Jim, I would be willing to take what ever you have. I am trying to get a look at the big picture to see what would be involved it creating this project. Thanks! JR -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, July 19, 2005 6:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MRP Coding Examples Joe, I have BOM explosion logic that is SQL based and VBA based, which will generate material requirements that can be time phased. There are a bunch of other things that then come into play; Planed orders, demand time fences, fixed and/or variable lead times, safety stock, minimum order qty, economic order qty, independent demands, etc I can recommend a DB design that has worked well for me over the years. But it's a lot of work and a major undertaking to do it right. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Tuesday, July 19, 2005 1:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MRP Coding Examples Determining requirements, really. Assuming that I have all the underlying data, I need to figure out how to generate a Make/Buy report looking at it by time periods. I just talked to Rocky and using EZ-MRP maybe a solution... I don't know what is involved in creating my own system so it is hard to determine which way to go... Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, July 18, 2005 5:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MRP Coding Examples JR, What is it that your looking of examples for? "MRP" covers a lot of ground; BOM's, Routings, Time Phased Inventory, Purchasing, Quality control, Scrap and Rejection, Capacity planning, etc. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Monday, July 18, 2005 3:03 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MRP Coding Examples Hi All, I need to create an application that can perform Material Requirements Planning (MRP) generation. I have done a lot of Google searching looking for programming examples with no luck. I don't want to recreate the wheel here if there are already some examples that I could learn from. Anyone know of how to achieve this or have any links that might point me in the right direction? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From accessd666 at yahoo.com Wed Jul 20 08:00:27 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 20 Jul 2005 06:00:27 -0700 (PDT) Subject: [AccessD] ADH2K - utils - TsiNameFixup90 Message-ID: <20050720130027.4861.qmail@web31610.mail.mud.yahoo.com> Hi group, I was browsing the CD A2K Developers handbook volume 2: Enterprise Edition. I found the following file in: Z:\Other\TSI\AutocorrectWizard\TsiNameFixup90.dll It had a readme file (text is below). However I 'm confused on what to do with the DLL. I've created a module in wich I instantiate a TsiNameFixup90.dll object Public objAutoCorrect As TsiNameFixup90 Set objAutoCorrect = New TsiNameFixup90 The problem is that the objAutoCorrect seems to have no public interface i.e. there are now properties/methods when I try the intellisense. Does anybody know how I can use this DLL?? BTW: The AutoCorrect function is really cool!!!!! SD ------------------------------------------------------ README.txt ------------------------------------------------------ The Access 2000 "Name AutoCorrect" feature is a pretty cool one. The following is an excerpt from the Access 2000 Help topic "What Name AutoCorrect fixes and doesn't fix in an Access Database.": "In Microsoft Access 97 and previous versions, if you rename a field in a table, you find that the objects based on that field no longer display the data from that field. Microsoft Access 2000 automatically corrects common side effects that occur when you rename forms, reports, tables, queries, fields, text boxes or other controls in a Microsoft Access database. This feature is called Name AutoCorrect." As the help topic discusses later on (you can look at it directly for details) Access 2000 Name AutoCorrect does not do every possible kind of name fixup you could possibly need when you change the name of an object, field, or control. But it does handle many of the scenarios that you might want it to. However, in order for it to work, you need two things: 1) The Tools|Options properties for Name AutoCorrect must be set to True for the database so that Access knows to update the name maps for the various objects and to actually do renames as it finds that it needs to. 2) The "name maps" for the various objects must be up to date. If you have turned off the properties in #1 above, or if you are converting a database from a prior version, your name maps may be incomplete or non-existent. The only way to update them is to turn on the properties and then open each table, query, form, and report in design view and save. Thats what this ComAddIn does! It does the work to set the properties and open/save/close all of the objects. Certainly easier than doing it all yourself. Source is also available for your viewing pleasure. Its a nice, simple example of a ComAddIn for Access 2000 that interacts with the Access menus and object model. Enjoy! Michael Kaplan Trigeminal Software, Inc. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Gustav at cactus.dk Wed Jul 20 08:24:12 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 20 Jul 2005 15:24:12 +0200 Subject: [AccessD] the dreaded n-recursive parts explosion (BOM) query...again Message-ID: Hi Bruce Have in mind that DAO may be superior regarding speed and ease of maintenance (no "special" fields needed, just the parent ID, thus no smart SQL). Lookup "Tree shaped reports" from 2002-06-02 in the archive. Maybe my function RecursiveLookup() can guide you ... This function uses a static recordset and Seek and runs blazingly fast. /gustav >>> Bruce.Bruen at railcorp.nsw.gov.au 07/20 1:16 am >>> Hi folks, I thought I had got over this one years ago and can't find the SQL query template someone (Lembit???) here kindly supplied last time. But it has come back to get me again, so.... Does someone have a "template" query to return all the parts in an n-level parts explosion, preferably in binary-tree pre-order order. * all components, subcomponents and parts are held in the same table, * it is a one way tree - i.e. parts that are used in multiple assemblies appear multiple times in the table (i.e.i.e. the pkey for the tree table is not the SKU) From accessd666 at yahoo.com Wed Jul 20 08:41:57 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 20 Jul 2005 06:41:57 -0700 (PDT) Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Message-ID: <20050720134157.74985.qmail@web31608.mail.mud.yahoo.com> Hi group, We've got a large Access database 150+ tables, 80+ forms and 175+ reports. Anyway I think it's very big. I just found the AutoCorrect function and we've got a big change comming up. What I want is to build a small app that checks all code in the application for any changes logged to the table "Name AutoCorrect Log". My Question: How can I retrieve the VBA code in a form, report, module and/or class? SD PS: Yes, I know Total Access Analyzer can do the job but the fuckers here rather spend ?10.000 then ?1.000 for the application. __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail From Lambert.Heenan at AIG.com Wed Jul 20 09:01:39 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 20 Jul 2005 10:01:39 -0400 Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F13237C6D@xlivmbx21.aig.com> Well you are going to have to work with the HasModule and Module properties of forms and reports. But first you should go back to the bean counters and tell them that for the cost of your development time they could purchase a copy of Rick Fisher's Find and Replace (just $37 for the Access 2000 and greater version, my preferred tool - http://www.rickworld.com) every hour or so, or Total Access Analyzer every few hours. There is just no point reinventing the wheel when others before us have already done such a good job. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Wednesday, July 20, 2005 9:42 AM To: Acces User Group Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Hi group, We've got a large Access database 150+ tables, 80+ forms and 175+ reports. Anyway I think it's very big. I just found the AutoCorrect function and we've got a big change comming up. What I want is to build a small app that checks all code in the application for any changes logged to the table "Name AutoCorrect Log". My Question: How can I retrieve the VBA code in a form, report, module and/or class? SD PS: Yes, I know Total Access Analyzer can do the job but the fuckers here rather spend ?10.000 then ?1.000 for the application. __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed Jul 20 09:45:04 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 20 Jul 2005 10:45:04 -0400 Subject: [AccessD] A Word question Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED24@ADGSERVER> Hey, In my Access app, I am doing a sort of mail merge using find and replace. Anyway, I am using a .DOT doc, a temporary doc, and an output doc to do what I need. It works fine. My question is, how can bring Word to the front after the report is generated? I am trying to get something to happen like when previewing a report. Thanks, Bobby From john at winhaven.net Wed Jul 20 09:46:07 2005 From: john at winhaven.net (John Bartow) Date: Wed, 20 Jul 2005 09:46:07 -0500 Subject: [AccessD] Retrieve VBA Code in a form, module, class, report In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F13237C6D@xlivmbx21.aig.com> Message-ID: <200507201446.j6KEk7hM333560@pimout3-ext.prodigy.net> Agree. Another is Speed Ferret http://www.speedferret.com/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, July 20, 2005 9:02 AM To: 'Access Developers discussion and problem solving' Cc: 'Sad Der' Subject: RE: [AccessD] Retrieve VBA Code in a form, module, class, report Well you are going to have to work with the HasModule and Module properties of forms and reports. But first you should go back to the bean counters and tell them that for the cost of your development time they could purchase a copy of Rick Fisher's Find and Replace (just $37 for the Access 2000 and greater version, my preferred tool - http://www.rickworld.com) every hour or so, or Total Access Analyzer every few hours. There is just no point reinventing the wheel when others before us have already done such a good job. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Wednesday, July 20, 2005 9:42 AM To: Acces User Group Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Hi group, We've got a large Access database 150+ tables, 80+ forms and 175+ reports. Anyway I think it's very big. I just found the AutoCorrect function and we've got a big change comming up. What I want is to build a small app that checks all code in the application for any changes logged to the table "Name AutoCorrect Log". My Question: How can I retrieve the VBA code in a form, report, module and/or class? SD PS: Yes, I know Total Access Analyzer can do the job but the fuckers here rather spend ?10.000 then ?1.000 for the application. __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 carbonnb at gmail.com Wed Jul 20 09:52:46 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 20 Jul 2005 10:52:46 -0400 Subject: [AccessD] A Word question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED24@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30ABED24@ADGSERVER> Message-ID: On 20/07/05, Bobby Heid wrote: > My question is, how can bring Word to the front after the report is > generated? I am trying to get something to happen like when previewing a > report. Assuming that objWord is a reference to your Word Object you can use: objWord.Visible = True ObjWord.Activate -- 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 cfoust at infostatsystems.com Wed Jul 20 10:19:34 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 20 Jul 2005 08:19:34 -0700 Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Message-ID: Or MZ-Tools 3.0 (free). http://www.mztools.com Charlotte Foust -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Wednesday, July 20, 2005 7:46 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Retrieve VBA Code in a form, module, class, report Agree. Another is Speed Ferret http://www.speedferret.com/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, July 20, 2005 9:02 AM To: 'Access Developers discussion and problem solving' Cc: 'Sad Der' Subject: RE: [AccessD] Retrieve VBA Code in a form, module, class, report Well you are going to have to work with the HasModule and Module properties of forms and reports. But first you should go back to the bean counters and tell them that for the cost of your development time they could purchase a copy of Rick Fisher's Find and Replace (just $37 for the Access 2000 and greater version, my preferred tool - http://www.rickworld.com) every hour or so, or Total Access Analyzer every few hours. There is just no point reinventing the wheel when others before us have already done such a good job. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Wednesday, July 20, 2005 9:42 AM To: Acces User Group Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Hi group, We've got a large Access database 150+ tables, 80+ forms and 175+ reports. Anyway I think it's very big. I just found the AutoCorrect function and we've got a big change comming up. What I want is to build a small app that checks all code in the application for any changes logged to the table "Name AutoCorrect Log". My Question: How can I retrieve the VBA code in a form, report, module and/or class? SD PS: Yes, I know Total Access Analyzer can do the job but the fuckers here rather spend ?10.000 then ?1.000 for the application. __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Wed Jul 20 10:21:30 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 20 Jul 2005 08:21:30 -0700 Subject: [AccessD] ADH2K - utils - TsiNameFixup90 Message-ID: Before you get too excited about Name Autocorrect, remember that it has also been implicated in every weird Access problem imaginable. I turn it off by default and avoid a lot of headaches. Charlotte Foust -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Wednesday, July 20, 2005 6:00 AM To: Acces User Group Subject: [AccessD] ADH2K - utils - TsiNameFixup90 Hi group, I was browsing the CD A2K Developers handbook volume 2: Enterprise Edition. I found the following file in: Z:\Other\TSI\AutocorrectWizard\TsiNameFixup90.dll It had a readme file (text is below). However I 'm confused on what to do with the DLL. I've created a module in wich I instantiate a TsiNameFixup90.dll object Public objAutoCorrect As TsiNameFixup90 Set objAutoCorrect = New TsiNameFixup90 The problem is that the objAutoCorrect seems to have no public interface i.e. there are now properties/methods when I try the intellisense. Does anybody know how I can use this DLL?? BTW: The AutoCorrect function is really cool!!!!! SD ------------------------------------------------------ README.txt ------------------------------------------------------ The Access 2000 "Name AutoCorrect" feature is a pretty cool one. The following is an excerpt from the Access 2000 Help topic "What Name AutoCorrect fixes and doesn't fix in an Access Database.": "In Microsoft Access 97 and previous versions, if you rename a field in a table, you find that the objects based on that field no longer display the data from that field. Microsoft Access 2000 automatically corrects common side effects that occur when you rename forms, reports, tables, queries, fields, text boxes or other controls in a Microsoft Access database. This feature is called Name AutoCorrect." As the help topic discusses later on (you can look at it directly for details) Access 2000 Name AutoCorrect does not do every possible kind of name fixup you could possibly need when you change the name of an object, field, or control. But it does handle many of the scenarios that you might want it to. However, in order for it to work, you need two things: 1) The Tools|Options properties for Name AutoCorrect must be set to True for the database so that Access knows to update the name maps for the various objects and to actually do renames as it finds that it needs to. 2) The "name maps" for the various objects must be up to date. If you have turned off the properties in #1 above, or if you are converting a database from a prior version, your name maps may be incomplete or non-existent. The only way to update them is to turn on the properties and then open each table, query, form, and report in design view and save. Thats what this ComAddIn does! It does the work to set the properties and open/save/close all of the objects. Certainly easier than doing it all yourself. Source is also available for your viewing pleasure. Its a nice, simple example of a ComAddIn for Access 2000 that interacts with the Access menus and object model. Enjoy! Michael Kaplan Trigeminal Software, Inc. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Wed Jul 20 11:26:25 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 20 Jul 2005 09:26:25 -0700 (PDT) Subject: [AccessD] Retrieve VBA Code in a form, module, class, report In-Reply-To: Message-ID: <20050720162625.2794.qmail@web31602.mail.mud.yahoo.com> Thnx, for the replies! Charlotte....MZ-Tools we've got that one. Is it possible to do what i described below? SD --- Charlotte Foust wrote: > Or MZ-Tools 3.0 (free). http://www.mztools.com > > Charlotte Foust > > > -----Original Message----- > From: John Bartow [mailto:john at winhaven.net] > Sent: Wednesday, July 20, 2005 7:46 AM > To: 'Access Developers discussion and problem > solving' > Subject: RE: [AccessD] Retrieve VBA Code in a form, > module, class, > report > > > Agree. Another is Speed Ferret > http://www.speedferret.com/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Heenan, > Lambert > Sent: Wednesday, July 20, 2005 9:02 AM > To: 'Access Developers discussion and problem > solving' > Cc: 'Sad Der' > Subject: RE: [AccessD] Retrieve VBA Code in a form, > module, class, > report > > Well you are going to have to work with the > HasModule and Module > properties of forms and reports. > > But first you should go back to the bean counters > and tell them that for > the cost of your development time they could > purchase a copy of Rick > Fisher's Find and Replace (just $37 for the Access > 2000 and greater > version, my preferred tool - > http://www.rickworld.com) every hour or so, > or Total Access Analyzer every few hours. There is > just no point > reinventing the wheel when others before us have > already done such a > good job. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Sad Der > Sent: Wednesday, July 20, 2005 9:42 AM > To: Acces User Group > Subject: [AccessD] Retrieve VBA Code in a form, > module, class, report > > > Hi group, > > We've got a large Access database 150+ tables, 80+ > forms and 175+ > reports. Anyway I think it's very big. > > I just found the AutoCorrect function and we've got > a big change comming > up. > > What I want is to build a small app that checks all > code in the > application for any changes logged to the table > "Name AutoCorrect Log". > > My Question: How can I retrieve the VBA code in a > form, report, module > and/or class? > > SD > > PS: Yes, I know Total Access Analyzer can do the job > but the fuckers > here rather spend ?10.000 then ?1.000 for the > application. > > > > __________________________________ > Yahoo! Mail for Mobile > Take Yahoo! Mail with you! Check email on your > mobile phone. > http://mobile.yahoo.com/learn/mail > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs From bheid at appdevgrp.com Wed Jul 20 11:50:04 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 20 Jul 2005 12:50:04 -0400 Subject: [AccessD] A Word question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C25FC6@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED28@ADGSERVER> Hey Bryan, I have done that, it flashes up than access comes back up over it. Now note that I am manually calling the function from the immediate window. That may be making it act differently. I'm currently working on a form at the moment to call the code from. I'll post the results. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, July 20, 2005 10:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A Word question On 20/07/05, Bobby Heid wrote: > My question is, how can bring Word to the front after the report is > generated? I am trying to get something to happen like when previewing a > report. Assuming that objWord is a reference to your Word Object you can use: objWord.Visible = True ObjWord.Activate -- Bryan Carbonnell - carbonnb at gmail.com From martyconnelly at shaw.ca Wed Jul 20 12:38:10 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 20 Jul 2005 10:38:10 -0700 Subject: [AccessD] A Word question References: <916187228923D311A6FE00A0CC3FAA30ABED28@ADGSERVER> Message-ID: <42DE8C02.8030807@shaw.ca> Just a hint check your task manager processes occassionally when debugging the use of word this way, and delete all the unused word.exe that will probably left orphaned. I have wondered why my machine was getting sluggish and found 20 copies left running a day later.. Bobby Heid wrote: >Hey Bryan, > >I have done that, it flashes up than access comes back up over it. Now note >that I am manually calling the function from the immediate window. That may >be making it act differently. I'm currently working on a form at the moment >to call the code from. I'll post the results. > >Thanks, >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell >Sent: Wednesday, July 20, 2005 10:53 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A Word question > > >On 20/07/05, Bobby Heid wrote: > > > >>My question is, how can bring Word to the front after the report is >>generated? I am trying to get something to happen like when previewing a >>report. >> >> > >Assuming that objWord is a reference to your Word Object you can use: > >objWord.Visible = True >ObjWord.Activate > > > -- Marty Connelly Victoria, B.C. Canada From bheid at appdevgrp.com Wed Jul 20 12:47:49 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 20 Jul 2005 13:47:49 -0400 Subject: [AccessD] A Word question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C26058@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED2D@ADGSERVER> Thanks for the hint. I have frequently checked for this as I have heard this before. My code looks for an existing copy of word and uses that if available, else it creates an instance. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, July 20, 2005 1:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A Word question Just a hint check your task manager processes occassionally when debugging the use of word this way, and delete all the unused word.exe that will probably left orphaned. I have wondered why my machine was getting sluggish and found 20 copies left running a day later.. From cfoust at infostatsystems.com Wed Jul 20 13:10:46 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 20 Jul 2005 11:10:46 -0700 Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Message-ID: I'm not clear on exactly what you want to do with the tool. MZ-Tools will do find and replace, as will the other apps suggested, but beyond that, what do you want it to do? Charlotte Foust -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Wednesday, July 20, 2005 9:26 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Retrieve VBA Code in a form, module, class, report Thnx, for the replies! Charlotte....MZ-Tools we've got that one. Is it possible to do what i described below? SD --- Charlotte Foust wrote: > Or MZ-Tools 3.0 (free). http://www.mztools.com > > Charlotte Foust > > > -----Original Message----- > From: John Bartow [mailto:john at winhaven.net] > Sent: Wednesday, July 20, 2005 7:46 AM > To: 'Access Developers discussion and problem > solving' > Subject: RE: [AccessD] Retrieve VBA Code in a form, > module, class, > report > > > Agree. Another is Speed Ferret > http://www.speedferret.com/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Heenan, > Lambert > Sent: Wednesday, July 20, 2005 9:02 AM > To: 'Access Developers discussion and problem > solving' > Cc: 'Sad Der' > Subject: RE: [AccessD] Retrieve VBA Code in a form, > module, class, > report > > Well you are going to have to work with the > HasModule and Module > properties of forms and reports. > > But first you should go back to the bean counters > and tell them that for > the cost of your development time they could > purchase a copy of Rick > Fisher's Find and Replace (just $37 for the Access > 2000 and greater > version, my preferred tool - > http://www.rickworld.com) every hour or so, > or Total Access Analyzer every few hours. There is > just no point > reinventing the wheel when others before us have > already done such a > good job. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Sad Der > Sent: Wednesday, July 20, 2005 9:42 AM > To: Acces User Group > Subject: [AccessD] Retrieve VBA Code in a form, > module, class, report > > > Hi group, > > We've got a large Access database 150+ tables, 80+ > forms and 175+ > reports. Anyway I think it's very big. > > I just found the AutoCorrect function and we've got > a big change comming > up. > > What I want is to build a small app that checks all > code in the > application for any changes logged to the table > "Name AutoCorrect Log". > > My Question: How can I retrieve the VBA code in a > form, report, module > and/or class? > > SD > > PS: Yes, I know Total Access Analyzer can do the job > but the fuckers > here rather spend ?10.000 then ?1.000 for the > application. > > > > __________________________________ > Yahoo! Mail for Mobile > Take Yahoo! Mail with you! Check email on your > mobile phone. > http://mobile.yahoo.com/learn/mail > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Wed Jul 20 13:10:39 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 20 Jul 2005 14:10:39 -0400 Subject: [AccessD] A Word question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED28@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30C25FC6@ADGSERVER> <916187228923D311A6FE00A0CC3FAA30ABED28@ADGSERVER> Message-ID: On 20/07/05, Bobby Heid wrote: > I have done that, it flashes up than access comes back up over it. Now note > that I am manually calling the function from the immediate window. That may > be making it act differently. I'm currently working on a form at the moment > to call the code from. I'll post the results. I tested it out from a procedure and a command button on a form in A2K and Word stayed on top. Access probably poped back to the front because the focus shifted back to the debug window. -- 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 Gustav at cactus.dk Wed Jul 20 13:28:05 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 20 Jul 2005 20:28:05 +0200 Subject: [AccessD] Retrieve VBA Code in a form, module, class, report Message-ID: Hi Sad You can extract the complete form to a textfile like this: SaveAsText acForm, "frmTest", "d:\frmTest.txt" That will dump everything the form contains including bitmaps. The last section begins with the line with this single word: CodeBehindForm The text after this will be your code. If you edit the file, the form can be read (into an empty database) by LoadFromText acForm, "frmTest", "d:\frmTest.txt" /gustav > My Question: How can I retrieve the VBA code in a form, report, module and/or class? From D.Dick at uws.edu.au Wed Jul 20 19:35:24 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Thu, 21 Jul 2005 10:35:24 +1000 Subject: [AccessD] BIT OT: Any VB Gurus out there? Message-ID: <2FDE83AF1A69C84796CBD13788DDA8836136AD@BONHAM.AD.UWS.EDU.AU> Hi Team Working on VB code. Code works fine in 98/ME (Shudder) but there are visual issues and errors in 2000 or XP The code 'draws' lines/coordinates into a Picture Box We have managed to get the code to kinda work in XP by changing A few integers to longs. Names are - "frm_Control" for the VB Form "ssTab" for the Tab Control "Picture1" for the picture Box But here's the thing In 98/ME the drawing is done and you see the lines after clicking a button. Lovely. With the modified code in XP the code draws the lines but you don't see 'em. But if you click on a Tab then come back to the PictureBox in question then you see the lines. So how do I refresh the contents of a picture box in VB? Frm_Control.Picture1.Requery Doesn't work - I get Compile Error Method or Data member not found So...any suggestions on how to 'redraw' or 'refresh' or 'requery' this thing with out changing tabs. BTW - There is very little code in the TabChange code. It has nothing to do with repainting etc. Many thanks Darren From mmattys at rochester.rr.com Wed Jul 20 19:45:51 2005 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Wed, 20 Jul 2005 20:45:51 -0400 Subject: [AccessD] BIT OT: Any VB Gurus out there? References: <2FDE83AF1A69C84796CBD13788DDA8836136AD@BONHAM.AD.UWS.EDU.AU> Message-ID: <000901c58d8d$8ceacb30$0302a8c0@default> Darren, Have you set AutoRedraw = True? If not, and using a blt method, try Picture1.Refresh. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "Darren Dick" To: "Access Developers discussion and problem solving" Sent: Wednesday, July 20, 2005 8:35 PM Subject: [AccessD] BIT OT: Any VB Gurus out there? > Hi Team > Working on VB code. > Code works fine in 98/ME (Shudder) but there are visual issues and > errors in 2000 or XP > > The code 'draws' lines/coordinates into a Picture Box > We have managed to get the code to kinda work in XP by changing A few > integers to longs. > Names are - > "frm_Control" for the VB Form > "ssTab" for the Tab Control > "Picture1" for the picture Box > > But here's the thing > > In 98/ME the drawing is done and you see the lines after clicking a > button. Lovely. > With the modified code in XP the code draws the lines but you don't see > 'em. > But if you click on a Tab then come back to the PictureBox in question > then you see the lines. > > So how do I refresh the contents of a picture box in VB? > > Frm_Control.Picture1.Requery Doesn't work - I get > Compile Error > Method or Data member not found > > So...any suggestions on how to 'redraw' or 'refresh' or 'requery' this > thing with out changing tabs. > BTW - There is very little code in the TabChange code. It has nothing to > do with repainting etc. > > Many thanks > > Darren > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From artful at rogers.com Wed Jul 20 20:00:54 2005 From: artful at rogers.com (Arthur Fuller) Date: Wed, 20 Jul 2005 21:00:54 -0400 Subject: [AccessD] the dreaded n-recursive parts explosion (BOM)query...again In-Reply-To: Message-ID: <200507210100.j6L10pR24439@databaseadvisors.com> I will look at this and hope to mine some useful stuff from it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: July 20, 2005 9:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] the dreaded n-recursive parts explosion (BOM)query...again Hi Bruce Have in mind that DAO may be superior regarding speed and ease of maintenance (no "special" fields needed, just the parent ID, thus no smart SQL). Lookup "Tree shaped reports" from 2002-06-02 in the archive. Maybe my function RecursiveLookup() can guide you ... This function uses a static recordset and Seek and runs blazingly fast. /gustav >>> Bruce.Bruen at railcorp.nsw.gov.au 07/20 1:16 am >>> Hi folks, I thought I had got over this one years ago and can't find the SQL query template someone (Lembit???) here kindly supplied last time. But it has come back to get me again, so.... Does someone have a "template" query to return all the parts in an n-level parts explosion, preferably in binary-tree pre-order order. * all components, subcomponents and parts are held in the same table, * it is a one way tree - i.e. parts that are used in multiple assemblies appear multiple times in the table (i.e.i.e. the pkey for the tree table is not the SKU) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Wed Jul 20 20:03:36 2005 From: artful at rogers.com (Arthur Fuller) Date: Wed, 20 Jul 2005 21:03:36 -0400 Subject: [AccessD] A Word question In-Reply-To: Message-ID: <200507210103.j6L13XR25238@databaseadvisors.com> You have supplied so many useful answers to this thread and others, Bryan, that I must ask, Where are you getting your insights? I have tried various searches and not even got close to the info you so readily supply. A. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: July 20, 2005 10:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A Word question On 20/07/05, Bobby Heid wrote: > My question is, how can bring Word to the front after the report is > generated? I am trying to get something to happen like when previewing a > report. Assuming that objWord is a reference to your Word Object you can use: objWord.Visible = True ObjWord.Activate -- 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 D.Dick at uws.edu.au Wed Jul 20 21:05:25 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Thu, 21 Jul 2005 12:05:25 +1000 Subject: [AccessD] BIT OT: Any VB Gurus out there? Message-ID: <2FDE83AF1A69C84796CBD13788DDA8836137E0@BONHAM.AD.UWS.EDU.AU> Michael Excellent Many thanks - I think the Autodraw = true is the answer It is at least on my Dev machine I'll try it out at the clients machine today Many many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, July 21, 2005 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BIT OT: Any VB Gurus out there? Darren, Have you set AutoRedraw = True? If not, and using a blt method, try Picture1.Refresh. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "Darren Dick" To: "Access Developers discussion and problem solving" Sent: Wednesday, July 20, 2005 8:35 PM Subject: [AccessD] BIT OT: Any VB Gurus out there? > Hi Team > Working on VB code. > Code works fine in 98/ME (Shudder) but there are visual issues and > errors in 2000 or XP > > The code 'draws' lines/coordinates into a Picture Box We have managed > to get the code to kinda work in XP by changing A few integers to > longs. > Names are - > "frm_Control" for the VB Form > "ssTab" for the Tab Control > "Picture1" for the picture Box > > But here's the thing > > In 98/ME the drawing is done and you see the lines after clicking a > button. Lovely. > With the modified code in XP the code draws the lines but you don't > see 'em. > But if you click on a Tab then come back to the PictureBox in question > then you see the lines. > > So how do I refresh the contents of a picture box in VB? > > Frm_Control.Picture1.Requery Doesn't work - I get Compile Error > Method or Data member not found > > So...any suggestions on how to 'redraw' or 'refresh' or 'requery' this > thing with out changing tabs. > BTW - There is very little code in the TabChange code. It has nothing > to do with repainting etc. > > Many thanks > > Darren > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 carbonnb at gmail.com Thu Jul 21 07:16:24 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 21 Jul 2005 08:16:24 -0400 Subject: [AccessD] A Word question In-Reply-To: <200507210103.j6L13XR25238@databaseadvisors.com> References: <200507210103.j6L13XR25238@databaseadvisors.com> Message-ID: On 20/07/05, Arthur Fuller wrote: > You have supplied so many useful answers to this thread and others, Bryan, > that I must ask, Where are you getting your insights? I have tried various > searches and not even got close to the info you so readily supply. BFI. Brute Force and Ignorance. :-) Honestly, its just that I have done a LOT of Word, Access/Word, Excel/Word programming over the past several years, that I have come across a bunch of these things already. That's it. Just experience with various bits of the Word Object model. -- 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 bheid at appdevgrp.com Thu Jul 21 07:40:28 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 21 Jul 2005 08:40:28 -0400 Subject: [AccessD] A Word question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C26074@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED33@ADGSERVER> I believe that the problem with word not coming to the front did have to do with using the debug window. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, July 20, 2005 2:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A Word question On 20/07/05, Bobby Heid wrote: > I have done that, it flashes up than access comes back up over it. Now note > that I am manually calling the function from the immediate window. That may > be making it act differently. I'm currently working on a form at the moment > to call the code from. I'll post the results. I tested it out from a procedure and a command button on a form in A2K and Word stayed on top. Access probably poped back to the front because the focus shifted back to the debug window. -- 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 dwaters at usinternet.com Thu Jul 21 08:41:15 2005 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 21 Jul 2005 08:41:15 -0500 Subject: [AccessD] Micrometer or Caliper Data Direct to Access Message-ID: <000001c58df9$dfff22a0$0200a8c0@danwaters> Hello all! Many hand measuring instruments have an electronic component that is used to send measurement data to a PC, given the right software. The way this works is to measure an item, then push a button on the instrument to send the measurement info to a PC. I'd like to find out if anyone has experience working with these instruments and collecting the data in an Access database, and could steer in good directions and away from poor ones! Thanks! Dan Waters From pedro at plex.nl Thu Jul 21 16:00:02 2005 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 21 Jul 2005 16:00:02 (MET DST) Subject: [AccessD] show last value in listbox Message-ID: <200507211400.j6LE02D6011976@mailhostC.plex.net> Hello Group, is it possible, when opening a listbox with a long list of values, it opens always with the first value. Is it possible to open with the last values. Pedro Janssen From Jdemarco at hudsonhealthplan.org Thu Jul 21 09:02:37 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 21 Jul 2005 10:02:37 -0400 Subject: [AccessD] show last value in listbox Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C3B98@TTNEXCHCL2.hshhp.com> Pedro Why not just reverse your sort then? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of pedro at plex.nl Sent: Thursday, July 21, 2005 12:00 PM To: AccessD at databaseadvisors.com Subject: [AccessD] show last value in listbox Hello Group, is it possible, when opening a listbox with a long list of values, it opens always with the first value. Is it possible to open with the last values. Pedro Janssen -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at isharp.co.uk Thu Jul 21 09:03:37 2005 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Thu, 21 Jul 2005 15:03:37 +0100 Subject: [AccessD] show last value in listbox In-Reply-To: <200507211400.j6LE02D6011976@mailhostC.plex.net> Message-ID: Pedro, I think you can do this using the ListIndex Property, if you know how many values there are I think you can do the following: MyListbox.ListIndex = (YourCountOfValuesInList-1) Paul Hartland -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: 21 July 2005 16:00 To: AccessD at databaseadvisors.com Subject: [AccessD] show last value in listbox Hello Group, is it possible, when opening a listbox with a long list of values, it opens always with the first value. Is it possible to open with the last values. Pedro Janssen -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Jul 21 10:19:20 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 21 Jul 2005 16:19:20 +0100 Subject: [AccessD] show last value in listbox Message-ID: <200507211509.j6LF9tr17042@smarthost.yourcomms.net> Try Me.List0.ListIndex = Me.List0.ListCount - 1 Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: 21 July 2005 17:00 To: AccessD at databaseadvisors.com Subject: [AccessD] show last value in listbox Hello Group, is it possible, when opening a listbox with a long list of values, it opens always with the first value. Is it possible to open with the last values. Pedro Janssen -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Jul 21 10:28:18 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 21 Jul 2005 08:28:18 -0700 Subject: [AccessD] show last value in listbox Message-ID: Try something like this (warning: air code) Me.lstListBox.Selected(Me.lstListBox.ItemData(Me.lstListBox.ListCount-1) ) = True Charlotte Foust -----Original Message----- From: pedro at plex.nl [mailto:pedro at plex.nl] Sent: Thursday, July 21, 2005 9:00 AM To: AccessD at databaseadvisors.com Subject: [AccessD] show last value in listbox Hello Group, is it possible, when opening a listbox with a long list of values, it opens always with the first value. Is it possible to open with the last values. Pedro Janssen -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Jul 21 11:05:27 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 21 Jul 2005 09:05:27 -0700 Subject: [AccessD] Micrometer or Caliper Data Direct to Access References: <000001c58df9$dfff22a0$0200a8c0@danwaters> Message-ID: <42DFC7C7.5020502@shaw.ca> http://www.taltech.com I have used these products a couple of years ago. Might be a tad expensive, as you can write your own code via mscomm.ocx, which I think is installed or licensed from VB6 . However you may have problems writing code to handle sampling stream rates and line drops and all the possible error conditions that this software covers. If your requirements are really simple you might just get away with using mscomm. Lots of net examples. Input RS232 data directly into Excel, Access, or any Windows application. WinWedge provides real-time data collection from any serial device or instrument. TCP-Wedge software provides data collection from any TCP/IP network. Send and receive RS232 data across a TCP/IP port with TCP/Com serial to TCP/IP converter software. In other words just drop your instrument on the net. Lots of useful test software here like code for a breakout box, there are articles on the site explaining methods. However it appears they dumped one useful example in VB, it was too good. http://www.taltech.com/freesoftware/fs_sw.htm This site also may have good software suggestions and methods National Instruments. http://www.ni.com Dan Waters wrote: >Hello all! > > > >Many hand measuring instruments have an electronic component that is used to >send measurement data to a PC, given the right software. The way this works >is to measure an item, then push a button on the instrument to send the >measurement info to a PC. > > > >I'd like to find out if anyone has experience working with these instruments >and collecting the data in an Access database, and could steer in good >directions and away from poor ones! > > > >Thanks! > >Dan Waters > > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Thu Jul 21 12:41:57 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 21 Jul 2005 19:41:57 +0200 Subject: [AccessD] show last value in listbox Message-ID: Hi Pedro Your listbox may not have settled at the OnCurrent event of the form. Thus, create a textbox and set the controlsource to: =SetListboxLast() and create this function in the code module of the form: Private Function SetListboxLast() ' Set listbox lstDemo to the last entry. With Me!lstDemo If IsNull(.Value) Then .Value = .ItemData(.ListCount - 1) End If End With End Function Then, shortly after the form has opened, the listbox is set to its last value. This is for a single-select listbox. /gustav >>> pedro at plex.nl 07/21 4:00 pm >>> Hello Group, is it possible, when opening a listbox with a long list of values, it opens always with the first value. Is it possible to open with the last values. Pedro Janssen From bheid at appdevgrp.com Thu Jul 21 13:31:17 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 21 Jul 2005 14:31:17 -0400 Subject: [AccessD] Another word question... Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED3E@ADGSERVER> Me again, I am generating 1-2 tables per page on this report that I'm doing in word via automation. It takes, on average, 1.8 seconds to create one page. This is an average from 406 pages. In trying to make it faster, I have determined that the table code takes 66% of the time it takes to create a page. Note that the tables can have a variable number of items in it. I am including the relevant bits of code. I know it is a lot to look through so it's ok if you want to stop here. The one second saved still has the recordset stuff in it, so that is not the bottleneck. Anyone have any ideas as to how I may speed this up? I have included what a finished table looks like at the end of this email. Thanks, Bobby This is what I'm doing (for each table): If Not rs2.EOF Then rs2.MoveLast rs2.MoveFirst 'add the table Set wrdTableWC = wrdDocTmp.Tables.Add(.Selection.Range, rs2.RecordCount + 3, 3) 'format the table and create headers SetUpTable wrdApp, wrdTableWC, "Workers' Compensation", "WC", rs2.RecordCount + 3 End If i = 3 Do While Not rs2.EOF With wrdTableWC .Cell(i, 1).Range.Text = Nz(rs2![WC Description], "") .Cell(i, 2).Range.Text = Nz(rs2![WC Code], "") .Cell(i, 3).Range.Text = "$" End With rs2.MoveNext i = i + 1 Loop rs2.Close End If 'set up the table by formatting cells and writing static text Private Sub SetUpTable(ByRef wrdApp As Object, ByRef wrdTable As Object, ByVal strTitle As String, _ ByVal strType As String, ByVal lLast As Long) Dim wrdRow As Object On Error GoTo Proc_Err With wrdTable .Borders.InsideLineStyle = 1 'wdLineStyleSingle .Borders.OutsideLineStyle = 7 'wdLineStyleDouble .Columns(1).Width = 250 .Columns(2).Width = 60 .Columns(3).Width = 200 End With '1st row set to caption Set wrdRow = wrdTable.Rows(1) wrdRow.cells.Merge wrdRow.Shading.Texture = 250 'wdTexture25Percent With wrdTable.Cell(1, 1).Range .Font.Size = 14 .Font.Bold = True .Paragraphs.Alignment = 1 'wdAlignRowCenter End With WriteCell3 wrdApp, wrdTable, 1, 1, strTitle, False With wrdTable .Cell(2, 1).Range.Paragraphs.Alignment = 0 'wdAlignRowLeft .Cell(2, 2).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(2, 3).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(lLast, 1).Range.Paragraphs.Alignment = 2 'wdAlignRowRight .Cell(lLast, 2).Range.Shading.BackgroundPatternColorIndex = 16 'wdGray25 End With WriteCell3 wrdApp, wrdTable, 2, 1, strType & " Classification Description", True WriteCell3 wrdApp, wrdTable, 2, 2, strType & " Code", True WriteCell3 wrdApp, wrdTable, 2, 3, "Actual Payroll", True WriteCell3 wrdApp, wrdTable, lLast, 1, "Total", True WriteCell3 wrdApp, wrdTable, lLast, 3, "$", False End sub 'write a cell in the table Private Sub WriteCell3(ByRef wrdApp As Object, ByRef wrdTable As Object, _ ByVal x As Long, ByVal y As Long, ByVal strData As String, ByRef bBold As Boolean) wrdTable.Cell(x, y).SELECT wrdApp.Selection.Font.Bold = bBold wrdApp.Selection.TypeText strData End Sub I hope this will come across to the list. Workers' Compensation WC Classification Description WC Code Actual Payroll Stone Install 1803 $ Tile Work 5348 $ Carpentry 5437 $ Carpet, Vinyl Install 5478 $ Executive Supervisors 5606 $ Total $ General Liablity GL Classification Description GL Code Actual Payroll Executive Supervisors 91580 $ Floor Covering Install 94569 $ Tile Install Interior 99746 $ Total $ From artful at rogers.com Thu Jul 21 13:41:58 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 21 Jul 2005 14:41:58 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED3E@ADGSERVER> Message-ID: <200507211842.j6LIg0R24629@databaseadvisors.com> Wow, that is a lot to think about, Bobby! But thank you for opening my eyes as to how to deal with this sort of problem. It may be a while before I am into it enough to offer suggestions for optimizing it, however. But thanks for the insights! Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: July 21, 2005 2:31 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Another word question... Me again, I am generating 1-2 tables per page on this report that I'm doing in word via automation. It takes, on average, 1.8 seconds to create one page. This is an average from 406 pages. In trying to make it faster, I have determined that the table code takes 66% of the time it takes to create a page. Note that the tables can have a variable number of items in it. I am including the relevant bits of code. I know it is a lot to look through so it's ok if you want to stop here. The one second saved still has the recordset stuff in it, so that is not the bottleneck. Anyone have any ideas as to how I may speed this up? I have included what a finished table looks like at the end of this email. Thanks, Bobby This is what I'm doing (for each table): If Not rs2.EOF Then rs2.MoveLast rs2.MoveFirst 'add the table Set wrdTableWC = wrdDocTmp.Tables.Add(.Selection.Range, rs2.RecordCount + 3, 3) 'format the table and create headers SetUpTable wrdApp, wrdTableWC, "Workers' Compensation", "WC", rs2.RecordCount + 3 End If i = 3 Do While Not rs2.EOF With wrdTableWC .Cell(i, 1).Range.Text = Nz(rs2![WC Description], "") .Cell(i, 2).Range.Text = Nz(rs2![WC Code], "") .Cell(i, 3).Range.Text = "$" End With rs2.MoveNext i = i + 1 Loop rs2.Close End If 'set up the table by formatting cells and writing static text Private Sub SetUpTable(ByRef wrdApp As Object, ByRef wrdTable As Object, ByVal strTitle As String, _ ByVal strType As String, ByVal lLast As Long) Dim wrdRow As Object On Error GoTo Proc_Err With wrdTable .Borders.InsideLineStyle = 1 'wdLineStyleSingle .Borders.OutsideLineStyle = 7 'wdLineStyleDouble .Columns(1).Width = 250 .Columns(2).Width = 60 .Columns(3).Width = 200 End With '1st row set to caption Set wrdRow = wrdTable.Rows(1) wrdRow.cells.Merge wrdRow.Shading.Texture = 250 'wdTexture25Percent With wrdTable.Cell(1, 1).Range .Font.Size = 14 .Font.Bold = True .Paragraphs.Alignment = 1 'wdAlignRowCenter End With WriteCell3 wrdApp, wrdTable, 1, 1, strTitle, False With wrdTable .Cell(2, 1).Range.Paragraphs.Alignment = 0 'wdAlignRowLeft .Cell(2, 2).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(2, 3).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(lLast, 1).Range.Paragraphs.Alignment = 2 'wdAlignRowRight .Cell(lLast, 2).Range.Shading.BackgroundPatternColorIndex = 16 'wdGray25 End With WriteCell3 wrdApp, wrdTable, 2, 1, strType & " Classification Description", True WriteCell3 wrdApp, wrdTable, 2, 2, strType & " Code", True WriteCell3 wrdApp, wrdTable, 2, 3, "Actual Payroll", True WriteCell3 wrdApp, wrdTable, lLast, 1, "Total", True WriteCell3 wrdApp, wrdTable, lLast, 3, "$", False End sub 'write a cell in the table Private Sub WriteCell3(ByRef wrdApp As Object, ByRef wrdTable As Object, _ ByVal x As Long, ByVal y As Long, ByVal strData As String, ByRef bBold As Boolean) wrdTable.Cell(x, y).SELECT wrdApp.Selection.Font.Bold = bBold wrdApp.Selection.TypeText strData End Sub I hope this will come across to the list. Workers' Compensation WC Classification Description WC Code Actual Payroll Stone Install 1803 $ Tile Work 5348 $ Carpentry 5437 $ Carpet, Vinyl Install 5478 $ Executive Supervisors 5606 $ Total $ General Liablity GL Classification Description GL Code Actual Payroll Executive Supervisors 91580 $ Floor Covering Install 94569 $ Tile Install Interior 99746 $ Total $ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Thu Jul 21 13:48:45 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 21 Jul 2005 14:48:45 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED3E@ADGSERVER> Message-ID: <200507211848.j6LImlR26073@databaseadvisors.com> There seems to be a dangling ENDIF, (after rs2.close) and I'm not sure where it's IF should go. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: July 21, 2005 2:31 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Another word question... Me again, I am generating 1-2 tables per page on this report that I'm doing in word via automation. It takes, on average, 1.8 seconds to create one page. This is an average from 406 pages. In trying to make it faster, I have determined that the table code takes 66% of the time it takes to create a page. Note that the tables can have a variable number of items in it. I am including the relevant bits of code. I know it is a lot to look through so it's ok if you want to stop here. The one second saved still has the recordset stuff in it, so that is not the bottleneck. Anyone have any ideas as to how I may speed this up? I have included what a finished table looks like at the end of this email. Thanks, Bobby This is what I'm doing (for each table): If Not rs2.EOF Then rs2.MoveLast rs2.MoveFirst 'add the table Set wrdTableWC = wrdDocTmp.Tables.Add(.Selection.Range, rs2.RecordCount + 3, 3) 'format the table and create headers SetUpTable wrdApp, wrdTableWC, "Workers' Compensation", "WC", rs2.RecordCount + 3 End If i = 3 Do While Not rs2.EOF With wrdTableWC .Cell(i, 1).Range.Text = Nz(rs2![WC Description], "") .Cell(i, 2).Range.Text = Nz(rs2![WC Code], "") .Cell(i, 3).Range.Text = "$" End With rs2.MoveNext i = i + 1 Loop rs2.Close End If 'set up the table by formatting cells and writing static text Private Sub SetUpTable(ByRef wrdApp As Object, ByRef wrdTable As Object, ByVal strTitle As String, _ ByVal strType As String, ByVal lLast As Long) Dim wrdRow As Object On Error GoTo Proc_Err With wrdTable .Borders.InsideLineStyle = 1 'wdLineStyleSingle .Borders.OutsideLineStyle = 7 'wdLineStyleDouble .Columns(1).Width = 250 .Columns(2).Width = 60 .Columns(3).Width = 200 End With '1st row set to caption Set wrdRow = wrdTable.Rows(1) wrdRow.cells.Merge wrdRow.Shading.Texture = 250 'wdTexture25Percent With wrdTable.Cell(1, 1).Range .Font.Size = 14 .Font.Bold = True .Paragraphs.Alignment = 1 'wdAlignRowCenter End With WriteCell3 wrdApp, wrdTable, 1, 1, strTitle, False With wrdTable .Cell(2, 1).Range.Paragraphs.Alignment = 0 'wdAlignRowLeft .Cell(2, 2).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(2, 3).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(lLast, 1).Range.Paragraphs.Alignment = 2 'wdAlignRowRight .Cell(lLast, 2).Range.Shading.BackgroundPatternColorIndex = 16 'wdGray25 End With WriteCell3 wrdApp, wrdTable, 2, 1, strType & " Classification Description", True WriteCell3 wrdApp, wrdTable, 2, 2, strType & " Code", True WriteCell3 wrdApp, wrdTable, 2, 3, "Actual Payroll", True WriteCell3 wrdApp, wrdTable, lLast, 1, "Total", True WriteCell3 wrdApp, wrdTable, lLast, 3, "$", False End sub 'write a cell in the table Private Sub WriteCell3(ByRef wrdApp As Object, ByRef wrdTable As Object, _ ByVal x As Long, ByVal y As Long, ByVal strData As String, ByRef bBold As Boolean) wrdTable.Cell(x, y).SELECT wrdApp.Selection.Font.Bold = bBold wrdApp.Selection.TypeText strData End Sub I hope this will come across to the list. Workers' Compensation WC Classification Description WC Code Actual Payroll Stone Install 1803 $ Tile Work 5348 $ Carpentry 5437 $ Carpet, Vinyl Install 5478 $ Executive Supervisors 5606 $ Total $ General Liablity GL Classification Description GL Code Actual Payroll Executive Supervisors 91580 $ Floor Covering Install 94569 $ Tile Install Interior 99746 $ Total $ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Jul 21 13:50:00 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 21 Jul 2005 14:50:00 -0400 Subject: [AccessD] VBExpress videos Message-ID: <000501c58e25$02a3a3a0$6c7aa8c0@ColbyM6805> In case you haven't found them, there is a beta available for VBExpress which is really just VB.Net light version, with its own IDE instead of being embedded in Visual Studio. The IDE looks and feels almost identical to the Visual Studio however. http://lab.msdn.microsoft.com/express/beginner/ Once you download and install the VBExpress notice the videos available. I discovered this guy a couple of years ago but he has now done (some) videos for this VBExpress and I am finding them very useful I think they would allow anyone who frequents this board to get up to speed pretty quickly, and I have to tell you, VBExpress.net is waaay cool. The videos will show you how to do stuff in the user interface (all that I have gotten to so far) that we can only dream of in VBA. Check it out - it looks very good to me. I am working through the video series right now. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From bheid at appdevgrp.com Thu Jul 21 13:52:35 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 21 Jul 2005 14:52:35 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C262F4@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED40@ADGSERVER> I see that it did not come across as RTF. If anyone is interested in seeing the rtf version, let me know and I'll send you a copy off-list. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, July 21, 2005 2:31 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Another word question... Me again, I am generating 1-2 tables per page on this report that I'm doing in word via automation. It takes, on average, 1.8 seconds to create one page. This is an average from 406 pages. In trying to make it faster, I have determined that the table code takes 66% of the time it takes to create a page. Note that the tables can have a variable number of items in it. I am including the relevant bits of code. I know it is a lot to look through so it's ok if you want to stop here. The one second saved still has the recordset stuff in it, so that is not the bottleneck. Anyone have any ideas as to how I may speed this up? I have included what a finished table looks like at the end of this email. Thanks, Bobby This is what I'm doing (for each table): If Not rs2.EOF Then rs2.MoveLast rs2.MoveFirst 'add the table Set wrdTableWC = wrdDocTmp.Tables.Add(.Selection.Range, rs2.RecordCount + 3, 3) 'format the table and create headers SetUpTable wrdApp, wrdTableWC, "Workers' Compensation", "WC", rs2.RecordCount + 3 End If i = 3 Do While Not rs2.EOF With wrdTableWC .Cell(i, 1).Range.Text = Nz(rs2![WC Description], "") .Cell(i, 2).Range.Text = Nz(rs2![WC Code], "") .Cell(i, 3).Range.Text = "$" End With rs2.MoveNext i = i + 1 Loop rs2.Close End If 'set up the table by formatting cells and writing static text Private Sub SetUpTable(ByRef wrdApp As Object, ByRef wrdTable As Object, ByVal strTitle As String, _ ByVal strType As String, ByVal lLast As Long) Dim wrdRow As Object On Error GoTo Proc_Err With wrdTable .Borders.InsideLineStyle = 1 'wdLineStyleSingle .Borders.OutsideLineStyle = 7 'wdLineStyleDouble .Columns(1).Width = 250 .Columns(2).Width = 60 .Columns(3).Width = 200 End With '1st row set to caption Set wrdRow = wrdTable.Rows(1) wrdRow.cells.Merge wrdRow.Shading.Texture = 250 'wdTexture25Percent With wrdTable.Cell(1, 1).Range .Font.Size = 14 .Font.Bold = True .Paragraphs.Alignment = 1 'wdAlignRowCenter End With WriteCell3 wrdApp, wrdTable, 1, 1, strTitle, False With wrdTable .Cell(2, 1).Range.Paragraphs.Alignment = 0 'wdAlignRowLeft .Cell(2, 2).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(2, 3).Range.Paragraphs.Alignment = 1 'wdAlignRowCenter .Cell(lLast, 1).Range.Paragraphs.Alignment = 2 'wdAlignRowRight .Cell(lLast, 2).Range.Shading.BackgroundPatternColorIndex = 16 'wdGray25 End With WriteCell3 wrdApp, wrdTable, 2, 1, strType & " Classification Description", True WriteCell3 wrdApp, wrdTable, 2, 2, strType & " Code", True WriteCell3 wrdApp, wrdTable, 2, 3, "Actual Payroll", True WriteCell3 wrdApp, wrdTable, lLast, 1, "Total", True WriteCell3 wrdApp, wrdTable, lLast, 3, "$", False End sub 'write a cell in the table Private Sub WriteCell3(ByRef wrdApp As Object, ByRef wrdTable As Object, _ ByVal x As Long, ByVal y As Long, ByVal strData As String, ByRef bBold As Boolean) wrdTable.Cell(x, y).SELECT wrdApp.Selection.Font.Bold = bBold wrdApp.Selection.TypeText strData End Sub I hope this will come across to the list. Workers' Compensation WC Classification Description WC Code Actual Payroll Stone Install 1803 $ Tile Work 5348 $ Carpentry 5437 $ Carpet, Vinyl Install 5478 $ Executive Supervisors 5606 $ Total $ General Liablity GL Classification Description GL Code Actual Payroll Executive Supervisors 91580 $ Floor Covering Install 94569 $ Tile Install Interior 99746 $ Total $ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Jul 21 14:01:17 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 21 Jul 2005 15:01:17 -0400 Subject: [AccessD] OT: MySQL experts Message-ID: <20050721190116.LVV7280.ibm65aec.bellsouth.net@SUSANONE> A local business is looking for a MySQL expert -- the work can probably be done virtually -- they need to convert a db to MySQL. Send me a resume privately at ssharkins at bellsouth.net and I'll forward it on to the contact. Thanks, Susan H. From bheid at appdevgrp.com Thu Jul 21 14:12:00 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 21 Jul 2005 15:12:00 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C26302@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED41@ADGSERVER> Sorry about that. That END IF is from an outside if. That first bit of code is just the relevant code concerning the table stuff. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, July 21, 2005 2:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Another word question... There seems to be a dangling ENDIF, (after rs2.close) and I'm not sure where it's IF should go. From pedro at plex.nl Thu Jul 21 15:28:54 2005 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 21 Jul 2005 22:28:54 +0200 Subject: [AccessD] show last value in listbox References: Message-ID: <002901c58e33$27d8c0c0$fac581d5@pedro> Hello, thanks to all who responded. With your help i must be no problem to solve this. Pedro Janssen ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, July 21, 2005 7:41 PM Subject: Re: [AccessD] show last value in listbox > Hi Pedro > > Your listbox may not have settled at the OnCurrent event of the form. > > Thus, create a textbox and set the controlsource to: > > =SetListboxLast() > > and create this function in the code module of the form: > > Private Function SetListboxLast() > > ' Set listbox lstDemo to the last entry. > > With Me!lstDemo > If IsNull(.Value) Then > .Value = .ItemData(.ListCount - 1) > End If > End With > > End Function > > Then, shortly after the form has opened, the listbox is set to its last > value. > This is for a single-select listbox. > > /gustav > > > >>> pedro at plex.nl 07/21 4:00 pm >>> > Hello Group, > > is it possible, when opening a listbox with a long list of values, it > opens always with the first value. Is it possible to open with the last > values. > > Pedro Janssen > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From artful at rogers.com Thu Jul 21 16:02:37 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 21 Jul 2005 17:02:37 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED41@ADGSERVER> Message-ID: <200507212102.j6LL2bR26204@databaseadvisors.com> Thanks for the clarification! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: July 21, 2005 3:12 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Another word question... Sorry about that. That END IF is from an outside if. That first bit of code is just the relevant code concerning the table stuff. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, July 21, 2005 2:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Another word question... There seems to be a dangling ENDIF, (after rs2.close) and I'm not sure where it's IF should go. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Thu Jul 21 20:57:10 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 21 Jul 2005 21:57:10 -0400 Subject: [AccessD] VBExpress videos References: <000501c58e25$02a3a3a0$6c7aa8c0@ColbyM6805> Message-ID: JC ..how is this different than the VB.Net that comes with Visual Studio Tools? ...since MS compels me to pay for the standard version of VB.net in order to get the equivalent of the old ODE, why might I want to go the VBExpress route instead? ..and are the videos of use in the VB.net ide? William ----- Original Message ----- From: "John W. Colby" To: "VBA" ; "AccessD" Sent: Thursday, July 21, 2005 2:50 PM Subject: [AccessD] VBExpress videos > In case you haven't found them, there is a beta available for VBExpress > which is really just VB.Net light version, with its own IDE instead of > being > embedded in Visual Studio. The IDE looks and feels almost identical to > the > Visual Studio however. > > http://lab.msdn.microsoft.com/express/beginner/ > > Once you download and install the VBExpress notice the videos available. > I > discovered this guy a couple of years ago but he has now done (some) > videos > for this VBExpress and I am finding them very useful I think they would > allow anyone who frequents this board to get up to speed pretty quickly, > and > I have to tell you, VBExpress.net is waaay cool. The videos will show you > how to do stuff in the user interface (all that I have gotten to so far) > that we can only dream of in VBA. > > Check it out - it looks very good to me. I am working through the video > series right now. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Jul 21 21:11:59 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 21 Jul 2005 22:11:59 -0400 Subject: [AccessD] VBExpress videos In-Reply-To: Message-ID: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805> William, Apparently Express is a simplified version of the one that comes in the Visual Studio. As for the videos being useful, I think mostly yes. The videos are about how to manipulate the various windows, the controls, the forms etc. All that is pretty much just like the version in Visual Studio. My email was aimed at those lost souls (like myself) who either have never managed to really "get there" with Visual Studio, or never even purchased it because of the expense. VBExpress is free (for the beta which is very stable) and will be $50 when released at the end of the year. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, July 21, 2005 9:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos JC ..how is this different than the VB.Net that comes with Visual Studio Tools? ...since MS compels me to pay for the standard version of VB.net in order to get the equivalent of the old ODE, why might I want to go the VBExpress route instead? ..and are the videos of use in the VB.net ide? William ----- Original Message ----- From: "John W. Colby" To: "VBA" ; "AccessD" Sent: Thursday, July 21, 2005 2:50 PM Subject: [AccessD] VBExpress videos > In case you haven't found them, there is a beta available for > VBExpress which is really just VB.Net light version, with its own IDE > instead of being embedded in Visual Studio. The IDE looks and feels > almost identical to the > Visual Studio however. > > http://lab.msdn.microsoft.com/express/beginner/ > > Once you download and install the VBExpress notice the videos > available. > I > discovered this guy a couple of years ago but he has now done (some) > videos > for this VBExpress and I am finding them very useful I think they would > allow anyone who frequents this board to get up to speed pretty quickly, > and > I have to tell you, VBExpress.net is waaay cool. The videos will show you > how to do stuff in the user interface (all that I have gotten to so far) > that we can only dream of in VBA. > > Check it out - it looks very good to me. I am working through the > video series right now. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 dejpolsys at hotmail.com Fri Jul 22 01:08:54 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Fri, 22 Jul 2005 02:08:54 -0400 Subject: [AccessD] VBExpress videos References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805> Message-ID: ..thanks JC, I'll dl the videos and have a look then ...tap dancing around VB.net whenever I'm bored with everything else going on ...the VB name is similar but the ide keeps throwing me for a loop and nothing ports cleanly, at least for me ...but I admit to getting old :) ..as for the VS Tools, how does anyone that actually supports distributed Access based apps get by without it? ...that would mean clients having full Access installs and all the troubles that implies ...I'd rather starve first :( William ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 isharp.co.uk Fri Jul 22 03:34:56 2005 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Fri, 22 Jul 2005 09:34:56 +0100 Subject: [AccessD] VBExpress videos In-Reply-To: <000501c58e25$02a3a3a0$6c7aa8c0@ColbyM6805> Message-ID: Anyone know anymore downloads like this, I currently develop in Access97, 2000, XP, VB6, SQL Server 7.0/2000 and really want to start getting into .NET, What would be a good starting point to move into .NET. Thanks in advance for any suggestions etc Paul Hartland -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: 21 July 2005 19:50 To: VBA; AccessD Subject: [AccessD] VBExpress videos In case you haven't found them, there is a beta available for VBExpress which is really just VB.Net light version, with its own IDE instead of being embedded in Visual Studio. The IDE looks and feels almost identical to the Visual Studio however. http://lab.msdn.microsoft.com/express/beginner/ Once you download and install the VBExpress notice the videos available. I discovered this guy a couple of years ago but he has now done (some) videos for this VBExpress and I am finding them very useful I think they would allow anyone who frequents this board to get up to speed pretty quickly, and I have to tell you, VBExpress.net is waaay cool. The videos will show you how to do stuff in the user interface (all that I have gotten to so far) that we can only dream of in VBA. Check it out - it looks very good to me. I am working through the video series right now. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Jul 22 05:04:24 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 22 Jul 2005 12:04:24 +0200 Subject: [AccessD] Another word question... Message-ID: Hi Bobby One method is to avoid Selection and only deal with ranges. I've used that with Excel and guess you can do the same with Word. Another more radical method is to rebuild your function to generate the full RTF code and write that directly to a file. It may not be that difficult as you will not generate all the "fat" that Word normally adds to an RTF file. I've used that method for a client to generate the basic text for a catalogue and it runs at a speed you hardly believe, about 20ms per page. That's because all you do is to loop the recordset(s) while appending pure ASCII to a text file you keep open during the process. Look up in the archive "Writing raw RTF document using VBA - Solved" from 2004-01-02. /gustav >>> bheid at appdevgrp.com 07/21 8:31 pm >>> Me again, I am generating 1-2 tables per page on this report that I'm doing in word via automation. It takes, on average, 1.8 seconds to create one page. This is an average from 406 pages. In trying to make it faster, I have determined that the table code takes 66% of the time it takes to create a page. Note that the tables can have a variable number of items in it. From bheid at appdevgrp.com Fri Jul 22 07:34:05 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 22 Jul 2005 08:34:05 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C263C4@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED46@ADGSERVER> Thanks, I'll check that out. I did not think about using RTF. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 22, 2005 6:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Another word question... Hi Bobby One method is to avoid Selection and only deal with ranges. I've used that with Excel and guess you can do the same with Word. Another more radical method is to rebuild your function to generate the full RTF code and write that directly to a file. It may not be that difficult as you will not generate all the "fat" that Word normally adds to an RTF file. I've used that method for a client to generate the basic text for a catalogue and it runs at a speed you hardly believe, about 20ms per page. That's because all you do is to loop the recordset(s) while appending pure ASCII to a text file you keep open during the process. Look up in the archive "Writing raw RTF document using VBA - Solved" from 2004-01-02. /gustav >>> bheid at appdevgrp.com 07/21 8:31 pm >>> Me again, I am generating 1-2 tables per page on this report that I'm doing in word via automation. It takes, on average, 1.8 seconds to create one page. This is an average from 406 pages. In trying to make it faster, I have determined that the table code takes 66% of the time it takes to create a page. Note that the tables can have a variable number of items in it. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Jul 22 07:45:33 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 22 Jul 2005 08:45:33 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C263C4@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED47@ADGSERVER> Gustav, I just figured out that I can not do a full RTF document. The reason being that the user creates the word document with bookmarks. So I do not know the layout of the document. But, can I just figure out how to do the two tables in RTF and insert it into the word document? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 22, 2005 6:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Another word question... Hi Bobby One method is to avoid Selection and only deal with ranges. I've used that with Excel and guess you can do the same with Word. Another more radical method is to rebuild your function to generate the full RTF code and write that directly to a file. It may not be that difficult as you will not generate all the "fat" that Word normally adds to an RTF file. I've used that method for a client to generate the basic text for a catalogue and it runs at a speed you hardly believe, about 20ms per page. That's because all you do is to loop the recordset(s) while appending pure ASCII to a text file you keep open during the process. Look up in the archive "Writing raw RTF document using VBA - Solved" from 2004-01-02. /gustav From Gustav at cactus.dk Fri Jul 22 07:54:31 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 22 Jul 2005 14:54:31 +0200 Subject: [AccessD] Another word question... Message-ID: Hi Bobby I guess you could but I don't think that will do much. The time hog is the automation part (major) and the use of Selection (minor). /gustav >>> bheid at appdevgrp.com 07/22 2:45 pm >>> Gustav, I just figured out that I can not do a full RTF document. The reason being that the user creates the word document with bookmarks. So I do not know the layout of the document. But, can I just figure out how to do the two tables in RTF and insert it into the word document? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 22, 2005 6:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Another word question... Hi Bobby One method is to avoid Selection and only deal with ranges. I've used that with Excel and guess you can do the same with Word. Another more radical method is to rebuild your function to generate the full RTF code and write that directly to a file. It may not be that difficult as you will not generate all the "fat" that Word normally adds to an RTF file. I've used that method for a client to generate the basic text for a catalogue and it runs at a speed you hardly believe, about 20ms per page. That's because all you do is to loop the recordset(s) while appending pure ASCII to a text file you keep open during the process. Look up in the archive "Writing raw RTF document using VBA - Solved" from 2004-01-02. /gustav From bchacc at san.rr.com Fri Jul 22 10:28:34 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 22 Jul 2005 08:28:34 -0700 Subject: [AccessD] Getting rid of the Access Background References: Message-ID: <00e601c58ed2$05e7c980$6a01a8c0@HAL9004> Gustav: DO you know if a form is not pop-up will it disappear with the Access window? Seemed to on my first experiment with this. Thanks and regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Sunday, July 17, 2005 3:28 AM Subject: Re: [AccessD] Getting rid of the Access Background > Hi Rocky > > I've had better luck with the code from Drew - that from Dev always > complained that either a form was missing or was too much - quite > confusing. > Drew's code doesn't have those limitations and works nicely. > I modified it slightly: > > Option Compare Database > Option Explicit > > Const SW_HIDE As Long = 0 > Const SW_SHOWNORMAL As Long = 1 > Const SW_SHOWMINIMIZED As Long = 2 > Const SW_SHOWMAXIMIZED As Long = 3 > > Private Declare Function IsWindowVisible Lib "user32" ( _ > ByVal hwnd As Long) _ > As Long > > Private Declare Function ShowWindow Lib "user32" ( _ > ByVal hwnd As Long, _ > ByVal nCmdShow As Long) _ > As Long > > Public Function fAccessWindow( _ > Optional Procedure As String, _ > Optional SwitchStatus As Boolean, _ > Optional StatusCheck As Boolean) _ > As Boolean > > Dim lngState As Long > Dim lngReturn As Long > Dim booVisible As Boolean > > MsgBox Application.hWndAccessApp > > If SwitchStatus = False Then > Select Case Procedure > Case "Hide" > lngState = SW_HIDE > Case "Show", "Normal" > lngState = SW_SHOWNORMAL > Case "Minimize" > lngState = SW_SHOWMINIMIZED > Case "Maximize" > lngState = SW_SHOWMAXIMIZED > Case Else > lngState = -1 > End Select > Else > If IsWindowVisible(hWndAccessApp) = 1 Then > lngState = SW_HIDE > Else > lngState = SW_SHOWNORMAL > End If > End If > > If lngState >= 0 Then > lngReturn = ShowWindow(Application.hWndAccessApp, lngState) > End If > > If StatusCheck = True Then > If IsWindowVisible(hWndAccessApp) = 1 Then > booVisible = True > End If > End If > > fAccessWindow = booVisible > > End Function > > Have in mind that reports cannot be previewed with the MDI hidden. > > /gustav > >>>> bchacc at san.rr.com 07/17 1:45 am >>> > Dear List: > > I have an app which is an mde and I'd like the forms to appear without > the standard access background frame. Sort of float over the desktop as > it were. The forms have no max, min, and close buttons and no menu or > tool bars and border style of dialog. Any way to do this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Jul 22 10:32:55 2005 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 22 Jul 2005 10:32:55 -0500 Subject: [AccessD] Getting rid of the Access Background Message-ID: <123701F54509D9119A4F00D0B747349016DA84@main2.marlow.com> Yes, because if it's not a pop-up form, then it will be 'underneath' the Access window, so it wouldn't be seen. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, July 22, 2005 10:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Getting rid of the Access Background Gustav: DO you know if a form is not pop-up will it disappear with the Access window? Seemed to on my first experiment with this. Thanks and regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Sunday, July 17, 2005 3:28 AM Subject: Re: [AccessD] Getting rid of the Access Background > Hi Rocky > > I've had better luck with the code from Drew - that from Dev always > complained that either a form was missing or was too much - quite > confusing. > Drew's code doesn't have those limitations and works nicely. > I modified it slightly: > > Option Compare Database > Option Explicit > > Const SW_HIDE As Long = 0 > Const SW_SHOWNORMAL As Long = 1 > Const SW_SHOWMINIMIZED As Long = 2 > Const SW_SHOWMAXIMIZED As Long = 3 > > Private Declare Function IsWindowVisible Lib "user32" ( _ > ByVal hwnd As Long) _ > As Long > > Private Declare Function ShowWindow Lib "user32" ( _ > ByVal hwnd As Long, _ > ByVal nCmdShow As Long) _ > As Long > > Public Function fAccessWindow( _ > Optional Procedure As String, _ > Optional SwitchStatus As Boolean, _ > Optional StatusCheck As Boolean) _ > As Boolean > > Dim lngState As Long > Dim lngReturn As Long > Dim booVisible As Boolean > > MsgBox Application.hWndAccessApp > > If SwitchStatus = False Then > Select Case Procedure > Case "Hide" > lngState = SW_HIDE > Case "Show", "Normal" > lngState = SW_SHOWNORMAL > Case "Minimize" > lngState = SW_SHOWMINIMIZED > Case "Maximize" > lngState = SW_SHOWMAXIMIZED > Case Else > lngState = -1 > End Select > Else > If IsWindowVisible(hWndAccessApp) = 1 Then > lngState = SW_HIDE > Else > lngState = SW_SHOWNORMAL > End If > End If > > If lngState >= 0 Then > lngReturn = ShowWindow(Application.hWndAccessApp, lngState) > End If > > If StatusCheck = True Then > If IsWindowVisible(hWndAccessApp) = 1 Then > booVisible = True > End If > End If > > fAccessWindow = booVisible > > End Function > > Have in mind that reports cannot be previewed with the MDI hidden. > > /gustav > >>>> bchacc at san.rr.com 07/17 1:45 am >>> > Dear List: > > I have an app which is an mde and I'd like the forms to appear without > the standard access background frame. Sort of float over the desktop as > it were. The forms have no max, min, and close buttons and no menu or > tool bars and border style of dialog. Any way to do this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Fri Jul 22 10:38:16 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 22 Jul 2005 08:38:16 -0700 Subject: [AccessD] VBExpress videos Message-ID: VS Tools comes with a standard version of VB.Net. VBExpress is supposed to be the answer to the cry, "why can't you make it easier for non-developers to use?" To me that is utter nonsense, since no one but a developer can make effective use of it anyhow! All the tools that were in the previous developers editions of Office (or the ADT for an earlier version of Access) are in VS Tools now, including the packaging wizard and the Access runtime. If you are developing Access 2003 apps and want to distribute the runtime, you need VS Tools, not VBExpress. Charlotte Foust -----Original Message----- From: William Hindman [mailto:dejpolsys at hotmail.com] Sent: Thursday, July 21, 2005 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos ..thanks JC, I'll dl the videos and have a look then ...tap dancing around VB.net whenever I'm bored with everything else going on ...the VB name is similar but the ide keeps throwing me for a loop and nothing ports cleanly, at least for me ...but I admit to getting old :) ..as for the VS Tools, how does anyone that actually supports distributed Access based apps get by without it? ...that would mean clients having full Access installs and all the troubles that implies ...I'd rather starve first :( William ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in > the Visual Studio. As for the videos being useful, I think mostly > yes. The videos are about how to manipulate the various windows, the > controls, the forms etc. All that is pretty much just like the > version in Visual Studio. > > My email was aimed at those lost souls (like myself) who either have > never managed to really "get there" with Visual Studio, or never even > purchased it because of the expense. VBExpress is free (for the beta > which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of > VB.net in order to get the equivalent of the old ODE, why might I want > to go the VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Fri Jul 22 10:39:05 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 22 Jul 2005 11:39:05 -0400 Subject: [AccessD] VBExpress videos In-Reply-To: Message-ID: <200507221539.j6MFd8R16637@databaseadvisors.com> William (and any others interested)... If your box can support a pair of monitors I strongly suggest that you go that way. Then you can really begin to enjoy the UI of .NET, because you can drag all the toolbars etc. to the second monitor and have a nice clean surface to work on. This changes everything! (Incidentally, the same applies to Dreamweaver MX.) Once you go to using two monitors, it is very difficult to go back. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: July 22, 2005 2:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos ..thanks JC, I'll dl the videos and have a look then ...tap dancing around VB.net whenever I'm bored with everything else going on ...the VB name is similar but the ide keeps throwing me for a loop and nothing ports cleanly, at least for me ...but I admit to getting old :) From cfoust at infostatsystems.com Fri Jul 22 10:47:48 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 22 Jul 2005 08:47:48 -0700 Subject: [AccessD] VBExpress videos Message-ID: I use two and put the solution explorer, properties window, etc. on the second. A couple of other developer stretch the interface across the two monitors, which drives me nuts when I try to find anything on their screen! I admit that it is handy for VS.Net, but I think dual monitors are useless for any other purpose except testing. Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, July 22, 2005 8:39 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] VBExpress videos William (and any others interested)... If your box can support a pair of monitors I strongly suggest that you go that way. Then you can really begin to enjoy the UI of .NET, because you can drag all the toolbars etc. to the second monitor and have a nice clean surface to work on. This changes everything! (Incidentally, the same applies to Dreamweaver MX.) Once you go to using two monitors, it is very difficult to go back. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: July 22, 2005 2:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos ..thanks JC, I'll dl the videos and have a look then ...tap dancing around VB.net whenever I'm bored with everything else going on ...the VB name is similar but the ide keeps throwing me for a loop and nothing ports cleanly, at least for me ...but I admit to getting old :) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Jul 22 11:04:11 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 22 Jul 2005 12:04:11 -0400 Subject: [AccessD] VBExpress videos In-Reply-To: Message-ID: <001f01c58ed7$000b4aa0$6c7aa8c0@ColbyM6805> >VBExpress is supposed to be the answer to the cry, "why can't you make it easier for non-developers to use?" To me that is utter nonsense, since no one but a developer can make effective use of it anyhow! LOL, I agree. What it does is lower the cost threshold for getting in to .net. .NET no matter how you slice it, is a huge, complex, very powerful object model with massive ability and massive learning curve. As a learning tool I am trying to move a simple 3 class set of data objects to .net and it has taken all of yesterday and all of today to get just to the point where I can start testing it. I fully expect another couple of days just to get them functioning. And this for three simple classes that already worked using ado in VBA. Of course I am pretty much starting from ground zero in terms of .net knowledge. I have studied the books intermittently over the last year but never really kept at it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, July 22, 2005 11:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] VBExpress videos VS Tools comes with a standard version of VB.Net. VBExpress is supposed to be the answer to the cry, "why can't you make it easier for non-developers to use?" To me that is utter nonsense, since no one but a developer can make effective use of it anyhow! All the tools that were in the previous developers editions of Office (or the ADT for an earlier version of Access) are in VS Tools now, including the packaging wizard and the Access runtime. If you are developing Access 2003 apps and want to distribute the runtime, you need VS Tools, not VBExpress. Charlotte Foust -----Original Message----- From: William Hindman [mailto:dejpolsys at hotmail.com] Sent: Thursday, July 21, 2005 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos ..thanks JC, I'll dl the videos and have a look then ...tap dancing around VB.net whenever I'm bored with everything else going on ...the VB name is similar but the ide keeps throwing me for a loop and nothing ports cleanly, at least for me ...but I admit to getting old :) ..as for the VS Tools, how does anyone that actually supports distributed Access based apps get by without it? ...that would mean clients having full Access installs and all the troubles that implies ...I'd rather starve first :( William ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in > the Visual Studio. As for the videos being useful, I think mostly > yes. The videos are about how to manipulate the various windows, the > controls, the forms etc. All that is pretty much just like the > version in Visual Studio. > > My email was aimed at those lost souls (like myself) who either have > never managed to really "get there" with Visual Studio, or never even > purchased it because of the expense. VBExpress is free (for the beta > which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of > VB.net in order to get the equivalent of the old ODE, why might I want > to go the VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 darsant at gmail.com Fri Jul 22 11:11:16 2005 From: darsant at gmail.com (Josh McFarlane) Date: Fri, 22 Jul 2005 11:11:16 -0500 Subject: [AccessD] VBExpress videos In-Reply-To: References: Message-ID: <53c8e05a0507220911139d4425@mail.gmail.com> On 7/22/05, Charlotte Foust wrote: > I use two and put the solution explorer, properties window, etc. on the > second. A couple of other developer stretch the interface across the > two monitors, which drives me nuts when I try to find anything on their > screen! I admit that it is handy for VS.Net, but I think dual monitors > are useless for any other purpose except testing. > > Charlotte Foust I hate that fact that there's no easy way to make it span two monitors without disjoining them. On Access, I leave the VB window up on one monitor and the form view on another. Helps with keeping the code tied to reality sometimes. In VS.Net, for a single application it's pointless for me to develop in two monitors (granted, I can make the code window bigger by dragging the solution explorer, etc to the other window, but nothing increased productivity wise. Now, when I'm looking code up online to help debug our programs, the 2nd monitor's extra space keeps from Alt-tabbing. For a developer, 2nd monitors make things simpler if you're using good programs. Maybe 2005 will allow us better dual monitor support. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From artful at rogers.com Fri Jul 22 11:13:13 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 22 Jul 2005 12:13:13 -0400 Subject: [AccessD] VBExpress videos In-Reply-To: Message-ID: <200507221613.j6MGDGR25152@databaseadvisors.com> Well, we certainly disagree on your last comment, Charlotte! I absolutely LOVE having various programs open on each monitor, for example Outlook on one, Word on the other, and so on. When debugging etc. it is even better! Nothing like putting the Access code window on one monitor and the running application on the other! Once you do that, there's no turning back! IMO. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: July 22, 2005 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] VBExpress videos I use two and put the solution explorer, properties window, etc. on the second. A couple of other developer stretch the interface across the two monitors, which drives me nuts when I try to find anything on their screen! I admit that it is handy for VS.Net, but I think dual monitors are useless for any other purpose except testing. Charlotte Foust From artful at rogers.com Fri Jul 22 11:25:20 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 22 Jul 2005 12:25:20 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED47@ADGSERVER> Message-ID: <200507221625.j6MGPMR28078@databaseadvisors.com> After looking through your code and playing a bit with it, I'm wondering whether I can work backwards, sort of. Assume that my template contains a table with a header row and one blank row, already formatted to the size and font etc. that I want in the populated result. Would I need to specify these when adding rows, or is that already done, given the existence of the table header and blank row? Failing that, can I deduce the column widths etc. from the existing header and blank row? What's the best way to go about this? Start with a 1-row table (plus header), or manufacture the whole table as you apparently do? It's possible, in the document I need to create, that one of the tables will contain zero rows (it would always be Table Two). This occurs rarely but I need to be able to deal with it. Assuming (as now) that the table exists in the template file, how would I hide it in the event that it contains zero rows of data? Thanks! Arthur From cfoust at infostatsystems.com Fri Jul 22 11:26:12 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 22 Jul 2005 09:26:12 -0700 Subject: [AccessD] VBExpress videos Message-ID: I don't like having a bunch of programs open at once unless I'm working directly with all of them, as in programming their interaction. Everything that isn't being worked in can just stay in the taskbar as far as I'm concerned. Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, July 22, 2005 9:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] VBExpress videos Well, we certainly disagree on your last comment, Charlotte! I absolutely LOVE having various programs open on each monitor, for example Outlook on one, Word on the other, and so on. When debugging etc. it is even better! Nothing like putting the Access code window on one monitor and the running application on the other! Once you do that, there's no turning back! IMO. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: July 22, 2005 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] VBExpress videos I use two and put the solution explorer, properties window, etc. on the second. A couple of other developer stretch the interface across the two monitors, which drives me nuts when I try to find anything on their screen! I admit that it is handy for VS.Net, but I think dual monitors are useless for any other purpose except testing. Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kevinb at bepc.com Fri Jul 22 11:46:28 2005 From: kevinb at bepc.com (Kevin Bachmeier) Date: Fri, 22 Jul 2005 11:46:28 -0500 Subject: [AccessD] Log file from corruption during Application.CompactRepair. Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713401CDA7B0@HDQ06.bepc.net> I have read the documentation on the Application.CompactRepair method, (below is snippet of that docu). If the compact and repair encounters corruption during the process a log file created. I understand where it will be placed (destination directory), but does anyone know what the name of the log file will be? I'd like to attach it in an email message. Does anyone know how to force corruption during an CompactRepair? (databasename.LOG)?? Thanks in advance. Kevin DOCU SNIPPET FROM MSDN: LogFile Optional Boolean. True if a log file is created in the destination directory to record any corruption detected in the source file. A log file is only created if corruption is detected in the source file. If LogFile is False or omitted, no log file is created, even if corruption is detected in the source file. From dwaters at usinternet.com Fri Jul 22 11:59:26 2005 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 22 Jul 2005 11:59:26 -0500 Subject: [AccessD] Micrometer or Caliper Data Direct to Access In-Reply-To: <28043420.1121962133967.JavaMail.root@sniper18> Message-ID: <000001c58ede$b9bf19c0$0200a8c0@danwaters> Thanks Marty! This looks like a great start. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, July 21, 2005 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Micrometer or Caliper Data Direct to Access http://www.taltech.com I have used these products a couple of years ago. Might be a tad expensive, as you can write your own code via mscomm.ocx, which I think is installed or licensed from VB6 . However you may have problems writing code to handle sampling stream rates and line drops and all the possible error conditions that this software covers. If your requirements are really simple you might just get away with using mscomm. Lots of net examples. Input RS232 data directly into Excel, Access, or any Windows application. WinWedge provides real-time data collection from any serial device or instrument. TCP-Wedge software provides data collection from any TCP/IP network. Send and receive RS232 data across a TCP/IP port with TCP/Com serial to TCP/IP converter software. In other words just drop your instrument on the net. Lots of useful test software here like code for a breakout box, there are articles on the site explaining methods. However it appears they dumped one useful example in VB, it was too good. http://www.taltech.com/freesoftware/fs_sw.htm This site also may have good software suggestions and methods National Instruments. http://www.ni.com Dan Waters wrote: >Hello all! > > > >Many hand measuring instruments have an electronic component that is used to >send measurement data to a PC, given the right software. The way this works >is to measure an item, then push a button on the instrument to send the >measurement info to a PC. > > > >I'd like to find out if anyone has experience working with these instruments >and collecting the data in an Access database, and could steer in good >directions and away from poor ones! > > > >Thanks! > >Dan Waters > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Jul 22 12:58:12 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 22 Jul 2005 13:58:12 -0400 Subject: [AccessD] Another word question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C264A3@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED4C@ADGSERVER> Well, in my particular case, the table variable may not be there. In that case, the users do not want a table to show. I initially started out with a predefined table. But from what I read, it is very slow to add rows to an existing table. When I create the table, I have an object variable pointing at the table. SO maybe you could identify the table in code and delete it if you did not want it? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, July 22, 2005 12:25 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Another word question... After looking through your code and playing a bit with it, I'm wondering whether I can work backwards, sort of. Assume that my template contains a table with a header row and one blank row, already formatted to the size and font etc. that I want in the populated result. Would I need to specify these when adding rows, or is that already done, given the existence of the table header and blank row? Failing that, can I deduce the column widths etc. from the existing header and blank row? What's the best way to go about this? Start with a 1-row table (plus header), or manufacture the whole table as you apparently do? It's possible, in the document I need to create, that one of the tables will contain zero rows (it would always be Table Two). This occurs rarely but I need to be able to deal with it. Assuming (as now) that the table exists in the template file, how would I hide it in the event that it contains zero rows of data? Thanks! Arthur From jmhecht at earthlink.net Sat Jul 23 20:10:07 2005 From: jmhecht at earthlink.net (Joe Hecht) Date: Sat, 23 Jul 2005 18:10:07 -0700 Subject: [AccessD] Access SQL Message-ID: <000601c58fec$6faa9030$6401a8c0@laptop1> What kind of SQL does Access use? Is it T- SQL ? Joe Hecht Los Angeles CA From stuart at lexacorp.com.pg Sat Jul 23 21:32:22 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 24 Jul 2005 12:32:22 +1000 Subject: [AccessD] Access SQL In-Reply-To: <000601c58fec$6faa9030$6401a8c0@laptop1> Message-ID: <42E38A56.31204.31A380C9@stuart.lexacorp.com.pg> On 23 Jul 2005 at 18:10, Joe Hecht wrote: > What kind of SQL does Access use? > > Is it T- SQL ? > No, it's Access SQL. It's similar to T-SQL in that the basic commands INSERT, SELECT, DELETE, UPDATE, JOIN, WHERE, GROUPBY etc) and syntax are the same. The main differences are that is uses standard Access/Windows wildcards rather than the T-SQL ones ("*" = "%" and "?" = "_") and it uses VBA functions in lieu of the T-SQL ones for type convertions, string manipulation, conditionals (such as IIF()) etc. -- Stuart From ssharkins at bellsouth.net Sat Jul 23 21:36:22 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 23 Jul 2005 22:36:22 -0400 Subject: [AccessD] Access SQL In-Reply-To: <000601c58fec$6faa9030$6401a8c0@laptop1> Message-ID: <20050724023619.WKQA7280.ibm65aec.bellsouth.net@SUSANONE> Jet SQL. SQL Server uses Transact-SQL (T-SQL). Jet's a critter all its own but they are similar. Susan H. What kind of SQL does Access use? Is it T- SQL ? From martyconnelly at shaw.ca Sun Jul 24 02:21:50 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 24 Jul 2005 00:21:50 -0700 Subject: [AccessD] Micrometer or Caliper Data Direct to Access References: <000001c58ede$b9bf19c0$0200a8c0@danwaters> Message-ID: <42E3418E.8060105@shaw.ca> I came across another oldie that uses mscomm32.ocx (that comes with VB6 but there seems to be a version with WinXP too) or it go installed on my machine somehow. Written in Access 97 around 1999 It mostly plays around with the modem but what the heck that is hung on a serial comm port too. From Neal Kling look under downloads menu. http://www.geocities.com/nealakling/ Dan Waters wrote: >Thanks Marty! > >This looks like a great start. > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, July 21, 2005 11:05 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Micrometer or Caliper Data Direct to Access > >http://www.taltech.com >I have used these products a couple of years ago. Might be a tad >expensive, as you can write your own >code via mscomm.ocx, which I think is installed or licensed from VB6 . >However you may have problems >writing code to handle sampling stream rates and line drops and all the >possible error conditions that this software covers. >If your requirements are really simple you might just get away with >using mscomm. Lots of net examples. > >Input RS232 data directly into Excel, Access, or any Windows >application. WinWedge provides real-time data collection from any serial >device or instrument. TCP-Wedge software provides data collection from >any TCP/IP network. Send and receive RS232 data across a TCP/IP port >with TCP/Com serial to TCP/IP converter software. In other words just >drop your instrument on the net. > >Lots of useful test software here like code for a breakout box, there >are articles on the site explaining methods. >However it appears they dumped one useful example in VB, it was too good. >http://www.taltech.com/freesoftware/fs_sw.htm > >This site also may have good software suggestions and methods >National Instruments. >http://www.ni.com > >Dan Waters wrote: > > > >>Hello all! >> >> >> >>Many hand measuring instruments have an electronic component that is used >> >> >to > > >>send measurement data to a PC, given the right software. The way this >> >> >works > > >>is to measure an item, then push a button on the instrument to send the >>measurement info to a PC. >> >> >> >>I'd like to find out if anyone has experience working with these >> >> >instruments > > >>and collecting the data in an Access database, and could steer in good >>directions and away from poor ones! >> >> >> >>Thanks! >> >>Dan Waters >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Sun Jul 24 08:55:25 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 24 Jul 2005 09:55:25 -0400 Subject: [AccessD] Connection strings for ado Message-ID: <000f01c59057$5abb3560$6c7aa8c0@ColbyM6805> I found this: http://www.connectionstrings.com/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From karenr7 at oz.net Sun Jul 24 17:58:54 2005 From: karenr7 at oz.net (Karen Rosenstiel) Date: Sun, 24 Jul 2005 15:58:54 -0700 Subject: [AccessD] Help with a snippet Message-ID: <200507242258.j6OMwrR18615@databaseadvisors.com> I was wondering if someone would be willing to help me with a snippet of code. I want to work with 4 fields in a sub table, as follows: Checkbox "NotSeen" Date field "NextApp" Textbox "Priority", which runs from 1 to 4 Date field "DateReschedule" What I would like to do (if only I was any good at VBA) is when NotSeen is checked, the whole record would be copied and appended. Priorities 2 thru 4 would each move up a notch, i.e., 2 would become 1, etc. DateReschedule would take the date from NextApp and... 1. For the new priority 1, add 1 day to the date from NextApp and put it in DateReschedule 2. For the new priority 2, add 2 days to the date from NextApp and put it in DateReschedule 3. For the new priority 3, add 3 days to the date from NextApp and put it in DateReschedule Finally I would like the whole record to turn red if the priority is # 1, either from this snippet's conversion or when entered directly (actually I think this will be unattractive, but my boss wants the color to highlight the priority). Is this doable in whole or in part? Thanks in advance. Regards, Karen Rosenstiel Seattle WA USA From KP at sdsonline.net Sun Jul 24 18:58:14 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Mon, 25 Jul 2005 09:58:14 +1000 Subject: [AccessD] VBExpress videos References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805> Message-ID: <002901c590ab$8fe53de0$6601a8c0@user> < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 jmhecht at earthlink.net Sun Jul 24 20:26:58 2005 From: jmhecht at earthlink.net (Joe Hecht) Date: Sun, 24 Jul 2005 18:26:58 -0700 Subject: [AccessD] Jet 4 SP 8 Message-ID: <004801c590b7$f3c7ce20$6401a8c0@laptop1> I am reading an article online about Access security and it is talking about sandbox mode. To get there you need to be using Jet 4 SP 8. I am running AXP on one machine and A2k3 on the other. How do I check Jet Version and SP release. Here is the article link. http://office.microsoft.com/training/training.aspx?AssetID=RC011461801033 Joe Hecht Los Angeles CA From D.Dick at uws.edu.au Sun Jul 24 22:12:06 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Mon, 25 Jul 2005 13:12:06 +1000 Subject: [AccessD] Help with a snippet Message-ID: <2FDE83AF1A69C84796CBD13788DDA88364E04A@BONHAM.AD.UWS.EDU.AU> Hi Karen Am I to assume if the NOTSEEN check box is checked you would like to create a brand new 'appointment' ? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 8:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help with a snippet I was wondering if someone would be willing to help me with a snippet of code. I want to work with 4 fields in a sub table, as follows: Checkbox "NotSeen" Date field "NextApp" Textbox "Priority", which runs from 1 to 4 Date field "DateReschedule" What I would like to do (if only I was any good at VBA) is when NotSeen is checked, the whole record would be copied and appended. Priorities 2 thru 4 would each move up a notch, i.e., 2 would become 1, etc. DateReschedule would take the date from NextApp and... 1. For the new priority 1, add 1 day to the date from NextApp and put it in DateReschedule 2. For the new priority 2, add 2 days to the date from NextApp and put it in DateReschedule 3. For the new priority 3, add 3 days to the date from NextApp and put it in DateReschedule Finally I would like the whole record to turn red if the priority is # 1, either from this snippet's conversion or when entered directly (actually I think this will be unattractive, but my boss wants the color to highlight the priority). Is this doable in whole or in part? Thanks in advance. Regards, Karen Rosenstiel Seattle WA USA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Sun Jul 24 22:15:51 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Sun, 24 Jul 2005 23:15:51 -0400 Subject: [AccessD] VBExpress videos References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805> <002901c590ab$8fe53de0$6601a8c0@user> Message-ID: ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 karenr7 at oz.net Sun Jul 24 22:32:28 2005 From: karenr7 at oz.net (Karen Rosenstiel) Date: Sun, 24 Jul 2005 20:32:28 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <2FDE83AF1A69C84796CBD13788DDA88364E04A@BONHAM.AD.UWS.EDU.AU> Message-ID: <200507250332.j6P3WOR15243@databaseadvisors.com> Exactly. I was just noodling around with this and figured out how to copy and append the record with onclick: DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend But I don't know how to do the rest of it. Thanks. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 8:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Am I to assume if the NOTSEEN check box is checked you would like to create a brand new 'appointment' ? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 8:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help with a snippet I was wondering if someone would be willing to help me with a snippet of code. I want to work with 4 fields in a sub table, as follows: Checkbox "NotSeen" Date field "NextApp" Textbox "Priority", which runs from 1 to 4 Date field "DateReschedule" What I would like to do (if only I was any good at VBA) is when NotSeen is checked, the whole record would be copied and appended. Priorities 2 thru 4 would each move up a notch, i.e., 2 would become 1, etc. DateReschedule would take the date from NextApp and... 1. For the new priority 1, add 1 day to the date from NextApp and put it in DateReschedule 2. For the new priority 2, add 2 days to the date from NextApp and put it in DateReschedule 3. For the new priority 3, add 3 days to the date from NextApp and put it in DateReschedule Finally I would like the whole record to turn red if the priority is # 1, either from this snippet's conversion or when entered directly (actually I think this will be unattractive, but my boss wants the color to highlight the priority). Is this doable in whole or in part? Thanks in advance. Regards, Karen Rosenstiel Seattle WA USA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 karenr7 at oz.net Sun Jul 24 22:40:14 2005 From: karenr7 at oz.net (Karen Rosenstiel) Date: Sun, 24 Jul 2005 20:40:14 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <200507250332.j6P3WOR15243@databaseadvisors.com> Message-ID: <200507250340.j6P3eAR17415@databaseadvisors.com> Hmmmm... I just played with this bit of code again and realized that it was duplicating the record with NotSeen checked, which duplicated the record with NotSeen checked which.... Like the picture of the little girl with a box or salt on the Morton Salt box. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Sunday, July 24, 2005 8:32 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Exactly. I was just noodling around with this and figured out how to copy and append the record with onclick: DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend But I don't know how to do the rest of it. Thanks. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 8:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Am I to assume if the NOTSEEN check box is checked you would like to create a brand new 'appointment' ? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 8:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help with a snippet I was wondering if someone would be willing to help me with a snippet of code. I want to work with 4 fields in a sub table, as follows: Checkbox "NotSeen" Date field "NextApp" Textbox "Priority", which runs from 1 to 4 Date field "DateReschedule" What I would like to do (if only I was any good at VBA) is when NotSeen is checked, the whole record would be copied and appended. Priorities 2 thru 4 would each move up a notch, i.e., 2 would become 1, etc. DateReschedule would take the date from NextApp and... 1. For the new priority 1, add 1 day to the date from NextApp and put it in DateReschedule 2. For the new priority 2, add 2 days to the date from NextApp and put it in DateReschedule 3. For the new priority 3, add 3 days to the date from NextApp and put it in DateReschedule Finally I would like the whole record to turn red if the priority is # 1, either from this snippet's conversion or when entered directly (actually I think this will be unattractive, but my boss wants the color to highlight the priority). Is this doable in whole or in part? Thanks in advance. Regards, Karen Rosenstiel Seattle WA USA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 D.Dick at uws.edu.au Sun Jul 24 23:34:28 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Mon, 25 Jul 2005 14:34:28 +1000 Subject: [AccessD] Help with a snippet Message-ID: <2FDE83AF1A69C84796CBD13788DDA88364E13B@BONHAM.AD.UWS.EDU.AU> Hi Karen Demo Sent off line See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 1:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Hmmmm... I just played with this bit of code again and realized that it was duplicating the record with NotSeen checked, which duplicated the record with NotSeen checked which.... Like the picture of the little girl with a box or salt on the Morton Salt box. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Sunday, July 24, 2005 8:32 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Exactly. I was just noodling around with this and figured out how to copy and append the record with onclick: DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend But I don't know how to do the rest of it. Thanks. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 8:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Am I to assume if the NOTSEEN check box is checked you would like to create a brand new 'appointment' ? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 8:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help with a snippet I was wondering if someone would be willing to help me with a snippet of code. I want to work with 4 fields in a sub table, as follows: Checkbox "NotSeen" Date field "NextApp" Textbox "Priority", which runs from 1 to 4 Date field "DateReschedule" What I would like to do (if only I was any good at VBA) is when NotSeen is checked, the whole record would be copied and appended. Priorities 2 thru 4 would each move up a notch, i.e., 2 would become 1, etc. DateReschedule would take the date from NextApp and... 1. For the new priority 1, add 1 day to the date from NextApp and put it in DateReschedule 2. For the new priority 2, add 2 days to the date from NextApp and put it in DateReschedule 3. For the new priority 3, add 3 days to the date from NextApp and put it in DateReschedule Finally I would like the whole record to turn red if the priority is # 1, either from this snippet's conversion or when entered directly (actually I think this will be unattractive, but my boss wants the color to highlight the priority). Is this doable in whole or in part? Thanks in advance. Regards, Karen Rosenstiel Seattle WA USA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 martyconnelly at shaw.ca Mon Jul 25 01:47:54 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 24 Jul 2005 23:47:54 -0700 Subject: [AccessD] Jet 4 SP 8 References: <004801c590b7$f3c7ce20$6401a8c0@laptop1> Message-ID: <42E48B1A.4010808@shaw.ca> Here is the Jet SP-8 file manifest Just check by right clicking your Dao360.dll for property file version should be at least Dao360.dll 3.60.8025.0 557,328 bytes http://support.microsoft.com/?kbid=829558 You can find again by hunting through general mdac portal for jet http://www.microsoft.com/data Joe Hecht wrote: >I am reading an article online about Access security and it is talking about >sandbox mode. To get there you need to be using Jet 4 SP 8. > >I am running AXP on one machine and A2k3 on the other. How do I check Jet >Version and SP release. > >Here is the article link. > >http://office.microsoft.com/training/training.aspx?AssetID=RC011461801033 > >Joe Hecht >Los Angeles CA > > > -- Marty Connelly Victoria, B.C. Canada From karenr7 at oz.net Mon Jul 25 04:03:15 2005 From: karenr7 at oz.net (Karen Rosenstiel) Date: Mon, 25 Jul 2005 02:03:15 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <2FDE83AF1A69C84796CBD13788DDA88364E13B@BONHAM.AD.UWS.EDU.AU> Message-ID: <200507250903.j6P93TR31070@databaseadvisors.com> Darren, This is terrific! Thank you. And, unfortunately, my co-workers won't be able to figure out how to read your funny comments. Thanks again, this will work just fine. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 9:34 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Demo Sent off line See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 1:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Hmmmm... I just played with this bit of code again and realized that it was duplicating the record with NotSeen checked, which duplicated the record with NotSeen checked which.... Like the picture of the little girl with a box or salt on the Morton Salt box. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Sunday, July 24, 2005 8:32 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Exactly. I was just noodling around with this and figured out how to copy and append the record with onclick: DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend But I don't know how to do the rest of it. Thanks. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 8:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Am I to assume if the NOTSEEN check box is checked you would like to create a brand new 'appointment' ? Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 8:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Help with a snippet I was wondering if someone would be willing to help me with a snippet of code. I want to work with 4 fields in a sub table, as follows: Checkbox "NotSeen" Date field "NextApp" Textbox "Priority", which runs from 1 to 4 Date field "DateReschedule" What I would like to do (if only I was any good at VBA) is when NotSeen is checked, the whole record would be copied and appended. Priorities 2 thru 4 would each move up a notch, i.e., 2 would become 1, etc. DateReschedule would take the date from NextApp and... 1. For the new priority 1, add 1 day to the date from NextApp and put it in DateReschedule 2. For the new priority 2, add 2 days to the date from NextApp and put it in DateReschedule 3. For the new priority 3, add 3 days to the date from NextApp and put it in DateReschedule Finally I would like the whole record to turn red if the priority is # 1, either from this snippet's conversion or when entered directly (actually I think this will be unattractive, but my boss wants the color to highlight the priority). Is this doable in whole or in part? Thanks in advance. Regards, Karen Rosenstiel Seattle WA USA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhecht at earthlink.net Mon Jul 25 08:46:59 2005 From: jmhecht at earthlink.net (Joe Hecht) Date: Mon, 25 Jul 2005 06:46:59 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <2FDE83AF1A69C84796CBD13788DDA88364E13B@BONHAM.AD.UWS.EDU.AU> Message-ID: <000201c5911f$5541b370$6401a8c0@laptop1> Inquiring minds want to know how to do this? Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 9:34 PM To: access at joe2.endjunk.com; Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Demo Sent off line See ya DD From ssharkins at bellsouth.net Mon Jul 25 09:14:08 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 25 Jul 2005 10:14:08 -0400 Subject: [AccessD] MS certification Message-ID: <20050725141405.XNRC19628.ibm56aec.bellsouth.net@SUSANONE> http://searchvb.techtarget.com/originalContent/0,289142,sid8_gci1109668,00.h tml Susan H. From Chester_Kaup at kindermorgan.com Mon Jul 25 09:49:52 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 25 Jul 2005 09:49:52 -0500 Subject: [AccessD] FW: Find a record in table with intervals Message-ID: I have table (table1) with dates and a value associated with the date. For example 1/1/2001 20 7/13/2003 27 12/26/2003 31 6/4/2004 33 1/13/2005 40 6/7/2005 44 I have another table (table 2) with values in it also. Using the date in this table I need to find the value in table one that would be correct for that date. It is assumed the value in table one carries forward until the date changes. The value associated with the last date carries forward forever. For example a date of 10/13/2004 should return a value of 33. I was able to achieve the desired result with several if then else and do loops but was hoping for a better solution. Was hoping for something like the vlookup function in Excel. Thanks. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 From ssharkins at bellsouth.net Mon Jul 25 09:55:00 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 25 Jul 2005 10:55:00 -0400 Subject: [AccessD] FW: Find a record in table with intervals In-Reply-To: Message-ID: <20050725145457.CFCT27018.ibm68aec.bellsouth.net@SUSANONE> A subquery using IN? It sounds to me like the real work is in the conditional expressions. Susan H. I have table (table1) with dates and a value associated with the date. For example 1/1/2001 20 7/13/2003 27 12/26/2003 31 6/4/2004 33 1/13/2005 40 6/7/2005 44 I have another table (table 2) with values in it also. Using the date in this table I need to find the value in table one that would be correct for that date. It is assumed the value in table one carries forward until the date changes. The value associated with the last date carries forward forever. For example a date of 10/13/2004 should return a value of 33. I was able to achieve the desired result with several if then else and do loops but was hoping for a better solution. Was hoping for something like the vlookup function in Excel. Thanks. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jim.moss at jlmoss.net Mon Jul 25 10:16:36 2005 From: jim.moss at jlmoss.net (Jim Moss) Date: Mon, 25 Jul 2005 10:16:36 -0500 (CDT) Subject: [AccessD] Access SQL In-Reply-To: <42E38A56.31204.31A380C9@stuart.lexacorp.com.pg> References: <000601c58fec$6faa9030$6401a8c0@laptop1> <42E38A56.31204.31A380C9@stuart.lexacorp.com.pg> Message-ID: <2969.65.196.182.34.1122304596.squirrel@65.196.182.34> You can optionally set the database to use SQL Server compatible syntax (ANSI 92) in the options menu. > On 23 Jul 2005 at 18:10, Joe Hecht wrote: > >> What kind of SQL does Access use? >> >> Is it T- SQL ? >> > > No, it's Access SQL. > It's similar to T-SQL in that the basic commands INSERT, SELECT, DELETE, > UPDATE, JOIN, WHERE, GROUPBY etc) and syntax are the same. > > The main differences are that is uses standard Access/Windows wildcards > rather than the T-SQL ones ("*" = "%" and "?" = "_") and it uses VBA > functions in lieu of the T-SQL ones for type convertions, string > manipulation, conditionals (such as IIF()) etc. > > > > > > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jim.Hale at FleetPride.com Mon Jul 25 10:31:41 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 25 Jul 2005 10:31:41 -0500 Subject: [AccessD] Dim fm as form or fm as Form_ rmCert Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337716@corp-es01.fleetpride.com> In a module I referenced an open form as follows: dim fm as Form_frmCert Set fm = Forms!frmCert ....do stuff using txt values on the form run Excel, place the text values in ranges on a worksheet etc If Not (wb Is Nothing) Then Set wb = Nothing If Not (fm Is Nothing) Then Set fm = Nothing appExcel.Quit Set appExcel = Nothing When the function finished an instance of Excel was still running.when I changed the dim statement to read dim fm as form the instance of Excel terminated properly. I've learned the hard way that whenever I open an instance of Excel EVERY object variable must be set to nothing because Access cannot be relied upon to cleanup properly. However, I'm curious what is going on here. Why does fm not go out of scope? Jim Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From cfoust at infostatsystems.com Mon Jul 25 10:44:13 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Jul 2005 08:44:13 -0700 Subject: [AccessD] Dim fm as form or fm as Form_ rmCert Message-ID: In order to set frm = Forms!frmCert, frmCert has to be open. SWAG: Unless you close it, the reference to its module (Form_frmCert) probably won't go completely out of scope, since the object is still open. Charlotte -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Monday, July 25, 2005 8:32 AM To: 'Accessd (E-mail) Subject: [AccessD] Dim fm as form or fm as Form_ rmCert In a module I referenced an open form as follows: dim fm as Form_frmCert Set fm = Forms!frmCert ....do stuff using txt values on the form run Excel, place the text values in ranges on a worksheet etc If Not (wb Is Nothing) Then Set wb = Nothing If Not (fm Is Nothing) Then Set fm = Nothing appExcel.Quit Set appExcel = Nothing When the function finished an instance of Excel was still running.when I changed the dim statement to read dim fm as form the instance of Excel terminated properly. I've learned the hard way that whenever I open an instance of Excel EVERY object variable must be set to nothing because Access cannot be relied upon to cleanup properly. However, I'm curious what is going on here. Why does fm not go out of scope? Jim Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From cfoust at infostatsystems.com Mon Jul 25 10:47:24 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Jul 2005 08:47:24 -0700 Subject: [AccessD] Connection strings for ado Message-ID: Handy, isn't it. I fell over it a month or so ago too. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, July 24, 2005 6:55 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] Connection strings for ado I found this: http://www.connectionstrings.com/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Jul 25 10:59:46 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 25 Jul 2005 08:59:46 -0700 Subject: [AccessD] Jet 4 SP 8 References: <004801c590b7$f3c7ce20$6401a8c0@laptop1> <42E48B1A.4010808@shaw.ca> Message-ID: <42E50C72.3060606@shaw.ca> This KB might be a bit clearer as it it shows how to identify the mjset40.dll version number for the security patch that was added to Jet SP8 April 13, 2004 How to obtain the latest service pack for the Microsoft Jet 4.0 Database Engine http://support.microsoft.com/kb/239114/ MartyConnelly wrote: > Here is the Jet SP-8 file manifest > Just check by right clicking your Dao360.dll for property file version > should be at least Dao360.dll 3.60.8025.0 557,328 bytes > http://support.microsoft.com/?kbid=829558 > > You can find again by hunting through general mdac portal for jet > http://www.microsoft.com/data > > Joe Hecht wrote: > >> I am reading an article online about Access security and it is >> talking about >> sandbox mode. To get there you need to be using Jet 4 SP 8. >> >> I am running AXP on one machine and A2k3 on the other. How do I check >> Jet >> Version and SP release. >> >> Here is the article link. >> >> http://office.microsoft.com/training/training.aspx?AssetID=RC011461801033 >> >> >> Joe Hecht >> Los Angeles CA >> >> >> > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Jul 25 11:13:01 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 25 Jul 2005 09:13:01 -0700 Subject: [AccessD] Connection strings for ado References: Message-ID: <42E50F8D.4080504@shaw.ca> Here is one from Carl Prothman that moved recently however the redirects give a 404 error It is the old able-consulting.com site, that in addition to connection strings listings had an ADO, ADO.Net and ADOX faq's http://www.carlprothman.net/ Charlotte Foust wrote: >Handy, isn't it. I fell over it a month or so ago too. > >Charlotte Foust > > >-----Original Message----- >From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >Sent: Sunday, July 24, 2005 6:55 AM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [AccessD] Connection strings for ado > > >I found this: > >http://www.connectionstrings.com/ > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- Marty Connelly Victoria, B.C. Canada From karenr7 at oz.net Mon Jul 25 15:57:20 2005 From: karenr7 at oz.net (Karen Rosenstiel) Date: Mon, 25 Jul 2005 13:57:20 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <000201c5911f$5541b370$6401a8c0@laptop1> Message-ID: <200507252057.j6PKvJR10993@databaseadvisors.com> Shall I email you a copy of Darrin's code? Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, July 25, 2005 6:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Inquiring minds want to know how to do this? Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 9:34 PM To: access at joe2.endjunk.com; Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Demo Sent off line See ya DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jul 25 15:58:55 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 25 Jul 2005 16:58:55 -0400 Subject: [AccessD] Dim fm as form or fm as Form_ rmCert In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB6772337716@corp-es01.fleetpride.com> Message-ID: <000001c5915b$aef0df40$6c7aa8c0@ColbyM6805> I cannot say what exactly is going on, but I can say that... >I've learned the hard way that whenever I open an instance of Excel EVERY object variable must be set to nothing because Access cannot be relied upon to cleanup properly. No, you need to clean up EVERY object variable regardless of the object type. Access' garbage collection is not reliable and you will end up with all kinds of weird symptoms if you don't clean up behind yourself. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, July 25, 2005 11:32 AM To: 'Accessd (E-mail) Subject: [AccessD] Dim fm as form or fm as Form_ rmCert In a module I referenced an open form as follows: dim fm as Form_frmCert Set fm = Forms!frmCert ....do stuff using txt values on the form run Excel, place the text values in ranges on a worksheet etc If Not (wb Is Nothing) Then Set wb = Nothing If Not (fm Is Nothing) Then Set fm = Nothing appExcel.Quit Set appExcel = Nothing When the function finished an instance of Excel was still running.when I changed the dim statement to read dim fm as form the instance of Excel terminated properly. I've learned the hard way that whenever I open an instance of Excel EVERY object variable must be set to nothing because Access cannot be relied upon to cleanup properly. However, I'm curious what is going on here. Why does fm not go out of scope? Jim Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Chester_Kaup at kindermorgan.com Mon Jul 25 16:47:17 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 25 Jul 2005 16:47:17 -0500 Subject: [AccessD] Why is recordset not updating? Message-ID: The table is not getting populated using the following code. I think addnew and update are messed up somewhere. myds.AddNew myds.Fields(0) = myds2.Fields(0) myds.Fields(1) = ProdDate myds.Fields(2) = myds2.Fields(2) If RecordCounter = 1 Then myds.AddNew myds.Fields(3) = myds2.Fields(2) / 365.25 Else Do Until PriorCumTotInj < myds1.Fields(2) FluidType = myds1.Fields(5) myds1.MoveNext Loop myds1.MovePrevious If FluidType = "CO2" Then myds.Fields(3) = myds1.Fields(2) + PriorCumTotInj Else myds.Fields(3) = myds1.Fields(3) + PriorCumTotInj End If End If ProdDate = ProdDate + 1 myds.Update Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 From stuart at lexacorp.com.pg Mon Jul 25 16:48:08 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 26 Jul 2005 07:48:08 +1000 Subject: [AccessD] Access SQL In-Reply-To: <2969.65.196.182.34.1122304596.squirrel@65.196.182.34> References: <42E38A56.31204.31A380C9@stuart.lexacorp.com.pg> Message-ID: <42E5EAB8.19757.3AEBF2E7@stuart.lexacorp.com.pg> On 25 Jul 2005 at 10:16, Jim Moss wrote: > You can optionally set the database to use SQL Server compatible syntax > (ANSI 92) in the options menu. > > Only in Access 2002 and above. -- Stuart From cfoust at infostatsystems.com Mon Jul 25 17:22:35 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Jul 2005 15:22:35 -0700 Subject: [AccessD] Why is recordset not updating? Message-ID: I think you'll have to post the missing bits of this code before anyone can say for sure what's happening. Without knowing whether Option Explicit is on and what your variables are declared as and what myds and myds2 and myds1 actually represent, we're just guessing. Charlotte Foust -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Monday, July 25, 2005 2:47 PM To: Access Developers discussion and problem solving Subject: [AccessD] Why is recordset not updating? The table is not getting populated using the following code. I think addnew and update are messed up somewhere. myds.AddNew myds.Fields(0) = myds2.Fields(0) myds.Fields(1) = ProdDate myds.Fields(2) = myds2.Fields(2) If RecordCounter = 1 Then myds.AddNew myds.Fields(3) = myds2.Fields(2) / 365.25 Else Do Until PriorCumTotInj < myds1.Fields(2) FluidType = myds1.Fields(5) myds1.MoveNext Loop myds1.MovePrevious If FluidType = "CO2" Then myds.Fields(3) = myds1.Fields(2) + PriorCumTotInj Else myds.Fields(3) = myds1.Fields(3) + PriorCumTotInj End If End If ProdDate = ProdDate + 1 myds.Update Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From D.Dick at uws.edu.au Mon Jul 25 18:54:28 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Tue, 26 Jul 2005 09:54:28 +1000 Subject: [AccessD] Help with a snippet Message-ID: <2FDE83AF1A69C84796CBD13788DDA88364E3DB@BONHAM.AD.UWS.EDU.AU> HI Karen Feel free to offer a "Me too" on what I sent you Just get 'em to send the me too's reply to your 'real' email address I emailed Joe a copy of what I sent you See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Tuesday, July 26, 2005 6:57 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Shall I email you a copy of Darrin's code? Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, July 25, 2005 6:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Inquiring minds want to know how to do this? Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 9:34 PM To: access at joe2.endjunk.com; Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Demo Sent off line See ya DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Bruce.Bruen at railcorp.nsw.gov.au Mon Jul 25 19:10:29 2005 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Tue, 26 Jul 2005 10:10:29 +1000 Subject: [AccessD] Connection strings for ado Message-ID: But beware! Some of the strings are specific to commercial offerings. For example, the postgreSQL string is for the CoreLabs PostgreSQLDirect .NET Data Provider. It is not for the vanilla odbc or OLEDB .net connections. bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, 26 July 2005 1:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado Handy, isn't it. I fell over it a month or so ago too. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, July 24, 2005 6:55 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] Connection strings for ado I found this: http://www.connectionstrings.com/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From Bruce.Bruen at railcorp.nsw.gov.au Mon Jul 25 19:14:18 2005 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Tue, 26 Jul 2005 10:14:18 +1000 Subject: [AccessD] Connection strings for ado Message-ID: And p.s. the equivalent postgres connectivity is available GPL'ed through the npgsql project (sorry no link) bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bruen, Bruce Sent: Tuesday, 26 July 2005 10:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado But beware! Some of the strings are specific to commercial offerings. For example, the postgreSQL string is for the CoreLabs PostgreSQLDirect .NET Data Provider. It is not for the vanilla odbc or OLEDB .net connections. bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, 26 July 2005 1:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado Handy, isn't it. I fell over it a month or so ago too. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, July 24, 2005 6:55 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] Connection strings for ado I found this: http://www.connectionstrings.com/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From jmhecht at earthlink.net Mon Jul 25 19:17:44 2005 From: jmhecht at earthlink.net (Joe Hecht) Date: Mon, 25 Jul 2005 17:17:44 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <200507252057.j6PKvJR10993@databaseadvisors.com> Message-ID: <001a01c59177$72fc24b0$6401a8c0@laptop1> Thanks, Darrin already did. Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 1:57 PM To: access at joe2.endjunk.com; 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Shall I email you a copy of Darrin's code? Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, July 25, 2005 6:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Inquiring minds want to know how to do this? Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 9:34 PM To: access at joe2.endjunk.com; Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Demo Sent off line See ya DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 karenr7 at oz.net Mon Jul 25 19:34:05 2005 From: karenr7 at oz.net (Karen Rosenstiel) Date: Mon, 25 Jul 2005 17:34:05 -0700 Subject: [AccessD] Help with a snippet In-Reply-To: <001a01c59177$72fc24b0$6401a8c0@laptop1> Message-ID: <200507260034.j6Q0Y2R30972@databaseadvisors.com> OK, any me too's, please email me off line at "karenr7 at oz.net" (Spam blocker -- you all know the drill). Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, July 25, 2005 5:18 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Thanks, Darrin already did. Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Karen Rosenstiel Sent: Monday, July 25, 2005 1:57 PM To: access at joe2.endjunk.com; 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Shall I email you a copy of Darrin's code? Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, July 25, 2005 6:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with a snippet Inquiring minds want to know how to do this? Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren Dick Sent: Sunday, July 24, 2005 9:34 PM To: access at joe2.endjunk.com; Access Developers discussion and problem solving Subject: RE: [AccessD] Help with a snippet Hi Karen Demo Sent off line See ya DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jul 25 20:23:58 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 25 Jul 2005 21:23:58 -0400 Subject: [AccessD] Connection strings for ado In-Reply-To: Message-ID: <000601c59180$b65d81f0$6c7aa8c0@ColbyM6805> LOL, unlikely that I will be finding out any time soon. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bruen, Bruce Sent: Monday, July 25, 2005 8:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado But beware! Some of the strings are specific to commercial offerings. For example, the postgreSQL string is for the CoreLabs PostgreSQLDirect .NET Data Provider. It is not for the vanilla odbc or OLEDB .net connections. bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, 26 July 2005 1:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado Handy, isn't it. I fell over it a month or so ago too. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, July 24, 2005 6:55 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] Connection strings for ado I found this: http://www.connectionstrings.com/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bruce.Bruen at railcorp.nsw.gov.au Mon Jul 25 21:23:21 2005 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Tue, 26 Jul 2005 12:23:21 +1000 Subject: [AccessD] Connection strings for ado Message-ID: Watch out John, the OSF is sneaking up behind you! I am currently using an access FE to a postgres backend which consistes of extension tables to a commercial modeling tool that uses a Jet bas backend! (It can also use certain other heavyweight back ends like SQLServer, but getting the govt to buy an SQL server licence just for developers.... well. So we used a postgres backend, cost $0, setup 1 day, functional weight => SQL server) bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, 26 July 2005 11:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Connection strings for ado LOL, unlikely that I will be finding out any time soon. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bruen, Bruce Sent: Monday, July 25, 2005 8:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado But beware! Some of the strings are specific to commercial offerings. For example, the postgreSQL string is for the CoreLabs PostgreSQLDirect .NET Data Provider. It is not for the vanilla odbc or OLEDB .net connections. bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, 26 July 2005 1:47 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Connection strings for ado Handy, isn't it. I fell over it a month or so ago too. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, July 24, 2005 6:55 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] Connection strings for ado I found this: http://www.connectionstrings.com/ John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From kimjwiggins at yahoo.com Mon Jul 25 22:04:13 2005 From: kimjwiggins at yahoo.com (Kim Wiggins) Date: Mon, 25 Jul 2005 20:04:13 -0700 (PDT) Subject: [AccessD] Problem with bookmarks in automation Message-ID: <20050726030413.33406.qmail@web53609.mail.yahoo.com> Hey all, I am really trying to make this word Automation work. I am using VB to write the code but it will not recognize the bookmarks. It opens the document and everything like it should but it will not recognize the book mark. The error I get is this: the requested member of the collection does not exist It bombs out at the green highlighted code and I can't understand why. Any help would be greatly appreciated. Thanks Kim Here is my code Private Sub cmdLogEntry_Click() ' Declare the variable. Dim objWD As Word.Application Dim WordDoc As Word.Document Dim WordRange As Word.Range Dim strPath As String ' Set the variable (runs new instance of Word.) Set objWD = CreateObject("Word.Application") 'make application visible objWD.Application.Visible = True 'Get Path of Current DB strPath = "C:\AMS\AMS.mdb" 'Strip FileName to Get Path to Doc Do lngInStr = InStr(lngInStr + 1, strPath, "\") Loop While (InStr(lngInStr + 1, strPath, "\") <> 0) 'Get path up to the last ?\? strPath = Left(strPath, lngInStr) 'Append document name onto the end of the stripped path strPath = strPath & "AirframeTemplate.doc" 'open the word document Set doc = objWD.Documents.Open(strPath) 'Insert text into bookmark objWD.ActiveDocument.Bookmarks.Item(?AT?).Range.Text = frmAircraftWO.txtAircraftType ' Quit Word. objWD.Quit ' Clear the variable from memory. Set objWD = Nothing End Sub __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From prodevmg at yahoo.com Tue Jul 26 05:46:40 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 26 Jul 2005 03:46:40 -0700 (PDT) Subject: [AccessD] How to draw a line around select textboxes In-Reply-To: <20050726030413.33406.qmail@web53609.mail.yahoo.com> Message-ID: <20050726104640.24304.qmail@web33110.mail.mud.yahoo.com> What if I have 10 text boxes on a form all across in a row and I wanted to put a box around the first 5 and another box (boarder) around the second 5? This box/border would expand the height of the detail section of each page. I was thinking of the Me.Line method but don't know how to 1) Just put it around certain boxes 2) How to have more than one line method going on at once. Thanks. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From prodevmg at yahoo.com Tue Jul 26 05:49:05 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 26 Jul 2005 03:49:05 -0700 (PDT) Subject: [AccessD] How to draw a line around select textboxes In-Reply-To: <20050726104640.24304.qmail@web33110.mail.mud.yahoo.com> Message-ID: <20050726104905.1720.qmail@web33115.mail.mud.yahoo.com> I am sorry, this is on a report and not a form. Lonnie Johnson wrote:What if I have 10 text boxes on a form all across in a row and I wanted to put a box around the first 5 and another box (boarder) around the second 5? This box/border would expand the height of the detail section of each page. I was thinking of the Me.Line method but don't know how to 1) Just put it around certain boxes 2) How to have more than one line method going on at once. Thanks. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From accessd666 at yahoo.com Tue Jul 26 06:53:55 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 26 Jul 2005 04:53:55 -0700 (PDT) Subject: [AccessD] How to draw a line around select textboxes In-Reply-To: <20050726104905.1720.qmail@web33115.mail.mud.yahoo.com> Message-ID: <20050726115355.8898.qmail@web31612.mail.mud.yahoo.com> Lonnie, can give some more details? So, you want to create a line around textboxes. Do you want this for all rows? If so, why not use a rectangle and set the visible property to true or false? SD --- Lonnie Johnson wrote: > I am sorry, this is on a report and not a form. > > Lonnie Johnson wrote:What if I > have 10 text boxes on a form all across in a row and > I wanted to put a box around the first 5 and another > box (boarder) around the second 5? This box/border > would expand the height of the detail section of > each page. > > I was thinking of the Me.Line method but don't know > how to > > 1) Just put it around certain boxes > > 2) How to have more than one line method going on at > once. > > Thanks. > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access > Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access > Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail From carbonnb at gmail.com Tue Jul 26 07:01:42 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 26 Jul 2005 08:01:42 -0400 Subject: [AccessD] Problem with bookmarks in automation In-Reply-To: <20050726030413.33406.qmail@web53609.mail.yahoo.com> References: <20050726030413.33406.qmail@web53609.mail.yahoo.com> Message-ID: On 25/07/05, Kim Wiggins wrote: > I am really trying to make this word Automation work. I am using VB to write the code but it will not recognize the bookmarks. It opens the document and everything like it should but it will not recognize the book mark. The error I get is this: > > the requested member of the collection does not exist > > It bombs out at the green highlighted code and I can't understand why. Any help would be greatly appreciated. Formatting doesn't come through to the list. Which line is causing the problem? This one? > objWD.ActiveDocument.Bookmarks.Item("AT").Range.Text = frmAircraftWO.txtAircraftType If so, is AT the name of a bookmark in the main body of the document? Or is it in a header or footer? Are you sure the active document the one referenceced in the variable doc? -- 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 prodevmg at yahoo.com Tue Jul 26 07:52:06 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 26 Jul 2005 05:52:06 -0700 (PDT) Subject: [AccessD] How to draw a line around select textboxes In-Reply-To: <20050726115355.8898.qmail@web31612.mail.mud.yahoo.com> Message-ID: <20050726125206.56638.qmail@web33102.mail.mud.yahoo.com> Thanks for responding. If I use the rectangle I only get a box around the textboxes for that line and then another box around the textboxes on the next row. If I have 10 lines of data, I want one box to show around these text boxes for all ten rows. Sort of like a border for the entire page of detail. Thanks again. Sad Der wrote: Lonnie, can give some more details? So, you want to create a line around textboxes. Do you want this for all rows? If so, why not use a rectangle and set the visible property to true or false? SD --- Lonnie Johnson wrote: > I am sorry, this is on a report and not a form. > > Lonnie Johnson wrote:What if I > have 10 text boxes on a form all across in a row and > I wanted to put a box around the first 5 and another > box (boarder) around the second 5? This box/border > would expand the height of the detail section of > each page. > > I was thinking of the Me.Line method but don't know > how to > > 1) Just put it around certain boxes > > 2) How to have more than one line method going on at > once. > > Thanks. > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access > Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access > Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bchacc at san.rr.com Tue Jul 26 09:04:08 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 26 Jul 2005 07:04:08 -0700 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: <008601c591ea$e4714350$6a01a8c0@HAL9004> Dear List: Many moons ago I someone on the list gave me some code to turn the mouse pointer into the hand which now indicated you're hovering over a link, and I used it in the mouse move event of a label which had it's own click event. But I can't find it. Does anyone remember that? It was, IIRC, only 2-3 lines of code. MTIA, Rocky From Jim.Hale at FleetPride.com Tue Jul 26 09:14:22 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 26 Jul 2005 09:14:22 -0500 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337720@corp-es01.fleetpride.com> Is this it? http://www.mvps.org/access/api/api0044.htm Regards, Jim Hale -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Tuesday, July 26, 2005 9:04 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Turn Mouse Pointer to Hand Dear List: Many moons ago I someone on the list gave me some code to turn the mouse pointer into the hand which now indicated you're hovering over a link, and I used it in the mouse move event of a label which had it's own click event. But I can't find it. Does anyone remember that? It was, IIRC, only 2-3 lines of code. MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Rick.Ehlers at cinergy.com Tue Jul 26 09:17:32 2005 From: Rick.Ehlers at cinergy.com (Ehlers, Rick) Date: Tue, 26 Jul 2005 10:17:32 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: Rocky, I use DoCmd.Hourglass True before the code starts and DoCmd.Hourglass False after the code ends to change the pointer. Is this what you are thinking of? Rick Ehlers Power Services Performance And Valuation Annex - EX510 Phone: (513) 287-2047 Fax: (513) 287-3698 EMail: Rick.Ehlers at cinergy.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Tuesday, July 26, 2005 10:04 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Turn Mouse Pointer to Hand Dear List: Many moons ago I someone on the list gave me some code to turn the mouse pointer into the hand which now indicated you're hovering over a link, and I used it in the mouse move event of a label which had it's own click event. But I can't find it. Does anyone remember that? It was, IIRC, only 2-3 lines of code. MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Jul 26 09:41:15 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 26 Jul 2005 07:41:15 -0700 Subject: [AccessD] Turn Mouse Pointer to Hand References: <6A6AA9DF57E4F046BDA1E273BDDB6772337720@corp-es01.fleetpride.com> Message-ID: <00b401c591f0$138f1590$6a01a8c0@HAL9004> Jim: It doesn't have the hand pointer pre-defined. You need it in an icon. The other routine MouseCursor looks like it should change the mouse pointer but I there's no comment about the values to pass to it. experimented with a few values but none changed the cursor. Regards, Rocky ----- Original Message ----- From: "Hale, Jim" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, July 26, 2005 7:14 AM Subject: RE: [AccessD] Turn Mouse Pointer to Hand > Is this it? > http://www.mvps.org/access/api/api0044.htm > > Regards, > Jim Hale > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Tuesday, July 26, 2005 9:04 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Mouse Pointer to Hand > > > Dear List: > > Many moons ago I someone on the list gave me some code to turn the mouse > pointer into the hand which now indicated you're hovering over a link, and > I > used it in the mouse move event of a label which had it's own click event. > > But I can't find it. Does anyone remember that? It was, IIRC, only 2-3 > lines of code. > > MTIA, > > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. -------------------------------------------------------------------------------- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Tue Jul 26 09:56:02 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 26 Jul 2005 07:56:02 -0700 Subject: [AccessD] Turn Mouse Pointer to Hand References: Message-ID: <00c001c591f2$24264c50$6a01a8c0@HAL9004> Rick: I was looking for that snip that changes the muse pointer into a hand. I've got labels on the main form with OnClick events instead of command buttons (which are clunky looking). I've also got a mouse move event for each one already which displays a bit of description of the label's function. Now, in that mouse move event, I'd like to change the pointer to a hand as a visual cue that the label is a clickable link of some sort. I'm gilding the lily here a bit, but it's a consumer product, not a commercial application, so it wants a bit of sizzle. I did this before and it worked real well. I just can't remember the app I built it into so I can't find it again. Thanks and regards, Rocky ----- Original Message ----- From: "Ehlers, Rick" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 7:17 AM Subject: RE: [AccessD] Turn Mouse Pointer to Hand > Rocky, > > I use > > DoCmd.Hourglass True before the code starts > and > DoCmd.Hourglass False after the code ends > > to change the pointer. Is this what you are thinking of? > > > Rick Ehlers > Power Services > Performance And Valuation > Annex - EX510 > Phone: (513) 287-2047 > Fax: (513) 287-3698 > EMail: Rick.Ehlers at cinergy.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Tuesday, July 26, 2005 10:04 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Mouse Pointer to Hand > > Dear List: > > Many moons ago I someone on the list gave me some code to turn the mouse > pointer into the hand which now indicated you're hovering over a link, > and I used it in the mouse move event of a label which had it's own > click event. > > But I can't find it. Does anyone remember that? It was, IIRC, only 2-3 > lines of code. > > MTIA, > > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From prosoft6 at hotmail.com Tue Jul 26 10:00:16 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 26 Jul 2005 11:00:16 -0400 Subject: [AccessD] Demo To Run for 30 Days Message-ID: I'd like to put a demo on my website as a download and have it run for 30 days, checking the stored date against the system date. I know I've seen this somewhere, but cannot seem to find the code. Can anyone point me in the right direction? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From paul.hartland at fsmail.net Tue Jul 26 10:04:55 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 26 Jul 2005 17:04:55 +0200 (CEST) Subject: [AccessD] Demo To Run for 30 Days Message-ID: <28960735.1122390295037.JavaMail.www@wwinf3003> What I tend to do is when they first open the application, store the system date and calculate 30 days in advance and also store this, then you just check the stored date which is 30 days in advance each time they open the app, if you check a stored date against system date, they can always keep changing the date on their machine can't they ? Paul Hartland Message date : Jul 26 2005, 04:01 PM >From : "Julie Reardon-Taylor" To : accessd at databaseadvisors.com Copy to : Subject : [AccessD] Demo To Run for 30 Days I'd like to put a demo on my website as a download and have it run for 30 days, checking the stored date against the system date. I know I've seen this somewhere, but cannot seem to find the code. Can anyone point me in the right direction? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From Lambert.Heenan at AIG.com Tue Jul 26 10:06:16 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 26 Jul 2005 11:06:16 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F137772AB@xlivmbx21.aig.com> I think the simplest way to do this is to enter some text (anything will do) into the label's Hyperlink address property. You will then have to adjust the font underline property (which will have been automatically to 'Yes') and the forecolor property( which will have changed to a blue color). But after that you get the hand icon and there's zero code required. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Tuesday, July 26, 2005 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Turn Mouse Pointer to Hand Rick: I was looking for that snip that changes the muse pointer into a hand. I've got labels on the main form with OnClick events instead of command buttons (which are clunky looking). I've also got a mouse move event for each one already which displays a bit of description of the label's function. Now, in that mouse move event, I'd like to change the pointer to a hand as a visual cue that the label is a clickable link of some sort. I'm gilding the lily here a bit, but it's a consumer product, not a commercial application, so it wants a bit of sizzle. I did this before and it worked real well. I just can't remember the app I built it into so I can't find it again. Thanks and regards, Rocky ----- Original Message ----- From: "Ehlers, Rick" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 7:17 AM Subject: RE: [AccessD] Turn Mouse Pointer to Hand > Rocky, > > I use > > DoCmd.Hourglass True before the code starts > and > DoCmd.Hourglass False after the code ends > > to change the pointer. Is this what you are thinking of? > > > Rick Ehlers > Power Services > Performance And Valuation > Annex - EX510 > Phone: (513) 287-2047 > Fax: (513) 287-3698 > EMail: Rick.Ehlers at cinergy.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Tuesday, July 26, 2005 10:04 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Mouse Pointer to Hand > > Dear List: > > Many moons ago I someone on the list gave me some code to turn the > mouse pointer into the hand which now indicated you're hovering over a > link, and I used it in the mouse move event of a label which had it's > own click event. > > But I can't find it. Does anyone remember that? It was, IIRC, only > 2-3 lines of code. > > MTIA, > > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Jul 26 10:08:31 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 26 Jul 2005 11:08:31 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F137772AF@xlivmbx21.aig.com> Oops. Not quite that simple. You get the icon, the click event will fire, but then Access tries to action the hyperlink too. How to turn that off? -----Original Message----- From: Heenan, Lambert Sent: Tuesday, July 26, 2005 11:06 AM To: 'Access Developers discussion and problem solving' Cc: 'Rocky Smolin - Beach Access Software' Subject: RE: [AccessD] Turn Mouse Pointer to Hand I think the simplest way to do this is to enter some text (anything will do) into the label's Hyperlink address property. You will then have to adjust the font underline property (which will have been automatically to 'Yes') and the forecolor property( which will have changed to a blue color). But after that you get the hand icon and there's zero code required. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Tuesday, July 26, 2005 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Turn Mouse Pointer to Hand Rick: I was looking for that snip that changes the muse pointer into a hand. I've got labels on the main form with OnClick events instead of command buttons (which are clunky looking). I've also got a mouse move event for each one already which displays a bit of description of the label's function. Now, in that mouse move event, I'd like to change the pointer to a hand as a visual cue that the label is a clickable link of some sort. I'm gilding the lily here a bit, but it's a consumer product, not a commercial application, so it wants a bit of sizzle. I did this before and it worked real well. I just can't remember the app I built it into so I can't find it again. Thanks and regards, Rocky ----- Original Message ----- From: "Ehlers, Rick" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 7:17 AM Subject: RE: [AccessD] Turn Mouse Pointer to Hand > Rocky, > > I use > > DoCmd.Hourglass True before the code starts > and > DoCmd.Hourglass False after the code ends > > to change the pointer. Is this what you are thinking of? > > > Rick Ehlers > Power Services > Performance And Valuation > Annex - EX510 > Phone: (513) 287-2047 > Fax: (513) 287-3698 > EMail: Rick.Ehlers at cinergy.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Tuesday, July 26, 2005 10:04 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Mouse Pointer to Hand > > Dear List: > > Many moons ago I someone on the list gave me some code to turn the > mouse pointer into the hand which now indicated you're hovering over a > link, and I used it in the mouse move event of a label which had it's > own click event. > > But I can't find it. Does anyone remember that? It was, IIRC, only > 2-3 lines of code. > > MTIA, > > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at verizon.net Tue Jul 26 10:10:12 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 26 Jul 2005 11:10:12 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand In-Reply-To: <00b401c591f0$138f1590$6a01a8c0@HAL9004> Message-ID: <000a01c591f4$2034dbf0$2e01a8c0@dorismanning> Screen.MousePointer is what you use to change the mouse pointer. You pass it the index of the icon you want but I don't off the top of my head know what the Link icon's index is. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Tuesday, July 26, 2005 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Turn Mouse Pointer to Hand Jim: It doesn't have the hand pointer pre-defined. You need it in an icon. The other routine MouseCursor looks like it should change the mouse pointer but I there's no comment about the values to pass to it. experimented with a few values but none changed the cursor. Regards, Rocky ----- Original Message ----- From: "Hale, Jim" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, July 26, 2005 7:14 AM Subject: RE: [AccessD] Turn Mouse Pointer to Hand > Is this it? > http://www.mvps.org/access/api/api0044.htm > > Regards, > Jim Hale > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Tuesday, July 26, 2005 9:04 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Mouse Pointer to Hand > > > Dear List: > > Many moons ago I someone on the list gave me some code to turn the mouse > pointer into the hand which now indicated you're hovering over a link, and > I > used it in the mouse move event of a label which had it's own click event. > > But I can't find it. Does anyone remember that? It was, IIRC, only 2-3 > lines of code. > > MTIA, > > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. ---------------------------------------------------------------------------- ---- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 darsant at gmail.com Tue Jul 26 10:12:36 2005 From: darsant at gmail.com (Josh McFarlane) Date: Tue, 26 Jul 2005 10:12:36 -0500 Subject: [AccessD] Demo To Run for 30 Days In-Reply-To: <28960735.1122390295037.JavaMail.www@wwinf3003> References: <28960735.1122390295037.JavaMail.www@wwinf3003> Message-ID: <53c8e05a05072608123c2aad6c@mail.gmail.com> On 7/26/05, paul.hartland at fsmail.net wrote: > What I tend to do is when they first open the application, store the system date and calculate 30 days in advance and also store this, then you just check the stored date which is 30 days in advance each time they open the app, if you check a stored date against system date, they can always keep changing the date on their machine can't they ? > > Paul Hartland The optimum solution I can think of is to have the two fields you mentioned, and use them as sort of a between statement in which it can run. First time the program opens, it sets both dates. Next time the user opens the application, first it checks to make sure the current date is between those dates, and if it is, it updates the current system date with the new value. This way, the date window that the program can be opened in slowly expires as time progresses. If the user sets their computer to day X time Y after they got the App but before their last use time, the start time is already after the current time, and the program cannot open. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From bheid at appdevgrp.com Tue Jul 26 10:21:13 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 26 Jul 2005 11:21:13 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C37EED@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED69@ADGSERVER> Rick, If you want to get away from the docmd function, you can use: Screen.mousepointer=11 to turn on the busy icon And Screen.mousepointer=0 to set it back to the regular pointer. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ehlers, Rick Sent: Tuesday, July 26, 2005 10:18 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Turn Mouse Pointer to Hand Rocky, I use DoCmd.Hourglass True before the code starts and DoCmd.Hourglass False after the code ends to change the pointer. Is this what you are thinking of? Rick Ehlers From ssharkins at bellsouth.net Tue Jul 26 10:21:42 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 26 Jul 2005 11:21:42 -0400 Subject: [AccessD] Conversion to Express Message-ID: <20050726152145.LCSW14543.ibm61aec.bellsouth.net@SUSANONE> I'm interested in published or personal experience with converting Access to the new SQL Server Express beta. Right now, with its lack of tools, I doubt there's much on the subject. If you run across anything, you might remember me with a quick link. Thanks! Susan H. From Lambert.Heenan at AIG.com Tue Jul 26 10:28:31 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 26 Jul 2005 11:28:31 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F137772D3@xlivmbx21.aig.com> OK. I got it, this time using the API route. Put this code in a module... Public Const HandCursor = 32649& Declare Function LoadCursorBynum Lib "user32" Alias "LoadCursorA" _ (ByVal hInstance As Long, ByVal lpCursorName As Long) As Long Declare Function SetCursor Lib "user32" (ByVal hCursor As Long) As Long Function MouseCursor(CursorType As Long) Dim lngRet As Long lngRet = LoadCursorBynum(0&, CursorType) lngRet = SetCursor(lngRet) End Function ...Then all you need is a MouseMove event for the label which reads... MouseCursor HandCursor Access will automatically restore the default cursor when you move out of the label's area. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Tuesday, July 26, 2005 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Turn Mouse Pointer to Hand Rick: I was looking for that snip that changes the muse pointer into a hand. I've got labels on the main form with OnClick events instead of command buttons (which are clunky looking). I've also got a mouse move event for each one already which displays a bit of description of the label's function. Now, in that mouse move event, I'd like to change the pointer to a hand as a visual cue that the label is a clickable link of some sort. I'm gilding the lily here a bit, but it's a consumer product, not a commercial application, so it wants a bit of sizzle. I did this before and it worked real well. I just can't remember the app I built it into so I can't find it again. Thanks and regards, Rocky ----- Original Message ----- From: "Ehlers, Rick" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 7:17 AM Subject: RE: [AccessD] Turn Mouse Pointer to Hand > Rocky, > > I use > > DoCmd.Hourglass True before the code starts > and > DoCmd.Hourglass False after the code ends > > to change the pointer. Is this what you are thinking of? > > > Rick Ehlers > Power Services > Performance And Valuation > Annex - EX510 > Phone: (513) 287-2047 > Fax: (513) 287-3698 > EMail: Rick.Ehlers at cinergy.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Tuesday, July 26, 2005 10:04 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Mouse Pointer to Hand > > Dear List: > > Many moons ago I someone on the list gave me some code to turn the > mouse pointer into the hand which now indicated you're hovering over a > link, and I used it in the mouse move event of a label which had it's > own click event. > > But I can't find it. Does anyone remember that? It was, IIRC, only > 2-3 lines of code. > > MTIA, > > Rocky > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Tue Jul 26 10:43:45 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 26 Jul 2005 11:43:45 -0400 Subject: [AccessD] Demo To Run for 30 Days In-Reply-To: <53c8e05a05072608123c2aad6c@mail.gmail.com> Message-ID: Thanks Josh! Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From cyx5 at cdc.gov Tue Jul 26 10:47:43 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 26 Jul 2005 11:47:43 -0400 Subject: [AccessD] Google is Down???? - OT Message-ID: Is Google down all over the country? This is like killing Kenny (South Park). What the.... no way. From mikedorism at verizon.net Tue Jul 26 10:51:57 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 26 Jul 2005 11:51:57 -0400 Subject: [AccessD] Google is Down???? - OT In-Reply-To: Message-ID: <000d01c591f9$f5323640$2e01a8c0@dorismanning> It is working fine for me. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, July 26, 2005 11:48 AM To: Access Developers discussion and problem solving Subject: [AccessD] Google is Down???? - OT Is Google down all over the country? This is like killing Kenny (South Park). What the.... no way. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Rick.Ehlers at cinergy.com Tue Jul 26 10:51:07 2005 From: Rick.Ehlers at cinergy.com (Ehlers, Rick) Date: Tue, 26 Jul 2005 11:51:07 -0400 Subject: [AccessD] Google is Down???? - OT Message-ID: Mine works. Rick Ehlers Power Services Performance And Valuation Annex - EX510 Phone: (513) 287-2047 Fax: (513) 287-3698 EMail: Rick.Ehlers at cinergy.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, July 26, 2005 11:48 AM To: Access Developers discussion and problem solving Subject: [AccessD] Google is Down???? - OT Is Google down all over the country? This is like killing Kenny (South Park). What the.... no way. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Tue Jul 26 10:51:31 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 26 Jul 2005 11:51:31 -0400 Subject: [AccessD] Google is Down???? - OT In-Reply-To: References: Message-ID: On 26/07/05, Nicholson, Karen wrote: > Is Google down all over the country? This is like killing Kenny (South > Park). What the.... no way. I can get to and search with both Google.com and google.ca with no problems. -- 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 cyx5 at cdc.gov Tue Jul 26 10:54:55 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 26 Jul 2005 11:54:55 -0400 Subject: [AccessD] Google is Down???? - OT Message-ID: Must just be us. I am putting in a call to our Help Desk in Atlanta. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Tuesday, July 26, 2005 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Google is Down???? - OT On 26/07/05, Nicholson, Karen wrote: > Is Google down all over the country? This is like killing Kenny > (South Park). What the.... no way. I can get to and search with both Google.com and google.ca with no problems. -- 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 cyx5 at cdc.gov Tue Jul 26 11:00:14 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 26 Jul 2005 12:00:14 -0400 Subject: [AccessD] Google is Down???? - OT Message-ID: It is the government. The poor IT guy in Atlanta is getting flooded with calls. This IT department is by far the best, most efficient, responsive and polite team I have ever had the pleasure to work with. They kick butt. I am sure they will solve the problem. I was just in utter shock. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ehlers, Rick Sent: Tuesday, July 26, 2005 11:51 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Google is Down???? - OT Mine works. Rick Ehlers Power Services Performance And Valuation Annex - EX510 Phone: (513) 287-2047 Fax: (513) 287-3698 EMail: Rick.Ehlers at cinergy.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, July 26, 2005 11:48 AM To: Access Developers discussion and problem solving Subject: [AccessD] Google is Down???? - OT Is Google down all over the country? This is like killing Kenny (South Park). What the.... no way. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dmcafee at pacbell.net Tue Jul 26 11:57:58 2005 From: dmcafee at pacbell.net (David Mcafee) Date: Tue, 26 Jul 2005 09:57:58 -0700 (PDT) Subject: [AccessD] Turn Mouse Pointer to Hand In-Reply-To: <00c001c591f2$24264c50$6a01a8c0@HAL9004> Message-ID: <20050726165758.5801.qmail@web80801.mail.yahoo.com> Rocky, I think it was my "main menu" smaple that I sent you. I think I still have a copy. Let me look. If I have it, I'll send it to you off the list. David McAfee --- Rocky Smolin - Beach Access Software wrote: > Rick: > > I was looking for that snip that changes the muse > pointer into a hand. I've > got labels on the main form with OnClick events > instead of command buttons > (which are clunky looking). I've also got a mouse > move event for each one > already which displays a bit of description of the > label's function. > > Now, in that mouse move event, I'd like to change > the pointer to a hand as a > visual cue that the label is a clickable link of > some sort. I'm gilding the > lily here a bit, but it's a consumer product, not a > commercial application, > so it wants a bit of sizzle. > > I did this before and it worked real well. I just > can't remember the app I > built it into so I can't find it again. > > Thanks and regards, > > Rocky > > ----- Original Message ----- > From: "Ehlers, Rick" > To: "Access Developers discussion and problem > solving" > > Sent: Tuesday, July 26, 2005 7:17 AM > Subject: RE: [AccessD] Turn Mouse Pointer to Hand > > > > Rocky, > > > > I use > > > > DoCmd.Hourglass True before the code starts > > and > > DoCmd.Hourglass False after the code ends > > > > to change the pointer. Is this what you are > thinking of? > > > > > > Rick Ehlers > > Power Services > > Performance And Valuation > > Annex - EX510 > > Phone: (513) 287-2047 > > Fax: (513) 287-3698 > > EMail: Rick.Ehlers at cinergy.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Rocky Smolin > > - Beach Access Software > > Sent: Tuesday, July 26, 2005 10:04 AM > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] Turn Mouse Pointer to Hand > > > > Dear List: > > > > Many moons ago I someone on the list gave me some > code to turn the mouse > > pointer into the hand which now indicated you're > hovering over a link, > > and I used it in the mouse move event of a label > which had it's own > > click event. > > > > But I can't find it. Does anyone remember that? > It was, IIRC, only 2-3 > > lines of code. > > > > MTIA, > > > > Rocky > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Rick.Ehlers at cinergy.com Tue Jul 26 12:00:18 2005 From: Rick.Ehlers at cinergy.com (Ehlers, Rick) Date: Tue, 26 Jul 2005 13:00:18 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: Lambert, Do you have other cursor listings or tell me where to find them? This is cool. Now I've got about 10 apps to update. That should keep me busy for a while ;-) Thanks. Rick Ehlers Power Services Performance And Valuation Annex - EX510 Phone: (513) 287-2047 Fax: (513) 287-3698 EMail: Rick.Ehlers at cinergy.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, July 26, 2005 11:29 AM To: 'Access Developers discussion and problem solving' Cc: 'Rocky Smolin - Beach Access Software' Subject: RE: [AccessD] Turn Mouse Pointer to Hand OK. I got it, this time using the API route. Put this code in a module... Public Const HandCursor = 32649& Declare Function LoadCursorBynum Lib "user32" Alias "LoadCursorA" _ (ByVal hInstance As Long, ByVal lpCursorName As Long) As Long Declare Function SetCursor Lib "user32" (ByVal hCursor As Long) As Long Function MouseCursor(CursorType As Long) Dim lngRet As Long lngRet = LoadCursorBynum(0&, CursorType) lngRet = SetCursor(lngRet) End Function ...Then all you need is a MouseMove event for the label which reads... MouseCursor HandCursor Access will automatically restore the default cursor when you move out of the label's area. Lambert From dmcafee at pacbell.net Tue Jul 26 12:03:10 2005 From: dmcafee at pacbell.net (David Mcafee) Date: Tue, 26 Jul 2005 10:03:10 -0700 (PDT) Subject: [AccessD] Turn Mouse Pointer to Hand In-Reply-To: <20050726165758.5801.qmail@web80801.mail.yahoo.com> Message-ID: <20050726170310.7138.qmail@web80801.mail.yahoo.com> found it, sent it --- David Mcafee wrote: > Rocky, I think it was my "main menu" smaple that I > sent you. I think I still have a copy. Let me look. > If > I have it, I'll send it to you off the list. > > David McAfee > > --- Rocky Smolin - Beach Access Software > wrote: > > > Rick: > > > > I was looking for that snip that changes the muse > > pointer into a hand. I've > > got labels on the main form with OnClick events > > instead of command buttons > > (which are clunky looking). I've also got a mouse > > move event for each one > > already which displays a bit of description of the > > label's function. > > > > Now, in that mouse move event, I'd like to change > > the pointer to a hand as a > > visual cue that the label is a clickable link of > > some sort. I'm gilding the > > lily here a bit, but it's a consumer product, not > a > > commercial application, > > so it wants a bit of sizzle. > > > > I did this before and it worked real well. I just > > can't remember the app I > > built it into so I can't find it again. > > > > Thanks and regards, > > > > Rocky > > > > ----- Original Message ----- > > From: "Ehlers, Rick" > > To: "Access Developers discussion and problem > > solving" > > > > Sent: Tuesday, July 26, 2005 7:17 AM > > Subject: RE: [AccessD] Turn Mouse Pointer to Hand > > > > > > > Rocky, > > > > > > I use > > > > > > DoCmd.Hourglass True before the code starts > > > and > > > DoCmd.Hourglass False after the code ends > > > > > > to change the pointer. Is this what you are > > thinking of? > > > > > > > > > Rick Ehlers > > > Power Services > > > Performance And Valuation > > > Annex - EX510 > > > Phone: (513) 287-2047 > > > Fax: (513) 287-3698 > > > EMail: Rick.Ehlers at cinergy.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On > > Behalf Of Rocky Smolin > > > - Beach Access Software > > > Sent: Tuesday, July 26, 2005 10:04 AM > > > To: AccessD at databaseadvisors.com > > > Subject: [AccessD] Turn Mouse Pointer to Hand > > > > > > Dear List: > > > > > > Many moons ago I someone on the list gave me > some > > code to turn the mouse > > > pointer into the hand which now indicated you're > > hovering over a link, > > > and I used it in the mouse move event of a label > > which had it's own > > > click event. > > > > > > But I can't find it. Does anyone remember that? > > > It was, IIRC, only 2-3 > > > lines of code. > > > > > > MTIA, > > > > > > Rocky > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Tue Jul 26 12:17:43 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 26 Jul 2005 10:17:43 -0700 Subject: [AccessD] Demo To Run for 30 Days References: <28960735.1122390295037.JavaMail.www@wwinf3003> <53c8e05a05072608123c2aad6c@mail.gmail.com> Message-ID: <010c01c59205$ef560150$6a01a8c0@HAL9004> I store the state each time they start the system. If the system date is ever earlier than the last time they started it (indicating that they moved the system date back to try to get a few more days' use) I give them a message that says they need to adjust the clock in the computer and quit the app. Rocky ----- Original Message ----- From: "Josh McFarlane" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 8:12 AM Subject: Re: [AccessD] Demo To Run for 30 Days > On 7/26/05, paul.hartland at fsmail.net wrote: >> What I tend to do is when they first open the application, store the >> system date and calculate 30 days in advance and also store this, then >> you just check the stored date which is 30 days in advance each time they >> open the app, if you check a stored date against system date, they can >> always keep changing the date on their machine can't they ? >> >> Paul Hartland > > The optimum solution I can think of is to have the two fields you > mentioned, and use them as sort of a between statement in which it can > run. First time the program opens, it sets both dates. > > Next time the user opens the application, first it checks to make sure > the current date is between those dates, and if it is, it updates the > current system date with the new value. This way, the date window that > the program can be opened in slowly expires as time progresses. > > If the user sets their computer to day X time Y after they got the > App but before their last use time, the start time is already after > the current time, and the program cannot open. > > -- > Josh McFarlane > "Peace cannot be kept by force. It can only be achieved by understanding." > -Albert Einstein > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at AIG.com Tue Jul 26 12:19:21 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 26 Jul 2005 13:19:21 -0400 Subject: [AccessD] Turn Mouse Pointer to Hand Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1377733F@xlivmbx21.aig.com> I found this listing of constants on the Access Web (http://www.mvps.org/access/api/api0044.htm) Public Const IDC_APPSTARTING = 32650& Public Const IDC_HAND = 32649& Public Const IDC_ARROW = 32512& Public Const IDC_CROSS = 32515& Public Const IDC_IBEAM = 32513& Public Const IDC_ICON = 32641& Public Const IDC_NO = 32648& Public Const IDC_SIZE = 32640& Public Const IDC_SIZEALL = 32646& Public Const IDC_SIZENESW = 32643& Public Const IDC_SIZENS = 32645& Public Const IDC_SIZENWSE = 32642& Public Const IDC_SIZEWE = 32644& Public Const IDC_UPARROW = 32516& Public Const IDC_WAIT = 32514& -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ehlers, Rick Sent: Tuesday, July 26, 2005 1:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Turn Mouse Pointer to Hand Lambert, Do you have other cursor listings or tell me where to find them? This is cool. Now I've got about 10 apps to update. That should keep me busy for a while ;-) Thanks. Rick Ehlers Power Services Performance And Valuation Annex - EX510 Phone: (513) 287-2047 Fax: (513) 287-3698 EMail: Rick.Ehlers at cinergy.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, July 26, 2005 11:29 AM To: 'Access Developers discussion and problem solving' Cc: 'Rocky Smolin - Beach Access Software' Subject: RE: [AccessD] Turn Mouse Pointer to Hand OK. I got it, this time using the API route. Put this code in a module... Public Const HandCursor = 32649& Declare Function LoadCursorBynum Lib "user32" Alias "LoadCursorA" _ (ByVal hInstance As Long, ByVal lpCursorName As Long) As Long Declare Function SetCursor Lib "user32" (ByVal hCursor As Long) As Long Function MouseCursor(CursorType As Long) Dim lngRet As Long lngRet = LoadCursorBynum(0&, CursorType) lngRet = SetCursor(lngRet) End Function ...Then all you need is a MouseMove event for the label which reads... MouseCursor HandCursor Access will automatically restore the default cursor when you move out of the label's area. Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Jul 26 13:01:21 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 26 Jul 2005 11:01:21 -0700 Subject: [AccessD] Demo To Run for 30 Days References: <28960735.1122390295037.JavaMail.www@wwinf3003> <53c8e05a05072608123c2aad6c@mail.gmail.com> <010c01c59205$ef560150$6a01a8c0@HAL9004> Message-ID: <01de01c5920c$0812f490$6a01a8c0@HAL9004> The date. I store the date, not the state. The date. Rocky ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 10:17 AM Subject: Re: [AccessD] Demo To Run for 30 Days >I store the state each time they start the system. If the system date is >ever earlier than the last time they started it (indicating that they moved >the system date back to try to get a few more days' use) I give them a >message that says they need to adjust the clock in the computer and quit >the app. > > Rocky > > ----- Original Message ----- > From: "Josh McFarlane" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, July 26, 2005 8:12 AM > Subject: Re: [AccessD] Demo To Run for 30 Days > > >> On 7/26/05, paul.hartland at fsmail.net wrote: >>> What I tend to do is when they first open the application, store the >>> system date and calculate 30 days in advance and also store this, then >>> you just check the stored date which is 30 days in advance each time >>> they open the app, if you check a stored date against system date, they >>> can always keep changing the date on their machine can't they ? >>> >>> Paul Hartland >> >> The optimum solution I can think of is to have the two fields you >> mentioned, and use them as sort of a between statement in which it can >> run. First time the program opens, it sets both dates. >> >> Next time the user opens the application, first it checks to make sure >> the current date is between those dates, and if it is, it updates the >> current system date with the new value. This way, the date window that >> the program can be opened in slowly expires as time progresses. >> >> If the user sets their computer to day X time Y after they got the >> App but before their last use time, the start time is already after >> the current time, and the program cannot open. >> >> -- >> Josh McFarlane >> "Peace cannot be kept by force. It can only be achieved by >> understanding." >> -Albert Einstein >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 martyconnelly at shaw.ca Tue Jul 26 13:06:00 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 26 Jul 2005 11:06:00 -0700 Subject: [AccessD] Google is Down???? - OT References: Message-ID: <42E67B88.8000703@shaw.ca> Your ISP could have problems with DNS server or DNS Cache poisoning Try going to the google IP numeric address directly skipping DNS, This address may change. http://64.233.167.147/ You can track the ip address down from sites like http://www.dnsstuff.com you may have to use their route search via their copy of tracecrt. Nicholson, Karen wrote: >Is Google down all over the country? This is like killing Kenny (South >Park). What the.... no way. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Tue Jul 26 13:43:41 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 26 Jul 2005 11:43:41 -0700 Subject: [AccessD] Conversion to Express References: <20050726152145.LCSW14543.ibm61aec.bellsouth.net@SUSANONE> Message-ID: <42E6845D.7090007@shaw.ca> Not too much on actual conversion but maybe something here in these MS and MSDN blogs although lots on actual connection of the Access and Express. A lot of these sites do not appear to be open to Google or other search engines. FAQ: How to connect to SQL Express from "downlevel clients"(Access 2003, VS 2003, VB 6, etc http://blogs.msdn.com/sqlexpress/archive/2004/07/23/192044.aspx You will find this EM tool helpful for conversion of Access (released last month). Microsoft SQL Server 2005 Express Manager - Community Technology Preview June 2005 (New replacement for SQL Enterprise Manager) http://www.microsoft.com/downloads/details.aspx?FamilyId=C7A5CC62-EC54-4299-85FC-BA05C181ED55&displaylang=en Visual Studio Express Editions MSDN forums http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=24 Securing Your SQL Server 2005 Express Edition Server http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsse/html/ssesecurity.asp Connecting Access and SQL Express 2005 http://blogs.msdn.com/sqlexpress/ SMO Replaces SQL-DMO http://www.windowsitpro.com/Article/ArticleID/40993/40993.html?Ad=1 Silly Billy's have turned of search function for upgrades to this newsgroup microsoft.private.sqlserver2005.express http://communities.microsoft.com/newsgroups/default.asp?icp=sqlserver2005&slcid=us One interesting post on this newsgroup Just in passing concerning future design about ADP's from Access 2003 on down that will not play fair with SQL Server 2005 Express (replacement for MSDE). Re: Access 2002 and SQL Express From: "Mary Chipman [MSFT]" Sent: 8/20/2004 11:30:58 AM You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. The only support that is envisioned is that you will be able to connect an Access front-end to a SQLS 2005 back end if it is running in SQLS 2000 compatibility mode, so your forms, reports and other local Access objects should still run. There is no service pack or quick fix being planned as far as I know because of the amount of work it would entail. If you stop to think about it, it's pretty hard to see how accomodating new Yukon features like CLR assemblies and complex data types in the ADP designers could be achieved without a complete rewrite. --Mary Chipman The problem has been know about for some time. SQL Server 2005 is a major rewrite and at the time they began development they decided they would not provide access to its features from Access and ADPs mainly becasue they view Access as a power user application - STILL. Lot of .NET stuff built into SQLS erver 2005 and they figured it wasnt worth the cost or effort to rewrite the ADP functionality in Access to deal with this. Susan Harkins wrote: >I'm interested in published or personal experience with converting Access to >the new SQL Server Express beta. Right now, with its lack of tools, I doubt >there's much on the subject. If you run across anything, you might remember >me with a quick link. Thanks! > >Susan H. > > -- Marty Connelly Victoria, B.C. Canada From Erwin.Craps at ithelps.be Tue Jul 26 14:46:11 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 26 Jul 2005 21:46:11 +0200 Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5D75@stekelbes.ithelps.local> Hi group Can someone advise me some ASP/ASP.NET E-commerce shop software that connects with an MDB or SQL server? -by preferation free software or at low price (Source included) -supports multilanguage thx Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From ssharkins at bellsouth.net Tue Jul 26 15:32:59 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 26 Jul 2005 16:32:59 -0400 Subject: [AccessD] Conversion to Express In-Reply-To: <42E6845D.7090007@shaw.ca> Message-ID: <20050726203320.QARV14543.ibm61aec.bellsouth.net@SUSANONE> Thanks Marty -- I'll take a look! Susan H. Not too much on actual conversion but maybe something here in these MS and MSDN blogs although lots on actual connection of the Access and Express. A lot of these sites do not appear to be open to Google or other search engines. FAQ: How to connect to SQL Express from "downlevel clients"(Access 2003, VS 2003, VB 6, etc http://blogs.msdn.com/sqlexpress/archive/2004/07/23/192044.aspx You will find this EM tool helpful for conversion of Access (released last month). Microsoft SQL Server 2005 Express Manager - Community Technology Preview June 2005 (New replacement for SQL Enterprise Manager) http://www.microsoft.com/downloads/details.aspx?FamilyId=C7A5CC62-EC54-4299- 85FC-BA05C181ED55&displaylang=en Visual Studio Express Editions MSDN forums http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=24 Securing Your SQL Server 2005 Express Edition Server http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsse/html/ ssesecurity.asp Connecting Access and SQL Express 2005 http://blogs.msdn.com/sqlexpress/ SMO Replaces SQL-DMO http://www.windowsitpro.com/Article/ArticleID/40993/40993.html?Ad=1 Silly Billy's have turned of search function for upgrades to this newsgroup microsoft.private.sqlserver2005.express http://communities.microsoft.com/newsgroups/default.asp?icp=sqlserver2005&sl cid=us One interesting post on this newsgroup Just in passing concerning future design about ADP's from Access 2003 on down that will not play fair with SQL Server 2005 Express (replacement for MSDE). Re: Access 2002 and SQL Express From: "Mary Chipman [MSFT]" Sent: 8/20/2004 11:30:58 AM You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. The only support that is envisioned is that you will be able to connect an Access front-end to a SQLS 2005 back end if it is running in SQLS 2000 compatibility mode, so your forms, reports and other local Access objects should still run. There is no service pack or quick fix being planned as far as I know because of the amount of work it would entail. If you stop to think about it, it's pretty hard to see how accomodating new Yukon features like CLR assemblies and complex data types in the ADP designers could be achieved without a complete rewrite. --Mary Chipman The problem has been know about for some time. SQL Server 2005 is a major rewrite and at the time they began development they decided they would not provide access to its features from Access and ADPs mainly becasue they view Access as a power user application - STILL. Lot of .NET stuff built into SQLS erver 2005 and they figured it wasnt worth the cost or effort to rewrite the ADP functionality in Access to deal with this. Susan Harkins wrote: >I'm interested in published or personal experience with converting >Access to the new SQL Server Express beta. Right now, with its lack of >tools, I doubt there's much on the subject. If you run across anything, >you might remember me with a quick link. Thanks! > >Susan H. > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at outbaktech.com Tue Jul 26 15:58:48 2005 From: Jeff at outbaktech.com (Jeff Barrows) Date: Tue, 26 Jul 2005 15:58:48 -0500 Subject: [AccessD] Cross Posted: Looking for a .NET developer near Neenah, WI Message-ID: Anybody looking for a .NET contract (12 months +)????? Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com From kimjwiggins at yahoo.com Tue Jul 26 16:16:47 2005 From: kimjwiggins at yahoo.com (Kim Wiggins) Date: Tue, 26 Jul 2005 14:16:47 -0700 (PDT) Subject: [AccessD] Problem with bookmarks in automation In-Reply-To: Message-ID: <20050726211647.64170.qmail@web53601.mail.yahoo.com> Bryan, thanks but I found the problem. It was odd quotes that I had around the bookmark that was causing it not to recognize the bookmark. I have corrected it and it works. Thanks Bryan Carbonnell wrote:On 25/07/05, Kim Wiggins wrote: > I am really trying to make this word Automation work. I am using VB to write the code but it will not recognize the bookmarks. It opens the document and everything like it should but it will not recognize the book mark. The error I get is this: > > the requested member of the collection does not exist > > It bombs out at the green highlighted code and I can't understand why. Any help would be greatly appreciated. Formatting doesn't come through to the list. Which line is causing the problem? This one? > objWD.ActiveDocument.Bookmarks.Item("AT").Range.Text = frmAircraftWO.txtAircraftType If so, is AT the name of a bookmark in the main body of the document? Or is it in a header or footer? Are you sure the active document the one referenceced in the variable doc? -- 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From KP at sdsonline.net Tue Jul 26 19:57:14 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Wed, 27 Jul 2005 10:57:14 +1000 Subject: [AccessD] VBExpress videos References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805><002901c590ab$8fe53de0$6601a8c0@user> Message-ID: <00b501c59246$20f72140$6601a8c0@user> ...hhmmm....thinking over the pros and cons.....I am getting very tired of clients changing office versions etc etc and having the app crash. And I am getting very sick of setting refs and finding that some users end up with it missing - whoops - crash again. So runtime should solve both those issues? On the other hand, with my main client (using full Access install) I can get straight on to their PC online using VNC, make a change to the mdb, recreate the mde and post it to the network from where it gets automatically downloaded the next time all users open it. That would be much harder with runtime, wouldn't it? How do you distribute upgrades? Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 1:15 PM Subject: Re: [AccessD] VBExpress videos ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 Jeff at outbaktech.com Tue Jul 26 21:27:15 2005 From: Jeff at outbaktech.com (Jeff Barrows) Date: Tue, 26 Jul 2005 21:27:15 -0500 Subject: [AccessD] RE: [dba-OT] Cross Posted: Looking for a .NET developer near Neenah, WI Message-ID: Sorry, I should have been more specific. I was contacted by a recruiter who is looking for a .NET developer looking for a long term contract in Neenah, WI. The company is looking for 10 years experience in IT and at least 2 years experience with .NET. I was told that they are willing to relax their requirements a little for a 'local boy (or girl). If anyone is interested, please contact me off-list and I will send additional information, including the recruiters name and contact information. Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com -----Original Message----- From: dba-ot-bounces at databaseadvisors.com [mailto:dba-ot-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Tuesday, July 26, 2005 3:59 PM To: dba-OT; Dba-Tech; dba-VB; AccessD Subject: [dba-OT] Cross Posted: Looking for a .NET developer near Neenah, WI Anybody looking for a .NET contract (12 months +)????? Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com _______________________________________________ dba-OT mailing list dba-OT at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-ot Website: http://www.databaseadvisors.com From vrm at tim-cms.com Wed Jul 27 01:58:51 2005 From: vrm at tim-cms.com (| Marcel Vreuls) Date: Wed, 27 Jul 2005 08:58:51 +0200 Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B5D75@stekelbes.ithelps.local> Message-ID: <003001c59278$a5319cb0$6c61fea9@GALAXY.local> Hi Erwin, I have a ASP.NET and VB.NET ecommerce store with support multilanguage and is skinnalbe. After a year of development I am selling it for about 5 months now. Take a look at the store where are building right now http://topparts.7host.com . In most cases i do not sell the source because i invested a lot of time in it. I have two companies in holland who would like to have the source also and we come to an agreement about it. My main concern is that my customers are going to resell the software so this is what i would like to prevent. Just let me know what you think about it Marcel (ps. as i live in holland you can contact me offline in dutch if that is easier for you (vrm at tim-cms.com). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: dinsdag 26 juli 2005 21:46 To: Access Developers discussion and problem solving Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software Hi group Can someone advise me some ASP/ASP.NET E-commerce shop software that connects with an MDB or SQL server? -by preferation free software or at low price (Source included) -supports multilanguage thx Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Wed Jul 27 01:58:05 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 27 Jul 2005 12:28:05 +0530 Subject: [AccessD] FW: Find a record in table with intervals References: Message-ID: <00a201c59278$b54a1870$431865cb@winxp> Chester, Sample query given below should get you the latest prevailing value on a given date. T_PriceIndex is the master table showing the price on different dates, while T_PriceCurrent is the table having dates for which the latest prevailing price is required. For each date in table T_PriceCurrent, calculated field named PriceCurrent in the sample query gives the latest prevailing price (as collected from T_PriceIndex). Best wishes, A.D.Tejpal -------------- =================================== SELECT T_PriceCurrent.SDate, (Select Price From T_PriceIndex As T1 Where T1.SDate = (Select Max(SDate) From T_PriceIndex As T2 Where T2.SDate <= T_PriceCurrent.SDate)) AS PriceCurrent FROM T_PriceCurrent; =================================== ----- Original Message ----- From: Kaup, Chester To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 20:19 Subject: [AccessD] FW: Find a record in table with intervals I have table (table1) with dates and a value associated with the date. For example 1/1/2001 20 7/13/2003 27 12/26/2003 31 6/4/2004 33 1/13/2005 40 6/7/2005 44 I have another table (table 2) with values in it also. Using the date in this table I need to find the value in table one that would be correct for that date. It is assumed the value in table one carries forward until the date changes. The value associated with the last date carries forward forever. For example a date of 10/13/2004 should return a value of 33. I was able to achieve the desired result with several if then else and do loops but was hoping for a better solution. Was hoping for something like the vlookup function in Excel. Thanks. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 From prosoft6 at hotmail.com Wed Jul 27 08:15:25 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Wed, 27 Jul 2005 09:15:25 -0400 Subject: [AccessD] Cross Posted: Looking for a .NET developer near Neenah, WI In-Reply-To: Message-ID: Does it have to be local? From cyx5 at cdc.gov Wed Jul 27 08:21:49 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 27 Jul 2005 09:21:49 -0400 Subject: [AccessD] Cross Posted: Looking for a .NET developer near Neenah, WI Message-ID: What type of .net? vb.net, asp.net? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: Wednesday, July 27, 2005 9:15 AM To: accessd at databaseadvisors.com; dba-OT at databaseadvisors.com; dba-tech at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: RE: [AccessD] Cross Posted: Looking for a .NET developer near Neenah,WI Does it have to be local? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Wed Jul 27 08:32:47 2005 From: artful at rogers.com (Arthur Fuller) Date: Wed, 27 Jul 2005 09:32:47 -0400 Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software In-Reply-To: <003001c59278$a5319cb0$6c61fea9@GALAXY.local> Message-ID: <200507271332.j6RDWsR14371@databaseadvisors.com> My Dutch is pretty shaky (I know only about 5 words, of which my favourite is the word for vacuum cleaner) so I will respond in English. In a situation such as this (assuming the good intentions of the client), what the client is primarily concerned about is what happens should you get run over by a tram or meet some similar demise. What you are concerned about is protecting your source code. To protect both parties, you place the source code in escrow, which means in the hands of a disinterested party. Should the tram kill you, the client gets the code. Should you avoid collisions with a tram, your source code is safe. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of | Marcel Vreuls Sent: July 27, 2005 2:59 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software Hi Erwin, I have a ASP.NET and VB.NET ecommerce store with support multilanguage and is skinnalbe. After a year of development I am selling it for about 5 months now. Take a look at the store where are building right now http://topparts.7host.com . In most cases i do not sell the source because i invested a lot of time in it. I have two companies in holland who would like to have the source also and we come to an agreement about it. My main concern is that my customers are going to resell the software so this is what i would like to prevent. Just let me know what you think about it Marcel (ps. as i live in holland you can contact me offline in dutch if that is easier for you (vrm at tim-cms.com). From Mike.W.Gowey at doc.state.or.us Wed Jul 27 09:36:39 2005 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Wed, 27 Jul 2005 08:36:39 -0600 Subject: [AccessD] Automatic Tracking Number Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077801087D@srciml1.ds.doc.state.or.us> Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit From accessd at shaw.ca Wed Jul 27 10:00:17 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 27 Jul 2005 08:00:17 -0700 Subject: [AccessD] Automatic Tracking Number In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF486077801087D@srciml1.ds.doc.state.or.us> Message-ID: <0IKA0032HKCFJG@l-daemon> Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Wed Jul 27 10:06:31 2005 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Wed, 27 Jul 2005 09:06:31 -0600 Subject: [AccessD] Automatic Tracking Number Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579B605@srciml1.ds.doc.state.or.us> I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 ldoering at symphonyinfo.com Wed Jul 27 10:20:22 2005 From: ldoering at symphonyinfo.com (Liz Doering) Date: Wed, 27 Jul 2005 10:20:22 -0500 Subject: [AccessD] Automatic Tracking Number Message-ID: <855499653F55AD4190B242717DF132BC082FD7@dewey.Symphony.local> Mike, I've worked around this by saving the record to actually generate the ID, then querying on some other known parameters to retrieve it. Then you will get back the ID you are looking for. If there is a better method, I would like to know! Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 10:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mike.W.Gowey at doc.state.or.us Wed Jul 27 10:23:32 2005 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Wed, 27 Jul 2005 09:23:32 -0600 Subject: [AccessD] Automatic Tracking Number Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579B606@srciml1.ds.doc.state.or.us> Yeah that wouldn't work for me, I really don't have any other parameter that I could query on to get the ID. There could be upwards of 10 people entering data at the same time and on the same person. I hope someone has a way to do this. Thanks, Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Liz Doering [mailto:ldoering at symphonyinfo.com] Sent: Wednesday, July 27, 2005 9:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Mike, I've worked around this by saving the record to actually generate the ID, then querying on some other known parameters to retrieve it. Then you will get back the ID you are looking for. If there is a better method, I would like to know! Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 10:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cyx5 at cdc.gov Wed Jul 27 10:28:44 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 27 Jul 2005 11:28:44 -0400 Subject: [AccessD] Automatic Tracking Number Message-ID: I am doing the exact same thing right now. What I have done is to put a field on the form (and in its datasource) with a time stamp. As it is being written to the new table, I am taking that time stamp right along with it. Then I am returning that value to my form based on time = time. Does that make sense? Once I get it coded, I will post it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 11:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Yeah that wouldn't work for me, I really don't have any other parameter that I could query on to get the ID. There could be upwards of 10 people entering data at the same time and on the same person. I hope someone has a way to do this. Thanks, Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Liz Doering [mailto:ldoering at symphonyinfo.com] Sent: Wednesday, July 27, 2005 9:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Mike, I've worked around this by saving the record to actually generate the ID, then querying on some other known parameters to retrieve it. Then you will get back the ID you are looking for. If there is a better method, I would like to know! Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 10:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Wed Jul 27 10:29:44 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Jul 2005 08:29:44 -0700 Subject: [AccessD] Automatic Tracking Number Message-ID: Have you tried using an output parameter to return the identity value? Charlotte Foust -----Original Message----- From: Gowey Mike W [mailto:Mike.W.Gowey at doc.state.or.us] Sent: Wednesday, July 27, 2005 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Wed Jul 27 10:34:42 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Jul 2005 08:34:42 -0700 Subject: [AccessD] VBExpress videos Message-ID: I can't speak for anyone else, but for my personal projects, I just give them a new front end for minor stuff. Since my employer's product is commercial, we either distribute a new CD or we put the latest installer on our server for them to download. The Wise installer is smart enough to not install the runtime if it is already installed and current. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Tuesday, July 26, 2005 5:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos ...hhmmm....thinking over the pros and cons.....I am getting very tired of clients changing office versions etc etc and having the app crash. And I am getting very sick of setting refs and finding that some users end up with it missing - whoops - crash again. So runtime should solve both those issues? On the other hand, with my main client (using full Access install) I can get straight on to their PC online using VNC, make a change to the mdb, recreate the mde and post it to the network from where it gets automatically downloaded the next time all users open it. That would be much harder with runtime, wouldn't it? How do you distribute upgrades? Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 1:15 PM Subject: Re: [AccessD] VBExpress videos ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 Mike.W.Gowey at doc.state.or.us Wed Jul 27 10:34:54 2005 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Wed, 27 Jul 2005 09:34:54 -0600 Subject: [AccessD] Automatic Tracking Number Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579B607@srciml1.ds.doc.state.or.us> Thanks Karen, I would like to look at that code to see if it would work for me also. It's going to be hard, with upwards of 10 people entering data at the same time, it could be possible for two records to be entered at the same time with the same time stamp. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit Office - (541)881-4808 Fax - (541)881-5471 Pager - 1-888-320-2545 epage - 8883202545 at archwireless.net -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, July 27, 2005 9:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I am doing the exact same thing right now. What I have done is to put a field on the form (and in its datasource) with a time stamp. As it is being written to the new table, I am taking that time stamp right along with it. Then I am returning that value to my form based on time = time. Does that make sense? Once I get it coded, I will post it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 11:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Yeah that wouldn't work for me, I really don't have any other parameter that I could query on to get the ID. There could be upwards of 10 people entering data at the same time and on the same person. I hope someone has a way to do this. Thanks, Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Liz Doering [mailto:ldoering at symphonyinfo.com] Sent: Wednesday, July 27, 2005 9:20 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Mike, I've worked around this by saving the record to actually generate the ID, then querying on some other known parameters to retrieve it. Then you will get back the ID you are looking for. If there is a better method, I would like to know! Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 10:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mike.W.Gowey at doc.state.or.us Wed Jul 27 10:35:35 2005 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Wed, 27 Jul 2005 09:35:35 -0600 Subject: [AccessD] Automatic Tracking Number Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579B608@srciml1.ds.doc.state.or.us> Charlotte, How would I go about that? Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, July 27, 2005 9:30 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Have you tried using an output parameter to return the identity value? Charlotte Foust -----Original Message----- From: Gowey Mike W [mailto:Mike.W.Gowey at doc.state.or.us] Sent: Wednesday, July 27, 2005 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Wed Jul 27 10:37:55 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Jul 2005 08:37:55 -0700 Subject: [AccessD] Demo To Run for 30 Days Message-ID: But it would be more interesting to see you try to compare the date to the state, Rocky. ;-} Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Tuesday, July 26, 2005 11:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Demo To Run for 30 Days The date. I store the date, not the state. The date. Rocky ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 10:17 AM Subject: Re: [AccessD] Demo To Run for 30 Days >I store the state each time they start the system. If the system date >is >ever earlier than the last time they started it (indicating that they moved >the system date back to try to get a few more days' use) I give them a >message that says they need to adjust the clock in the computer and quit >the app. > > Rocky > > ----- Original Message ----- > From: "Josh McFarlane" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, July 26, 2005 8:12 AM > Subject: Re: [AccessD] Demo To Run for 30 Days > > >> On 7/26/05, paul.hartland at fsmail.net >> wrote: >>> What I tend to do is when they first open the application, store the >>> system date and calculate 30 days in advance and also store this, then >>> you just check the stored date which is 30 days in advance each time >>> they open the app, if you check a stored date against system date, they >>> can always keep changing the date on their machine can't they ? >>> >>> Paul Hartland >> >> The optimum solution I can think of is to have the two fields you >> mentioned, and use them as sort of a between statement in which it >> can run. First time the program opens, it sets both dates. >> >> Next time the user opens the application, first it checks to make >> sure the current date is between those dates, and if it is, it >> updates the current system date with the new value. This way, the >> date window that the program can be opened in slowly expires as time >> progresses. >> >> If the user sets their computer to day X time Y after they got the >> App but before their last use time, the start time is already after >> the current time, and the program cannot open. >> >> -- >> Josh McFarlane >> "Peace cannot be kept by force. It can only be achieved by >> understanding." >> -Albert Einstein >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 dkalsow at yahoo.com Wed Jul 27 10:38:11 2005 From: dkalsow at yahoo.com (Dale Kalsow) Date: Wed, 27 Jul 2005 08:38:11 -0700 (PDT) Subject: [AccessD] Cross Posted: Looking for a .NET developer near Neenah, WI In-Reply-To: Message-ID: <20050727153811.13490.qmail@web50405.mail.yahoo.com> I do vb.net programming and am in Hudson, WI. Please contact me off line if I can be of any help. dkalsow at yahoo.com Julie Reardon-Taylor wrote: Does it have to be local? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From cfoust at infostatsystems.com Wed Jul 27 10:44:44 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Jul 2005 08:44:44 -0700 Subject: [AccessD] How to draw a line around select textboxes Message-ID: In that case, you put a line control in the top, left and right borders of the detail and you put another horizontal line at the top of a group footer that exists only for that purpose. You can also draw the lines in code. Charlotte Foust -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Tuesday, July 26, 2005 5:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to draw a line around select textboxes Thanks for responding. If I use the rectangle I only get a box around the textboxes for that line and then another box around the textboxes on the next row. If I have 10 lines of data, I want one box to show around these text boxes for all ten rows. Sort of like a border for the entire page of detail. Thanks again. Sad Der wrote: Lonnie, can give some more details? So, you want to create a line around textboxes. Do you want this for all rows? If so, why not use a rectangle and set the visible property to true or false? SD --- Lonnie Johnson wrote: > I am sorry, this is on a report and not a form. > > Lonnie Johnson wrote:What if I > have 10 text boxes on a form all across in a row and > I wanted to put a box around the first 5 and another > box (boarder) around the second 5? This box/border > would expand the height of the detail section of > each page. > > I was thinking of the Me.Line method but don't know > how to > > 1) Just put it around certain boxes > > 2) How to have more than one line method going on at > once. > > Thanks. > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access > Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access > Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pjones at btl.net Wed Jul 27 12:13:54 2005 From: pjones at btl.net (Paul M. Jones) Date: Wed, 27 Jul 2005 11:13:54 -0600 Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 Message-ID: <6.2.0.14.2.20050727110543.02984a98@pop.btl.net> I have an application initially written in Access 97 and then moved to 2000. It talks to a SQL Server 2000 database using tables linked through an ODBC driver. Lately I have had several instances where I call a stored procedure to perform an operation but I don't receive a response from the SQL Server even though the operation was carried out successfully. This leaves my application hanging. I suspect it has to do with the ODBC connection. Anybody has any experiences with this type of issue? On a related note, is there a better way of linking my tables to the SQL Server other than to use an ODBC driver? I have a couple of newer projects that use ADP but unfortunately, it's not an option for me at this point since I have too many queries that I'll need to convert to either stored procedures or views. Thanks Paul M. Jones ---------------------------------------------------------------------------------------------- Reality is the murder of a beautiful theory by a gang of ugly facts. Robert L. Glass From Jim.Hale at FleetPride.com Wed Jul 27 12:46:18 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 27 Jul 2005 12:46:18 -0500 Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337728@corp-es01.fleetpride.com> If you are basically selecting data for reporting you might switch to pass through queries. This has worked well for me. Jim Hale -----Original Message----- From: Paul M. Jones [mailto:pjones at btl.net] Sent: Wednesday, July 27, 2005 12:14 PM To: Access Developers discussion and problem solving Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 I have an application initially written in Access 97 and then moved to 2000. It talks to a SQL Server 2000 database using tables linked through an ODBC driver. Lately I have had several instances where I call a stored procedure to perform an operation but I don't receive a response from the SQL Server even though the operation was carried out successfully. This leaves my application hanging. I suspect it has to do with the ODBC connection. Anybody has any experiences with this type of issue? On a related note, is there a better way of linking my tables to the SQL Server other than to use an ODBC driver? I have a couple of newer projects that use ADP but unfortunately, it's not an option for me at this point since I have too many queries that I'll need to convert to either stored procedures or views. Thanks Paul M. Jones ---------------------------------------------------------------------------- ------------------ Reality is the murder of a beautiful theory by a gang of ugly facts. Robert L. Glass -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From bheid at appdevgrp.com Wed Jul 27 13:17:18 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Jul 2005 14:17:18 -0400 Subject: [AccessD] Locking question Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED7B@ADGSERVER> Hey, Our clients use our system on a network where each user has a FE against the BE on the server. While the app was originally written to all be on the local pc, it has migrated to the server. Usually all goes well. Well, this one client has some weird happenings going on. One user will be in the database in any given form. Another user cannot get access to the BE until the 1st user exits the form they were in. The first thing the app does is to relink the tables to the last BE that was loaded. It sounds like there are some sort of issues with locking and the LDB file. Anyone have any pointers? Thanks, Bobby From ebarro at afsweb.com Wed Jul 27 13:19:13 2005 From: ebarro at afsweb.com (Eric Barro) Date: Wed, 27 Jul 2005 11:19:13 -0700 Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 In-Reply-To: <6.2.0.14.2.20050727110543.02984a98@pop.btl.net> Message-ID: Paul, Instead of linking why not pull down the information using DoCmd.TransferDatabase? I have this code on one of my apps. DoCmd.DeleteObject acTable, "myaccesstablename" DoCmd.TransferDatabase acImport "ODBC Database", "ODBC;DSN=mydsnconnectionname;UID=myuserid;PWD=mypassword;Language=us_englis h;" _ & "DATABASE=mysqldatabasename", acTable, "mysqltablename", "myaccesstablename" ODBC by its very nature is slow and I've had the same issues before trying to link SQL tables. This approach has solved that for me. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul M. Jones Sent: Wednesday, July 27, 2005 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 I have an application initially written in Access 97 and then moved to 2000. It talks to a SQL Server 2000 database using tables linked through an ODBC driver. Lately I have had several instances where I call a stored procedure to perform an operation but I don't receive a response from the SQL Server even though the operation was carried out successfully. This leaves my application hanging. I suspect it has to do with the ODBC connection. Anybody has any experiences with this type of issue? On a related note, is there a better way of linking my tables to the SQL Server other than to use an ODBC driver? I have a couple of newer projects that use ADP but unfortunately, it's not an option for me at this point since I have too many queries that I'll need to convert to either stored procedures or views. Thanks Paul M. Jones ---------------------------------------------------------------------------- ------------------ Reality is the murder of a beautiful theory by a gang of ugly facts. Robert L. Glass -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From Lambert.Heenan at AIG.com Wed Jul 27 13:39:49 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 27 Jul 2005 14:39:49 -0400 Subject: [AccessD] Locking question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F137776BB@xlivmbx21.aig.com> Just a thought: if it really is related to the re-linking process, then why not have the app. simply check the links, and only do a re-link if needed? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, July 27, 2005 2:17 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Locking question Hey, Our clients use our system on a network where each user has a FE against the BE on the server. While the app was originally written to all be on the local pc, it has migrated to the server. Usually all goes well. Well, this one client has some weird happenings going on. One user will be in the database in any given form. Another user cannot get access to the BE until the 1st user exits the form they were in. The first thing the app does is to relink the tables to the last BE that was loaded. It sounds like there are some sort of issues with locking and the LDB file. Anyone have any pointers? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Jul 27 13:44:50 2005 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 27 Jul 2005 13:44:50 -0500 Subject: [AccessD] Locking question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED7B@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30ABED7B@ADGSERVER> Message-ID: Hi Bobby, The users need to have File Creation rights in the folder that the BE database lives in so the LDB file can be created. Is there an LDB file being created for the BE when the first user is in there? I think with one user it will allow access without being able to create the LDB file but will lock out the second user? I could be out in left field wandering in my own dream world too of course. I do know that users of our Access databases need full file creation, change and deletion rights in the folder or else it doesn't work. On 7/27/05, Bobby Heid wrote: > Hey, > > Our clients use our system on a network where each user has a FE against the > BE on the server. While the app was originally written to all be on the > local pc, it has migrated to the server. Usually all goes well. > > Well, this one client has some weird happenings going on. One user will be > in the database in any given form. Another user cannot get access to the BE > until the 1st user exits the form they were in. The first thing the app > does is to relink the tables to the last BE that was loaded. It sounds like > there are some sort of issues with locking and the LDB file. > > Anyone have any pointers? > > Thanks, > Bobby > > -- > 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 bheid at appdevgrp.com Wed Jul 27 14:05:57 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Jul 2005 15:05:57 -0400 Subject: [AccessD] Locking question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C381CA@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED7D@ADGSERVER> It turns out that there is not a real problem other than the users are being impatient. The app has gotten bloated over time and needs to be rewritten with SQL server, but the client does not want to do that yet. The app is a little slow loading, especially on the network they are on. They are having network problems which is slowing the app way down. On my slow machine (700Mhz PIII), it takes about 2 seconds to load the database from a local drive. It is taking them about 1-1.5 minutes to load. As for the question about relinking at startup, we tried not relinking before. But there always seemed to be issues with that. So it was decided to just relink each time. Thanks for the replies, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, July 27, 2005 2:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question Just a thought: if it really is related to the re-linking process, then why not have the app. simply check the links, and only do a re-link if needed? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, July 27, 2005 2:17 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Locking question Hey, Our clients use our system on a network where each user has a FE against the BE on the server. While the app was originally written to all be on the local pc, it has migrated to the server. Usually all goes well. Well, this one client has some weird happenings going on. One user will be in the database in any given form. Another user cannot get access to the BE until the 1st user exits the form they were in. The first thing the app does is to relink the tables to the last BE that was loaded. It sounds like there are some sort of issues with locking and the LDB file. Anyone have any pointers? Thanks, Bobby From pjones at btl.net Wed Jul 27 14:01:47 2005 From: pjones at btl.net (Paul M. Jones) Date: Wed, 27 Jul 2005 13:01:47 -0600 Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB6772337728@corp-es01.fleetprid e.com> References: <6A6AA9DF57E4F046BDA1E273BDDB6772337728@corp-es01.fleetpride.com> Message-ID: <6.2.0.14.2.20050727125959.02a6f850@pop.btl.net> Actually, I'm performing the full range of a normal application, including data entry, reporting, and calling stored procedures to execute specialized business logic. Paul M. Jones At 11:46 AM 7/27/2005, you wrote: >If you are basically selecting data for reporting you might switch to pass >through queries. This has worked well for me. >Jim Hale Reality is the murder of a beautiful theory by a gang of ugly facts. Robert L. Glass From darsant at gmail.com Wed Jul 27 14:21:17 2005 From: darsant at gmail.com (Josh McFarlane) Date: Wed, 27 Jul 2005 14:21:17 -0500 Subject: [AccessD] Locking question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABED7D@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30C381CA@ADGSERVER> <916187228923D311A6FE00A0CC3FAA30ABED7D@ADGSERVER> Message-ID: <53c8e05a05072712213cd642d0@mail.gmail.com> On 7/27/05, Bobby Heid wrote: > It turns out that there is not a real problem other than the users are being > impatient. The app has gotten bloated over time and needs to be rewritten > with SQL server, but the client does not want to do that yet. > > The app is a little slow loading, especially on the network they are on. > They are having network problems which is slowing the app way down. On my > slow machine (700Mhz PIII), it takes about 2 seconds to load the database > from a local drive. It is taking them about 1-1.5 minutes to load. > > As for the question about relinking at startup, we tried not relinking > before. But there always seemed to be issues with that. So it was decided > to just relink each time. > > Thanks for the replies, > Bobby Ouch, how big is the database? -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From dwaters at usinternet.com Wed Jul 27 14:33:45 2005 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 27 Jul 2005 12:33:45 -0700 Subject: [AccessD] Locking question In-Reply-To: <10490719.1122491391198.JavaMail.root@sniper16> Message-ID: <000701c592e2$1b595270$0518820a@danwaters> Has the FE been decompiled/compiled and the BE compacted? Perhaps the size could be reduced . . . Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, July 27, 2005 12:06 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question It turns out that there is not a real problem other than the users are being impatient. The app has gotten bloated over time and needs to be rewritten with SQL server, but the client does not want to do that yet. The app is a little slow loading, especially on the network they are on. They are having network problems which is slowing the app way down. On my slow machine (700Mhz PIII), it takes about 2 seconds to load the database from a local drive. It is taking them about 1-1.5 minutes to load. As for the question about relinking at startup, we tried not relinking before. But there always seemed to be issues with that. So it was decided to just relink each time. Thanks for the replies, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, July 27, 2005 2:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question Just a thought: if it really is related to the re-linking process, then why not have the app. simply check the links, and only do a re-link if needed? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, July 27, 2005 2:17 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Locking question Hey, Our clients use our system on a network where each user has a FE against the BE on the server. While the app was originally written to all be on the local pc, it has migrated to the server. Usually all goes well. Well, this one client has some weird happenings going on. One user will be in the database in any given form. Another user cannot get access to the BE until the 1st user exits the form they were in. The first thing the app does is to relink the tables to the last BE that was loaded. It sounds like there are some sort of issues with locking and the LDB file. Anyone have any pointers? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed Jul 27 14:37:29 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Jul 2005 15:37:29 -0400 Subject: [AccessD] Locking question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C381DB@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED7E@ADGSERVER> I'm not sure about their database. It is our client's client. Some of their clients have databases in the 80-100MB range. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Josh McFarlane Sent: Wednesday, July 27, 2005 3:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Locking question Ouch, how big is the database? -- Josh McFarlane From bheid at appdevgrp.com Wed Jul 27 14:41:43 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Jul 2005 15:41:43 -0400 Subject: [AccessD] Locking question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C381E3@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED7F@ADGSERVER> The FE is an MDE. The back end is compacted occasionally. I think the real issue is their network problems. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, July 27, 2005 3:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question Has the FE been decompiled/compiled and the BE compacted? Perhaps the size could be reduced . . . Dan Waters From dwaters at usinternet.com Wed Jul 27 14:51:36 2005 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 27 Jul 2005 12:51:36 -0700 Subject: [AccessD] Locking question In-Reply-To: <18519772.1122493436943.JavaMail.root@sniper19> Message-ID: <000201c592e4$996c0840$0518820a@danwaters> Are you sure the FE was decompiled/compiled before it was converted to an MDE? Or since the code is 'removed' maybe that doesn't make a difference. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, July 27, 2005 12:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question The FE is an MDE. The back end is compacted occasionally. I think the real issue is their network problems. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, July 27, 2005 3:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question Has the FE been decompiled/compiled and the BE compacted? Perhaps the size could be reduced . . . Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Jul 27 14:57:09 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Jul 2005 12:57:09 -0700 Subject: [AccessD] Automatic Tracking Number Message-ID: SELECT @@IDENTITY FROM MyTable IDENTITY maps to autonumber in Access Charlotte Foust -----Original Message----- From: Gowey Mike W [mailto:Mike.W.Gowey at doc.state.or.us] Sent: Wednesday, July 27, 2005 8:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Charlotte, How would I go about that? Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, July 27, 2005 9:30 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Have you tried using an output parameter to return the identity value? Charlotte Foust -----Original Message----- From: Gowey Mike W [mailto:Mike.W.Gowey at doc.state.or.us] Sent: Wednesday, July 27, 2005 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 martyconnelly at shaw.ca Wed Jul 27 15:57:36 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 27 Jul 2005 13:57:36 -0700 Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software References: <200507271332.j6RDWsR14371@databaseadvisors.com> Message-ID: <42E7F540.6030202@shaw.ca> Here is a US software escrow FAQ, Europe may differ on laws. A local lawyer who practices IP Intellectual Property rights or copyright law. or some banks in Europe used to provide this service alongside Financial Escrow. might do it cheaper. But if you are putting out a lot of versions, the US price $500 - $750 sounds right for a escrow company that does this on a daily basis. http://www.softescrow.com/faq.html Arthur Fuller wrote: >My Dutch is pretty shaky (I know only about 5 words, of which my favourite >is the word for vacuum cleaner) so I will respond in English. In a situation >such as this (assuming the good intentions of the client), what the client >is primarily concerned about is what happens should you get run over by a >tram or meet some similar demise. What you are concerned about is protecting >your source code. To protect both parties, you place the source code in >escrow, which means in the hands of a disinterested party. Should the tram >kill you, the client gets the code. Should you avoid collisions with a tram, >your source code is safe. > >Arthur > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of | Marcel Vreuls >Sent: July 27, 2005 2:59 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software > >Hi Erwin, > >I have a ASP.NET and VB.NET ecommerce store with support multilanguage and >is skinnalbe. After a year of development I am selling it for about 5 months >now. Take a look at the store where are building right now >http://topparts.7host.com . In most cases i do not sell the source because i >invested a lot of time in it. I have two companies in holland who would like >to have the source also and we come to an agreement about it. My main >concern is that my customers are going to resell the software so this is >what i would like to prevent. Just let me know what you think about it > >Marcel > >(ps. as i live in holland you can contact me offline in dutch if that is >easier for you (vrm at tim-cms.com). > > > -- Marty Connelly Victoria, B.C. Canada From KP at sdsonline.net Wed Jul 27 18:09:04 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 28 Jul 2005 09:09:04 +1000 Subject: [AccessD] VBExpress videos References: Message-ID: <001e01c59300$30167b70$6601a8c0@user> Ok - I'll look into that. Thanks Charlotte, Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Thursday, July 28, 2005 1:34 AM Subject: RE: [AccessD] VBExpress videos I can't speak for anyone else, but for my personal projects, I just give them a new front end for minor stuff. Since my employer's product is commercial, we either distribute a new CD or we put the latest installer on our server for them to download. The Wise installer is smart enough to not install the runtime if it is already installed and current. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Tuesday, July 26, 2005 5:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBExpress videos ...hhmmm....thinking over the pros and cons.....I am getting very tired of clients changing office versions etc etc and having the app crash. And I am getting very sick of setting refs and finding that some users end up with it missing - whoops - crash again. So runtime should solve both those issues? On the other hand, with my main client (using full Access install) I can get straight on to their PC online using VNC, make a change to the mdb, recreate the mde and post it to the network from where it gets automatically downloaded the next time all users open it. That would be much harder with runtime, wouldn't it? How do you distribute upgrades? Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 1:15 PM Subject: Re: [AccessD] VBExpress videos ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 itsame2000 at sbcglobal.net Wed Jul 27 19:02:55 2005 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Wed, 27 Jul 2005 17:02:55 -0700 (PDT) Subject: [AccessD] Fwd: Quitting Application Problem Message-ID: <20050728000255.64512.qmail@web81503.mail.yahoo.com> Let me try this again. I just realized my original message never made it to the group. Help? Thanks, Jeremy Jeremy Toves wrote: Date: Wed, 27 Jul 2005 13:03:00 -0700 (PDT) From: Jeremy Toves Subject: Quitting Application Problem To: AccessD I have a database that needs to complete a few processes before it is closed. Some of the users are closing the application by using the "x" in the upper right corner of the Access database. Is there a way to disable this? Or can a message prompt the user to complete processing before exiting? Any help would be appreciated. Thanks, Jeremy Toves From D.Dick at uws.edu.au Wed Jul 27 19:31:28 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Thu, 28 Jul 2005 10:31:28 +1000 Subject: [AccessD] Fwd: Quitting Application Problem Message-ID: <2FDE83AF1A69C84796CBD13788DDA88364EE67@BONHAM.AD.UWS.EDU.AU> Hi Jeremy There are a number of ways. Here's one Have a frm call it say...frmHidden Have it open each time your app is started. Put it in an AutoExec Macro. (Lemme know if you are unsure what an AutoExec Macro is) But have the macro open the form 'hidden' - IE not visible to anyone at all. In the On Unload or OnClose of that hidden form have something like... If msgbox ("Are you sure you want to close Jeremy's way cool application completely?",vbquestion + vbyesNo, "Confirm Application Close")=vbyes then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc docmd.quit Else 'User Chose no - so do nothing End if The way it works is...if the whole app is going to be closed then this hidden form will be claosed also Sparking the OnClose or OnUnload code thus allowing them to think about closing completely or not Via the message box that pops up Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 10:03 AM To: AccessD Subject: [AccessD] Fwd: Quitting Application Problem Let me try this again. I just realized my original message never made it to the group. Help? Thanks, Jeremy Jeremy Toves wrote: Date: Wed, 27 Jul 2005 13:03:00 -0700 (PDT) From: Jeremy Toves Subject: Quitting Application Problem To: AccessD I have a database that needs to complete a few processes before it is closed. Some of the users are closing the application by using the "x" in the upper right corner of the Access database. Is there a way to disable this? Or can a message prompt the user to complete processing before exiting? Any help would be appreciated. Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Wed Jul 27 19:33:41 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 27 Jul 2005 20:33:41 -0400 Subject: [AccessD] Jet 4 SP 8 References: <004801c590b7$f3c7ce20$6401a8c0@laptop1> <42E48B1A.4010808@shaw.ca> <42E50C72.3060606@shaw.ca> Message-ID: Joe http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='DetectAccessJet.zip' ..a module with functions to view the Access version, the Jet version, and the Jet SP ..seems it's derived from some of Marty's code :) William ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Monday, July 25, 2005 11:59 AM Subject: Re: [AccessD] Jet 4 SP 8 > This KB might be a bit clearer as it it shows how to identify the > mjset40.dll version number > for the security patch that was added to Jet SP8 April 13, 2004 > > How to obtain the latest service pack for the Microsoft Jet 4.0 Database > Engine > http://support.microsoft.com/kb/239114/ > > > MartyConnelly wrote: > >> Here is the Jet SP-8 file manifest >> Just check by right clicking your Dao360.dll for property file version >> should be at least Dao360.dll 3.60.8025.0 557,328 bytes >> http://support.microsoft.com/?kbid=829558 >> >> You can find again by hunting through general mdac portal for jet >> http://www.microsoft.com/data >> >> Joe Hecht wrote: >> >>> I am reading an article online about Access security and it is talking >>> about >>> sandbox mode. To get there you need to be using Jet 4 SP 8. >>> >>> I am running AXP on one machine and A2k3 on the other. How do I check >>> Jet >>> Version and SP release. >>> >>> Here is the article link. >>> >>> http://office.microsoft.com/training/training.aspx?AssetID=RC011461801033 >>> >>> Joe Hecht >>> Los Angeles CA >>> >>> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dejpolsys at hotmail.com Wed Jul 27 19:40:46 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 27 Jul 2005 20:40:46 -0400 Subject: [AccessD] How to draw a line around select textboxes References: <20050726125206.56638.qmail@web33102.mail.mud.yahoo.com> Message-ID: http://www.lebans.com/Report.htm ..Steve has a couple of approaches to this with sample mdbs ...hth. William ----- Original Message ----- From: "Lonnie Johnson" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 8:52 AM Subject: Re: [AccessD] How to draw a line around select textboxes > Thanks for responding. > > If I use the rectangle I only get a box around the textboxes for that line > and then another box around the textboxes on the next row. > > If I have 10 lines of data, I want one box to show around these text boxes > for all ten rows. Sort of like a border for the entire page of detail. > > Thanks again. > > Sad Der wrote: > Lonnie, > > can give some more details? > So, you want to create a line around textboxes. Do you > want this for all rows? > If so, why not use a rectangle and set the visible > property to true or false? > > SD > > --- Lonnie Johnson > wrote: > >> I am sorry, this is on a report and not a form. >> >> Lonnie Johnson > wrote:What if I >> have 10 text boxes on a form all across in a row and >> I wanted to put a box around the first 5 and another >> box (boarder) around the second 5? This box/border >> would expand the height of the detail section of >> each page. >> >> I was thinking of the Me.Line method but don't know >> how to >> >> 1) Just put it around certain boxes >> >> 2) How to have more than one line method going on at >> once. >> >> Thanks. >> >> >> >> >> May God bless you beyond your imagination! >> Lonnie Johnson >> ProDev, Professional Development of MS Access >> Databases >> Visit me at ==> http://www.prodev.us >> >> >> >> >> >> >> >> >> >> >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam >> protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> May God bless you beyond your imagination! >> Lonnie Johnson >> ProDev, Professional Development of MS Access >> Databases >> Visit me at ==> http://www.prodev.us >> >> >> >> >> >> >> >> >> >> >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam >> protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > __________________________________ > Yahoo! Mail for Mobile > Take Yahoo! Mail with you! Check email on your mobile phone. > http://mobile.yahoo.com/learn/mail > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From itsame2000 at sbcglobal.net Wed Jul 27 20:06:28 2005 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Wed, 27 Jul 2005 18:06:28 -0700 (PDT) Subject: [AccessD] Fwd: Quitting Application Problem In-Reply-To: <2FDE83AF1A69C84796CBD13788DDA88364EE67@BONHAM.AD.UWS.EDU.AU> Message-ID: <20050728010628.69636.qmail@web81510.mail.yahoo.com> That seems to be part of it, but something has to happen to keep the database open once it hits the Else. If I leave it as is, then the database closes when the form unloads. Is there something I can code to keep the form loaded, even if somebody tries to close the application by hitting "x"? Is there a way to hide the"x"? Thanks, Jeremy Darren Dick wrote: Hi Jeremy There are a number of ways. Here's one Have a frm call it say...frmHidden Have it open each time your app is started. Put it in an AutoExec Macro. (Lemme know if you are unsure what an AutoExec Macro is) But have the macro open the form 'hidden' - IE not visible to anyone at all. In the On Unload or OnClose of that hidden form have something like... If msgbox ("Are you sure you want to close Jeremy's way cool application completely?",vbquestion + vbyesNo, "Confirm Application Close")=vbyes then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc docmd.quit Else 'User Chose no - so do nothing End if The way it works is...if the whole app is going to be closed then this hidden form will be claosed also Sparking the OnClose or OnUnload code thus allowing them to think about closing completely or not Via the message box that pops up Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 10:03 AM To: AccessD Subject: [AccessD] Fwd: Quitting Application Problem Let me try this again. I just realized my original message never made it to the group. Help? Thanks, Jeremy Jeremy Toves wrote: Date: Wed, 27 Jul 2005 13:03:00 -0700 (PDT) From: Jeremy Toves Subject: Quitting Application Problem To: AccessD I have a database that needs to complete a few processes before it is closed. Some of the users are closing the application by using the "x" in the upper right corner of the Access database. Is there a way to disable this? Or can a message prompt the user to complete processing before exiting? Any help would be appreciated. Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dejpolsys at hotmail.com Wed Jul 27 20:34:42 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Wed, 27 Jul 2005 21:34:42 -0400 Subject: [AccessD] VBExpress videos References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805><002901c590ab$8fe53de0$6601a8c0@user> <00b501c59246$20f72140$6601a8c0@user> Message-ID: ..pretty much the same way you do Kath but I make the changes on my development system ...test it on my client simulator system ...and then put a new fe on the network for normal update by the runtime systems. ..runtimes won't solve version change problems ...but you can build code into your startup to check the current version and load the correct runtime if you anticipate version changes ...that's a bit of work and only works transparently if MS doesn't throw a monkey wrench into things ...the damn "sandbox" in 2003 is a "*(&%$ example of such ...code runs fine in full Access but errors all over the place in the runtime ...so far I've just disabled it ...the "new" file dialog object is another example of something that works fine in full mode and not at all in runtime :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 8:57 PM Subject: Re: [AccessD] VBExpress videos ..hhmmm....thinking over the pros and cons.....I am getting very tired of clients changing office versions etc etc and having the app crash. And I am getting very sick of setting refs and finding that some users end up with it missing - whoops - crash again. So runtime should solve both those issues? On the other hand, with my main client (using full Access install) I can get straight on to their PC online using VNC, make a change to the mdb, recreate the mde and post it to the network from where it gets automatically downloaded the next time all users open it. That would be much harder with runtime, wouldn't it? How do you distribute upgrades? Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 1:15 PM Subject: Re: [AccessD] VBExpress videos ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 accessd at shaw.ca Wed Jul 27 20:45:28 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 27 Jul 2005 18:45:28 -0700 Subject: [AccessD] Automatic Tracking Number In-Reply-To: Message-ID: <0IKB0074TE7RIZ@l-daemon> Couldn't have said it better. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, July 27, 2005 8:30 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number Have you tried using an output parameter to return the identity value? Charlotte Foust -----Original Message----- From: Gowey Mike W [mailto:Mike.W.Gowey at doc.state.or.us] Sent: Wednesday, July 27, 2005 8:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automatic Tracking Number I'm just using regular VB to save the record and store the ID number to print the label, but SQL is not feeding me this number it just assigns it automatically in the table and I don't know the number so that I can requery for it. I hope that makes sense. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, July 27, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automatic Tracking Number Hi Mike: If you are using a SP to save the data, capture the auto-generated id number and return it, through the SP then you will have to manually place the new record number on the form. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Wednesday, July 27, 2005 7:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Automatic Tracking Number Hi Everyone, Quick question, I am currently converting all of my tables to SQL and continuing to use Access as the front end. Well I have run into one snag that I can't seem to figure out. When I enter a new record into the main table the tracking number that is automatically being assigned to the record does not show on the form. When I had the table on Access it showed up immediately after I entered the first field of data. I use this tracking number to than print a label, but now I have no idea what number is being assigned. I look at the SQL table and the record is there with a tracking number. Does anyone know how to make the tracking number show on the form? Thanks for any help that anyone can provide. Mike Gowey MCDST, A+, LME, NET+ Team Leader - East Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 D.Dick at uws.edu.au Wed Jul 27 20:55:41 2005 From: D.Dick at uws.edu.au (Darren Dick) Date: Thu, 28 Jul 2005 11:55:41 +1000 Subject: [AccessD] Fwd: Quitting Application Problem Message-ID: <2FDE83AF1A69C84796CBD13788DDA88364EF3C@BONHAM.AD.UWS.EDU.AU> That code will do it Put the code in the Unload of the form as the Unload Event has a cancel option So....copy and paste this code below into any form Then try and close the app. Private Sub Form_Unload(Cancel As Integer) If MsgBox("Are you sure you want to close Jeremy's way cool application completely?", vbQuestion + vbYesNo, "Confirm Application Close") = vbYes Then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc DoCmd.Quit Else 'User Chose no - so do nothing Cancel = True ' this will stop the action that faised the Unload to occur IE closing the APP :-)) End If End Sub DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 11:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Fwd: Quitting Application Problem That seems to be part of it, but something has to happen to keep the database open once it hits the Else. If I leave it as is, then the database closes when the form unloads. Is there something I can code to keep the form loaded, even if somebody tries to close the application by hitting "x"? Is there a way to hide the"x"? Thanks, Jeremy Darren Dick wrote: Hi Jeremy There are a number of ways. Here's one Have a frm call it say...frmHidden Have it open each time your app is started. Put it in an AutoExec Macro. (Lemme know if you are unsure what an AutoExec Macro is) But have the macro open the form 'hidden' - IE not visible to anyone at all. In the On Unload or OnClose of that hidden form have something like... If msgbox ("Are you sure you want to close Jeremy's way cool application completely?",vbquestion + vbyesNo, "Confirm Application Close")=vbyes then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc docmd.quit Else 'User Chose no - so do nothing End if The way it works is...if the whole app is going to be closed then this hidden form will be claosed also Sparking the OnClose or OnUnload code thus allowing them to think about closing completely or not Via the message box that pops up Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 10:03 AM To: AccessD Subject: [AccessD] Fwd: Quitting Application Problem Let me try this again. I just realized my original message never made it to the group. Help? Thanks, Jeremy Jeremy Toves wrote: Date: Wed, 27 Jul 2005 13:03:00 -0700 (PDT) From: Jeremy Toves Subject: Quitting Application Problem To: AccessD I have a database that needs to complete a few processes before it is closed. Some of the users are closing the application by using the "x" in the upper right corner of the Access database. Is there a way to disable this? Or can a message prompt the user to complete processing before exiting? Any help would be appreciated. Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jul 27 20:49:48 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 27 Jul 2005 18:49:48 -0700 Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 In-Reply-To: <6.2.0.14.2.20050727110543.02984a98@pop.btl.net> Message-ID: <0IKB00070EEZ8B@l-daemon> Hi Paul: By using ADO-OLE. There are many references and code that have been on it posted on the list over the years. Just go to site/page (http://www.databaseadvisors.com/archive/archive.htm ) on the DBA site and search on ADO. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul M. Jones Sent: Wednesday, July 27, 2005 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Connecting MS Access 2000 to SQL Server 2000 I have an application initially written in Access 97 and then moved to 2000. It talks to a SQL Server 2000 database using tables linked through an ODBC driver. Lately I have had several instances where I call a stored procedure to perform an operation but I don't receive a response from the SQL Server even though the operation was carried out successfully. This leaves my application hanging. I suspect it has to do with the ODBC connection. Anybody has any experiences with this type of issue? On a related note, is there a better way of linking my tables to the SQL Server other than to use an ODBC driver? I have a couple of newer projects that use ADP but unfortunately, it's not an option for me at this point since I have too many queries that I'll need to convert to either stored procedures or views. Thanks Paul M. Jones ---------------------------------------------------------------------------- ------------------ Reality is the murder of a beautiful theory by a gang of ugly facts. Robert L. Glass -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From connie.kamrowski at agric.nsw.gov.au Wed Jul 27 21:01:45 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Thu, 28 Jul 2005 12:01:45 +1000 Subject: [AccessD] VBExpress videos Message-ID: Kath, We use Sagekey to deploy Access97 over multiple platforms, and when i make an upgrade I just use the exe to do it. The advantage we have found is as it takes its own references and such I do not get deployment issues despite having 2500 users over 4 different SOEs and 4 departments. I run Access97 apps across office 97, 2000, XP and all operating systems from windows98 to XP, 2000 and NT. Just a thought, if you want more information just let me know. Regards, Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange ..pretty much the same way you do Kath but I make the changes on my development system ...test it on my client simulator system ...and then put a new fe on the network for normal update by the runtime systems. ..runtimes won't solve version change problems ...but you can build code into your startup to check the current version and load the correct runtime if you anticipate version changes ...that's a bit of work and only works transparently if MS doesn't throw a monkey wrench into things ...the damn "sandbox" in 2003 is a "*(&%$ example of such ...code runs fine in full Access but errors all over the place in the runtime ...so far I've just disabled it ...the "new" file dialog object is another example of something that works fine in full mode and not at all in runtime :( William This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From jwcolby at colbyconsulting.com Wed Jul 27 21:08:07 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 27 Jul 2005 22:08:07 -0400 Subject: [AccessD] VBExpress videos In-Reply-To: Message-ID: <000701c59319$325e3f30$6c7aa8c0@ColbyM6805> You might want to change the subject of this thread John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Wednesday, July 27, 2005 10:02 PM To: accessd at databaseadvisors.com Subject: [AccessD] VBExpress videos Kath, We use Sagekey to deploy Access97 over multiple platforms, and when i make an upgrade I just use the exe to do it. The advantage we have found is as it takes its own references and such I do not get deployment issues despite having 2500 users over 4 different SOEs and 4 departments. I run Access97 apps across office 97, 2000, XP and all operating systems from windows98 to XP, 2000 and NT. Just a thought, if you want more information just let me know. Regards, Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange ..pretty much the same way you do Kath but I make the changes on my development system ...test it on my client simulator system ...and then put a new fe on the network for normal update by the runtime systems. ..runtimes won't solve version change problems ...but you can build code into your startup to check the current version and load the correct runtime if you anticipate version changes ...that's a bit of work and only works transparently if MS doesn't throw a monkey wrench into things ...the damn "sandbox" in 2003 is a "*(&%$ example of such ...code runs fine in full Access but errors all over the place in the runtime ...so far I've just disabled it ...the "new" file dialog object is another example of something that works fine in full mode and not at all in runtime :( William This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From itsame2000 at sbcglobal.net Wed Jul 27 21:08:55 2005 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Wed, 27 Jul 2005 19:08:55 -0700 (PDT) Subject: [AccessD] Fwd: Quitting Application Problem In-Reply-To: <2FDE83AF1A69C84796CBD13788DDA88364EF3C@BONHAM.AD.UWS.EDU.AU> Message-ID: <20050728020855.77475.qmail@web81502.mail.yahoo.com> Darren, Thanks for the help! Jeremy Darren Dick wrote: That code will do it Put the code in the Unload of the form as the Unload Event has a cancel option So....copy and paste this code below into any form Then try and close the app. Private Sub Form_Unload(Cancel As Integer) If MsgBox("Are you sure you want to close Jeremy's way cool application completely?", vbQuestion + vbYesNo, "Confirm Application Close") = vbYes Then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc DoCmd.Quit Else 'User Chose no - so do nothing Cancel = True ' this will stop the action that faised the Unload to occur IE closing the APP :-)) End If End Sub DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 11:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Fwd: Quitting Application Problem That seems to be part of it, but something has to happen to keep the database open once it hits the Else. If I leave it as is, then the database closes when the form unloads. Is there something I can code to keep the form loaded, even if somebody tries to close the application by hitting "x"? Is there a way to hide the"x"? Thanks, Jeremy Darren Dick wrote: Hi Jeremy There are a number of ways. Here's one Have a frm call it say...frmHidden Have it open each time your app is started. Put it in an AutoExec Macro. (Lemme know if you are unsure what an AutoExec Macro is) But have the macro open the form 'hidden' - IE not visible to anyone at all. In the On Unload or OnClose of that hidden form have something like... If msgbox ("Are you sure you want to close Jeremy's way cool application completely?",vbquestion + vbyesNo, "Confirm Application Close")=vbyes then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc docmd.quit Else 'User Chose no - so do nothing End if The way it works is...if the whole app is going to be closed then this hidden form will be claosed also Sparking the OnClose or OnUnload code thus allowing them to think about closing completely or not Via the message box that pops up Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 10:03 AM To: AccessD Subject: [AccessD] Fwd: Quitting Application Problem Let me try this again. I just realized my original message never made it to the group. Help? Thanks, Jeremy Jeremy Toves wrote: Date: Wed, 27 Jul 2005 13:03:00 -0700 (PDT) From: Jeremy Toves Subject: Quitting Application Problem To: AccessD I have a database that needs to complete a few processes before it is closed. Some of the users are closing the application by using the "x" in the upper right corner of the Access database. Is there a way to disable this? Or can a message prompt the user to complete processing before exiting? Any help would be appreciated. Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Wed Jul 27 21:24:48 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 28 Jul 2005 12:24:48 +1000 Subject: [AccessD] Runtime Vs Full Access Install References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805><002901c590ab$8fe53de0$6601a8c0@user><00b501c59246$20f72140$6601a8c0@user> Message-ID: <001901c5931b$8744a4b0$6601a8c0@user> <<...runtimes won't solve version change problems..... Really? Are you saying that if you distribute a runtime and users then install eg. a newer version of Access then it can play up? Sounds like a headache....exactly the kind of problem I have now. Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Thursday, July 28, 2005 11:34 AM Subject: Re: [AccessD] VBExpress videos ..pretty much the same way you do Kath but I make the changes on my development system ...test it on my client simulator system ...and then put a new fe on the network for normal update by the runtime systems. ..runtimes won't solve version change problems ...but you can build code into your startup to check the current version and load the correct runtime if you anticipate version changes ...that's a bit of work and only works transparently if MS doesn't throw a monkey wrench into things ...the damn "sandbox" in 2003 is a "*(&%$ example of such ...code runs fine in full Access but errors all over the place in the runtime ...so far I've just disabled it ...the "new" file dialog object is another example of something that works fine in full mode and not at all in runtime :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 8:57 PM Subject: Re: [AccessD] VBExpress videos ..hhmmm....thinking over the pros and cons.....I am getting very tired of clients changing office versions etc etc and having the app crash. And I am getting very sick of setting refs and finding that some users end up with it missing - whoops - crash again. So runtime should solve both those issues? On the other hand, with my main client (using full Access install) I can get straight on to their PC online using VNC, make a change to the mdb, recreate the mde and post it to the network from where it gets automatically downloaded the next time all users open it. That would be much harder with runtime, wouldn't it? How do you distribute upgrades? Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 1:15 PM Subject: Re: [AccessD] VBExpress videos ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Wed Jul 27 21:41:01 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 28 Jul 2005 12:41:01 +1000 Subject: [AccessD] Runtime Vs Full Access Install References: Message-ID: <002101c5931d$cb5706a0$6601a8c0@user> Hi Connie - thanks for the reply. 2500 users? That's pretty impressive. Did you notice William's email? Have you had the version change problems he mentions? Kath ----- Original Message ----- From: connie.kamrowski at agric.nsw.gov.au To: accessd at databaseadvisors.com Sent: Thursday, July 28, 2005 12:01 PM Subject: [AccessD] VBExpress videos Kath, We use Sagekey to deploy Access97 over multiple platforms, and when i make an upgrade I just use the exe to do it. The advantage we have found is as it takes its own references and such I do not get deployment issues despite having 2500 users over 4 different SOEs and 4 departments. I run Access97 apps across office 97, 2000, XP and all operating systems from windows98 to XP, 2000 and NT. Just a thought, if you want more information just let me know. Regards, Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange ..pretty much the same way you do Kath but I make the changes on my development system ...test it on my client simulator system ...and then put a new fe on the network for normal update by the runtime systems. ..runtimes won't solve version change problems ...but you can build code into your startup to check the current version and load the correct runtime if you anticipate version changes ...that's a bit of work and only works transparently if MS doesn't throw a monkey wrench into things ...the damn "sandbox" in 2003 is a "*(&%$ example of such ...code runs fine in full Access but errors all over the place in the runtime ...so far I've just disabled it ...the "new" file dialog object is another example of something that works fine in full mode and not at all in runtime :( William This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From connie.kamrowski at agric.nsw.gov.au Wed Jul 27 20:50:58 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Thu, 28 Jul 2005 11:50:58 +1000 Subject: [AccessD] Re: AccessD Digest, Vol 29, Issue 35 Message-ID: Hello List, Just when it seemed I had all the information I needed up pops another good one. I have been meeting today with a group of people who have been implementing a rather unique process for managing their data. They firstly store approximately 475000 records in one table in an Access Database, They then run a query on this database which creates 385000+ records and sticks them in a second database, they then run a query on this one generating 285000 records and store this in ... you guessed it Database number 3. To finish it off they query again, store the results in a 4th database and use this one for day to day business. The databases range in size from 1.05gigabytes back to 370Megabytes. I was in awe. I am now designing a new relational database to store and manage this data. My problem is this, the business drivers for this database have now got soem concerns for the integrity of the data (possibly based on the look on my face when they showed me the databases). And so while I am redesigning and they are finding the money for rebuilding they wish to archive off some of the records in the largest database. They would however need to be able to search and manipulate these records. What is the best way to manage this? I am astounded by the way some people use Access, Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From jwcolby at colbyconsulting.com Wed Jul 27 22:12:17 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 27 Jul 2005 23:12:17 -0400 Subject: [AccessD] Re: AccessD Digest, Vol 29, Issue 35 In-Reply-To: Message-ID: <000801c59322$2902d5f0$6c7aa8c0@ColbyM6805> >I am astounded by the way some people use Access ROTFL. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Wednesday, July 27, 2005 9:51 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: AccessD Digest, Vol 29, Issue 35 Hello List, Just when it seemed I had all the information I needed up pops another good one. I have been meeting today with a group of people who have been implementing a rather unique process for managing their data. They firstly store approximately 475000 records in one table in an Access Database, They then run a query on this database which creates 385000+ records and sticks them in a second database, they then run a query on this one generating 285000 records and store this in ... you guessed it Database number 3. To finish it off they query again, store the results in a 4th database and use this one for day to day business. The databases range in size from 1.05gigabytes back to 370Megabytes. I was in awe. I am now designing a new relational database to store and manage this data. My problem is this, the business drivers for this database have now got soem concerns for the integrity of the data (possibly based on the look on my face when they showed me the databases). And so while I am redesigning and they are finding the money for rebuilding they wish to archive off some of the records in the largest database. They would however need to be able to search and manipulate these records. What is the best way to manage this? I am astounded by the way some people use Access, Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Wed Jul 27 22:47:29 2005 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 27 Jul 2005 20:47:29 -0700 Subject: [AccessD] Fwd: Quitting Application Problem In-Reply-To: <20050728010628.69636.qmail@web81510.mail.yahoo.com> Message-ID: <002c01c59327$1455ebb0$6401a8c0@laptop1> In the form properties you can disable the "x" Joe Hecht Los Angeles CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Wednesday, July 27, 2005 6:06 PM To: access at joe2.endjunk.com; Access Developers discussion and problem solving Subject: RE: [AccessD] Fwd: Quitting Application Problem That seems to be part of it, but something has to happen to keep the database open once it hits the Else. If I leave it as is, then the database closes when the form unloads. Is there something I can code to keep the form loaded, even if somebody tries to close the application by hitting "x"? Is there a way to hide the"x"? Thanks, Jeremy Darren Dick wrote: Hi Jeremy There are a number of ways. Here's one Have a frm call it say...frmHidden Have it open each time your app is started. Put it in an AutoExec Macro. (Lemme know if you are unsure what an AutoExec Macro is) But have the macro open the form 'hidden' - IE not visible to anyone at all. In the On Unload or OnClose of that hidden form have something like... If msgbox ("Are you sure you want to close Jeremy's way cool application completely?",vbquestion + vbyesNo, "Confirm Application Close")=vbyes then 'User chose yes so let 'em quit 'Put some code to here that allows them to exit gracefully 'IE close other forms, close reports, stop any processes etc docmd.quit Else 'User Chose no - so do nothing End if The way it works is...if the whole app is going to be closed then this hidden form will be claosed also Sparking the OnClose or OnUnload code thus allowing them to think about closing completely or not Via the message box that pops up Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Thursday, July 28, 2005 10:03 AM To: AccessD Subject: [AccessD] Fwd: Quitting Application Problem Let me try this again. I just realized my original message never made it to the group. Help? Thanks, Jeremy Jeremy Toves wrote: Date: Wed, 27 Jul 2005 13:03:00 -0700 (PDT) From: Jeremy Toves Subject: Quitting Application Problem To: AccessD I have a database that needs to complete a few processes before it is closed. Some of the users are closing the application by using the "x" in the upper right corner of the Access database. Is there a way to disable this? Or can a message prompt the user to complete processing before exiting? Any help would be appreciated. Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Wed Jul 27 23:07:02 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 28 Jul 2005 00:07:02 -0400 Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software In-Reply-To: <42E7F540.6030202@shaw.ca> Message-ID: <200507280406.j6S46vR30843@databaseadvisors.com> Thanks for the addendum, Marty! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: July 27, 2005 4:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software Here is a US software escrow FAQ, Europe may differ on laws. A local lawyer who practices IP Intellectual Property rights or copyright law. or some banks in Europe used to provide this service alongside Financial Escrow. might do it cheaper. But if you are putting out a lot of versions, the US price $500 - $750 sounds right for a escrow company that does this on a daily basis. http://www.softescrow.com/faq.html Arthur Fuller wrote: >My Dutch is pretty shaky (I know only about 5 words, of which my favourite >is the word for vacuum cleaner) so I will respond in English. In a situation >such as this (assuming the good intentions of the client), what the client >is primarily concerned about is what happens should you get run over by a >tram or meet some similar demise. What you are concerned about is protecting >your source code. To protect both parties, you place the source code in >escrow, which means in the hands of a disinterested party. Should the tram >kill you, the client gets the code. Should you avoid collisions with a tram, >your source code is safe. > >Arthur From mmattys at rochester.rr.com Wed Jul 27 23:10:58 2005 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Thu, 28 Jul 2005 00:10:58 -0400 Subject: [AccessD] Re: AccessD Digest, Vol 29, Issue 35 References: Message-ID: <045401c5932a$5cf47000$0302a8c0@default> ... >They firstly store approximately 475000 records in one table in an > Access Database, They then run a query on this database which > creates 385000+ records and sticks them in a second database, > they then run a query on this one generating 285000 records and > store this in ... you guessed it Database number 3. To finish it off > they query again, store the results in a 4th database and use this > one for day to day business. Connie, can it be assumed that data-entry is done in the first db? Or, are you saying that records are transferred from the fourth db to the first at the end of the day? Perhaps they are even pulling such data from a different database system? ... > they wish to archive off some of the records in the largest database. > They would however need to be able to search and manipulate these > records. What is the best way to manage this? If I read into this correctly, there are several records per account and your new relational system will keep the track of the account number. As long as there is a Primary Key AutoNumber that can relate to a Long in the archive table(s), you can just use SQL for searches and edits. Perhaps it is not this simple, though ... ? What's missing? ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: To: Sent: Wednesday, July 27, 2005 9:50 PM Subject: [AccessD] Re: AccessD Digest, Vol 29, Issue 35 > > Hello List, > > Just when it seemed I had all the information I needed up pops another good > one. > > I have been meeting today with a group of people who have been implementing > a rather unique process for managing their data. They firstly store > approximately 475000 records in one table in an Access Database, They then > run a query on this database which creates 385000+ records and sticks them > in a second database, they then run a query on this one generating 285000 > records and store this in ... you guessed it Database number 3. To finish > it off they query again, store the results in a 4th database and use this > one for day to day business. The databases range in size from 1.05gigabytes > back to 370Megabytes. I was in awe. > > I am now designing a new relational database to store and manage this data. > > My problem is this, the business drivers for this database have now got > soem concerns for the integrity of the data (possibly based on the look on > my face when they showed me the databases). And so while I am redesigning > and they are finding the money for rebuilding they wish to archive off some > of the records in the largest database. They would however need to be able > to search and manipulate these records. What is the best way to manage > this? > > I am astounded by the way some people use Access, > > Connie Kamrowski > > Analyst/Programmer > Information Technology > NSW Department of Primary Industries > Orange From connie.kamrowski at agric.nsw.gov.au Wed Jul 27 23:30:38 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Thu, 28 Jul 2005 14:30:38 +1000 Subject: [AccessD] Re: Huge Access Database was wrongly named Re: AccessD Digest, Vol 29, Issue 35 Message-ID: Matty, Yes the data is all entered into the original Database. The 4th DB is actrually the data they need to export as a commercial venture (my headache is getting worse LOL). The original data is entered from old records and until I create the new relational model with a shiny new SQL backend this is the only electronic record of the data. The need is there to be able to seperate this based on the date it was entered and store as a historical record, Problem is they may need to search the historical data for a specific record. I am unsure of the best way to manage this volume of records I guess. There is a unique number per record, it is the serial number given by the database. The criteria they will search on is a 16 digit alphanumeric field. It is probably simple, but as I have not dealt with the whole historical record managemnt thing I am looking for advice on how to manage this in the interim. That and I wanted to share this as a hall of fame use of Access, LOL. John, What was the amusing bit??? The use of Access or my amazement.... *grin* .... they obviously didn't have access to this group or they would have known better huh? Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange >They firstly store approximately 475000 records in one table in an > Access Database, They then run a query on this database which > creates 385000+ records and sticks them in a second database, > they then run a query on this one generating 285000 records and > store this in ... you guessed it Database number 3. To finish it off > they query again, store the results in a 4th database and use this > one for day to day business. Connie, can it be assumed that data-entry is done in the first db? Or, are you saying that records are transferred from the fourth db to the first at the end of the day? Perhaps they are even pulling such data from a different database system? ... > they wish to archive off some of the records in the largest database. > They would however need to be able to search and manipulate these > records. What is the best way to manage this? If I read into this correctly, there are several records per account and your new relational system will keep the track of the account number. As long as there is a Primary Key AutoNumber that can relate to a Long in the archive table(s), you can just use SQL for searches and edits. Perhaps it is not this simple, though ... ? What's missing? This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From connie.kamrowski at agric.nsw.gov.au Wed Jul 27 23:46:35 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Thu, 28 Jul 2005 14:46:35 +1000 Subject: [AccessD] Runtime Vs Full Access Install Message-ID: Not so impressive, they are not concurrent :) Just potentially so. Databases are not always deployed across all users. I was referencing the fact that we have deployed at least one database to these users and their specific environments and have not had problems. Because of the way sagekey works we have found that as long as we encapsulate all of the things we reference into the sagekey runtime, we have had no issues at all. It may be worth a look at their website http://www.sagekey.com/ for a run down of what it does and what they promise. Just a suggestion but it has worked really well for us with the issues we were having cross deploying and installing upgrades. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax:02 6391 3290 Hi Connie - thanks for the reply. 2500 users? That's pretty impressive. Did you notice William's email? Have you had the version change problems he mentions? Kath This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From dejpolsys at hotmail.com Thu Jul 28 00:26:29 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Thu, 28 Jul 2005 01:26:29 -0400 Subject: [AccessD] Runtime Vs Full Access Install References: <000a01c58e62$be555610$6c7aa8c0@ColbyM6805><002901c590ab$8fe53de0$6601a8c0@user><00b501c59246$20f72140$6601a8c0@user> <001901c5931b$8744a4b0$6601a8c0@user> Message-ID: ..hhhmmm ...either I'm misreading you or there is a fundamental misunderstanding somewhere in here ...a runtime mdb/mde is exactly the same as a full install mdb/mde ...the difference is that Access itself is not fully installed in a runtime ...the design/coding elements are not there so a user can't change anything ...it runs exactly as you designed it to run. ..if you have an A97 mdb and an A2k runtime it should still run as long as the references are there ...but the reverse is not true ...so I use startup code to check the installed version and call the corresponding fe mdb/mde. ..if you invest in the wise install tools, they handle those issues much better than the native Access distribution tools do and the default is to let them do all the work for you. William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Wednesday, July 27, 2005 10:24 PM Subject: [AccessD] Runtime Vs Full Access Install <<...runtimes won't solve version change problems..... Really? Are you saying that if you distribute a runtime and users then install eg. a newer version of Access then it can play up? Sounds like a headache....exactly the kind of problem I have now. Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Thursday, July 28, 2005 11:34 AM Subject: Re: [AccessD] VBExpress videos ..pretty much the same way you do Kath but I make the changes on my development system ...test it on my client simulator system ...and then put a new fe on the network for normal update by the runtime systems. ..runtimes won't solve version change problems ...but you can build code into your startup to check the current version and load the correct runtime if you anticipate version changes ...that's a bit of work and only works transparently if MS doesn't throw a monkey wrench into things ...the damn "sandbox" in 2003 is a "*(&%$ example of such ...code runs fine in full Access but errors all over the place in the runtime ...so far I've just disabled it ...the "new" file dialog object is another example of something that works fine in full mode and not at all in runtime :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 26, 2005 8:57 PM Subject: Re: [AccessD] VBExpress videos ..hhmmm....thinking over the pros and cons.....I am getting very tired of clients changing office versions etc etc and having the app crash. And I am getting very sick of setting refs and finding that some users end up with it missing - whoops - crash again. So runtime should solve both those issues? On the other hand, with my main client (using full Access install) I can get straight on to their PC online using VNC, make a change to the mdb, recreate the mde and post it to the network from where it gets automatically downloaded the next time all users open it. That would be much harder with runtime, wouldn't it? How do you distribute upgrades? Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, July 25, 2005 1:15 PM Subject: Re: [AccessD] VBExpress videos ..yes ...lessons learned the hard way ...give a client full Access and "things" happen ...bad things ..."upgrade" that client to the newest version of Office Standard (w/runtime) rather than Office Pro and save them a lot of money ...its amazing how many strange happenings stop happening to your apps :( William ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Sunday, July 24, 2005 7:58 PM Subject: Re: [AccessD] VBExpress videos < To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 21, 2005 10:11 PM Subject: RE: [AccessD] VBExpress videos > William, > > Apparently Express is a simplified version of the one that comes in the > Visual Studio. As for the videos being useful, I think mostly yes. The > videos are about how to manipulate the various windows, the controls, the > forms etc. All that is pretty much just like the version in Visual > Studio. > > My email was aimed at those lost souls (like myself) who either have never > managed to really "get there" with Visual Studio, or never even purchased > it > because of the expense. VBExpress is free (for the beta which is very > stable) and will be $50 when released at the end of the year. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, July 21, 2005 9:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBExpress videos > > > JC > > ..how is this different than the VB.Net that comes with Visual Studio > Tools? ...since MS compels me to pay for the standard version of VB.net in > order to get the equivalent of the old ODE, why might I want to go the > VBExpress route instead? > > ..and are the videos of use in the VB.net ide? > > William > > ----- Original Message ----- > From: "John W. Colby" > To: "VBA" ; "AccessD" > > Sent: Thursday, July 21, 2005 2:50 PM > Subject: [AccessD] VBExpress videos > > >> In case you haven't found them, there is a beta available for >> VBExpress which is really just VB.Net light version, with its own IDE >> instead of being embedded in Visual Studio. The IDE looks and feels >> almost identical to the >> Visual Studio however. >> >> http://lab.msdn.microsoft.com/express/beginner/ >> >> Once you download and install the VBExpress notice the videos >> available. >> I >> discovered this guy a couple of years ago but he has now done (some) >> videos >> for this VBExpress and I am finding them very useful I think they would >> allow anyone who frequents this board to get up to speed pretty quickly, >> and >> I have to tell you, VBExpress.net is waaay cool. The videos will show >> you >> how to do stuff in the user interface (all that I have gotten to so far) >> that we can only dream of in VBA. >> >> Check it out - it looks very good to me. I am working through the >> video series right now. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Jul 28 01:37:15 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 27 Jul 2005 23:37:15 -0700 Subject: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software References: <200507280406.j6S46vR30843@databaseadvisors.com> Message-ID: <42E87D1B.9080308@shaw.ca> Nah I have a kid brother who teaches this stuff in university to law students and he bugs me about it occasionally. This stuff changes fast. Five years ago even computer forensics was mickey mouse, now you need a Ph.D. in Comp Sci. Even local cops are grabbing accelerometer data out of car computers for crash analysis and evidence. The complete software and hardware to do it is available for under $500. I used to escrow software with a local friendly lawyer 15 years ago He did it as an oddity, just to say he was the only guy in the city doing it. And I gave him a couple of dozen new clients Now it has turned into an industry with earthquake proof vaults. Arthur Fuller wrote: >Thanks for the addendum, Marty! > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: July 27, 2005 4:58 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: looking for ASP/ASP.NET E-commerce shop software > >Here is a US software escrow FAQ, Europe may differ on laws. >A local lawyer who practices IP Intellectual Property rights or >copyright law. >or some banks in Europe used to provide this service alongside Financial >Escrow. >might do it cheaper. But if you are putting out a lot of versions, the >US price $500 - $750 sounds right >for a escrow company that does this on a daily basis. >http://www.softescrow.com/faq.html > >Arthur Fuller wrote: > > > >>My Dutch is pretty shaky (I know only about 5 words, of which my favourite >>is the word for vacuum cleaner) so I will respond in English. In a >> >> >situation > > >>such as this (assuming the good intentions of the client), what the client >>is primarily concerned about is what happens should you get run over by a >>tram or meet some similar demise. What you are concerned about is >> >> >protecting > > >>your source code. To protect both parties, you place the source code in >>escrow, which means in the hands of a disinterested party. Should the tram >>kill you, the client gets the code. Should you avoid collisions with a >> >> >tram, > > >>your source code is safe. >> >>Arthur >> >> > > > -- Marty Connelly Victoria, B.C. Canada From bheid at appdevgrp.com Thu Jul 28 06:19:12 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 28 Jul 2005 07:19:12 -0400 Subject: [AccessD] Locking question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C381F3@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED81@ADGSERVER> Yes, I always do a decompile/compact/recompile before creating an MDE. I dunno if it makes a difference, but sometimes it will not compile to an MDE if I do not decompile first. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, July 27, 2005 3:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Locking question Are you sure the FE was decompiled/compiled before it was converted to an MDE? Or since the code is 'removed' maybe that doesn't make a difference. Dan Waters From Chester_Kaup at kindermorgan.com Thu Jul 28 08:24:37 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 28 Jul 2005 08:24:37 -0500 Subject: [AccessD] Feed variable to parameter query Message-ID: I am trying to feed a variable into a parameter query. I have done this with dates but cannot get the syntax right (correct combination of single, double quotes etc.) on pushing this text field into the query. If someone has a better way to push a variable into a parameter query feel free to jump in. Thanks all. Below is the code. Option Compare Database Function Table_Data_to_Parameter_Query() Dim MyDb As Database, MyQDef As QueryDef, myds As Recordset, myds1 As Recordset Dim strSQL As String, Table_Data As String Set MyDb = CurrentDb() Set myds = MyDb.OpenRecordset("tbl Patterns to Run", dbOpenTable) Set MyQDef2 = MyDb.QueryDefs("qry Pattern Start Date") PatternName = myds.Fields(0) strSQL = "SELECT Pattern, [CO2 Injection Start Date Schedule1]" & _ "FROM [tbl Schedules]" & _ "WHERE [tbl Schedules].Pattern=PatternName;" Set MyQDef = MyDb.QueryDefs("qry Pattern Start Date") MyQDef.SQL = strSQL Set myds1 = MyQDef.OpenRecordset() Table_Data = myds1.Fields(0) Set MyQDef = Nothing Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 From Jim.Hale at FleetPride.com Thu Jul 28 08:33:28 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 28 Jul 2005 08:33:28 -0500 Subject: [AccessD] Feed variable to parameter query Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233772C@corp-es01.fleetpride.com> try "WHERE [tbl Schedules].Pattern=" & PatternName & ";" Regards, Jim Hale -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Thursday, July 28, 2005 8:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] Feed variable to parameter query I am trying to feed a variable into a parameter query. I have done this with dates but cannot get the syntax right (correct combination of single, double quotes etc.) on pushing this text field into the query. If someone has a better way to push a variable into a parameter query feel free to jump in. Thanks all. Below is the code. Option Compare Database Function Table_Data_to_Parameter_Query() Dim MyDb As Database, MyQDef As QueryDef, myds As Recordset, myds1 As Recordset Dim strSQL As String, Table_Data As String Set MyDb = CurrentDb() Set myds = MyDb.OpenRecordset("tbl Patterns to Run", dbOpenTable) Set MyQDef2 = MyDb.QueryDefs("qry Pattern Start Date") PatternName = myds.Fields(0) strSQL = "SELECT Pattern, [CO2 Injection Start Date Schedule1]" & _ "FROM [tbl Schedules]" & _ "WHERE [tbl Schedules].Pattern=PatternName;" Set MyQDef = MyDb.QueryDefs("qry Pattern Start Date") MyQDef.SQL = strSQL Set myds1 = MyQDef.OpenRecordset() Table_Data = myds1.Fields(0) Set MyQDef = Nothing Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From mikedorism at verizon.net Thu Jul 28 08:35:37 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Thu, 28 Jul 2005 09:35:37 -0400 Subject: [AccessD] Feed variable to parameter query In-Reply-To: Message-ID: <000001c59379$3de12ba0$2e01a8c0@dorismanning> Try strSQL = "SELECT Pattern, [CO2 Injection Start Date Schedule1]" & _ "FROM [tbl Schedules]" & _ "WHERE [tbl Schedules].Pattern= '" & PatternName & "';" Doris Manning Database Administrator Hargrove Inc. From mmattys at rochester.rr.com Thu Jul 28 08:40:34 2005 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Thu, 28 Jul 2005 09:40:34 -0400 Subject: [AccessD] Re: Huge Access Database was wrongly named Re: AccessD Digest, Vol 29, Issue 35 References: Message-ID: <04e201c59379$f204bd90$0302a8c0@default> Connie, 475,000 is not that many records that they needed to go to such extremes as to make these separate tables in separate databases. You should be able to achieve the same result they got in the subsequent (4th) databases by using simple queries and manage the searches/edits through there. They may have somehow changed the data/structure of those tables, though, and that could be why they're worried. You'll need a few queries - one based upon the next: The first query will simply be a date range - fast and simple. This can only produce a number of records that could possibly have been entered (from paper records) within that date range. Results may need to be appended to a temp table to increase performance. The second query will be based upon the first (or temp table) and have another general criteria that the desired records have in common Edits can take place upon the temp table and then an update query can edit the original table. There are also data-mining methods where data is denormalized and translation tables used to get at data quickly, but I think Charlotte would be better at explaining this ... ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: To: Sent: Thursday, July 28, 2005 12:30 AM Subject: [AccessD] Re: Huge Access Database was wrongly named Re: AccessD Digest, Vol 29, Issue 35 > > Matty, > > Yes the data is all entered into the original Database. The 4th DB is > actrually the data they need to export as a commercial venture (my headache > is getting worse LOL). The original data is entered from old records and > until I create the new relational model with a shiny new SQL backend this > is the only electronic record of the data. The need is there to be able to > seperate this based on the date it was entered and store as a historical > record, Problem is they may need to search the historical data for a > specific record. I am unsure of the best way to manage this volume of > records I guess. There is a unique number per record, it is the serial > number given by the database. The criteria they will search on is a 16 > digit alphanumeric field. It is probably simple, but as I have not dealt > with the whole historical record managemnt thing I am looking for advice on > how to manage this in the interim. That and I wanted to share this as a > hall of fame use of Access, LOL. > > John, > > What was the amusing bit??? The use of Access or my amazement.... *grin* > .... they obviously didn't have access to this group or they would have > known better huh? > > Connie Kamrowski > > Analyst/Programmer > Information Technology > NSW Department of Primary Industries > Orange > > >They firstly store approximately 475000 records in one table in an > > Access Database, They then run a query on this database which > > creates 385000+ records and sticks them in a second database, > > they then run a query on this one generating 285000 records and > > store this in ... you guessed it Database number 3. To finish it off > > they query again, store the results in a 4th database and use this > > one for day to day business. > > Connie, can it be assumed that data-entry is done in the first db? > Or, are you saying that records are transferred from the fourth db > to the first at the end of the day? Perhaps they are even pulling such > data from a different database system? > > ... > > they wish to archive off some of the records in the largest database. > > They would however need to be able to search and manipulate these > > records. What is the best way to manage this? > > If I read into this correctly, there are several records per account and > your new relational system will keep the track of the account number. > As long as there is a Primary Key AutoNumber that can relate to a Long > in the archive table(s), you can just use SQL for searches and edits. > Perhaps it is not this simple, though ... ? What's missing? > > > > This message is intended for the addressee named and may contain > confidential information. If you are not the intended recipient or received > it in error, please delete the message and notify sender. Views expressed > are those of the individual sender and are not necessarily the views of > their organisation. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Thu Jul 28 08:47:21 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 28 Jul 2005 08:47:21 -0500 Subject: [AccessD] Feed variable to parameter query Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233772D@corp-es01.fleetpride.com> If your variable is text, use Doris's solution (the single quotes are important), for numbers mine should work. Jim Hale -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Thursday, July 28, 2005 8:33 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Feed variable to parameter query try "WHERE [tbl Schedules].Pattern=" & PatternName & ";" Regards, Jim Hale -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Thursday, July 28, 2005 8:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] Feed variable to parameter query I am trying to feed a variable into a parameter query. I have done this with dates but cannot get the syntax right (correct combination of single, double quotes etc.) on pushing this text field into the query. If someone has a better way to push a variable into a parameter query feel free to jump in. Thanks all. Below is the code. Option Compare Database Function Table_Data_to_Parameter_Query() Dim MyDb As Database, MyQDef As QueryDef, myds As Recordset, myds1 As Recordset Dim strSQL As String, Table_Data As String Set MyDb = CurrentDb() Set myds = MyDb.OpenRecordset("tbl Patterns to Run", dbOpenTable) Set MyQDef2 = MyDb.QueryDefs("qry Pattern Start Date") PatternName = myds.Fields(0) strSQL = "SELECT Pattern, [CO2 Injection Start Date Schedule1]" & _ "FROM [tbl Schedules]" & _ "WHERE [tbl Schedules].Pattern=PatternName;" Set MyQDef = MyDb.QueryDefs("qry Pattern Start Date") MyQDef.SQL = strSQL Set myds1 = MyQDef.OpenRecordset() Table_Data = myds1.Fields(0) Set MyQDef = Nothing Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Chester_Kaup at kindermorgan.com Thu Jul 28 08:47:28 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 28 Jul 2005 08:47:28 -0500 Subject: [AccessD] Feed variable to parameter query Message-ID: Thanks. That got it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Thursday, July 28, 2005 8:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Feed variable to parameter query Try strSQL = "SELECT Pattern, [CO2 Injection Start Date Schedule1]" & _ "FROM [tbl Schedules]" & _ "WHERE [tbl Schedules].Pattern= '" & PatternName & "';" Doris Manning Database Administrator Hargrove Inc. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at outbaktech.com Thu Jul 28 09:37:56 2005 From: Jeff at outbaktech.com (Jeff Barrows) Date: Thu, 28 Jul 2005 09:37:56 -0500 Subject: [AccessD] RE: [dba-Tech] RE: [dba-OT] Cross Posted: Looking for a .NET developernear Neenah, WI Message-ID: I have already responded to one individual off-list. If anyone else is interested in additional information, please contact me directly at the email address in my signature. Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Phone: 886-5913 Fax: 886-5932 Racine, WI jeff at outbaktech.com From cfoust at infostatsystems.com Thu Jul 28 10:19:05 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 28 Jul 2005 08:19:05 -0700 Subject: [AccessD] Runtime Vs Full Access Install Message-ID: Yep, SageKey is a must for distributing runtimes, regardless of which installer you use. Their support is also incredible! Charlotte Foust -----Original Message----- From: connie.kamrowski at agric.nsw.gov.au [mailto:connie.kamrowski at agric.nsw.gov.au] Sent: Wednesday, July 27, 2005 9:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Vs Full Access Install Not so impressive, they are not concurrent :) Just potentially so. Databases are not always deployed across all users. I was referencing the fact that we have deployed at least one database to these users and their specific environments and have not had problems. Because of the way sagekey works we have found that as long as we encapsulate all of the things we reference into the sagekey runtime, we have had no issues at all. It may be worth a look at their website http://www.sagekey.com/ for a run down of what it does and what they promise. Just a suggestion but it has worked really well for us with the issues we were having cross deploying and installing upgrades. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax:02 6391 3290 Hi Connie - thanks for the reply. 2500 users? That's pretty impressive. Did you notice William's email? Have you had the version change problems he mentions? Kath This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Thu Jul 28 10:23:25 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Thu, 28 Jul 2005 11:23:25 -0400 Subject: [AccessD] strip the apostrophe's Message-ID: Hi, I'm using a sql statement behind a search box to return the member's name as a result of a search with the data being displayed by the user choosing a query (button) or a report (button). All was well until I ran into the data below: Joe's Electrical My sql statement errors out because it cannot handle the extra apostrophe. Should I be stripping any extra syntax before I process the sql statement, or should I test for this condition and handle this in a separate routine? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From Robin at rolledgold.net Thu Jul 28 10:25:53 2005 From: Robin at rolledgold.net (Robin ) Date: Thu, 28 Jul 2005 16:25:53 +0100 Subject: [AccessD] strip the apostrophe's Message-ID: <560E2B80EC8F624B93A87B943B7A9CD52E2B9B@rgiserv.rg.local> Julie, Have a look at this http://www.kamath.com/codelibrary/cl003_apostrophe.asp Rgds Robin Lawrence -----Original Message----- From: Julie Reardon-Taylor [mailto:prosoft6 at hotmail.com] Sent: Thu 28/07/2005 16:23 To: accessd at databaseadvisors.com Cc: Subject: [AccessD] strip the apostrophe's Hi, I'm using a sql statement behind a search box to return the member's name as a result of a search with the data being displayed by the user choosing a query (button) or a report (button). All was well until I ran into the data below: Joe's Electrical My sql statement errors out because it cannot handle the extra apostrophe. Should I be stripping any extra syntax before I process the sql statement, or should I test for this condition and handle this in a separate routine? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Jul 28 10:34:36 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 28 Jul 2005 08:34:36 -0700 Subject: [AccessD] Re: Huge Access Database was wrongly named Re: AccessD Digest, Vol 29, Issue 35 Message-ID: Connie, I just have to ask: how many FIELDS are in that single table?? I suspect it can be broken into multiple tables in a relational scheme and the users will never know the difference, but the data mining they want to do and the archiving requires a slightly different design approach, so you probably will still wind up with two databases, one for data entry/capture and one for data warehousing/archiving. I highly recommend Ralph Kimball's book The Data Warehouse Toolkit (watch out for a wrap) http://www.amazon.com/exec/obidos/tg/detail/-/0471153370/002-6258971-950 0008?v=glance as a reference for building dimensional data warehouses. Once you get your head around the concepts, including the star schema, the design is simply a matter of how you want to use it. Data retrieval from dimensional data warehouses is very fast and requires minimal querying because of the nature of the structure. Charlotte Foust -----Original Message----- From: connie.kamrowski at agric.nsw.gov.au [mailto:connie.kamrowski at agric.nsw.gov.au] Sent: Wednesday, July 27, 2005 9:31 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Huge Access Database was wrongly named Re: AccessD Digest, Vol 29, Issue 35 Matty, Yes the data is all entered into the original Database. The 4th DB is actrually the data they need to export as a commercial venture (my headache is getting worse LOL). The original data is entered from old records and until I create the new relational model with a shiny new SQL backend this is the only electronic record of the data. The need is there to be able to seperate this based on the date it was entered and store as a historical record, Problem is they may need to search the historical data for a specific record. I am unsure of the best way to manage this volume of records I guess. There is a unique number per record, it is the serial number given by the database. The criteria they will search on is a 16 digit alphanumeric field. It is probably simple, but as I have not dealt with the whole historical record managemnt thing I am looking for advice on how to manage this in the interim. That and I wanted to share this as a hall of fame use of Access, LOL. John, What was the amusing bit??? The use of Access or my amazement.... *grin* .... they obviously didn't have access to this group or they would have known better huh? Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange >They firstly store approximately 475000 records in one table in an >Access Database, They then run a query on this database which creates >385000+ records and sticks them in a second database, they then run a >query on this one generating 285000 records and store this in ... you >guessed it Database number 3. To finish it off they query again, store >the results in a 4th database and use this one for day to day >business. Connie, can it be assumed that data-entry is done in the first db? Or, are you saying that records are transferred from the fourth db to the first at the end of the day? Perhaps they are even pulling such data from a different database system? ... > they wish to archive off some of the records in the largest database. > They would however need to be able to search and manipulate these > records. What is the best way to manage this? If I read into this correctly, there are several records per account and your new relational system will keep the track of the account number. As long as there is a Primary Key AutoNumber that can relate to a Long in the archive table(s), you can just use SQL for searches and edits. Perhaps it is not this simple, though ... ? What's missing? This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at isharp.co.uk Thu Jul 28 10:38:34 2005 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Thu, 28 Jul 2005 16:38:34 +0100 Subject: [AccessD] strip the apostrophe's In-Reply-To: Message-ID: Julie, I think I used to do something like the following: Dim strSQL As String Dim strName as string If InStr([Field],"'")>0 ) then strName = strSQL = "SELECT [Fields] FROM [Table] WHERE Left([Field],InStr([Field],"'")-1) & Mid([Field],InStr([Field],"'")+1) = '" & strName & "'" Else strSQL = "SELECT [Fields] FROM [Table] WHERE [Field] = '" & strName & "'" Endif Written off top of my head, so may need modifying Paul -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: 28 July 2005 16:23 To: accessd at databaseadvisors.com Subject: [AccessD] strip the apostrophe's Hi, I'm using a sql statement behind a search box to return the member's name as a result of a search with the data being displayed by the user choosing a query (button) or a report (button). All was well until I ran into the data below: Joe's Electrical My sql statement errors out because it cannot handle the extra apostrophe. Should I be stripping any extra syntax before I process the sql statement, or should I test for this condition and handle this in a separate routine? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Thu Jul 28 11:08:07 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 28 Jul 2005 11:08:07 -0500 Subject: [AccessD] Missing Operator in Query Message-ID: The following SQL returns a missing operator message yet if I put it in the query grid all is good. That is a semi colon at the end even though hard to see. Maybe I am just going blind from looking at it and not seeing the error. strSQL = "SELECT concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "FROM [tbl Patterns]" & _ "INNER JOIN [tbl WAG] ON [tbl Patterns].[WAG Scheme] = [tbl WAG].[WAG Scheme]" & _ "WHERE Pattern = '" & PatternName & "' " & _ "GROUP BY concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" Set MyQDef1 = MyDb.QueryDefs("qry Pattern WAG Scheme") MyQDef1.SQL = strSQL Set myds1 = MyQDef1.OpenRecordset(). Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 From Lambert.Heenan at AIG.com Thu Jul 28 11:27:57 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 28 Jul 2005 12:27:57 -0400 Subject: [AccessD] Missing Operator in Query Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F13777929@xlivmbx21.aig.com> Could it be the very last couple of lines?... Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" ... There's no space after 'Comment' so this string winds up being "Cum_Wateri_hcpv, Fluid, CommentORDER BY Cum_Toti_hcpv;" Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, July 28, 2005 12:08 PM To: Access Developers discussion and problem solving Subject: [AccessD] Missing Operator in Query The following SQL returns a missing operator message yet if I put it in the query grid all is good. That is a semi colon at the end even though hard to see. Maybe I am just going blind from looking at it and not seeing the error. strSQL = "SELECT concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "FROM [tbl Patterns]" & _ "INNER JOIN [tbl WAG] ON [tbl Patterns].[WAG Scheme] = [tbl WAG].[WAG Scheme]" & _ "WHERE Pattern = '" & PatternName & "' " & _ "GROUP BY concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" Set MyQDef1 = MyDb.QueryDefs("qry Pattern WAG Scheme") MyQDef1.SQL = strSQL Set myds1 = MyQDef1.OpenRecordset(). Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. FAX (432) 688-3799 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Thu Jul 28 11:36:46 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 28 Jul 2005 12:36:46 -0400 Subject: [AccessD] Missing Operator in Query In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C38415@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABED8C@ADGSERVER> For that matter, there are missing spaces at the end of many of the lines. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 28, 2005 12:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Missing Operator in Query Could it be the very last couple of lines?... Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" ... There's no space after 'Comment' so this string winds up being "Cum_Wateri_hcpv, Fluid, CommentORDER BY Cum_Toti_hcpv;" Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, July 28, 2005 12:08 PM To: Access Developers discussion and problem solving Subject: [AccessD] Missing Operator in Query The following SQL returns a missing operator message yet if I put it in the query grid all is good. That is a semi colon at the end even though hard to see. Maybe I am just going blind from looking at it and not seeing the error. strSQL = "SELECT concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "FROM [tbl Patterns]" & _ "INNER JOIN [tbl WAG] ON [tbl Patterns].[WAG Scheme] = [tbl WAG].[WAG Scheme]" & _ "WHERE Pattern = '" & PatternName & "' " & _ "GROUP BY concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" Set MyQDef1 = MyDb.QueryDefs("qry Pattern WAG Scheme") MyQDef1.SQL = strSQL Set myds1 = MyQDef1.OpenRecordset(). Chester Kaup From Chester_Kaup at kindermorgan.com Thu Jul 28 12:05:11 2005 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 28 Jul 2005 12:05:11 -0500 Subject: [AccessD] Missing Operator in Query Message-ID: Thnaks everyone. Another set of eyes looking sometimes helps. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, July 28, 2005 11:37 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Missing Operator in Query For that matter, there are missing spaces at the end of many of the lines. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, July 28, 2005 12:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Missing Operator in Query Could it be the very last couple of lines?... Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" ... There's no space after 'Comment' so this string winds up being "Cum_Wateri_hcpv, Fluid, CommentORDER BY Cum_Toti_hcpv;" Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, July 28, 2005 12:08 PM To: Access Developers discussion and problem solving Subject: [AccessD] Missing Operator in Query The following SQL returns a missing operator message yet if I put it in the query grid all is good. That is a semi colon at the end even though hard to see. Maybe I am just going blind from looking at it and not seeing the error. strSQL = "SELECT concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "FROM [tbl Patterns]" & _ "INNER JOIN [tbl WAG] ON [tbl Patterns].[WAG Scheme] = [tbl WAG].[WAG Scheme]" & _ "WHERE Pattern = '" & PatternName & "' " & _ "GROUP BY concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ "ORDER BY Cum_Toti_hcpv;" Set MyQDef1 = MyDb.QueryDefs("qry Pattern WAG Scheme") MyQDef1.SQL = strSQL Set myds1 = MyQDef1.OpenRecordset(). Chester Kaup -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Jul 28 13:06:18 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 28 Jul 2005 11:06:18 -0700 Subject: [AccessD] Missing Operator in Query References: Message-ID: <42E91E9A.7050309@shaw.ca> When I get one of these I look for reserved words and do a debug.print strSQL "And all is revealed" It sure beats having to look through a 200 page hexadecimal dump printout.. Kaup, Chester wrote: >Thnaks everyone. Another set of eyes looking sometimes helps. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid >Sent: Thursday, July 28, 2005 11:37 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Missing Operator in Query > >For that matter, there are missing spaces at the end of many of the >lines. > >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, >Lambert >Sent: Thursday, July 28, 2005 12:28 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Missing Operator in Query > > >Could it be the very last couple of lines?... > >Cum_Wateri_hcpv, Fluid, Comment" & _ > >"ORDER BY Cum_Toti_hcpv;" > >... There's no space after 'Comment' so this string winds up being > >"Cum_Wateri_hcpv, Fluid, CommentORDER BY Cum_Toti_hcpv;" > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester >Sent: Thursday, July 28, 2005 12:08 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Missing Operator in Query > > >The following SQL returns a missing operator message yet if I put it in >the >query grid all is good. That is a semi colon at the end even though hard >to >see. Maybe I am just going blind from looking at it and not seeing the >error. > > > >strSQL = "SELECT concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, >Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ > >"FROM [tbl Patterns]" & _ > >"INNER JOIN [tbl WAG] ON [tbl Patterns].[WAG Scheme] = [tbl WAG].[WAG >Scheme]" & _ > >"WHERE Pattern = '" & PatternName & "' " & _ > >"GROUP BY concate, [tbl Patterns].[WAG Scheme], Cum_Toti_hcpv, >Cum_CO2i_hcpv, Cum_Wateri_hcpv, Fluid, Comment" & _ > >"ORDER BY Cum_Toti_hcpv;" > > > >Set MyQDef1 = MyDb.QueryDefs("qry Pattern WAG Scheme") > >MyQDef1.SQL = strSQL > >Set myds1 = MyQDef1.OpenRecordset(). > > > >Chester Kaup > > > -- Marty Connelly Victoria, B.C. Canada From KP at sdsonline.net Thu Jul 28 19:10:15 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 29 Jul 2005 10:10:15 +1000 Subject: [AccessD] Runtime Vs Full Access Install References: Message-ID: <003f01c593d1$e683ea60$6601a8c0@user> I do own Wise and Sagekey,having bought them for a distribution for a client a couple of years ago. Unfortunately I didn't get to learn much after the initial install (which was very successful after a couple of attempts and the support was good). But the company was bought out and they changed platforms so I never moved on to distributing upgrades. So far every one of my clients have had Access so I have gone that way but I am rethinking it. This month one of my clients hit a snag which cost them a day at a crucial time of the month because Frontpage was uninstalled from the PC and I had a reference set to it - that the kind of problem I am getting. Thanks for the advice, Kath ----- Original Message ----- From: connie.kamrowski at agric.nsw.gov.au To: accessd at databaseadvisors.com Sent: Thursday, July 28, 2005 2:46 PM Subject: [AccessD] Runtime Vs Full Access Install Not so impressive, they are not concurrent :) Just potentially so. Databases are not always deployed across all users. I was referencing the fact that we have deployed at least one database to these users and their specific environments and have not had problems. Because of the way sagekey works we have found that as long as we encapsulate all of the things we reference into the sagekey runtime, we have had no issues at all. It may be worth a look at their website http://www.sagekey.com/ for a run down of what it does and what they promise. Just a suggestion but it has worked really well for us with the issues we were having cross deploying and installing upgrades. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax:02 6391 3290 Hi Connie - thanks for the reply. 2500 users? That's pretty impressive. Did you notice William's email? Have you had the version change problems he mentions? Kath This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Fri Jul 29 07:26:57 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 29 Jul 2005 17:56:57 +0530 Subject: [AccessD] Demo To Run for 30 Days References: Message-ID: <021101c59438$e5e4e570$b71865cb@winxp> Julie, Two of my sample db's mentioned below, might be of interest to you. (a) LicenseLock (b) TrialSet These are available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Julie Reardon-Taylor To: accessd at databaseadvisors.com Sent: Tuesday, July 26, 2005 20:30 Subject: [AccessD] Demo To Run for 30 Days I'd like to put a demo on my website as a download and have it run for 30 days, checking the stored date against the system date. I know I've seen this somewhere, but cannot seem to find the code. Can anyone point me in the right direction? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone/Fax: (315) 785-0319 www.pro-soft.net From Lambert.Heenan at AIG.com Fri Jul 29 08:43:16 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 29 Jul 2005 09:43:16 -0400 Subject: [AccessD] OT: Friday Humor Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F13777B15@xlivmbx21.aig.com> A MAGAZINE RECENTLY RAN A "DILBERT QUOTES" CONTEST. IT SOUGHT PEOPLE TO SUBMIT QUOTES FROM THEIR REAL-LIFE "DILBERT-TYPE" MANAGERS. HERE ARE THE TOP TEN FINALISTS: 1. "As of tomorrow, employees will only be able to access the building using individual security cards. Pictures will be taken next Wednesday and employees will receive their cards in two weeks." (The Winner) ----------------------------------------------- 2. "What I need is an exact list of specific unknown problems we might encounter." (Lykes Lines Shipping) ----------------------------------------------- 3. "E-mail is not to be used to pass on information or data. It should be used only for company business." (Accounting manager, Electric Boat Company) ----------------------------------------------- 4. "This project is so important, we can't let things that are more important interfere with it." (Advertising/Marketing manager, United Parcel Service) ----------------------------------------------- 5. "Doing it right is no excuse for not meeting the schedule. (Plant manager, Delco Corporation) ----------------------------------------------- 6. "No one will believe you solved this problem in one day! They've been working on it for months. Now, go act busy for a few weeks and I'll let you know when it's time to tell them." (R&D supervisor, Minnesota Mining and Manufacturing /3M Corp.) ----------------------------------------------- 7. Quote from the Boss: "Teamwork is a lot of people doing what I say." (Marketing executive, Citrix Corporation) ----------------------------------------------- 8. My sister passed away and her funeral was scheduled for Monday. When I told my Boss, he said she died on purpose so that I would have to miss work on the busiest day of the year. He then asked if we could change her burial to Friday. He said, "That would be better for me." (Shipping executive, FTD Florists) 9. "We know that communication is a problem, but the company is not going to discuss it with the employees." (Switching supervisor, AT&T Long Lines Division) LOL, now that's just priceless. ----------------------------------------------- 10. One day my Boss asked me to submit a status report to him concerning a project I was working on. I asked him if tomorrow would be soon enough. He said, "If I wanted it tomorrow, I would have waited until tomorrow to ask for it!" (Hallmark Cards executive) In the midst of great joy, do not promise anyone anything. In the midst of great anger, do not answer anyone's letter. ? Chinese proverb From jimdettman at earthlink.net Sat Jul 30 10:43:32 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Sat, 30 Jul 2005 11:43:32 -0400 Subject: [AccessD] Locking question In-Reply-To: Message-ID: Gary, No, you hit it right on the head. If Access cannot create a LDB file, it opens the MDB/MDE in exclusive mode. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gary Kjos Sent: Wednesday, July 27, 2005 2:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Locking question Hi Bobby, The users need to have File Creation rights in the folder that the BE database lives in so the LDB file can be created. Is there an LDB file being created for the BE when the first user is in there? I think with one user it will allow access without being able to create the LDB file but will lock out the second user? I could be out in left field wandering in my own dream world too of course. I do know that users of our Access databases need full file creation, change and deletion rights in the folder or else it doesn't work. On 7/27/05, Bobby Heid wrote: > Hey, > > Our clients use our system on a network where each user has a FE against the > BE on the server. While the app was originally written to all be on the > local pc, it has migrated to the server. Usually all goes well. > > Well, this one client has some weird happenings going on. One user will be > in the database in any given form. Another user cannot get access to the BE > until the 1st user exits the form they were in. The first thing the app > does is to relink the tables to the last BE that was loaded. It sounds like > there are some sort of issues with locking and the LDB file. > > Anyone have any pointers? > > Thanks, > Bobby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jul 30 23:43:27 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 31 Jul 2005 00:43:27 -0400 Subject: [AccessD] OT: Error 550 Message-ID: <000901c5958a$660f6e80$0300a8c0@ColbyM6805> Does anyone understand what is going on with email sent from inside of specific networks. Here's the situation... I get the following error (as an example): Your message did not reach some or all of the intended recipients. Subject: RE: Logging in to George Sent: 7/29/2005 1:00 PM The following recipient(s) could not be reached: 'Jason Ralph' on 7/29/2005 1:00 PM 550 not local host invohealthcare.com, not a gateway >From my sister-in-law's house when I try to send to this specific address, using SMPT server mail.colbyconsulting.com. If I send mail to myself I do not get this problem (to jwcolby at colbyconsulting.com). I have seen this exact same symptom if sending from my client. It never happened before from my sister-in-law's but is now. It turns out that if I look at her email smtp server (mail.rochester.rr.com), and modify my smtp server to match it works. It appears that this is the classic port 25 blocking thing. It is a royal PITA to have to find out what the correct smtp server is, modify Outlook, and send to that whenever I move from place to place. At my previous host for MY WEB SITE, they had me set up to send on a different port (26 maybe?) and then it worked regardless of where I was since only port 25 was being blocked and my web email server (mail.colbyconsulting.com) was expecting traffic on a different port. The odd part here is that I can send to myself (always), i.e. jwcolby at colbyconsulting.com. That must go on port 25 as well, so why does that go just fine, but not the other message? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From DWUTKA at marlow.com Sat Jul 30 23:51:28 2005 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Sat, 30 Jul 2005 23:51:28 -0500 Subject: [AccessD] OT: Error 550 Message-ID: <123701F54509D9119A4F00D0B747349016DB80@main2.marlow.com> It depends on how they have THEIR mail server setup. With the onslaught of spam, a lot of mail servers get down right finicky on what it will let through. I know my personal domain is/was blocked on several mail servers because the IP's in my domain were listed as dynamic, instead of static, which they WERE static. If the domain of the email you are sending 'from' doesn't match the IP's sending the mail, that's another big 'block'. Then there are several 'black lists' on the web, which store domains considered to be spam. Honestly, it's an issue that is a sore point for me (both spam, and the methods used to block). Drew -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, July 30, 2005 11:43 PM To: 'Access Developers discussion and problem solving'; Tech - Database Advisors Inc. Subject: [AccessD] OT: Error 550 Does anyone understand what is going on with email sent from inside of specific networks. Here's the situation... I get the following error (as an example): Your message did not reach some or all of the intended recipients. Subject: RE: Logging in to George Sent: 7/29/2005 1:00 PM The following recipient(s) could not be reached: 'Jason Ralph' on 7/29/2005 1:00 PM 550 not local host invohealthcare.com, not a gateway >From my sister-in-law's house when I try to send to this specific address, using SMPT server mail.colbyconsulting.com. If I send mail to myself I do not get this problem (to jwcolby at colbyconsulting.com). I have seen this exact same symptom if sending from my client. It never happened before from my sister-in-law's but is now. It turns out that if I look at her email smtp server (mail.rochester.rr.com), and modify my smtp server to match it works. It appears that this is the classic port 25 blocking thing. It is a royal PITA to have to find out what the correct smtp server is, modify Outlook, and send to that whenever I move from place to place. At my previous host for MY WEB SITE, they had me set up to send on a different port (26 maybe?) and then it worked regardless of where I was since only port 25 was being blocked and my web email server (mail.colbyconsulting.com) was expecting traffic on a different port. The odd part here is that I can send to myself (always), i.e. jwcolby at colbyconsulting.com. That must go on port 25 as well, so why does that go just fine, but not the other message? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Jul 31 00:31:17 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 31 Jul 2005 01:31:17 -0400 Subject: [AccessD] OT: Error 550 In-Reply-To: <123701F54509D9119A4F00D0B747349016DB80@main2.marlow.com> Message-ID: <000a01c59591$17cb1970$0300a8c0@ColbyM6805> Yea, but it is more than that. If I just send a test message to myself, it just goes. A few minutes later it comes back in just fine. If I send to one of these other places, it INSTANTLY gets this 550 error in my inbox. If I then change from using mail.colbyconsulting.com as the smtp server address to the "local" smtp address (RR address) it goes out just fine. So it is not a case of "we don't like this destination". It is just forcing me to send through their mail server, but NOT when sending to my own mail server. Truly odd don't you think? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Sunday, July 31, 2005 12:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT: Error 550 It depends on how they have THEIR mail server setup. With the onslaught of spam, a lot of mail servers get down right finicky on what it will let through. I know my personal domain is/was blocked on several mail servers because the IP's in my domain were listed as dynamic, instead of static, which they WERE static. If the domain of the email you are sending 'from' doesn't match the IP's sending the mail, that's another big 'block'. Then there are several 'black lists' on the web, which store domains considered to be spam. Honestly, it's an issue that is a sore point for me (both spam, and the methods used to block). Drew -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, July 30, 2005 11:43 PM To: 'Access Developers discussion and problem solving'; Tech - Database Advisors Inc. Subject: [AccessD] OT: Error 550 Does anyone understand what is going on with email sent from inside of specific networks. Here's the situation... I get the following error (as an example): Your message did not reach some or all of the intended recipients. Subject: RE: Logging in to George Sent: 7/29/2005 1:00 PM The following recipient(s) could not be reached: 'Jason Ralph' on 7/29/2005 1:00 PM 550 not local host invohealthcare.com, not a gateway >From my sister-in-law's house when I try to send to this specific >address, using SMPT server mail.colbyconsulting.com. If I send mail to myself I do not get this problem (to jwcolby at colbyconsulting.com). I have seen this exact same symptom if sending from my client. It never happened before from my sister-in-law's but is now. It turns out that if I look at her email smtp server (mail.rochester.rr.com), and modify my smtp server to match it works. It appears that this is the classic port 25 blocking thing. It is a royal PITA to have to find out what the correct smtp server is, modify Outlook, and send to that whenever I move from place to place. At my previous host for MY WEB SITE, they had me set up to send on a different port (26 maybe?) and then it worked regardless of where I was since only port 25 was being blocked and my web email server (mail.colbyconsulting.com) was expecting traffic on a different port. The odd part here is that I can send to myself (always), i.e. jwcolby at colbyconsulting.com. That must go on port 25 as well, so why does that go just fine, but not the other message? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 joeget at vgernet.net Sun Jul 31 19:02:20 2005 From: joeget at vgernet.net (John Eget) Date: Sun, 31 Jul 2005 20:02:20 -0400 Subject: [AccessD] mde....mdb format Message-ID: <002101c5962c$4d06dcf0$ebc2f63f@Desktop> I have correctly complied and ran a mdb database with no errors, yet when i convert to mde i get the error pop that the command on a click event is not available in a mde/ade format. has anyone came across this before, what happens when i create a mde? Thanks for looking John