From martyconnelly at shaw.ca Tue Jul 1 00:48:03 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 30 Jun 2003 22:48:03 -0700 Subject: [AccessD] Invoking one Access app from another References: <70F3D727890C784291D8433E9C418F298EE6@server.bondsoftware.co.nz> Message-ID: <3F012093.6000509@shaw.ca> Another different method TSI Soon requires installing a dll and vb6 runtime http://www.trigeminal.com/lang/1033/utility.asp?ItemID=8#8 Stephen Bond wrote: >I have two Access apps that have some shared tables. > >I have looked at completely incorporating #2 into #1, but the combined front end would be unwieldy and user-unfriendly if I did that, and the BE would be bigger than I want it to manageably be. > >So, I want to be able to have a command button on the >master menu of FE#1 which would invoke FE#2. > >I'm sure this is simple - could someone start me off please. > >TIA > >Stephen Bond >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > From Erwin.Craps at ithelps.be Tue Jul 1 01:50:56 2003 From: Erwin.Craps at ithelps.be (Erwin Craps) Date: Tue, 1 Jul 2003 08:50:56 +0200 Subject: [AccessD] DSUM - full solution for those interested - RE: su bquery assistance Message-ID: <104AB6116A2DD511A7580008C7097A9821996E@AARDBEI> Hi Gustav/David. I'm not sure of that. Date do pose gigantic problems in everything that looks like a SQL statement in VBA. If the date structure of your country is not american you gonna get real trouble. SQL string in VBA need to be build with American dates. I believe there are ways to use ISO dates but than you need to format to. Never use half or long dates line 1 jun 2003. If the windows is set to other language it will crash. At least when using SQL server for this last issue. Erwin -----Oorspronkelijk bericht----- Van: Gustav Brock [mailto:gustav at cactus.dk] Verzonden: zondag 29 juni 2003 14:15 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] DSUM - full solution for those interested - RE: subquery assistance Hi David As you have specified datStartDate and datEndDate as date/time there should really be no reason to use Format() wrapped in crosses (#) as that just leaves you with the date/time value again. If StartDate and EndDate are names of date/time fields of the table, this should do as you compare date/time values with date/time values: strCriteria = "(CampusID=" & intCampus _ & ") AND (StartDate > " datStartDate & ") " _ & "AND (EndDate < " & datEnddate & ")" /gustav Public Function TotalHolidayWeeks(intCampus As Integer, datStartDate As Date, datEnddate As Date) As Integer 'Calculates the number of weeks holiday for a campus between two given dates Dim strCriteria As String strCriteria = "(CampusID=" & intCampus _ & ") AND ((StartDate) > #" & Format(datStartDate, "dd/mmm/yyyy") & "#) " _ & "AND ((EndDate) < #" & Format(datEnddate, "dd/mmm/yyyy") & "#)" TotalHolidayWeeks = Nz(DSum("Weeks", "tblCourseHolidays", strCriteria), 0) End Function _______________________________________________ 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 1 02:21:44 2003 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 1 Jul 2003 09:21:44 +0200 Subject: [AccessD] Error Message: The field is to small to accept the amount of data you tried to add. Try inserting or pasting less data In-Reply-To: References: Message-ID: <615890980.20030701092144@cactus.dk> Hi jeffrey If updating/appending a recordset in code you can use something like this: Set fld = rstA!TextA fld.Value = Left(rstB!SomeField & strString, fld.Size) For a query I believe you'll have to create an external function to obtain the size of the receiving text field. Here's a quick one-liner for this purpose: Public Function FieldSize( _ ByVal strTable As String, _ ByVal strField As String) As Byte On Error Resume Next FieldSize = DBEngine(0)(0).TableDefs(strTable).Fields(strField).Size End Function Now, put this in your query: UPDATE TableA SET Test = Left("longstring",FieldSize("TableA","Test")); However, DAO SQL seems to do an automatic truncation as this simplified code neither will fail: UPDATE TableA SET Test = "longstring"; Thus your problem may be a Unicode issue. Have you looked at the StrConv() function and the vbUnicode/vbFromUnicode constants? /gustav > I understand what you are saying. Now the question becomes, how can > I determine how many ASCII characters are being returned? When I > try using LEN(<>) in A2K it returns 255. I have not > tried it using the Query Analyzer in SQL Server yet. > Subject: RE: [AccessD] Error Message: The field is to > small to accept the amount of data you tried to add. Try inserting > or pasting less data > Well I count 258 characters in the data, so the error message is > totally on the mark (odd for Access). > I suspect that SQL server is passing back all 258 ASCII characters, > which is why A97 chokes. But A2K is Unicode character savvy, so I > think it can handle 510 ASCII characters, or 255 Unicode ones. From R.Griffiths at bury.gov.uk Tue Jul 1 02:59:01 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 08:59:01 +0100 Subject: [AccessD] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Hi Does anyone have the equivalent code snipet to get the same functionality as SysCmd(acSysCmdAccessDir) from within a VB app Thanks Richard Manchester, UK From roz.clarke at donnslaw.co.uk Tue Jul 1 03:18:20 2003 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 1 Jul 2003 09:18:20 +0100 Subject: [AccessD] Calling control (WAS How do I determine which form called?) Message-ID: <61F915314798D311A2F800A0C9C83188047C5F56@dibble.observatory.donnslaw.co.uk> This is interesting. I need to do something sort of similar... I have an unbound text box on an unbound form which I want to use to display memo fields that are too small to display all their data in the controls on my main forms. To get the data out is easy - screen.activecontrol will do it. But then if they amend the data I need to get the new string back into the right control on the right form. Trouble is it could be up to 3 layers deep on subforms and as far as I can tell, to get the data back in I need to build a full reference to the calling control e.g. Forms!frmLevel1!frmLevel2.form!frmLevel3.form!ctrlCalling Does anyone have an idea of how I could do this when I don't know how many forms are involved??? TIA Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 30 June 2003 18:13 To: Access Developers discussion and problem solving Subject: RE: [AccessD] How do I determine which form called? I make CalledFrom a property of my forms. Then I can pass the calling form's name in the OpenArgs string and let the called form populate its own property. When I close the called form, it checks its CalledFrom property and goes back to that. In 2002 you can do this with Reports as well. Charlotte Foust -----Original Message----- From: Hale, Jim [mailto:jim.hale at fleetpride.com] Sent: Monday, June 30, 2003 6:04 AM To: 'Access DatabaseAdvisors (E-Mail)' Subject: [AccessD] How do I determine which form called? Does anyone have a function that will allow a class to determine which form called it? TIA Jim Hale -------------- next part -------------- An HTML attachment was scrubbed... URL: From gustav at cactus.dk Tue Jul 1 04:43:14 2003 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 1 Jul 2003 11:43:14 +0200 Subject: [AccessD] DSUM - full solution for those interested - RE: su bquery assistance In-Reply-To: <104AB6116A2DD511A7580008C7097A9821996E@AARDBEI> References: <104AB6116A2DD511A7580008C7097A9821996E@AARDBEI> Message-ID: <2814380898.20030701114314@cactus.dk> Hi Erwin You are correct, I was too fast, sorry. David, the trap is that sometimes (for certain local settings) date comparisons will work, sometimes (for some other local settings) they will not because Access - when building the string - will replace datStartDate and datEndDate with a string representation based on the local settings which the SQL tries to interpret wearing US glasses. To repeat my own posting from last year: --- Date: Tue, 06 Aug 2002 09:36:46 +0200 From: Gustav Brock Subject: Re: [AccessD] date/time format SOLVED Hi Bob For completeness, here's a function we use when building SQL strings with dates to save a lot of typing. It uses "the Lembit method" with escape characters to ignore local settings of date/time separators which otherwise will fool the Format function. Public Function StrDateSQL(ByVal dat As Date) As String ' Formats full string of date/time in US format for SQL. ' Overrides local (non US) settings for date/time separators. ' Example output: ' ' #08/16/1998 04:03:36 PM# ' ' 1999-10-21. Cactus Data ApS, CPH. StrDateSQL = Format(dat, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") End Function --- Thus your code should be modified using this: strCriteria = "(CampusID=" & intCampus _ & ") AND (StartDate > " & StrDateSQL(datStartDate) & ") " _ & "AND (EndDate < " & StrDateSQL(datEnddate) & ")" Sorry for the confusion. /gustav > Hi Gustav/David. > I'm not sure of that. > Date do pose gigantic problems in everything that looks like a SQL statement > in VBA. > If the date structure of your country is not american you gonna get real > trouble. > SQL string in VBA need to be build with American dates. > I believe there are ways to use ISO dates but than you need to format to. > Never use half or long dates line 1 jun 2003. If the windows is set to other > language it will crash. > At least when using SQL server for this last issue. > Erwin > -----Oorspronkelijk bericht----- > Van: Gustav Brock [mailto:gustav at cactus.dk] > Verzonden: zondag 29 juni 2003 14:15 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] DSUM - full solution for those interested - RE: > subquery assistance > Hi David > As you have specified datStartDate and datEndDate as date/time there should > really be no reason to use Format() wrapped in crosses (#) as that just > leaves you with the date/time value again. > If StartDate and EndDate are names of date/time fields of the table, this > should do as you compare date/time values with date/time values: > strCriteria = "(CampusID=" & intCampus _ > & ") AND (StartDate > " datStartDate & ") " _ > & "AND (EndDate < " & datEnddate & ")" > /gustav > Public Function TotalHolidayWeeks(intCampus As Integer, datStartDate As > Date, datEnddate As Date) As Integer > 'Calculates the number of weeks holiday for a campus between two given > dates > Dim strCriteria As String > strCriteria = "(CampusID=" & intCampus _ > & ") AND ((StartDate) > #" & Format(datStartDate, "dd/mmm/yyyy") & > "#) " _ > & "AND ((EndDate) < #" & Format(datEnddate, "dd/mmm/yyyy") & "#)" > TotalHolidayWeeks = Nz(DSum("Weeks", "tblCourseHolidays", strCriteria), > 0) > End Function From paul.hartland at fsmail.net Tue Jul 1 05:13:05 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 1 Jul 2003 10:13:05 +0000 Subject: [AccessD] Visual Basic 6 - Email Using MAPI Controls Message-ID: <20030701101305.BNA4720.fep07-svc.ttys.com@localhost> To all, I have a VB6 FE connecting to a SQL Server 7.0 BE using a very simple personnel form (payroll number, address etc). When a user changes a payroll number I want to send an email to HR, but also CC to IT Programmers. I have a data environment with a recordset looking at tblUsers which has their email addresses and deptartment or job title in. I am using the code below but I get the error message something like 'invalid recipients', but if I just enter my name as normal in the CC (i.e. Paul Hartland) then it works fine, if I try and pick it from the recordset the error message occurs again, even though my name in the database is Paul Hartland ???...Can anyone see anything wrong with the code below..........Watch for wrapping....... If (DEGenSQL.rstblUsers.State = adStateOpen) Then DEGenSQL.rstblUsers.Close End If DEGenSQL.tblUsers pubEmailSub = "" pubEmailBody = "" MAPISession1.SignOn MAPIMessages1.MsgIndex = -1 MAPIMessages1.RecipType = 1 With DEGenSQL.rstblUsers .MoveFirst Do Until (.EOF) If (.Fields("DeptOrJob") = "HR") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop .MoveFirst MAPIMessages1.RecipType = 2 Do Until (.EOF) If (.Fields("DeptOrJob") = "IT Programmer") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop End With DEGenSQL.rstblUsers.Close pubEmailSub = "**** THIS IS A TEST - PLEASE DELETE THIS EMAIL ****" 'pubEmailSub = "Payroll Number has been Changed" pubEmailBody = ?Payroll number changed? MAPIMessages1.MsgSubject = pubEmailSub MAPIMessages1.MsgNoteText = pubEmailBody MAPIMessages1.SessionID = MAPISession1.SessionID MAPIMessages1.Send False MAPISession1.SignOff Thanks in advance for any help...... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From R.Griffiths at bury.gov.uk Tue Jul 1 06:26:31 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 12:26:31 +0100 Subject: [AccessD] XP Quirk? Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D9@MAILGATE.bury.gov.uk> Hi I am using A97 to export a file (using VBA code docmd.TransferText etc.....acExportFixed) to C:\myfilename. Hit a problem on a new XP machine with this installed - get error 'Database or Object Read Only' when I try to export. However if I export to C:\myfilename.txt it works - its as if XP requiries an extension - anyone else come across this or can offer an explanation. Cheers Richard Manchester,UK From stuart at lexacorp.com.pg Tue Jul 1 08:19:33 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Jul 2003 23:19:33 +1000 Subject: [AccessD] OT:SysCmd(acSysCmdAccessDir) In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Message-ID: <3F021705.27746.2306322@localhost> On 1 Jul 2003 at 8:59, Griffiths, Richard wrote: > Hi > > Does anyone have the equivalent code snipet to get the same functionality as > SysCmd(acSysCmdAccessDir) from within a VB app > I had something in my toolbox which looked in the registry to get the "Shell Open" command for any registered file extension. With a bit of tweaking, I came up with this which works for me: Public Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long Public Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As String, lpcbData As Long) As Long ' Note that if you declare the lpData parameter as String, you must pass it By Value. Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long Public Const HKEY_CLASSES_ROOT = &H80000000 Public Const KEY_QUERY_VALUE = &H1 Public Const REG_SZ = 1 Function AccessDir() As String 'Get the executable directory for the current version of MS Access from the registry Dim retval As Long Dim hKey As Long Dim strAppName As String Dim strExtension As String Dim strOpenCommand As String Dim strpathname As String strAppName = Space$(255) strpathname = Space$(255) 'Get the Application name for the current version of Access strExtension = ".mdb" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strExtension, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strAppName, 256) retval = RegCloseKey(hKey) strAppName = Left$(strAppName, InStr(strAppName, Chr$(0)) - 1) 'Get Open Command for the Access Application strOpenCommand = strAppName & "\shell\Open\command" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strOpenCommand, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strpathname, 256) retval = RegCloseKey(hKey) 'Extract Application Directory from the Open Command 'First get the full executable path and filename ' assuming executable is quoted which it always is in my experience strpathname = Trim$(Left$(strpathname, InStr(2, strpathname, Chr$(34)))) 'Now strip off the application filename AccessDir = Left$(strpathname, InStrRev(strpathname, "\")) End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jcolby at colbyconsulting.com Tue Jul 1 08:25:06 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 1 Jul 2003 09:25:06 -0400 Subject: [AccessD] weird query def In-Reply-To: Message-ID: I've discovered what the problem is. The query in question uses a function to append City, State and zip into a single string. That function is defined in code in the FE where the query resides. Without that field in the query its fields show up in the query def. With that function in the query, the qureydef thinks it has no fields. This seems pretty strange to me since I am using the code that Gustav provided, opening the FE as a database, setting a qdf from its querydefs collection and manipulating that. You'd think it could see the functions inside the database but apparently not. This is a real show stopper since the wizard needs to be able to grab the query field names to match against the bookmarks in the doc being merged. Bummer! John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Monday, June 30, 2003 12:57 PM To: AccessD Subject: [AccessD] weird query def I have a weird one. I am opening a query def and reading all of the field names out into a comma delimited string to use as a row source for a combo. All that stuff works. One of the queries in the db I am trying to work on says it has NO fields. If I execute the query I get data. If I look at the querydef itself, I can see the name of the query, the SQL property, etc. But ask it for the .Fields.Count and it comes back 0. Very unsettling since I need to use this method for displaying field names to the user to select to match against document book marks in a mail merge wizard. I compacted / repaired both the wizard as well as the FE that actually holds the query in question. Two other queries that I am performing this operation on work perfectly. One apparently has no fields. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Tue Jul 1 08:50:27 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Tue, 1 Jul 2003 09:50:27 -0400 Subject: [AccessD] weird query def In-Reply-To: Message-ID: <000001c33fd7$be3f3dc0$bb350cd8@hargrove.internal> Could it be a null concatenation problem? 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 John Colby Sent: Tuesday, July 01, 2003 9:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def I've discovered what the problem is. The query in question uses a function to append City, State and zip into a single string. That function is defined in code in the FE where the query resides. Without that field in the query its fields show up in the query def. With that function in the query, the qureydef thinks it has no fields. This seems pretty strange to me since I am using the code that Gustav provided, opening the FE as a database, setting a qdf from its querydefs collection and manipulating that. You'd think it could see the functions inside the database but apparently not. This is a real show stopper since the wizard needs to be able to grab the query field names to match against the bookmarks in the doc being merged. Bummer! John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Monday, June 30, 2003 12:57 PM To: AccessD Subject: [AccessD] weird query def I have a weird one. I am opening a query def and reading all of the field names out into a comma delimited string to use as a row source for a combo. All that stuff works. One of the queries in the db I am trying to work on says it has NO fields. If I execute the query I get data. If I look at the querydef itself, I can see the name of the query, the SQL property, etc. But ask it for the .Fields.Count and it comes back 0. Very unsettling since I need to use this method for displaying field names to the user to select to match against document book marks in a mail merge wizard. I compacted / repaired both the wizard as well as the FE that actually holds the query in question. Two other queries that I am performing this operation on work perfectly. One apparently has no fields. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Jul 1 09:05:42 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 1 Jul 2003 10:05:42 -0400 Subject: [AccessD] weird query def In-Reply-To: <000001c33fd7$be3f3dc0$bb350cd8@hargrove.internal> Message-ID: >Could it be a null concatenation problem? The query was filtered such that it returned no data and the querydef still says it has no fields. In the end it doesn't matter why it happens, only that it does. I am trying to build a system where a database administrator sets up mail merge documents by selecting a query, a merge doc, and then the wizard allows him to select (match) a field from the query and a bookmark from the doc. It is easy to do this manually for a single document but I have a system where they will have dozens of documents, and want to be able to add tem as they need. The wizard needs to allow the dba to easily set up a new document for mail merge visually, in an Access form. It was all working, but it was embedded inside the database where the mail merge was taking place. I am trying to extract the concept into an MDA and make it a true wizard, that can be used from any FE by anyone with the smarts to understand the concept. This problem didn't exist before simply because the entire thing was performed inside the FE itself. In fact the combo displaying the query field list did so simply by using the field list row source type. Doing that requires the QUERY to be inside the wizard, a no-no since the query belongs to the FE OR that the wizard be inside the FE which makes it non-portable. Thus my attempt to generate a comma delimited list of field names for the combo to use with a value list row source type. This actually works quite well with most queries. However as soon as you build a query with an aliased field where the data returned is run through a custom function inside the FE where the query is stored, the querydef field list "disappears". Yep, just disappears. No fields in the querydef.fields collection! 8-( John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike and Doris Manning Sent: Tuesday, July 01, 2003 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def Could it be a null concatenation problem? 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 John Colby Sent: Tuesday, July 01, 2003 9:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def I've discovered what the problem is. The query in question uses a function to append City, State and zip into a single string. That function is defined in code in the FE where the query resides. Without that field in the query its fields show up in the query def. With that function in the query, the qureydef thinks it has no fields. This seems pretty strange to me since I am using the code that Gustav provided, opening the FE as a database, setting a qdf from its querydefs collection and manipulating that. You'd think it could see the functions inside the database but apparently not. This is a real show stopper since the wizard needs to be able to grab the query field names to match against the bookmarks in the doc being merged. Bummer! John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Monday, June 30, 2003 12:57 PM To: AccessD Subject: [AccessD] weird query def I have a weird one. I am opening a query def and reading all of the field names out into a comma delimited string to use as a row source for a combo. All that stuff works. One of the queries in the db I am trying to work on says it has NO fields. If I execute the query I get data. If I look at the querydef itself, I can see the name of the query, the SQL property, etc. But ask it for the .Fields.Count and it comes back 0. Very unsettling since I need to use this method for displaying field names to the user to select to match against document book marks in a mail merge wizard. I compacted / repaired both the wizard as well as the FE that actually holds the query in question. Two other queries that I am performing this operation on work perfectly. One apparently has no fields. John W. Colby www.colbyconsulting.com From subs at solution-providers.ie Tue Jul 1 09:11:57 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Tue, 1 Jul 2003 15:11:57 +0100 Subject: [AccessD] Calling control (WAS How do I determine which form called?) References: <61F915314798D311A2F800A0C9C83188047C5F56@dibble.observatory.donnslaw.co.uk> Message-ID: <017801c33fda$c5aebf10$c86da8c0@D8TZHN0J> MessageHello Roz, I did exactly what Charlotte describes below. I called it 'CallingForm'. It works well once you get it set up. I also used all modal forms but turned them invisible when they called a subform. So the user only ever sees one form. But magically (as far as the programmer is concerned) they turn back on in sequence. The temptation is to hardwire the turning on and off, but that makes the system much less flexible. I am not sure where you will have to acquire the data and where it will be saved to the db, you seem to be suggesting that you will acquire at form three, but will save it at form one. I presume that if you get the calling form working, you will just pass the data back along with it. I cannot remember exactly which way I did it, but if you want anymore info, just shout, I guess you will have no difficulty. Regards Mark ----- Original Message ----- From: Roz Clarke To: 'Access Developers discussion and problem solving' Sent: Tuesday, July 01, 2003 9:18 AM Subject: [AccessD] Calling control (WAS How do I determine which form called?) This is interesting. I need to do something sort of similar... I have an unbound text box on an unbound form which I want to use to display memo fields that are too small to display all their data in the controls on my main forms. To get the data out is easy - screen.activecontrol will do it. But then if they amend the data I need to get the new string back into the right control on the right form. Trouble is it could be up to 3 layers deep on subforms and as far as I can tell, to get the data back in I need to build a full reference to the calling control e.g. Forms!frmLevel1!frmLevel2.form!frmLevel3.form!ctrlCalling Does anyone have an idea of how I could do this when I don't know how many forms are involved??? TIA Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 30 June 2003 18:13 To: Access Developers discussion and problem solving Subject: RE: [AccessD] How do I determine which form called? I make CalledFrom a property of my forms. Then I can pass the calling form's name in the OpenArgs string and let the called form populate its own property. When I close the called form, it checks its CalledFrom property and goes back to that. In 2002 you can do this with Reports as well. Charlotte Foust -----Original Message----- From: Hale, Jim [mailto:jim.hale at fleetpride.com] Sent: Monday, June 30, 2003 6:04 AM To: 'Access DatabaseAdvisors (E-Mail)' Subject: [AccessD] How do I determine which form called? Does anyone have a function that will allow a class to determine which form called it? TIA Jim Hale ------------------------------------------------------------------------------ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim.hale at fleetpride.com Tue Jul 1 09:17:50 2003 From: jim.hale at fleetpride.com (Hale, Jim) Date: Tue, 1 Jul 2003 09:17:50 -0500 Subject: [AccessD] weird query def Message-ID: <869379ABF177D4118D3100508B5EF8730676C0B7@corp-es00> Could you use a sub query to build the string instead of a function? I've run into similar problems trying to run queries in a FE from Excel where the criteria for the query was determined by a function. The solution was to use a sub query in place of the function. Jim Hale -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, July 01, 2003 9:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def >Could it be a null concatenation problem? The query was filtered such that it returned no data and the querydef still says it has no fields. In the end it doesn't matter why it happens, only that it does. I am trying to build a system where a database administrator sets up mail merge documents by selecting a query, a merge doc, and then the wizard allows him to select (match) a field from the query and a bookmark from the doc. It is easy to do this manually for a single document but I have a system where they will have dozens of documents, and want to be able to add tem as they need. The wizard needs to allow the dba to easily set up a new document for mail merge visually, in an Access form. It was all working, but it was embedded inside the database where the mail merge was taking place. I am trying to extract the concept into an MDA and make it a true wizard, that can be used from any FE by anyone with the smarts to understand the concept. This problem didn't exist before simply because the entire thing was performed inside the FE itself. In fact the combo displaying the query field list did so simply by using the field list row source type. Doing that requires the QUERY to be inside the wizard, a no-no since the query belongs to the FE OR that the wizard be inside the FE which makes it non-portable. Thus my attempt to generate a comma delimited list of field names for the combo to use with a value list row source type. This actually works quite well with most queries. However as soon as you build a query with an aliased field where the data returned is run through a custom function inside the FE where the query is stored, the querydef field list "disappears". Yep, just disappears. No fields in the querydef.fields collection! 8-( John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike and Doris Manning Sent: Tuesday, July 01, 2003 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def Could it be a null concatenation problem? 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 John Colby Sent: Tuesday, July 01, 2003 9:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def I've discovered what the problem is. The query in question uses a function to append City, State and zip into a single string. That function is defined in code in the FE where the query resides. Without that field in the query its fields show up in the query def. With that function in the query, the qureydef thinks it has no fields. This seems pretty strange to me since I am using the code that Gustav provided, opening the FE as a database, setting a qdf from its querydefs collection and manipulating that. You'd think it could see the functions inside the database but apparently not. This is a real show stopper since the wizard needs to be able to grab the query field names to match against the bookmarks in the doc being merged. Bummer! John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Monday, June 30, 2003 12:57 PM To: AccessD Subject: [AccessD] weird query def I have a weird one. I am opening a query def and reading all of the field names out into a comma delimited string to use as a row source for a combo. All that stuff works. One of the queries in the db I am trying to work on says it has NO fields. If I execute the query I get data. If I look at the querydef itself, I can see the name of the query, the SQL property, etc. But ask it for the .Fields.Count and it comes back 0. Very unsettling since I need to use this method for displaying field names to the user to select to match against document book marks in a mail merge wizard. I compacted / repaired both the wizard as well as the FE that actually holds the query in question. Two other queries that I am performing this operation on work perfectly. One apparently has no fields. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jimdettman at earthlink.net Tue Jul 1 09:25:56 2003 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 1 Jul 2003 10:25:56 -0400 Subject: [AccessD] weird query def In-Reply-To: Message-ID: John, I'm glad I never tried to extend that interface into a MDA. Sounds like it's a real problem. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Tuesday, July 01, 2003 10:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def >Could it be a null concatenation problem? The query was filtered such that it returned no data and the querydef still says it has no fields. In the end it doesn't matter why it happens, only that it does. I am trying to build a system where a database administrator sets up mail merge documents by selecting a query, a merge doc, and then the wizard allows him to select (match) a field from the query and a bookmark from the doc. It is easy to do this manually for a single document but I have a system where they will have dozens of documents, and want to be able to add tem as they need. The wizard needs to allow the dba to easily set up a new document for mail merge visually, in an Access form. It was all working, but it was embedded inside the database where the mail merge was taking place. I am trying to extract the concept into an MDA and make it a true wizard, that can be used from any FE by anyone with the smarts to understand the concept. This problem didn't exist before simply because the entire thing was performed inside the FE itself. In fact the combo displaying the query field list did so simply by using the field list row source type. Doing that requires the QUERY to be inside the wizard, a no-no since the query belongs to the FE OR that the wizard be inside the FE which makes it non-portable. Thus my attempt to generate a comma delimited list of field names for the combo to use with a value list row source type. This actually works quite well with most queries. However as soon as you build a query with an aliased field where the data returned is run through a custom function inside the FE where the query is stored, the querydef field list "disappears". Yep, just disappears. No fields in the querydef.fields collection! 8-( John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike and Doris Manning Sent: Tuesday, July 01, 2003 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def Could it be a null concatenation problem? 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 John Colby Sent: Tuesday, July 01, 2003 9:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def I've discovered what the problem is. The query in question uses a function to append City, State and zip into a single string. That function is defined in code in the FE where the query resides. Without that field in the query its fields show up in the query def. With that function in the query, the qureydef thinks it has no fields. This seems pretty strange to me since I am using the code that Gustav provided, opening the FE as a database, setting a qdf from its querydefs collection and manipulating that. You'd think it could see the functions inside the database but apparently not. This is a real show stopper since the wizard needs to be able to grab the query field names to match against the bookmarks in the doc being merged. Bummer! John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Monday, June 30, 2003 12:57 PM To: AccessD Subject: [AccessD] weird query def I have a weird one. I am opening a query def and reading all of the field names out into a comma delimited string to use as a row source for a combo. All that stuff works. One of the queries in the db I am trying to work on says it has NO fields. If I execute the query I get data. If I look at the querydef itself, I can see the name of the query, the SQL property, etc. But ask it for the .Fields.Count and it comes back 0. Very unsettling since I need to use this method for displaying field names to the user to select to match against document book marks in a mail merge wizard. I compacted / repaired both the wizard as well as the FE that actually holds the query in question. Two other queries that I am performing this operation on work perfectly. One apparently has no fields. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Jul 1 09:35:16 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 1 Jul 2003 10:35:16 -0400 Subject: [AccessD] weird query def In-Reply-To: <869379ABF177D4118D3100508B5EF8730676C0B7@corp-es00> Message-ID: RE: [AccessD] weird query defSure, there are other options. I use functions because you can pass data into vars and check for nulls, append the data differently if the dat coming in is null etc. The point here is that it is not good to build a wizard that forces the developer to modify their way of doing business to adapt to the wizard. Especially when it could impact dozens of queries in something like this. I have standard City / state / zip functions (and other similar) that I use to extract this data from anywhere and get it all in place for labels and the likes. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hale, Jim Sent: Tuesday, July 01, 2003 10:18 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def Could you use a sub query to build the string instead of a function? I've run into similar problems trying to run queries in a FE from Excel where the criteria for the query was determined by a function. The solution was to use a sub query in place of the function. Jim Hale -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, July 01, 2003 9:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def >Could it be a null concatenation problem? The query was filtered such that it returned no data and the querydef still says it has no fields. In the end it doesn't matter why it happens, only that it does. I am trying to build a system where a database administrator sets up mail merge documents by selecting a query, a merge doc, and then the wizard allows him to select (match) a field from the query and a bookmark from the doc. It is easy to do this manually for a single document but I have a system where they will have dozens of documents, and want to be able to add tem as they need. The wizard needs to allow the dba to easily set up a new document for mail merge visually, in an Access form. It was all working, but it was embedded inside the database where the mail merge was taking place. I am trying to extract the concept into an MDA and make it a true wizard, that can be used from any FE by anyone with the smarts to understand the concept. This problem didn't exist before simply because the entire thing was performed inside the FE itself. In fact the combo displaying the query field list did so simply by using the field list row source type. Doing that requires the QUERY to be inside the wizard, a no-no since the query belongs to the FE OR that the wizard be inside the FE which makes it non-portable. Thus my attempt to generate a comma delimited list of field names for the combo to use with a value list row source type. This actually works quite well with most queries. However as soon as you build a query with an aliased field where the data returned is run through a custom function inside the FE where the query is stored, the querydef field list "disappears". Yep, just disappears. No fields in the querydef.fields collection! 8-( John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike and Doris Manning Sent: Tuesday, July 01, 2003 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def Could it be a null concatenation problem? 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 John Colby Sent: Tuesday, July 01, 2003 9:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def I've discovered what the problem is. The query in question uses a function to append City, State and zip into a single string. That function is defined in code in the FE where the query resides. Without that field in the query its fields show up in the query def. With that function in the query, the qureydef thinks it has no fields. This seems pretty strange to me since I am using the code that Gustav provided, opening the FE as a database, setting a qdf from its querydefs collection and manipulating that. You'd think it could see the functions inside the database but apparently not. This is a real show stopper since the wizard needs to be able to grab the query field names to match against the bookmarks in the doc being merged. Bummer! John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Monday, June 30, 2003 12:57 PM To: AccessD Subject: [AccessD] weird query def I have a weird one. I am opening a query def and reading all of the field names out into a comma delimited string to use as a row source for a combo. All that stuff works. One of the queries in the db I am trying to work on says it has NO fields. If I execute the query I get data. If I look at the querydef itself, I can see the name of the query, the SQL property, etc. But ask it for the .Fields.Count and it comes back 0. Very unsettling since I need to use this method for displaying field names to the user to select to match against document book marks in a mail merge wizard. I compacted / repaired both the wizard as well as the FE that actually holds the query in question. Two other queries that I am performing this operation on work perfectly. One apparently has no fields. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gustav at cactus.dk Tue Jul 1 09:35:10 2003 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 1 Jul 2003 16:35:10 +0200 Subject: [AccessD] weird query def In-Reply-To: References: Message-ID: <6631896965.20030701163510@cactus.dk> Hi John You could retrieve the .SQL and parse that for field names. To eliminate functions and concatenations from the parsing routine, you can "shell" a delicate query in a straight select query which just retrieves the specified field names from the first query; then all you need is to look up "SELECT" and pick last word in front of each comma until "FROM". That should be easy for you to build. Then - ahemm - don't you ever learn (I'm not to good, that's why I can ask, see my post today to Erwin): > .. to generate a comma delimited list of field names for > the combo to use with a value list row source type. That should be a semicolon separated list. Look up the semicolon discussion 2002-12-19 with Charlotte, Shamil and me under the subject: Internationalization ... Again Now, did I destroy your day with that word? /gustav >>Could it be a null concatenation problem? > The query was filtered such that it returned no data and the querydef still > says it has no fields. In the end it doesn't matter why it happens, only > that it does. I am trying to build a system where a database administrator > sets up mail merge documents by selecting a query, a merge doc, and then the > wizard allows him to select (match) a field from the query and a bookmark > from the doc. It is easy to do this manually for a single document but I > have a system where they will have dozens of documents, and want to be able > to add tem as they need. The wizard needs to allow the dba to easily set up > a new document for mail merge visually, in an Access form. > It was all working, but it was embedded inside the database where the mail > merge was taking place. I am trying to extract the concept into an MDA and > make it a true wizard, that can be used from any FE by anyone with the > smarts to understand the concept. This problem didn't exist before simply > because the entire thing was performed inside the FE itself. In fact the > combo displaying the query field list did so simply by using the field list > row source type. Doing that requires the QUERY to be inside the wizard, a > no-no since the query belongs to the FE OR that the wizard be inside the FE > which makes it non-portable. Thus my attempt to generate a comma delimited > list of field names for the combo to use with a value list row source type. > This actually works quite well with most queries. However as soon as you > build a query with an aliased field where the data returned is run through a > custom function inside the FE where the query is stored, the querydef field > list "disappears". Yep, just disappears. No fields in the querydef.fields > collection! > 8-( > John W. Colby > www.colbyconsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike and Doris > Manning > Sent: Tuesday, July 01, 2003 9:50 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] weird query def > Could it be a null concatenation problem? > 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 John Colby > Sent: Tuesday, July 01, 2003 9:25 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] weird query def > I've discovered what the problem is. The query in question uses a function > to append City, State and zip into a single string. That function is > defined in code in the FE where the query resides. Without that field in > the query its fields show up in the query def. With that function in the > query, the qureydef thinks it has no fields. This seems pretty strange to > me since I am using the code that Gustav provided, opening the FE as a > database, setting a qdf from its querydefs collection and manipulating that. > You'd think it could see the functions inside the database but apparently > not. > This is a real show stopper since the wizard needs to be able to grab the > query field names to match against the bookmarks in the doc being merged. From cfoust at infostatsystems.com Tue Jul 1 10:00:38 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 1 Jul 2003 08:00:38 -0700 Subject: [AccessD] Calling control (WAS How do I determine which form called?) Message-ID: Have you tried raising a custom event from the unbound form and sinking the event on the form that needs to retrieve the information? Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, July 01, 2003 12:18 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calling control (WAS How do I determine which form called?) This is interesting. I need to do something sort of similar... I have an unbound text box on an unbound form which I want to use to display memo fields that are too small to display all their data in the controls on my main forms. To get the data out is easy - screen.activecontrol will do it. But then if they amend the data I need to get the new string back into the right control on the right form. Trouble is it could be up to 3 layers deep on subforms and as far as I can tell, to get the data back in I need to build a full reference to the calling control e.g. Forms!frmLevel1!frmLevel2.form!frmLevel3.form!ctrlCalling Does anyone have an idea of how I could do this when I don't know how many forms are involved??? TIA Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 30 June 2003 18:13 To: Access Developers discussion and problem solving Subject: RE: [AccessD] How do I determine which form called? I make CalledFrom a property of my forms. Then I can pass the calling form's name in the OpenArgs string and let the called form populate its own property. When I close the called form, it checks its CalledFrom property and goes back to that. In 2002 you can do this with Reports as well. Charlotte Foust -----Original Message----- From: Hale, Jim [mailto:jim.hale at fleetpride.com] Sent: Monday, June 30, 2003 6:04 AM To: 'Access DatabaseAdvisors (E-Mail)' Subject: [AccessD] How do I determine which form called? Does anyone have a function that will allow a class to determine which form called it? TIA Jim Hale -------------- next part -------------- An HTML attachment was scrubbed... URL: From Lists at theopg.com Tue Jul 1 10:02:18 2003 From: Lists at theopg.com (Mark H) Date: Tue, 1 Jul 2003 16:02:18 +0100 Subject: [AccessD] weird query def In-Reply-To: Message-ID: <001401c33fe1$c4364bb0$880d6bd5@netboxxp> This may be rubbish, but could you create a recordset from the query and then pick up the field names from that instead? Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, July 01, 2003 9:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def I've discovered what the problem is. The query in question uses a function to append City, State and zip into a single string. That function is defined in code in the FE where the query resides. Without that field in the query its fields show up in the query def. With that function in the query, the qureydef thinks it has no fields. This seems pretty strange to me since I am using the code that Gustav provided, opening the FE as a database, setting a qdf from its querydefs collection and manipulating that. You'd think it could see the functions inside the database but apparently not. This is a real show stopper since the wizard needs to be able to grab the query field names to match against the bookmarks in the doc being merged. Bummer! John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Monday, June 30, 2003 12:57 PM To: AccessD Subject: [AccessD] weird query def I have a weird one. I am opening a query def and reading all of the field names out into a comma delimited string to use as a row source for a combo. All that stuff works. One of the queries in the db I am trying to work on says it has NO fields. If I execute the query I get data. If I look at the querydef itself, I can see the name of the query, the SQL property, etc. But ask it for the .Fields.Count and it comes back 0. Very unsettling since I need to use this method for displaying field names to the user to select to match against document book marks in a mail merge wizard. I compacted / repaired both the wizard as well as the FE that actually holds the query in question. Two other queries that I am performing this operation on work perfectly. One apparently has no fields. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfoust at infostatsystems.com Tue Jul 1 10:03:39 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 1 Jul 2003 08:03:39 -0700 Subject: [AccessD] Invoking one Access app from another Message-ID: You could also try the OpenCurrentDatabase method, which doesn't require so much code.. Charlotte Foust -----Original Message----- From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] Sent: Monday, June 30, 2003 7:54 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Invoking one Access app from another Think I've got it solved (it's still daytime in the Antipodes ). This code attached to a command button does the trick ... Now I should probably put in some error checking (If Dir$(filename)="" ....) etc Dim strAppName As String, strWorkgroupFilename As String Dim CommandLine As String, strDBFullname As String Dim strDBDir strAppName = SysCmd(acSysCmdAccessDir) & "MSACCESS.EXE" strWorkgroupFilename = SysCmd(acSysCmdGetWorkgroupFile) strDBDir = GetDBDir() ' an internal function which returns the dir of the present FE MDB strDBFullname = strDBDir & "FE2prog.MDB" CommandLine = SymbolDoubleQuote & _ strAppName & SymbolDoubleQuote & _ " /wrkgrp " & SymbolDoubleQuote & _ strWorkgroupFilename & SymbolDoubleQuote & _ " " & SymbolDoubleQuote & strDBFullname & _ SymbolDoubleQuote If CurrentUser() = "stephen" Then Debug.Print CommandLine Call Shell(CommandLine, vbMaximizedFocus) Cheers SB -----Original Message----- From: Stephen Bond Sent: Tuesday, 1 July 2003 3:02 p.m. To: accessd at databaseadvisors.com Subject: [AccessD] Invoking one Access app from another I have two Access apps that have some shared tables. I have looked at completely incorporating #2 into #1, but the combined front end would be unwieldy and user-unfriendly if I did that, and the BE would be bigger than I want it to manageably be. So, I want to be able to have a command button on the master menu of FE#1 which would invoke FE#2. I'm sure this is simple - could someone start me off please. TIA Stephen Bond _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Tue Jul 1 11:08:05 2003 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 1 Jul 2003 17:08:05 +0100 Subject: [AccessD] Calling control (WAS How do I determine which form called?) Message-ID: <61F915314798D311A2F800A0C9C83188047C5F60@dibble.observatory.donnslaw.co.uk> Hi Mark Thanks for the answer... you've lost me though I'm afraid. I'm not sure what you are describing or how it relates to my problem. I'm acquiring the data from the calling control, which could be on any form in the database; could be a main form, could be a subform, could be a sub-sub-subform. I can use Screen.ActiveControl to get the control, and the Parent property of the control will tell me what form it's on... after that I'm stuck. I suppose I could iterate through the results of the Parent property looking for the parent form's parent until I run out of parents?! I want to save the data either in my pop-up form; the form called by this process (it's done with a shortcut menu), or in the control that called it, once the data has been returned. It doesn't really matter which, because whilst they have that text zoomed for editing, they can't do anything else - it's a modal form with just the one control on it. I don't want to make any of the other forms modal though, as the user will need to cross-refer between forms all the time. Hmmm... R. -----Original Message----- From: Mark L. Breen [mailto:subs at solution-providers.ie] Sent: 01 July 2003 15:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Calling control (WAS How do I determine which form called?) Hello Roz, I did exactly what Charlotte describes below. I called it 'CallingForm'. It works well once you get it set up. I also used all modal forms but turned them invisible when they called a subform. So the user only ever sees one form. But magically (as far as the programmer is concerned) they turn back on in sequence. The temptation is to hardwire the turning on and off, but that makes the system much less flexible. I am not sure where you will have to acquire the data and where it will be saved to the db, you seem to be suggesting that you will acquire at form three, but will save it at form one. I presume that if you get the calling form working, you will just pass the data back along with it. I cannot remember exactly which way I did it, but if you want anymore info, just shout, I guess you will have no difficulty. Regards Mark ----- Original Message ----- From: Roz Clarke To: 'Access Developers discussion and problem solving' Sent: Tuesday, July 01, 2003 9:18 AM Subject: [AccessD] Calling control (WAS How do I determine which form called?) This is interesting. I need to do something sort of similar... I have an unbound text box on an unbound form which I want to use to display memo fields that are too small to display all their data in the controls on my main forms. To get the data out is easy - screen.activecontrol will do it. But then if they amend the data I need to get the new string back into the right control on the right form. Trouble is it could be up to 3 layers deep on subforms and as far as I can tell, to get the data back in I need to build a full reference to the calling control e.g. Forms!frmLevel1!frmLevel2.form!frmLevel3.form!ctrlCalling Does anyone have an idea of how I could do this when I don't know how many forms are involved??? TIA Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 30 June 2003 18:13 To: Access Developers discussion and problem solving Subject: RE: [AccessD] How do I determine which form called? I make CalledFrom a property of my forms. Then I can pass the calling form's name in the OpenArgs string and let the called form populate its own property. When I close the called form, it checks its CalledFrom property and goes back to that. In 2002 you can do this with Reports as well. Charlotte Foust -----Original Message----- From: Hale, Jim [mailto:jim.hale at fleetpride.com] Sent: Monday, June 30, 2003 6:04 AM To: 'Access DatabaseAdvisors (E-Mail)' Subject: [AccessD] How do I determine which form called? Does anyone have a function that will allow a class to determine which form called it? TIA Jim Hale _____ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From roz.clarke at donnslaw.co.uk Tue Jul 1 11:15:45 2003 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 1 Jul 2003 17:15:45 +0100 Subject: [AccessD] Calling control (WAS How do I determine which form called?) Message-ID: <61F915314798D311A2F800A0C9C83188047C5F61@dibble.observatory.donnslaw.co.uk> >From the unbound form? As in, a frmTextZoom has been launched kind of event? And then write that event into every control that has the ability to launch frmTextZoom so that when frmTextZoom closes it can jump up and go, 'that's my text, that is'??? Wouldn't I need to raise the event from the calling control before the focus gets passed to the unbound form? Otherwise, once the focus has been passed I don't have any way of referencing the control/form combination that called frmTextZoom, which is the whole problem. I think the answer is in there somewhere, thank you :-) Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 01 July 2003 16:01 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling control (WAS How do I determine which form called?) Have you tried raising a custom event from the unbound form and sinking the event on the form that needs to retrieve the information? Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, July 01, 2003 12:18 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calling control (WAS How do I determine which form called?) This is interesting. I need to do something sort of similar... I have an unbound text box on an unbound form which I want to use to display memo fields that are too small to display all their data in the controls on my main forms. To get the data out is easy - screen.activecontrol will do it. But then if they amend the data I need to get the new string back into the right control on the right form. Trouble is it could be up to 3 layers deep on subforms and as far as I can tell, to get the data back in I need to build a full reference to the calling control e.g. Forms!frmLevel1!frmLevel2.form!frmLevel3.form!ctrlCalling Does anyone have an idea of how I could do this when I don't know how many forms are involved??? TIA Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 30 June 2003 18:13 To: Access Developers discussion and problem solving Subject: RE: [AccessD] How do I determine which form called? I make CalledFrom a property of my forms. Then I can pass the calling form's name in the OpenArgs string and let the called form populate its own property. When I close the called form, it checks its CalledFrom property and goes back to that. In 2002 you can do this with Reports as well. Charlotte Foust -----Original Message----- From: Hale, Jim [mailto:jim.hale at fleetpride.com] Sent: Monday, June 30, 2003 6:04 AM To: 'Access DatabaseAdvisors (E-Mail)' Subject: [AccessD] How do I determine which form called? Does anyone have a function that will allow a class to determine which form called it? TIA Jim Hale -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Tue Jul 1 11:16:04 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 1 Jul 2003 12:16:04 -0400 Subject: [AccessD] weird query def In-Reply-To: <6631896965.20030701163510@cactus.dk> Message-ID: > Internationalization ... Again Now, did I destroy your day with that word? lol. Nope. In fact I am using semicolons. "coma delimited list" is one of those phrases that just rolls off the tongue even when not exactly what is needed. And yep, I guess a bit of parsing is in order here. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Tuesday, July 01, 2003 10:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] weird query def Hi John You could retrieve the .SQL and parse that for field names. To eliminate functions and concatenations from the parsing routine, you can "shell" a delicate query in a straight select query which just retrieves the specified field names from the first query; then all you need is to look up "SELECT" and pick last word in front of each comma until "FROM". That should be easy for you to build. Then - ahemm - don't you ever learn (I'm not to good, that's why I can ask, see my post today to Erwin): > .. to generate a comma delimited list of field names for > the combo to use with a value list row source type. That should be a semicolon separated list. Look up the semicolon discussion 2002-12-19 with Charlotte, Shamil and me under the subject: Internationalization ... Again Now, did I destroy your day with that word? /gustav >>Could it be a null concatenation problem? > The query was filtered such that it returned no data and the querydef still > says it has no fields. In the end it doesn't matter why it happens, only > that it does. I am trying to build a system where a database administrator > sets up mail merge documents by selecting a query, a merge doc, and then the > wizard allows him to select (match) a field from the query and a bookmark > from the doc. It is easy to do this manually for a single document but I > have a system where they will have dozens of documents, and want to be able > to add tem as they need. The wizard needs to allow the dba to easily set up > a new document for mail merge visually, in an Access form. > It was all working, but it was embedded inside the database where the mail > merge was taking place. I am trying to extract the concept into an MDA and > make it a true wizard, that can be used from any FE by anyone with the > smarts to understand the concept. This problem didn't exist before simply > because the entire thing was performed inside the FE itself. In fact the > combo displaying the query field list did so simply by using the field list > row source type. Doing that requires the QUERY to be inside the wizard, a > no-no since the query belongs to the FE OR that the wizard be inside the FE > which makes it non-portable. Thus my attempt to generate a comma delimited > list of field names for the combo to use with a value list row source type. > This actually works quite well with most queries. However as soon as you > build a query with an aliased field where the data returned is run through a > custom function inside the FE where the query is stored, the querydef field > list "disappears". Yep, just disappears. No fields in the querydef.fields > collection! > 8-( > John W. Colby > www.colbyconsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike and Doris > Manning > Sent: Tuesday, July 01, 2003 9:50 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] weird query def > Could it be a null concatenation problem? > 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 John Colby > Sent: Tuesday, July 01, 2003 9:25 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] weird query def > I've discovered what the problem is. The query in question uses a function > to append City, State and zip into a single string. That function is > defined in code in the FE where the query resides. Without that field in > the query its fields show up in the query def. With that function in the > query, the qureydef thinks it has no fields. This seems pretty strange to > me since I am using the code that Gustav provided, opening the FE as a > database, setting a qdf from its querydefs collection and manipulating that. > You'd think it could see the functions inside the database but apparently > not. > This is a real show stopper since the wizard needs to be able to grab the > query field names to match against the bookmarks in the doc being merged. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Jul 1 11:16:49 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 1 Jul 2003 12:16:49 -0400 Subject: [AccessD] Calling control (WAS How do I determine which formcalled?) In-Reply-To: Message-ID: MessageOh Charlotte, a girl after my own heart! :-) John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, July 01, 2003 11:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling control (WAS How do I determine which formcalled?) Have you tried raising a custom event from the unbound form and sinking the event on the form that needs to retrieve the information? Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, July 01, 2003 12:18 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calling control (WAS How do I determine which form called?) This is interesting. I need to do something sort of similar... I have an unbound text box on an unbound form which I want to use to display memo fields that are too small to display all their data in the controls on my main forms. To get the data out is easy - screen.activecontrol will do it. But then if they amend the data I need to get the new string back into the right control on the right form. Trouble is it could be up to 3 layers deep on subforms and as far as I can tell, to get the data back in I need to build a full reference to the calling control e.g. Forms!frmLevel1!frmLevel2.form!frmLevel3.form!ctrlCalling Does anyone have an idea of how I could do this when I don't know how many forms are involved??? TIA Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 30 June 2003 18:13 To: Access Developers discussion and problem solving Subject: RE: [AccessD] How do I determine which form called? I make CalledFrom a property of my forms. Then I can pass the calling form's name in the OpenArgs string and let the called form populate its own property. When I close the called form, it checks its CalledFrom property and goes back to that. In 2002 you can do this with Reports as well. Charlotte Foust -----Original Message----- From: Hale, Jim [mailto:jim.hale at fleetpride.com] Sent: Monday, June 30, 2003 6:04 AM To: 'Access DatabaseAdvisors (E-Mail)' Subject: [AccessD] How do I determine which form called? Does anyone have a function that will allow a class to determine which form called it? TIA Jim Hale -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Tue Jul 1 11:18:17 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 1 Jul 2003 12:18:17 -0400 Subject: [AccessD] weird query def In-Reply-To: <001401c33fe1$c4364bb0$880d6bd5@netboxxp> Message-ID: MessageInteresting idea, though I doubt that will work either. The recordset will get its field list from the querydef, which returns no field list. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark H Sent: Tuesday, July 01, 2003 11:02 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def This may be rubbish, but could you create a recordset from the query and then pick up the field names from that instead? Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, July 01, 2003 9:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def I've discovered what the problem is. The query in question uses a function to append City, State and zip into a single string. That function is defined in code in the FE where the query resides. Without that field in the query its fields show up in the query def. With that function in the query, the qureydef thinks it has no fields. This seems pretty strange to me since I am using the code that Gustav provided, opening the FE as a database, setting a qdf from its querydefs collection and manipulating that. You'd think it could see the functions inside the database but apparently not. This is a real show stopper since the wizard needs to be able to grab the query field names to match against the bookmarks in the doc being merged. Bummer! John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Monday, June 30, 2003 12:57 PM To: AccessD Subject: [AccessD] weird query def I have a weird one. I am opening a query def and reading all of the field names out into a comma delimited string to use as a row source for a combo. All that stuff works. One of the queries in the db I am trying to work on says it has NO fields. If I execute the query I get data. If I look at the querydef itself, I can see the name of the query, the SQL property, etc. But ask it for the .Fields.Count and it comes back 0. Very unsettling since I need to use this method for displaying field names to the user to select to match against document book marks in a mail merge wizard. I compacted / repaired both the wizard as well as the FE that actually holds the query in question. Two other queries that I am performing this operation on work perfectly. One apparently has no fields. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Lists at theopg.com Tue Jul 1 11:25:36 2003 From: Lists at theopg.com (Mark H) Date: Tue, 1 Jul 2003 17:25:36 +0100 Subject: [AccessD] weird query def In-Reply-To: Message-ID: <004301c33fed$66e3a5a0$880d6bd5@netboxxp> ...and its only Tuesday, good luck with the rest of your week :O) mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: 01 July 2003 17:18 To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def Interesting idea, though I doubt that will work either. The recordset will get its field list from the querydef, which returns no field list. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark H Sent: Tuesday, July 01, 2003 11:02 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def This may be rubbish, but could you create a recordset from the query and then pick up the field names from that instead? Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, July 01, 2003 9:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def I've discovered what the problem is. The query in question uses a function to append City, State and zip into a single string. That function is defined in code in the FE where the query resides. Without that field in the query its fields show up in the query def. With that function in the query, the qureydef thinks it has no fields. This seems pretty strange to me since I am using the code that Gustav provided, opening the FE as a database, setting a qdf from its querydefs collection and manipulating that. You'd think it could see the functions inside the database but apparently not. This is a real show stopper since the wizard needs to be able to grab the query field names to match against the bookmarks in the doc being merged. Bummer! John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Monday, June 30, 2003 12:57 PM To: AccessD Subject: [AccessD] weird query def I have a weird one. I am opening a query def and reading all of the field names out into a comma delimited string to use as a row source for a combo. All that stuff works. One of the queries in the db I am trying to work on says it has NO fields. If I execute the query I get data. If I look at the querydef itself, I can see the name of the query, the SQL property, etc. But ask it for the .Fields.Count and it comes back 0. Very unsettling since I need to use this method for displaying field names to the user to select to match against document book marks in a mail merge wizard. I compacted / repaired both the wizard as well as the FE that actually holds the query in question. Two other queries that I am performing this operation on work perfectly. One apparently has no fields. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Lists at theopg.com Tue Jul 1 11:38:01 2003 From: Lists at theopg.com (Mark H) Date: Tue, 1 Jul 2003 17:38:01 +0100 Subject: [AccessD] weird query def In-Reply-To: Message-ID: <004d01c33fef$235f2f00$880d6bd5@netboxxp> John I just tried it using Access XP and a recordset and it worked. I created a query with a column called "X" which was the result of a function which multiplies table columns a and c. I then created an adodb.recordset, cycled through the fields and managed to debug.print each fields name. "X" was there... hth Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: 01 July 2003 17:18 To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def Interesting idea, though I doubt that will work either. The recordset will get its field list from the querydef, which returns no field list. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark H Sent: Tuesday, July 01, 2003 11:02 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def This may be rubbish, but could you create a recordset from the query and then pick up the field names from that instead? Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, July 01, 2003 9:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def I've discovered what the problem is. The query in question uses a function to append City, State and zip into a single string. That function is defined in code in the FE where the query resides. Without that field in the query its fields show up in the query def. With that function in the query, the qureydef thinks it has no fields. This seems pretty strange to me since I am using the code that Gustav provided, opening the FE as a database, setting a qdf from its querydefs collection and manipulating that. You'd think it could see the functions inside the database but apparently not. This is a real show stopper since the wizard needs to be able to grab the query field names to match against the bookmarks in the doc being merged. Bummer! John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Monday, June 30, 2003 12:57 PM To: AccessD Subject: [AccessD] weird query def I have a weird one. I am opening a query def and reading all of the field names out into a comma delimited string to use as a row source for a combo. All that stuff works. One of the queries in the db I am trying to work on says it has NO fields. If I execute the query I get data. If I look at the querydef itself, I can see the name of the query, the SQL property, etc. But ask it for the .Fields.Count and it comes back 0. Very unsettling since I need to use this method for displaying field names to the user to select to match against document book marks in a mail merge wizard. I compacted / repaired both the wizard as well as the FE that actually holds the query in question. Two other queries that I am performing this operation on work perfectly. One apparently has no fields. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Tue Jul 1 11:51:42 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 1 Jul 2003 12:51:42 -0400 Subject: [AccessD] weird query def In-Reply-To: Message-ID: Jim, Where did it come from originally? I looked but see names but no copyrights or organizations. I have done a ton of work on it including extracting much of the functionality into a class. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Tuesday, July 01, 2003 10:26 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def John, I'm glad I never tried to extend that interface into a MDA. Sounds like it's a real problem. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Tuesday, July 01, 2003 10:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def >Could it be a null concatenation problem? The query was filtered such that it returned no data and the querydef still says it has no fields. In the end it doesn't matter why it happens, only that it does. I am trying to build a system where a database administrator sets up mail merge documents by selecting a query, a merge doc, and then the wizard allows him to select (match) a field from the query and a bookmark from the doc. It is easy to do this manually for a single document but I have a system where they will have dozens of documents, and want to be able to add tem as they need. The wizard needs to allow the dba to easily set up a new document for mail merge visually, in an Access form. It was all working, but it was embedded inside the database where the mail merge was taking place. I am trying to extract the concept into an MDA and make it a true wizard, that can be used from any FE by anyone with the smarts to understand the concept. This problem didn't exist before simply because the entire thing was performed inside the FE itself. In fact the combo displaying the query field list did so simply by using the field list row source type. Doing that requires the QUERY to be inside the wizard, a no-no since the query belongs to the FE OR that the wizard be inside the FE which makes it non-portable. Thus my attempt to generate a comma delimited list of field names for the combo to use with a value list row source type. This actually works quite well with most queries. However as soon as you build a query with an aliased field where the data returned is run through a custom function inside the FE where the query is stored, the querydef field list "disappears". Yep, just disappears. No fields in the querydef.fields collection! 8-( John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike and Doris Manning Sent: Tuesday, July 01, 2003 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def Could it be a null concatenation problem? 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 John Colby Sent: Tuesday, July 01, 2003 9:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def I've discovered what the problem is. The query in question uses a function to append City, State and zip into a single string. That function is defined in code in the FE where the query resides. Without that field in the query its fields show up in the query def. With that function in the query, the qureydef thinks it has no fields. This seems pretty strange to me since I am using the code that Gustav provided, opening the FE as a database, setting a qdf from its querydefs collection and manipulating that. You'd think it could see the functions inside the database but apparently not. This is a real show stopper since the wizard needs to be able to grab the query field names to match against the bookmarks in the doc being merged. Bummer! John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Monday, June 30, 2003 12:57 PM To: AccessD Subject: [AccessD] weird query def I have a weird one. I am opening a query def and reading all of the field names out into a comma delimited string to use as a row source for a combo. All that stuff works. One of the queries in the db I am trying to work on says it has NO fields. If I execute the query I get data. If I look at the querydef itself, I can see the name of the query, the SQL property, etc. But ask it for the .Fields.Count and it comes back 0. Very unsettling since I need to use this method for displaying field names to the user to select to match against document book marks in a mail merge wizard. I compacted / repaired both the wizard as well as the FE that actually holds the query in question. Two other queries that I am performing this operation on work perfectly. One apparently has no fields. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Jul 1 11:55:19 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 1 Jul 2003 12:55:19 -0400 Subject: [AccessD] weird query def In-Reply-To: <004d01c33fef$235f2f00$880d6bd5@netboxxp> Message-ID: MessageYes, but were you running the code inside the database with the function? I am talking about a wizard where the code is external to the query db. It opens the database, sets a querydef and looks at the field collection. From OUTSIDE the db that has the query and function it is not working here (in A2K). Function QryFldLst(strDBName As String, strQryName As String) As String On Error GoTo Err_QryFldLst Dim wks As DAO.Workspace Dim dbs As DAO.Database Dim fld As DAO.Field Dim str As String Dim qdf As DAO.QueryDef Set wks = DBEngine(0) Set dbs = wks.OpenDatabase(strDBName) Set qdf = dbs.QueryDefs(strQryName) For Each fld In qdf.Fields If Len(str) > 0 Then str = str & ";" End If str = str & fld.Name Next If Len(str) = 0 Then MsgBox strQryName & " NOT FOUND in " & "QryFldLst" Else QryFldLst = str End If Exit_QryFldLst: On Error Resume Next Set fld = Nothing If Not (dbs Is Nothing) Then dbs.Close: Set dbs = Nothing If Not (wks Is Nothing) Then wks.Close: Set wks = Nothing Exit Function Err_QryFldLst: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function Module1.QryFldLst" Resume Exit_QryFldLst End Select Resume 0 '.FOR TROUBLESHOOTING End Function John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark H Sent: Tuesday, July 01, 2003 12:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def John I just tried it using Access XP and a recordset and it worked. I created a query with a column called "X" which was the result of a function which multiplies table columns a and c. I then created an adodb.recordset, cycled through the fields and managed to debug.print each fields name. "X" was there... hth Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From BarbaraRyan at cox.net Tue Jul 1 12:03:32 2003 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Tue, 1 Jul 2003 13:03:32 -0400 Subject: [AccessD] Two front end databases with one user interface? Message-ID: <007601c33ff2$b3dc4a60$a2c50a44@hr.cox.net> I have a "vanilla" Access 97 application that is used at multiple sites. If a particular site want a modification --- e.g., a customized version that I do NOT want to incorporate into the vanilla version, is there a way that I can create a separate front end (to hold these custom objects) yet still have one user interface? I don't want them to have to open two separate applications. Hope this makes sense! Thanks, Barb Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Tue Jul 1 11:57:17 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 1 Jul 2003 12:57:17 -0400 Subject: [AccessD] Free copies of mcgaffees spamkiller Message-ID: http://www.extremetech.com/article2/0,3973,1142152,00.asp John W. Colby www.colbyconsulting.com From cfoust at infostatsystems.com Tue Jul 1 12:00:13 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 1 Jul 2003 10:00:13 -0700 Subject: [AccessD] Calling control (WAS How do I determine whichformcalled?) Message-ID: LOL Sorry, John. I'm single but you're not! Charlotte Foust -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, July 01, 2003 8:17 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling control (WAS How do I determine whichformcalled?) Oh Charlotte, a girl after my own heart! :-) John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, July 01, 2003 11:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling control (WAS How do I determine which formcalled?) Have you tried raising a custom event from the unbound form and sinking the event on the form that needs to retrieve the information? Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, July 01, 2003 12:18 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calling control (WAS How do I determine which form called?) This is interesting. I need to do something sort of similar... I have an unbound text box on an unbound form which I want to use to display memo fields that are too small to display all their data in the controls on my main forms. To get the data out is easy - screen.activecontrol will do it. But then if they amend the data I need to get the new string back into the right control on the right form. Trouble is it could be up to 3 layers deep on subforms and as far as I can tell, to get the data back in I need to build a full reference to the calling control e.g. Forms!frmLevel1!frmLevel2.form!frmLevel3.form!ctrlCalling Does anyone have an idea of how I could do this when I don't know how many forms are involved??? TIA Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 30 June 2003 18:13 To: Access Developers discussion and problem solving Subject: RE: [AccessD] How do I determine which form called? I make CalledFrom a property of my forms. Then I can pass the calling form's name in the OpenArgs string and let the called form populate its own property. When I close the called form, it checks its CalledFrom property and goes back to that. In 2002 you can do this with Reports as well. Charlotte Foust -----Original Message----- From: Hale, Jim [mailto:jim.hale at fleetpride.com] Sent: Monday, June 30, 2003 6:04 AM To: 'Access DatabaseAdvisors (E-Mail)' Subject: [AccessD] How do I determine which form called? Does anyone have a function that will allow a class to determine which form called it? TIA Jim Hale -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Tue Jul 1 12:04:06 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 1 Jul 2003 13:04:06 -0400 Subject: [AccessD] Two front end databases with one user interface? In-Reply-To: <007601c33ff2$b3dc4a60$a2c50a44@hr.cox.net> Message-ID: I have never found an easy way to do this but thanks for asking the question. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 1:04 PM To: Access List Subject: [AccessD] Two front end databases with one user interface? I have a "vanilla" Access 97 application that is used at multiple sites. If a particular site want a modification --- e.g., a customized version that I do NOT want to incorporate into the vanilla version, is there a way that I can create a separate front end (to hold these custom objects) yet still have one user interface? I don't want them to have to open two separate applications. Hope this makes sense! Thanks, Barb Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfoust at infostatsystems.com Tue Jul 1 12:11:59 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 1 Jul 2003 10:11:59 -0700 Subject: [AccessD] Calling control (WAS How do I determine which form called?) Message-ID: If you're using 2002, you can declare a custom event in the unbound form's (I assume that's frmTextZoom) module: Public Event Something(ReturnValue As String) Then somewhere in frmTextZoom, you raise the event Something and pass the value you want to capture as the return value. Any form with an active sink for that event will sink it and use the return value however it's been programmed to. In the original form, you can declare an object variable like this in the module's declarations: Dim WithEvents mfrmZoom As Form_frmTextZoom And you create a sink for the zoom form's custom event like this: Private Sub mfrmZoom_Something(ReturnValue As String) 'do something here End Sub Does that help? Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, July 01, 2003 8:16 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling control (WAS How do I determine which form called?) From the unbound form? As in, a frmTextZoom has been launched kind of event? And then write that event into every control that has the ability to launch frmTextZoom so that when frmTextZoom closes it can jump up and go, 'that's my text, that is'??? Wouldn't I need to raise the event from the calling control before the focus gets passed to the unbound form? Otherwise, once the focus has been passed I don't have any way of referencing the control/form combination that called frmTextZoom, which is the whole problem. I think the answer is in there somewhere, thank you :-) Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 01 July 2003 16:01 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling control (WAS How do I determine which form called?) Have you tried raising a custom event from the unbound form and sinking the event on the form that needs to retrieve the information? Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, July 01, 2003 12:18 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calling control (WAS How do I determine which form called?) This is interesting. I need to do something sort of similar... I have an unbound text box on an unbound form which I want to use to display memo fields that are too small to display all their data in the controls on my main forms. To get the data out is easy - screen.activecontrol will do it. But then if they amend the data I need to get the new string back into the right control on the right form. Trouble is it could be up to 3 layers deep on subforms and as far as I can tell, to get the data back in I need to build a full reference to the calling control e.g. Forms!frmLevel1!frmLevel2.form!frmLevel3.form!ctrlCalling Does anyone have an idea of how I could do this when I don't know how many forms are involved??? TIA Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 30 June 2003 18:13 To: Access Developers discussion and problem solving Subject: RE: [AccessD] How do I determine which form called? I make CalledFrom a property of my forms. Then I can pass the calling form's name in the OpenArgs string and let the called form populate its own property. When I close the called form, it checks its CalledFrom property and goes back to that. In 2002 you can do this with Reports as well. Charlotte Foust -----Original Message----- From: Hale, Jim [mailto:jim.hale at fleetpride.com] Sent: Monday, June 30, 2003 6:04 AM To: 'Access DatabaseAdvisors (E-Mail)' Subject: [AccessD] How do I determine which form called? Does anyone have a function that will allow a class to determine which form called it? TIA Jim Hale -------------- next part -------------- An HTML attachment was scrubbed... URL: From mtucker at myrealbox.com Tue Jul 1 12:16:53 2003 From: mtucker at myrealbox.com (Michael Tucker) Date: Tue, 1 Jul 2003 13:16:53 -0400 Subject: [AccessD] Converting a string to a double in an SQL query. Message-ID: <200307011716.h61HGnQ19492@databaseadvisors.com> Hi everyone, I'm dealing with an Access Project that is connecting to an SQL Server database. I'm trying to produce a query (and a report that reads this query) to totals a billing amount. Simple stuff, right? Well, the designer of the database decided to make the data type of the BillingAmount field a string (specifically varchar(15)), thus I cannot sum this field. I've been trying to create a calculated field in my query that just converts the BillingAmount field to a number using the function "CDbl(dbo.Transactions.BillingAmount)". When I try to run the query however I get the "CDbl is not a valid function" error. This would be easy stuff if I were messing with native Access tables but since these are SQL Server tables then I'm a little out of my experience. Anyone know how I can do what I'd like to do here? Thanks. From john at winhaven.net Tue Jul 1 12:27:12 2003 From: john at winhaven.net (John Bartow) Date: Tue, 1 Jul 2003 12:27:12 -0500 Subject: [AccessD] Two front end databases with one user interface? In-Reply-To: <007601c33ff2$b3dc4a60$a2c50a44@hr.cox.net> Message-ID: I do something kind of similar with an app. Its a PITA! It entails using a login (which I have happen automatically based on the windows login if it matches the staff table info). I then hold info in variables about about what the person can see and if necessary how they see it. So for instance if the forms a person is allowed to see, based the department they work for and their "security" (my built in security-not access's) then they just don't get the icons for the other forms displayed. When there is a choice of forms to use for the same info they get "their" version of the form. How the position their forms is called everytime a form opens and reset to the postion when it closes. I store some of this info (personal choices for UI settings) in the registry and other info (such as security-which is required in case they login into someone elses PC) in the "staff" table. BTW did I mention that its a PITA? I suppose you could get it set up in a class framework but I haven't gone there yet. HTH JB PS: did I mention that its a PITA? :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 12:04 PM To: Access List Subject: [AccessD] Two front end databases with one user interface? I have a "vanilla" Access 97 application that is used at multiple sites. If a particular site want a modification --- e.g., a customized version that I do NOT want to incorporate into the vanilla version, is there a way that I can create a separate front end (to hold these custom objects) yet still have one user interface? I don't want them to have to open two separate applications. Hope this makes sense! Thanks, Barb Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From roz.clarke at donnslaw.co.uk Tue Jul 1 12:29:33 2003 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 1 Jul 2003 18:29:33 +0100 Subject: [AccessD] Calling control (WAS How do I determine which form called?) Message-ID: <61F915314798D311A2F800A0C9C83188047C5F63@dibble.observatory.donnslaw.co.uk> You know, I think it does :-) The control name + parent form information should be enough to identify the calling control to the extent that each form can check to see whether it needs to respond to the event or not - by passing the control and parent information up to frmTextZoom and back again, I can pinpoint the calling control and grab the data. (Necessary because all open forms (barring menus) will have to contain the sink event and all will be responding in exactly the same way). It rests on the assumption that I only use each subform control name once throughout the database - if I instantiate a form twice, or if I've re-used a subform, I am stuffed because both copies of the form will think they own the calling control. A lot closer though. Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 01 July 2003 18:12 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling control (WAS How do I determine which form called?) If you're using 2002, you can declare a custom event in the unbound form's (I assume that's frmTextZoom) module: Public Event Something(ReturnValue As String) Then somewhere in frmTextZoom, you raise the event Something and pass the value you want to capture as the return value. Any form with an active sink for that event will sink it and use the return value however it's been programmed to. In the original form, you can declare an object variable like this in the module's declarations: Dim WithEvents mfrmZoom As Form_frmTextZoom And you create a sink for the zoom form's custom event like this: Private Sub mfrmZoom_Something(ReturnValue As String) 'do something here End Sub Does that help? Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, July 01, 2003 8:16 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling control (WAS How do I determine which form called?) >From the unbound form? As in, a frmTextZoom has been launched kind of event? And then write that event into every control that has the ability to launch frmTextZoom so that when frmTextZoom closes it can jump up and go, 'that's my text, that is'??? Wouldn't I need to raise the event from the calling control before the focus gets passed to the unbound form? Otherwise, once the focus has been passed I don't have any way of referencing the control/form combination that called frmTextZoom, which is the whole problem. I think the answer is in there somewhere, thank you :-) Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 01 July 2003 16:01 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling control (WAS How do I determine which form called?) Have you tried raising a custom event from the unbound form and sinking the event on the form that needs to retrieve the information? Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, July 01, 2003 12:18 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calling control (WAS How do I determine which form called?) This is interesting. I need to do something sort of similar... I have an unbound text box on an unbound form which I want to use to display memo fields that are too small to display all their data in the controls on my main forms. To get the data out is easy - screen.activecontrol will do it. But then if they amend the data I need to get the new string back into the right control on the right form. Trouble is it could be up to 3 layers deep on subforms and as far as I can tell, to get the data back in I need to build a full reference to the calling control e.g. Forms!frmLevel1!frmLevel2.form!frmLevel3.form!ctrlCalling Does anyone have an idea of how I could do this when I don't know how many forms are involved??? TIA Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 30 June 2003 18:13 To: Access Developers discussion and problem solving Subject: RE: [AccessD] How do I determine which form called? I make CalledFrom a property of my forms. Then I can pass the calling form's name in the OpenArgs string and let the called form populate its own property. When I close the called form, it checks its CalledFrom property and goes back to that. In 2002 you can do this with Reports as well. Charlotte Foust -----Original Message----- From: Hale, Jim [mailto:jim.hale at fleetpride.com] Sent: Monday, June 30, 2003 6:04 AM To: 'Access DatabaseAdvisors (E-Mail)' Subject: [AccessD] How do I determine which form called? Does anyone have a function that will allow a class to determine which form called it? TIA Jim Hale -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mwp.Reid at Queens-Belfast.AC.UK Tue Jul 1 12:39:56 2003 From: Mwp.Reid at Queens-Belfast.AC.UK (Mwp.Reid at Queens-Belfast.AC.UK) Date: Tue, 01 Jul 2003 18:39:56 +0100 (BST) Subject: [AccessD] OT Java VM In-Reply-To: References: Message-ID: <1057081196.3f01c76c0cfc2@hosea.qub.ac.uk> I need a copy of the Java VM for IE 6. Anyone know where it lives? Been to MS and all the usual places but no luck. SOme legal case meant MS had to stop downloading it. Martin From Jdemarco at hshhp.org Tue Jul 1 12:47:51 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Tue, 1 Jul 2003 13:47:51 -0400 Subject: [AccessD] OT Java VM Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F00E@TTNEXCHSRV1.hshhp.com> Martin, Don't you get it when you download java from Sun? Jim DeMarco -----Original Message----- From: Mwp.Reid at Queens-Belfast.AC.UK [mailto:Mwp.Reid at Queens-Belfast.AC.UK] Sent: Tuesday, July 01, 2003 1:40 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT Java VM I need a copy of the Java VM for IE 6. Anyone know where it lives? Been to MS and all the usual places but no luck. SOme legal case meant MS had to stop downloading it. Martin _______________________________________________ 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 Mwp.Reid at Queens-Belfast.AC.UK Tue Jul 1 12:52:02 2003 From: Mwp.Reid at Queens-Belfast.AC.UK (Mwp.Reid at Queens-Belfast.AC.UK) Date: Tue, 01 Jul 2003 18:52:02 +0100 (BST) Subject: [AccessD] Test In-Reply-To: References: Message-ID: <1057081922.3f01ca42b3dda@hosea.qub.ac.uk> Its 18.51pm Either my work email is dead or everyone has unsubbed Martin From jimdettman at earthlink.net Tue Jul 1 12:54:39 2003 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 1 Jul 2003 13:54:39 -0400 Subject: [AccessD] weird query def In-Reply-To: Message-ID: John, The original developer is Paul Litwin. The code was published as part of an article for Smart Access, published by Pinnacle. As to the copyright issue, I'm not sure if that would reside with Paul or Pinnacle, but certainly not me. While I did make substantial improvements to it, they were based on the original work, which is why Paul's name still appears in the merge module. I would assume that Pinnacle would hold the copyright if there is one, but that's a guess on my part. I'm not sure how copyrights are handled when an author publishes. Susan could probably tell you more about that. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Tuesday, July 01, 2003 12:52 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def Jim, Where did it come from originally? I looked but see names but no copyrights or organizations. I have done a ton of work on it including extracting much of the functionality into a class. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Tuesday, July 01, 2003 10:26 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def John, I'm glad I never tried to extend that interface into a MDA. Sounds like it's a real problem. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Tuesday, July 01, 2003 10:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def >Could it be a null concatenation problem? The query was filtered such that it returned no data and the querydef still says it has no fields. In the end it doesn't matter why it happens, only that it does. I am trying to build a system where a database administrator sets up mail merge documents by selecting a query, a merge doc, and then the wizard allows him to select (match) a field from the query and a bookmark from the doc. It is easy to do this manually for a single document but I have a system where they will have dozens of documents, and want to be able to add tem as they need. The wizard needs to allow the dba to easily set up a new document for mail merge visually, in an Access form. It was all working, but it was embedded inside the database where the mail merge was taking place. I am trying to extract the concept into an MDA and make it a true wizard, that can be used from any FE by anyone with the smarts to understand the concept. This problem didn't exist before simply because the entire thing was performed inside the FE itself. In fact the combo displaying the query field list did so simply by using the field list row source type. Doing that requires the QUERY to be inside the wizard, a no-no since the query belongs to the FE OR that the wizard be inside the FE which makes it non-portable. Thus my attempt to generate a comma delimited list of field names for the combo to use with a value list row source type. This actually works quite well with most queries. However as soon as you build a query with an aliased field where the data returned is run through a custom function inside the FE where the query is stored, the querydef field list "disappears". Yep, just disappears. No fields in the querydef.fields collection! 8-( John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike and Doris Manning Sent: Tuesday, July 01, 2003 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def Could it be a null concatenation problem? 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 John Colby Sent: Tuesday, July 01, 2003 9:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def I've discovered what the problem is. The query in question uses a function to append City, State and zip into a single string. That function is defined in code in the FE where the query resides. Without that field in the query its fields show up in the query def. With that function in the query, the qureydef thinks it has no fields. This seems pretty strange to me since I am using the code that Gustav provided, opening the FE as a database, setting a qdf from its querydefs collection and manipulating that. You'd think it could see the functions inside the database but apparently not. This is a real show stopper since the wizard needs to be able to grab the query field names to match against the bookmarks in the doc being merged. Bummer! John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Monday, June 30, 2003 12:57 PM To: AccessD Subject: [AccessD] weird query def I have a weird one. I am opening a query def and reading all of the field names out into a comma delimited string to use as a row source for a combo. All that stuff works. One of the queries in the db I am trying to work on says it has NO fields. If I execute the query I get data. If I look at the querydef itself, I can see the name of the query, the SQL property, etc. But ask it for the .Fields.Count and it comes back 0. Very unsettling since I need to use this method for displaying field names to the user to select to match against document book marks in a mail merge wizard. I compacted / repaired both the wizard as well as the FE that actually holds the query in question. Two other queries that I am performing this operation on work perfectly. One apparently has no fields. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Tue Jul 1 12:54:56 2003 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Tue, 1 Jul 2003 13:54:56 -0400 Subject: [AccessD] OT Java VM Message-ID: Martin, Q: How can I get the Microsoft VM now? A: Microsoft provides updates to existing Microsoft VM installations through Windows Update. ...but I think I found it here: http://tech-help.llcoop.net/downloads/msjavx86.exe HTH, Mark -----Original Message----- From: Mwp.Reid at Queens-Belfast.AC.UK [mailto:Mwp.Reid at Queens-Belfast.AC.UK] Sent: Tuesday, July 01, 2003 1:40 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT Java VM I need a copy of the Java VM for IE 6. Anyone know where it lives? Been to MS and all the usual places but no luck. SOme legal case meant MS had to stop downloading it. Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Alun.Garraway at otto.de Tue Jul 1 12:57:00 2003 From: Alun.Garraway at otto.de (Garraway, Alun) Date: Tue, 1 Jul 2003 19:57:00 +0200 Subject: AW: [AccessD] Test Message-ID: <73584FDFECAAD611956A0000D11F919F013008DE@ntovmail06.ov.otto.de> my clock says 19:56 in Hamburg :-) still here -----Urspr?ngliche Nachricht----- Von: Mwp.Reid at queens-belfast.ac.uk [mailto:Mwp.Reid at queens-belfast.ac.uk] Gesendet: Dienstag, 1. Juli 2003 19:52 An: Access Developers discussion and problem solving Betreff: [AccessD] Test Its 18.51pm Either my work email is dead or everyone has unsubbed Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From CWortz at tea.state.tx.us Tue Jul 1 13:01:13 2003 From: CWortz at tea.state.tx.us (Wortz, Charles) Date: Tue, 1 Jul 2003 13:01:13 -0500 Subject: [AccessD] Test Message-ID: Martin, We are still here so it must be you. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us -----Original Message----- From: Mwp.Reid at Queens-Belfast.AC.UK [mailto:Mwp.Reid at Queens-Belfast.AC.UK] Sent: Tuesday 2003 Jul 01 12:52 To: Access Developers discussion and problem solving Subject: [AccessD] Test Importance: Low Its 18.51pm Either my work email is dead or everyone has unsubbed Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Tue Jul 1 13:08:10 2003 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Tue, 1 Jul 2003 14:08:10 -0400 Subject: [AccessD] Two front end databases with one user interface? References: Message-ID: <00c601c33ffb$bba1f340$a2c50a44@hr.cox.net> Thanks, John...... I was hoping to limit the number of objects in my "vanilla" front end by keeping the "really specific" customizations in another FE. This is funny--- I didn't quite catch on to the acronym "PITA" --- I thought it must be some high-tech thing, so I did a search in Google. Found the "Palestine Information Technology Association", the "Pacific Islands Telecommunications Association", the Pacific International Trapshooting Association.... ...but it just clicked --- that it's a Pain...... Barb ----- Original Message ----- From: John Bartow To: Access Developers discussion and problem solving Sent: Tuesday, July 01, 2003 1:27 PM Subject: RE: [AccessD] Two front end databases with one user interface? I do something kind of similar with an app. Its a PITA! It entails using a login (which I have happen automatically based on the windows login if it matches the staff table info). I then hold info in variables about about what the person can see and if necessary how they see it. So for instance if the forms a person is allowed to see, based the department they work for and their "security" (my built in security-not access's) then they just don't get the icons for the other forms displayed. When there is a choice of forms to use for the same info they get "their" version of the form. How the position their forms is called everytime a form opens and reset to the postion when it closes. I store some of this info (personal choices for UI settings) in the registry and other info (such as security-which is required in case they login into someone elses PC) in the "staff" table. BTW did I mention that its a PITA? I suppose you could get it set up in a class framework but I haven't gone there yet. HTH JB PS: did I mention that its a PITA? :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 12:04 PM To: Access List Subject: [AccessD] Two front end databases with one user interface? I have a "vanilla" Access 97 application that is used at multiple sites. If a particular site want a modification --- e.g., a customized version that I do NOT want to incorporate into the vanilla version, is there a way that I can create a separate front end (to hold these custom objects) yet still have one user interface? I don't want them to have to open two separate applications. Hope this makes sense! Thanks, Barb Ryan ------------------------------------------------------------------------------ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From CWortz at tea.state.tx.us Tue Jul 1 13:06:57 2003 From: CWortz at tea.state.tx.us (Wortz, Charles) Date: Tue, 1 Jul 2003 13:06:57 -0500 Subject: [AccessD] Two front end databases with one user interface? Message-ID: Barb, See Terri Jarus "E-mail Acronyms" at www.databaseadvisors.com/newsletters/7602-2wr.htm. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us -----Original Message----- From: Barbara Ryan [mailto:BarbaraRyan at cox.net] Sent: Tuesday 2003 Jul 01 13:08 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Two front end databases with one user interface? Thanks, John...... I was hoping to limit the number of objects in my "vanilla" front end by keeping the "really specific" customizations in another FE. This is funny--- I didn't quite catch on to the acronym "PITA" --- I thought it must be some high-tech thing, so I did a search in Google. Found the "Palestine Information Technology Association", the "Pacific Islands Telecommunications Association", the Pacific International Trapshooting Association.... ...but it just clicked --- that it's a Pain...... Barb ----- Original Message ----- From: John Bartow To: Access Developers discussion and problem solving Sent: Tuesday, July 01, 2003 1:27 PM Subject: RE: [AccessD] Two front end databases with one user interface? I do something kind of similar with an app. Its a PITA! It entails using a login (which I have happen automatically based on the windows login if it matches the staff table info). I then hold info in variables about about what the person can see and if necessary how they see it. So for instance if the forms a person is allowed to see, based the department they work for and their "security" (my built in security-not access's) then they just don't get the icons for the other forms displayed. When there is a choice of forms to use for the same info they get "their" version of the form. How the position their forms is called everytime a form opens and reset to the postion when it closes. I store some of this info (personal choices for UI settings) in the registry and other info (such as security-which is required in case they login into someone elses PC) in the "staff" table. BTW did I mention that its a PITA? I suppose you could get it set up in a class framework but I haven't gone there yet. HTH JB PS: did I mention that its a PITA? :o) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Lists at theopg.com Tue Jul 1 13:13:10 2003 From: Lists at theopg.com (Mark H) Date: Tue, 1 Jul 2003 19:13:10 +0100 Subject: [AccessD] weird query def In-Reply-To: Message-ID: <008401c33ffc$6df58020$880d6bd5@netboxxp> Yes I was... sorry. But... have you tried using ADO instead of DAO? I will have a little bash at it here as I'm a bit bored and just had my plans for a day out climbing tomorrow scupperred by my mates girlfriend. I sense a sulk coming on :O( Can you imagine going to Ikea instead of the Wye Valley, some people! mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: 01 July 2003 17:55 To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def Yes, but were you running the code inside the database with the function? I am talking about a wizard where the code is external to the query db. It opens the database, sets a querydef and looks at the field collection. >From OUTSIDE the db that has the query and function it is not working here (in A2K). Function QryFldLst(strDBName As String, strQryName As String) As String On Error GoTo Err_QryFldLst Dim wks As DAO.Workspace Dim dbs As DAO.Database Dim fld As DAO.Field Dim str As String Dim qdf As DAO.QueryDef Set wks = DBEngine(0) Set dbs = wks.OpenDatabase(strDBName) Set qdf = dbs.QueryDefs(strQryName) For Each fld In qdf.Fields If Len(str) > 0 Then str = str & ";" End If str = str & fld.Name Next If Len(str) = 0 Then MsgBox strQryName & " NOT FOUND in " & "QryFldLst" Else QryFldLst = str End If Exit_QryFldLst: On Error Resume Next Set fld = Nothing If Not (dbs Is Nothing) Then dbs.Close: Set dbs = Nothing If Not (wks Is Nothing) Then wks.Close: Set wks = Nothing Exit Function Err_QryFldLst: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function Module1.QryFldLst" Resume Exit_QryFldLst End Select Resume 0 '.FOR TROUBLESHOOTING End Function John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark H Sent: Tuesday, July 01, 2003 12:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def John I just tried it using Access XP and a recordset and it worked. I created a query with a column called "X" which was the result of a function which multiplies table columns a and c. I then created an adodb.recordset, cycled through the fields and managed to debug.print each fields name. "X" was there... hth Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Tue Jul 1 12:45:34 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 1 Jul 2003 13:45:34 -0400 Subject: [AccessD] Calling control (WAS How do I determine which form called?) In-Reply-To: <61F915314798D311A2F800A0C9C83188047C5F63@dibble.observatory.donnslaw.co.uk> Message-ID: MessageRoz, I designed a message class for just this kind of thing. The class accepts messages in a method, then raises a message event. I instantiate the class globally (shhhhhh) such that anyone can sink the classes events. Form1 dims an instance of the class, but instead of doing: set MyMsgInstance = new... it simply gets a copy of the global class instance: Set MyMsgInstance = gclsMsg (the global instance) Form1 opens the pop up form (or any other form really). It can either send it's name in the OpenArgs as it opens Form2 or... Form2 can instantiate an instance of the message class as well. It then listens for messages. Form1 sends a message to form2 passing it's name in From: and form2's name in the To: Either way, Form2 knows who opened it now. When it is done with it's task, it sends a message back To: form1 From: Form2. Form1 gets the message and handles the data. I wrote the message class up as an article and the article is out on the dba site, along with a demo of using it. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Roz Clarke Sent: Tuesday, July 01, 2003 1:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling control (WAS How do I determine which form called?) You know, I think it does J The control name + parent form information should be enough to identify the calling control to the extent that each form can check to see whether it needs to respond to the event or not - by passing the control and parent information up to frmTextZoom and back again, I can pinpoint the calling control and grab the data. (Necessary because all open forms (barring menus) will have to contain the sink event and all will be responding in exactly the same way). It rests on the assumption that I only use each subform control name once throughout the database - if I instantiate a form twice, or if I've re-used a subform, I am stuffed because both copies of the form will think they own the calling control. A lot closer though. Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 01 July 2003 18:12 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling control (WAS How do I determine which form called?) If you're using 2002, you can declare a custom event in the unbound form's (I assume that's frmTextZoom) module: Public Event Something(ReturnValue As String) Then somewhere in frmTextZoom, you raise the event Something and pass the value you want to capture as the return value. Any form with an active sink for that event will sink it and use the return value however it's been programmed to. In the original form, you can declare an object variable like this in the module's declarations: Dim WithEvents mfrmZoom As Form_frmTextZoom And you create a sink for the zoom form's custom event like this: Private Sub mfrmZoom_Something(ReturnValue As String) 'do something here End Sub Does that help? Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, July 01, 2003 8:16 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling control (WAS How do I determine which form called?) From the unbound form? As in, a frmTextZoom has been launched kind of event? And then write that event into every control that has the ability to launch frmTextZoom so that when frmTextZoom closes it can jump up and go, 'that's my text, that is'??? Wouldn't I need to raise the event from the calling control before the focus gets passed to the unbound form? Otherwise, once the focus has been passed I don't have any way of referencing the control/form combination that called frmTextZoom, which is the whole problem. I think the answer is in there somewhere, thank you J Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 01 July 2003 16:01 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling control (WAS How do I determine which form called?) Have you tried raising a custom event from the unbound form and sinking the event on the form that needs to retrieve the information? Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, July 01, 2003 12:18 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calling control (WAS How do I determine which form called?) This is interesting. I need to do something sort of similar... I have an unbound text box on an unbound form which I want to use to display memo fields that are too small to display all their data in the controls on my main forms. To get the data out is easy - screen.activecontrol will do it. But then if they amend the data I need to get the new string back into the right control on the right form. Trouble is it could be up to 3 layers deep on subforms and as far as I can tell, to get the data back in I need to build a full reference to the calling control e.g. Forms!frmLevel1!frmLevel2.form!frmLevel3.form!ctrlCalling Does anyone have an idea of how I could do this when I don't know how many forms are involved??? TIA Roz -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 30 June 2003 18:13 To: Access Developers discussion and problem solving Subject: RE: [AccessD] How do I determine which form called? I make CalledFrom a property of my forms. Then I can pass the calling form's name in the OpenArgs string and let the called form populate its own property. When I close the called form, it checks its CalledFrom property and goes back to that. In 2002 you can do this with Reports as well. Charlotte Foust -----Original Message----- From: Hale, Jim [mailto:jim.hale at fleetpride.com] Sent: Monday, June 30, 2003 6:04 AM To: 'Access DatabaseAdvisors (E-Mail)' Subject: [AccessD] How do I determine which form called? Does anyone have a function that will allow a class to determine which form called it? TIA Jim Hale -------------- next part -------------- An HTML attachment was scrubbed... URL: From Lembit.Soobik at t-online.de Tue Jul 1 13:24:46 2003 From: Lembit.Soobik at t-online.de (Lembit Soobik) Date: Tue, 1 Jul 2003 20:24:46 +0200 Subject: [AccessD] Test References: <1057081922.3f01ca42b3dda@hosea.qub.ac.uk> Message-ID: <004001c33ffe$0d5b5bc0$0300a8c0@S856> Martin, I dont see anything wrong with your two subscriptions Lembit Lembit Soobik ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, July 01, 2003 7:52 PM Subject: [AccessD] Test > Its 18.51pm > > Either my work email is dead or everyone has unsubbed > > Martin > _______________________________________________ > 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 1 13:23:12 2003 From: john at winhaven.net (John Bartow) Date: Tue, 1 Jul 2003 13:23:12 -0500 Subject: [AccessD] Two front end databases with one user interface? In-Reply-To: <00c601c33ffb$bba1f340$a2c50a44@hr.cox.net> Message-ID: Barb, You could do that but instead of presenting a different form in the FE for that user open a different form in another FE. I did that with one of the apps until it was fully integrated into the main FE. Of course this was the entire app. If you're opening one specific form and there is more than just that one form in the other FE then you'de have to work something out for that. Maybe put each special form in its own FE? (Thats just a wild swing at a solution, could get ugly.) Select Case gintDeptID Case "PITA depart." Dim strStAppName As String strStAppName = "C:\Program Files\Access 97 Runtime\Msaccess.exe ""N:\PITAForm1.mde""" Call Shell(strStAppName, 1) Case Else "open the vanilla form" End Select JB -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Two front end databases with one user interface? Thanks, John...... I was hoping to limit the number of objects in my "vanilla" front end by keeping the "really specific" customizations in another FE. This is funny--- I didn't quite catch on to the acronym "PITA" --- I thought it must be some high-tech thing, so I did a search in Google. Found the "Palestine Information Technology Association", the "Pacific Islands Telecommunications Association", the Pacific International Trapshooting Association.... ...but it just clicked --- that it's a Pain...... Barb ----- Original Message ----- From: John Bartow To: Access Developers discussion and problem solving Sent: Tuesday, July 01, 2003 1:27 PM Subject: RE: [AccessD] Two front end databases with one user interface? I do something kind of similar with an app. Its a PITA! It entails using a login (which I have happen automatically based on the windows login if it matches the staff table info). I then hold info in variables about about what the person can see and if necessary how they see it. So for instance if the forms a person is allowed to see, based the department they work for and their "security" (my built in security-not access's) then they just don't get the icons for the other forms displayed. When there is a choice of forms to use for the same info they get "their" version of the form. How the position their forms is called everytime a form opens and reset to the postion when it closes. I store some of this info (personal choices for UI settings) in the registry and other info (such as security-which is required in case they login into someone elses PC) in the "staff" table. BTW did I mention that its a PITA? I suppose you could get it set up in a class framework but I haven't gone there yet. HTH JB PS: did I mention that its a PITA? :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 12:04 PM To: Access List Subject: [AccessD] Two front end databases with one user interface? I have a "vanilla" Access 97 application that is used at multiple sites. If a particular site want a modification --- e.g., a customized version that I do NOT want to incorporate into the vanilla version, is there a way that I can create a separate front end (to hold these custom objects) yet still have one user interface? I don't want them to have to open two separate applications. Hope this makes sense! Thanks, Barb Ryan ---------------------------------------------------------------------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From BarbaraRyan at cox.net Tue Jul 1 13:35:42 2003 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Tue, 1 Jul 2003 14:35:42 -0400 Subject: [AccessD] Two front end databases with one user interface? References: Message-ID: <010901c33fff$93df4840$a2c50a44@hr.cox.net> MessageHi, Charles.... There seems to be a problem with the link...............Barb ----- Original Message ----- From: Wortz, Charles To: Access Developers discussion and problem solving Sent: Tuesday, July 01, 2003 2:06 PM Subject: RE: [AccessD] Two front end databases with one user interface? Barb, See Terri Jarus "E-mail Acronyms" at www.databaseadvisors.com/newsletters/7602-2wr.htm. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us -----Original Message----- From: Barbara Ryan [mailto:BarbaraRyan at cox.net] Sent: Tuesday 2003 Jul 01 13:08 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Two front end databases with one user interface? Thanks, John...... I was hoping to limit the number of objects in my "vanilla" front end by keeping the "really specific" customizations in another FE. This is funny--- I didn't quite catch on to the acronym "PITA" --- I thought it must be some high-tech thing, so I did a search in Google. Found the "Palestine Information Technology Association", the "Pacific Islands Telecommunications Association", the Pacific International Trapshooting Association.... ...but it just clicked --- that it's a Pain...... Barb ----- Original Message ----- From: John Bartow To: Access Developers discussion and problem solving Sent: Tuesday, July 01, 2003 1:27 PM Subject: RE: [AccessD] Two front end databases with one user interface? I do something kind of similar with an app. Its a PITA! It entails using a login (which I have happen automatically based on the windows login if it matches the staff table info). I then hold info in variables about about what the person can see and if necessary how they see it. So for instance if the forms a person is allowed to see, based the department they work for and their "security" (my built in security-not access's) then they just don't get the icons for the other forms displayed. When there is a choice of forms to use for the same info they get "their" version of the form. How the position their forms is called everytime a form opens and reset to the postion when it closes. I store some of this info (personal choices for UI settings) in the registry and other info (such as security-which is required in case they login into someone elses PC) in the "staff" table. BTW did I mention that its a PITA? I suppose you could get it set up in a class framework but I haven't gone there yet. HTH JB PS: did I mention that its a PITA? :o) ------------------------------------------------------------------------------ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From CWortz at tea.state.tx.us Tue Jul 1 13:31:41 2003 From: CWortz at tea.state.tx.us (Wortz, Charles) Date: Tue, 1 Jul 2003 13:31:41 -0500 Subject: [AccessD] Two front end databases with one user interface? Message-ID: Barb, If you are using Access User-Level Security you can set things up so those that are members of group A will see the objects for group A while those in group B will see the objects for group B and neither need know about the other. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Tuesday 2003 Jul 01 13:23 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Two front end databases with one user interface? Barb, You could do that but instead of presenting a different form in the FE for that user open a different form in another FE. I did that with one of the apps until it was fully integrated into the main FE. Of course this was the entire app. If you're opening one specific form and there is more than just that one form in the other FE then you'de have to work something out for that. Maybe put each special form in its own FE? (Thats just a wild swing at a solution, could get ugly.) Select Case gintDeptID Case "PITA depart." Dim strStAppName As String strStAppName = "C:\Program Files\Access 97 Runtime\Msaccess.exe ""N:\PITAForm1.mde""" Call Shell(strStAppName, 1) Case Else "open the vanilla form" End Select JB -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Two front end databases with one user interface? Thanks, John...... I was hoping to limit the number of objects in my "vanilla" front end by keeping the "really specific" customizations in another FE. This is funny--- I didn't quite catch on to the acronym "PITA" --- I thought it must be some high-tech thing, so I did a search in Google. Found the "Palestine Information Technology Association", the "Pacific Islands Telecommunications Association", the Pacific International Trapshooting Association.... ...but it just clicked --- that it's a Pain...... Barb ----- Original Message ----- From: John Bartow To: Access Developers discussion and problem solving Sent: Tuesday, July 01, 2003 1:27 PM Subject: RE: [AccessD] Two front end databases with one user interface? I do something kind of similar with an app. Its a PITA! It entails using a login (which I have happen automatically based on the windows login if it matches the staff table info). I then hold info in variables about about what the person can see and if necessary how they see it. So for instance if the forms a person is allowed to see, based the department they work for and their "security" (my built in security-not access's) then they just don't get the icons for the other forms displayed. When there is a choice of forms to use for the same info they get "their" version of the form. How the position their forms is called everytime a form opens and reset to the postion when it closes. I store some of this info (personal choices for UI settings) in the registry and other info (such as security-which is required in case they login into someone elses PC) in the "staff" table. BTW did I mention that its a PITA? I suppose you could get it set up in a class framework but I haven't gone there yet. HTH JB PS: did I mention that its a PITA? :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 12:04 PM To: Access List Subject: [AccessD] Two front end databases with one user interface? I have a "vanilla" Access 97 application that is used at multiple sites. If a particular site want a modification --- e.g., a customized version that I do NOT want to incorporate into the vanilla version, is there a way that I can create a separate front end (to hold these custom objects) yet still have one user interface? I don't want them to have to open two separate applications. Hope this makes sense! Thanks, Barb Ryan From BarbaraRyan at cox.net Tue Jul 1 13:41:39 2003 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Tue, 1 Jul 2003 14:41:39 -0400 Subject: [AccessD] Two front end databases with one user interface? References: Message-ID: <013501c34000$690f64a0$a2c50a44@hr.cox.net> Thanks, John....That gives me some options to think about..............Barb ----- Original Message ----- From: John Bartow To: Access Developers discussion and problem solving Sent: Tuesday, July 01, 2003 2:23 PM Subject: RE: [AccessD] Two front end databases with one user interface? Barb, You could do that but instead of presenting a different form in the FE for that user open a different form in another FE. I did that with one of the apps until it was fully integrated into the main FE. Of course this was the entire app. If you're opening one specific form and there is more than just that one form in the other FE then you'de have to work something out for that. Maybe put each special form in its own FE? (Thats just a wild swing at a solution, could get ugly.) Select Case gintDeptID Case "PITA depart." Dim strStAppName As String strStAppName = "C:\Program Files\Access 97 Runtime\Msaccess.exe ""N:\PITAForm1.mde""" Call Shell(strStAppName, 1) Case Else "open the vanilla form" End Select JB -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Two front end databases with one user interface? Thanks, John...... I was hoping to limit the number of objects in my "vanilla" front end by keeping the "really specific" customizations in another FE. This is funny--- I didn't quite catch on to the acronym "PITA" --- I thought it must be some high-tech thing, so I did a search in Google. Found the "Palestine Information Technology Association", the "Pacific Islands Telecommunications Association", the Pacific International Trapshooting Association.... ...but it just clicked --- that it's a Pain...... Barb ----- Original Message ----- From: John Bartow To: Access Developers discussion and problem solving Sent: Tuesday, July 01, 2003 1:27 PM Subject: RE: [AccessD] Two front end databases with one user interface? I do something kind of similar with an app. Its a PITA! It entails using a login (which I have happen automatically based on the windows login if it matches the staff table info). I then hold info in variables about about what the person can see and if necessary how they see it. So for instance if the forms a person is allowed to see, based the department they work for and their "security" (my built in security-not access's) then they just don't get the icons for the other forms displayed. When there is a choice of forms to use for the same info they get "their" version of the form. How the position their forms is called everytime a form opens and reset to the postion when it closes. I store some of this info (personal choices for UI settings) in the registry and other info (such as security-which is required in case they login into someone elses PC) in the "staff" table. BTW did I mention that its a PITA? I suppose you could get it set up in a class framework but I haven't gone there yet. HTH JB PS: did I mention that its a PITA? :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 12:04 PM To: Access List Subject: [AccessD] Two front end databases with one user interface? I have a "vanilla" Access 97 application that is used at multiple sites. If a particular site want a modification --- e.g., a customized version that I do NOT want to incorporate into the vanilla version, is there a way that I can create a separate front end (to hold these custom objects) yet still have one user interface? I don't want them to have to open two separate applications. Hope this makes sense! Thanks, Barb Ryan -------------------------------------------------------------------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------------ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From CWortz at tea.state.tx.us Tue Jul 1 13:38:02 2003 From: CWortz at tea.state.tx.us (Wortz, Charles) Date: Tue, 1 Jul 2003 13:38:02 -0500 Subject: E-mail Acronyms - was RE: [AccessD] Two front end databases with one user interface? Message-ID: Barb, You are right. That's what happens when I don't check a URL before sending it, they move things around so the old links are dead. Fifty lashes with a wet noodle to me and fifty lashes with a wet noodle to the webmaster. Anyway, you know what name to search for in the archives. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us -----Original Message----- From: Barbara Ryan [mailto:BarbaraRyan at cox.net] Sent: Tuesday 2003 Jul 01 13:36 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Two front end databases with one user interface? Hi, Charles.... There seems to be a problem with the link...............Barb ----- Original Message ----- From: Wortz, Charles To: Access Developers discussion and problem solving Sent: Tuesday, July 01, 2003 2:06 PM Subject: RE: [AccessD] Two front end databases with one user interface? Barb, See Terri Jarus "E-mail Acronyms" at www.databaseadvisors.com/newsletters/7602-2wr.htm. Charles Wortz -----Original Message----- From: Barbara Ryan [mailto:BarbaraRyan at cox.net] Sent: Tuesday 2003 Jul 01 13:08 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Two front end databases with one user interface? Thanks, John...... I was hoping to limit the number of objects in my "vanilla" front end by keeping the "really specific" customizations in another FE. This is funny--- I didn't quite catch on to the acronym "PITA" --- I thought it must be some high-tech thing, so I did a search in Google. Found the "Palestine Information Technology Association", the "Pacific Islands Telecommunications Association", the Pacific International Trapshooting Association.... ...but it just clicked --- that it's a Pain...... Barb From rusty.hammond at cpiqpc.com Tue Jul 1 13:46:33 2003 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 1 Jul 2003 13:46:33 -0500 Subject: [AccessD] Two front end databases with one user interface? Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A03305E1B@cpixchng-1.cpiqpc.net> I've never done it but how about something like this: Put some functionality in the vanilla version that checks for the existence of a custom.mdb in the same directory as the vanilla front end. If it's there, then open it and import the custom objects into the working interface. You could have a Custom options menu item on your main menu that would open another menu that would drive your Custom options. This Custom options menu would exist in the custom.mdb and be imported with the other custom objects. If you will be importing objects from the custom.mdb that have the same names as objects in your vanilla front end, your code will need to delete the object in the vanilla front end before importing the custom object. If you are running the front end on the local hard drive, you could copy the custom.mdb to their hard drive as well. Then you are only modifying the copy of the front end. The master copy of the vanilla front end remains untouched. Any additional customizations are added to the custom.mdb which is then copied down to the local hard drive. You would need code to: A. Search for the existence of custom.mdb in the same directory as your running front end B. Spin through the list of objects in the custom.mdb and compare the names to the list of objects in the vanilla front end AND if any match, delete them in the vanilla front end. C. Import the objects from the custom.mdb I've already setup a test.mdb and a custom.mdb and will be working on the code to do this so if you need a sample let me know and I'll try to have something for you soon. HTH Rusty -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, July 01, 2003 12:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Two front end databases with one user interface? I have never found an easy way to do this but thanks for asking the question. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 1:04 PM To: Access List Subject: [AccessD] Two front end databases with one user interface? I have a "vanilla" Access 97 application that is used at multiple sites. If a particular site want a modification --- e.g., a customized version that I do NOT want to incorporate into the vanilla version, is there a way that I can create a separate front end (to hold these custom objects) yet still have one user interface? I don't want them to have to open two separate applications. Hope this makes sense! Thanks, Barb Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.Clark at niagaracounty.com Tue Jul 1 13:35:54 2003 From: John.Clark at niagaracounty.com (John Clark) Date: Tue, 01 Jul 2003 14:35:54 -0400 Subject: [AccessD] Record # of Qty Message-ID: I created my own set of navigation buttons for some of my forms, but they are missing the "record # of HowMany" line, which I think is necessary...or at least preferable...in many of my forms. I seem to remember doing this in the past, but I am unable to find any examples. Does anybody have any sample code for this? This should be easy, but I am just not getting it! John W Clark From jimdettman at earthlink.net Tue Jul 1 13:53:19 2003 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 1 Jul 2003 14:53:19 -0400 Subject: [AccessD] Record # of Qty In-Reply-To: Message-ID: John, You need to do a .movelast, then check the .RecordCount. Use the AbsolutePosition Property to determine the current record. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Tuesday, July 01, 2003 2:36 PM To: accessd at databaseadvisors.com Subject: [AccessD] Record # of Qty I created my own set of navigation buttons for some of my forms, but they are missing the "record # of HowMany" line, which I think is necessary...or at least preferable...in many of my forms. I seem to remember doing this in the past, but I am unable to find any examples. Does anybody have any sample code for this? This should be easy, but I am just not getting it! John W Clark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Tue Jul 1 13:59:12 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Tue, 1 Jul 2003 14:59:12 -0400 Subject: [AccessD] Converting a string to a double in an SQL query. In-Reply-To: <200307011716.h61HGnQ19492@databaseadvisors.com> Message-ID: <003201c34002$dfd534f0$b5340cd8@hargrove.internal> Convert(money, dbo.Transactions.BillingAmount) 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 Michael Tucker Sent: Tuesday, July 01, 2003 1:17 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Converting a string to a double in an SQL query. Hi everyone, I'm dealing with an Access Project that is connecting to an SQL Server database. I'm trying to produce a query (and a report that reads this query) to totals a billing amount. Simple stuff, right? Well, the designer of the database decided to make the data type of the BillingAmount field a string (specifically varchar(15)), thus I cannot sum this field. I've been trying to create a calculated field in my query that just converts the BillingAmount field to a number using the function "CDbl(dbo.Transactions.BillingAmount)". When I try to run the query however I get the "CDbl is not a valid function" error. This would be easy stuff if I were messing with native Access tables but since these are SQL Server tables then I'm a little out of my experience. Anyone know how I can do what I'd like to do here? Thanks. _______________________________________________ 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 1 14:02:57 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 1 Jul 2003 15:02:57 -0400 Subject: [AccessD] Record # of Qty Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF403897A1B@xlivmbx12.aig.com> In the form's Load event... Me.RecorsetClone.MoveLast and in the form's Current event txtRecordInfo = CurrentRecord & " of " & Me.RecordsetClone.RecordCount where txtRecordInfo is the textbox that displays the information. > -----Original Message----- > From: John Clark [SMTP:John.Clark at niagaracounty.com] > Sent: Tuesday, July 01, 2003 2:36 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Record # of Qty > > I created my own set of navigation buttons for some of my forms, but > they are missing the "record # of HowMany" line, which I think is > necessary...or at least preferable...in many of my forms. I seem to > remember doing this in the past, but I am unable to find any examples. > Does anybody have any sample code for this? > > This should be easy, but I am just not getting it! > > John W Clark > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Mwp.Reid at Queens-Belfast.AC.UK Tue Jul 1 14:03:41 2003 From: Mwp.Reid at Queens-Belfast.AC.UK (Mwp.Reid at Queens-Belfast.AC.UK) Date: Tue, 01 Jul 2003 20:03:41 +0100 (BST) Subject: [AccessD] Converting a string to a double in an SQL query. In-Reply-To: <200307011716.h61HGnQ19492@databaseadvisors.com> References: <200307011716.h61HGnQ19492@databaseadvisors.com> Message-ID: <1057086221.3f01db0d742c1@hosea.qub.ac.uk> LOOKup CAST or CONVERT in Books on lIne for an example martin Quoting Michael Tucker : > Hi everyone, > > I'm dealing with an Access Project that is connecting to an SQL Server > database. I'm trying to produce a query (and a report that reads this > query) to totals a billing amount. Simple stuff, right? Well, the > designer > of the database decided to make the data type of the BillingAmount field > a > string (specifically varchar(15)), thus I cannot sum this field. > > I've been trying to create a calculated field in my query that just > converts > the BillingAmount field to a number using the function > "CDbl(dbo.Transactions.BillingAmount)". When I try to run the query > however > I get the "CDbl is not a valid function" error. > > This would be easy stuff if I were messing with native Access tables > but > since these are SQL Server tables then I'm a little out of my > experience. > Anyone know how I can do what I'd like to do here? > > Thanks. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Mwp.Reid at Queens-Belfast.AC.UK Tue Jul 1 14:05:21 2003 From: Mwp.Reid at Queens-Belfast.AC.UK (Mwp.Reid at Queens-Belfast.AC.UK) Date: Tue, 01 Jul 2003 20:05:21 +0100 (BST) Subject: [AccessD] OT Java VM In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173F00E@TTNEXCHSRV1.hshhp.com> References: <22F1CCD5171D17419CB37FEEE09D5F990173F00E@TTNEXCHSRV1.hshhp.com> Message-ID: <1057086321.3f01db71e9726@hosea.qub.ac.uk> Yes but its the Sun Java Engine. The stuff I am doing will not work with it. It has to be the MS one but then that was the last time I tried so I am of to sun to get it now and try again (<: Martin Quoting Jim DeMarco : > Martin, > > Don't you get it when you download java from Sun? > > Jim DeMarco > > > -----Original Message----- > From: Mwp.Reid at Queens-Belfast.AC.UK > [mailto:Mwp.Reid at Queens-Belfast.AC.UK] > Sent: Tuesday, July 01, 2003 1:40 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT Java VM > > > I need a copy of the Java VM for IE 6. Anyone know where it lives? Been > to MS > and all the usual places but no luck. SOme legal case meant MS had to > stop downloading it. > > Martin > _______________________________________________ > 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". > ******************************************************************************** *** > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Mwp.Reid at Queens-Belfast.AC.UK Tue Jul 1 14:06:09 2003 From: Mwp.Reid at Queens-Belfast.AC.UK (Mwp.Reid at Queens-Belfast.AC.UK) Date: Tue, 01 Jul 2003 20:06:09 +0100 (BST) Subject: [AccessD] OT Java VM In-Reply-To: References: Message-ID: <1057086369.3f01dba14d397@hosea.qub.ac.uk> Yeah. I am using a new OS and the updates dont exist yet LOL Martin Quoting "Mitsules, Mark" : > Martin, > > Q: How can I get the Microsoft VM now? > A: Microsoft provides updates to existing Microsoft VM installations > through > Windows Update. > > > ...but I think I found it here: > http://tech-help.llcoop.net/downloads/msjavx86.exe > > > HTH, > > > Mark > > > -----Original Message----- > From: Mwp.Reid at Queens-Belfast.AC.UK > [mailto:Mwp.Reid at Queens-Belfast.AC.UK] > Sent: Tuesday, July 01, 2003 1:40 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT Java VM > > > I need a copy of the Java VM for IE 6. Anyone know where it lives? Been > to > MS > and all the usual places but no luck. SOme legal case meant MS had to > stop > downloading it. > > Martin > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lists at theopg.com Tue Jul 1 14:06:22 2003 From: Lists at theopg.com (Mark H) Date: Tue, 1 Jul 2003 20:06:22 +0100 Subject: [AccessD] weird query def In-Reply-To: Message-ID: <00b401c34003$dcd3e660$880d6bd5@netboxxp> Not sure if this is any help, but I just tried it using ADO with the function, query and table in db1 and the code for getting the field names from an adodb.recordset in db2 (which also referenced db1). Worked fine... Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: 01 July 2003 17:55 To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def Yes, but were you running the code inside the database with the function? I am talking about a wizard where the code is external to the query db. It opens the database, sets a querydef and looks at the field collection. >From OUTSIDE the db that has the query and function it is not working here (in A2K). Function QryFldLst(strDBName As String, strQryName As String) As String On Error GoTo Err_QryFldLst Dim wks As DAO.Workspace Dim dbs As DAO.Database Dim fld As DAO.Field Dim str As String Dim qdf As DAO.QueryDef Set wks = DBEngine(0) Set dbs = wks.OpenDatabase(strDBName) Set qdf = dbs.QueryDefs(strQryName) For Each fld In qdf.Fields If Len(str) > 0 Then str = str & ";" End If str = str & fld.Name Next If Len(str) = 0 Then MsgBox strQryName & " NOT FOUND in " & "QryFldLst" Else QryFldLst = str End If Exit_QryFldLst: On Error Resume Next Set fld = Nothing If Not (dbs Is Nothing) Then dbs.Close: Set dbs = Nothing If Not (wks Is Nothing) Then wks.Close: Set wks = Nothing Exit Function Err_QryFldLst: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function Module1.QryFldLst" Resume Exit_QryFldLst End Select Resume 0 '.FOR TROUBLESHOOTING End Function John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark H Sent: Tuesday, July 01, 2003 12:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def John I just tried it using Access XP and a recordset and it worked. I created a query with a column called "X" which was the result of a function which multiplies table columns a and c. I then created an adodb.recordset, cycled through the fields and managed to debug.print each fields name. "X" was there... hth Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mwp.Reid at Queens-Belfast.AC.UK Tue Jul 1 14:12:06 2003 From: Mwp.Reid at Queens-Belfast.AC.UK (Mwp.Reid at Queens-Belfast.AC.UK) Date: Tue, 01 Jul 2003 20:12:06 +0100 (BST) Subject: [AccessD] Test In-Reply-To: References: Message-ID: <1057086726.3f01dd06cc90d@hosea.qub.ac.uk> Its me. Took two hours for that email to appear Martin Quoting "Wortz, Charles" : > Martin, > > We are still here so it must be you. > > Charles Wortz > Software Development Division > Texas Education Agency > 1701 N. Congress Ave > Austin, TX 78701-1494 > 512-463-9493 > CWortz at tea.state.tx.us > > > > -----Original Message----- > From: Mwp.Reid at Queens-Belfast.AC.UK > [mailto:Mwp.Reid at Queens-Belfast.AC.UK] > Sent: Tuesday 2003 Jul 01 12:52 > To: Access Developers discussion and problem solving > Subject: [AccessD] Test > Importance: Low > > > Its 18.51pm > > Either my work email is dead or everyone has unsubbed > > Martin > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Mwp.Reid at Queens-Belfast.AC.UK Tue Jul 1 14:12:56 2003 From: Mwp.Reid at Queens-Belfast.AC.UK (Mwp.Reid at Queens-Belfast.AC.UK) Date: Tue, 01 Jul 2003 20:12:56 +0100 (BST) Subject: [AccessD] OT Java VM In-Reply-To: References: Message-ID: <1057086776.3f01dd381f4e1@hosea.qub.ac.uk> Thanks Mark That was it Martin Quoting "Mitsules, Mark" : > Martin, > > Q: How can I get the Microsoft VM now? > A: Microsoft provides updates to existing Microsoft VM installations > through > Windows Update. > > > ...but I think I found it here: > http://tech-help.llcoop.net/downloads/msjavx86.exe > > > HTH, > > > Mark > > > -----Original Message----- > From: Mwp.Reid at Queens-Belfast.AC.UK > [mailto:Mwp.Reid at Queens-Belfast.AC.UK] > Sent: Tuesday, July 01, 2003 1:40 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT Java VM > > > I need a copy of the Java VM for IE 6. Anyone know where it lives? Been > to > MS > and all the usual places but no luck. SOme legal case meant MS had to > stop > downloading it. > > Martin > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BarbaraRyan at cox.net Tue Jul 1 14:22:51 2003 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Tue, 1 Jul 2003 15:22:51 -0400 Subject: [AccessD] Two front end databases with one user interface? References: <8301C8A868251E4C8ECD3D4FFEA40F8A03305E1B@cpixchng-1.cpiqpc.net> Message-ID: <017e01c34006$2a8a6440$a2c50a44@hr.cox.net> Rusty.... This sounds like something that would work really well for me. I would love to have a sample of the code...........Thanks, Barb ----- Original Message ----- From: rusty.hammond at cpiqpc.com To: accessd at databaseadvisors.com Sent: Tuesday, July 01, 2003 2:46 PM Subject: RE: [AccessD] Two front end databases with one user interface? I've never done it but how about something like this: Put some functionality in the vanilla version that checks for the existence of a custom.mdb in the same directory as the vanilla front end. If it's there, then open it and import the custom objects into the working interface. You could have a Custom options menu item on your main menu that would open another menu that would drive your Custom options. This Custom options menu would exist in the custom.mdb and be imported with the other custom objects. If you will be importing objects from the custom.mdb that have the same names as objects in your vanilla front end, your code will need to delete the object in the vanilla front end before importing the custom object. If you are running the front end on the local hard drive, you could copy the custom.mdb to their hard drive as well. Then you are only modifying the copy of the front end. The master copy of the vanilla front end remains untouched. Any additional customizations are added to the custom.mdb which is then copied down to the local hard drive. You would need code to: A. Search for the existence of custom.mdb in the same directory as your running front end B. Spin through the list of objects in the custom.mdb and compare the names to the list of objects in the vanilla front end AND if any match, delete them in the vanilla front end. C. Import the objects from the custom.mdb I've already setup a test.mdb and a custom.mdb and will be working on the code to do this so if you need a sample let me know and I'll try to have something for you soon. HTH Rusty -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, July 01, 2003 12:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Two front end databases with one user interface? I have never found an easy way to do this but thanks for asking the question. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 1:04 PM To: Access List Subject: [AccessD] Two front end databases with one user interface? I have a "vanilla" Access 97 application that is used at multiple sites. If a particular site want a modification --- e.g., a customized version that I do NOT want to incorporate into the vanilla version, is there a way that I can create a separate front end (to hold these custom objects) yet still have one user interface? I don't want them to have to open two separate applications. Hope this makes sense! Thanks, Barb Ryan ------------------------------------------------------------------------------ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mwp.Reid at Queens-Belfast.AC.UK Tue Jul 1 14:17:57 2003 From: Mwp.Reid at Queens-Belfast.AC.UK (Mwp.Reid at Queens-Belfast.AC.UK) Date: Tue, 01 Jul 2003 20:17:57 +0100 (BST) Subject: [AccessD] OT Have to share In-Reply-To: References: Message-ID: <1057087077.3f01de65248e8@hosea.qub.ac.uk> In October I am going to the USA for a week to stay with Rocky. Cant believe it. At last after all these years on AccessD I actually get to meet someone of this list and perhaps more than one. Martin From cfoust at infostatsystems.com Tue Jul 1 14:24:17 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 1 Jul 2003 12:24:17 -0700 Subject: [AccessD] OT Have to share Message-ID: Hey, Martin, that's wonderful. Welcome to sunny California! Charlotte Foust -----Original Message----- From: Mwp.Reid at Queens-Belfast.AC.UK [mailto:Mwp.Reid at Queens-Belfast.AC.UK] Sent: Tuesday, July 01, 2003 11:18 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT Have to share In October I am going to the USA for a week to stay with Rocky. Cant believe it. At last after all these years on AccessD I actually get to meet someone of this list and perhaps more than one. Martin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From CWortz at tea.state.tx.us Tue Jul 1 14:31:12 2003 From: CWortz at tea.state.tx.us (Wortz, Charles) Date: Tue, 1 Jul 2003 14:31:12 -0500 Subject: [AccessD] OT Have to share Message-ID: Martin, Are you sure that you can stand staying with Rocky for a week? Do you know your schedule for your time on this side of the pond? So of the rest of us might be able to do a face-to-face with you. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us -----Original Message----- From: Mwp.Reid at Queens-Belfast.AC.UK [mailto:Mwp.Reid at Queens-Belfast.AC.UK] Sent: Tuesday 2003 Jul 01 14:18 To: Access Developers discussion and problem solving Subject: [AccessD] OT Have to share In October I am going to the USA for a week to stay with Rocky. Cant believe it. At last after all these years on AccessD I actually get to meet someone of this list and perhaps more than one. Martin From stephen at bondsoftware.co.nz Tue Jul 1 14:33:20 2003 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Wed, 02 Jul 2003 07:33:20 +1200 Subject: [AccessD] Invoking one Access app from another Message-ID: <70F3D727890C784291D8433E9C418F29038B74@server.bondsoftware.co.nz> Thanks. Will have a look at this. Reading the doc'n, it looks like I can open FE#2 in a separate window (which is what I want). Cheers Stephen Bond -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, 2 July 2003 3:04 a.m. To: Access Developers discussion and problem solving Subject: RE: [AccessD] Invoking one Access app from another You could also try the OpenCurrentDatabase method, which doesn't require so much code.. Charlotte Foust -----Original Message----- From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] Sent: Monday, June 30, 2003 7:54 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Invoking one Access app from another Think I've got it solved (it's still daytime in the Antipodes ). This code attached to a command button does the trick ... From chise at wwisp.com Tue Jul 1 14:53:39 2003 From: chise at wwisp.com (Charles Hise) Date: Tue, 1 Jul 2003 14:53:39 -0500 Subject: [AccessD] Free copies of mcgaffees spamkiller In-Reply-To: Message-ID: <000501c3400a$77eedfa0$0232a8c0@admin> John, I tried it a month ago. It treats all Accessd posts as spam and requires you resend all messages to get through. Charlis -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, July 01, 2003 11:57 AM To: AccessD Subject: [AccessD] Free copies of mcgaffees spamkiller http://www.extremetech.com/article2/0,3973,1142152,00.asp John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tracy at ak.planet.gen.nz Tue Jul 1 15:22:41 2003 From: tracy at ak.planet.gen.nz (Tracy) Date: Wed, 2 Jul 2003 08:22:41 +1200 Subject: [AccessD] Form Filtering not working References: <104AB6116A2DD511A7580008C7097A9821996E@AARDBEI> Message-ID: <000501c3400e$8815b670$a44114ca@Notebook> Hi Listers I'm having a weird problem with one of my forms. When filtering the form, the filter works the first time ie: it goes to the correct record. But the second and subsequent times it remains at the record that was filtered the first time. I know the code that I use to filter the record is 100% correct as the app has been used for the last 5 years and this code hasn't been changed. Has anybody come across anything like this before ? I have tried removing the filter from the form then applying the new filter criteria in code but this has the same result as above ie: works the first time but not the second and subsequent times. Any help appreciated Cheers Tracy From cfoust at infostatsystems.com Tue Jul 1 15:31:00 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 1 Jul 2003 13:31:00 -0700 Subject: [AccessD] Form Filtering not working Message-ID: When you say "filter", is that actually what you mean? It sounds more like you're using some kind of find or seek to locate the record instead, and that isn't the same thing at all. What version of Access are you using. Charlotte Foust -----Original Message----- From: Tracy [mailto:tracy at ak.planet.gen.nz] Sent: Tuesday, July 01, 2003 12:23 PM To: Access Developers discussion and problem solving Subject: [AccessD] Form Filtering not working Hi Listers I'm having a weird problem with one of my forms. When filtering the form, the filter works the first time ie: it goes to the correct record. But the second and subsequent times it remains at the record that was filtered the first time. I know the code that I use to filter the record is 100% correct as the app has been used for the last 5 years and this code hasn't been changed. Has anybody come across anything like this before ? I have tried removing the filter from the form then applying the new filter criteria in code but this has the same result as above ie: works the first time but not the second and subsequent times. Any help appreciated Cheers Tracy _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mtucker at myrealbox.com Tue Jul 1 15:47:38 2003 From: mtucker at myrealbox.com (Michael Tucker) Date: Tue, 1 Jul 2003 16:47:38 -0400 Subject: [AccessD] Converting a string to a double in an SQL query. In-Reply-To: <003201c34002$dfd534f0$b5340cd8@hargrove.internal> Message-ID: <200307012047.h61KlPQ14049@databaseadvisors.com> Thanks for the reply. That did what I was looking for. However, I'm seeing another problem when basing a report off of this query. I am seeing the following error message when trying to preview the report I am creating... "Column (BillingAmount) was used in a CALC expression but is not defined in a rowset." I'm not really doing anything fancy except trying to sum the new "Billing" field which is =Convert(money, dbo.Transactions.BillingAmount). In fact, I get the error message even when I take the "Billing" field off of the report. Anyone know what may cause the error message? Thank you. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike and Doris Manning Sent: Tuesday, July 01, 2003 2:59 PM To: 'Access Developers discussion and problem solving' Convert(money, dbo.Transactions.BillingAmount) 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 Michael Tucker Sent: Tuesday, July 01, 2003 1:17 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Converting a string to a double in an SQL query. From Mwp.Reid at Queens-Belfast.AC.UK Tue Jul 1 15:55:06 2003 From: Mwp.Reid at Queens-Belfast.AC.UK (Mwp.Reid at Queens-Belfast.AC.UK) Date: Tue, 01 Jul 2003 21:55:06 +0100 (BST) Subject: [AccessD] Final test In-Reply-To: <200307012047.h61KlPQ14049@databaseadvisors.com> References: <200307012047.h61KlPQ14049@databaseadvisors.com> Message-ID: <1057092906.3f01f52a8776b@hosea.qub.ac.uk> test 10pm From Lambert.Heenan at AIG.com Tue Jul 1 15:57:50 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 1 Jul 2003 16:57:50 -0400 Subject: [AccessD] OT Java VM Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF403897A1E@xlivmbx12.aig.com> Just be aware that the link will get you a copy of the last MS VM issued, and that MS will NOT support it, issue patches for it or fix any security vulnerabilities that come to light. You say that "stuff I am doing will not work with" the Sun VM. Is this because your working with MS J++? The law suite was all about MS making changes to the VM spec, thus blowing out of the water the notion of Java being a universal, write once, run everywhere language. > -----Original Message----- > From: Mwp.Reid at Queens-Belfast.AC.UK [SMTP:Mwp.Reid at Queens-Belfast.AC.UK] > Sent: Tuesday, July 01, 2003 3:13 PM > To: Access Developers discussion and problem solving; Mitsules, Mark > Subject: RE: [AccessD] OT Java VM > > Thanks Mark > > That was it > > Martin > > > Quoting "Mitsules, Mark" : > > > Martin, > > > > Q: How can I get the Microsoft VM now? > > A: Microsoft provides updates to existing Microsoft VM installations > > through > > Windows Update. > > > > > > ...but I think I found it here: > > http://tech-help.llcoop.net/downloads/msjavx86.exe > > > > > > HTH, > > > > > > Mark > > > > > > -----Original Message----- > > From: Mwp.Reid at Queens-Belfast.AC.UK > > [mailto:Mwp.Reid at Queens-Belfast.AC.UK] > > Sent: Tuesday, July 01, 2003 1:40 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] OT Java VM > > > > > > I need a copy of the Java VM for IE 6. Anyone know where it lives? Been > > to > > MS > > and all the usual places but no luck. SOme legal case meant MS had to > > stop > > downloading it. > > > > Martin > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Jul 1 16:25:07 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 1 Jul 2003 17:25:07 -0400 Subject: [AccessD] weird query def In-Reply-To: <00b401c34003$dcd3e660$880d6bd5@netboxxp> Message-ID: Messagecould you send me the code? John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark H Sent: Tuesday, July 01, 2003 3:06 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def Not sure if this is any help, but I just tried it using ADO with the function, query and table in db1 and the code for getting the field names from an adodb.recordset in db2 (which also referenced db1). Worked fine... Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: 01 July 2003 17:55 To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def Yes, but were you running the code inside the database with the function? I am talking about a wizard where the code is external to the query db. It opens the database, sets a querydef and looks at the field collection. >From OUTSIDE the db that has the query and function it is not working here (in A2K). Function QryFldLst(strDBName As String, strQryName As String) As String On Error GoTo Err_QryFldLst Dim wks As DAO.Workspace Dim dbs As DAO.Database Dim fld As DAO.Field Dim str As String Dim qdf As DAO.QueryDef Set wks = DBEngine(0) Set dbs = wks.OpenDatabase(strDBName) Set qdf = dbs.QueryDefs(strQryName) For Each fld In qdf.Fields If Len(str) > 0 Then str = str & ";" End If str = str & fld.Name Next If Len(str) = 0 Then MsgBox strQryName & " NOT FOUND in " & "QryFldLst" Else QryFldLst = str End If Exit_QryFldLst: On Error Resume Next Set fld = Nothing If Not (dbs Is Nothing) Then dbs.Close: Set dbs = Nothing If Not (wks Is Nothing) Then wks.Close: Set wks = Nothing Exit Function Err_QryFldLst: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function Module1.QryFldLst" Resume Exit_QryFldLst End Select Resume 0 '.FOR TROUBLESHOOTING End Function John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark H Sent: Tuesday, July 01, 2003 12:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def John I just tried it using Access XP and a recordset and it worked. I created a query with a column called "X" which was the result of a function which multiplies table columns a and c. I then created an adodb.recordset, cycled through the fields and managed to debug.print each fields name. "X" was there... hth Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Tue Jul 1 16:28:42 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 1 Jul 2003 17:28:42 -0400 Subject: [AccessD] Free copies of mcgaffees spamkiller In-Reply-To: <000501c3400a$77eedfa0$0232a8c0@admin> Message-ID: LOL. I just thought I'd lighten the load on the accessD list for awhile while everyone figured it out. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charles Hise Sent: Tuesday, July 01, 2003 3:54 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Free copies of mcgaffees spamkiller John, I tried it a month ago. It treats all Accessd posts as spam and requires you resend all messages to get through. Charlis -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, July 01, 2003 11:57 AM To: AccessD Subject: [AccessD] Free copies of mcgaffees spamkiller http://www.extremetech.com/article2/0,3973,1142152,00.asp John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From MPorter at acsalaska.com Tue Jul 1 17:11:11 2003 From: MPorter at acsalaska.com (Porter, Mark) Date: Tue, 1 Jul 2003 14:11:11 -0800 Subject: [AccessD] Free copies of mcgaffees spamkiller Message-ID: For an excellent spam solution, check out Mailwasher. Mark -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, July 01, 2003 1:29 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Free copies of mcgaffees spamkiller LOL. I just thought I'd lighten the load on the accessD list for awhile while everyone figured it out. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charles Hise Sent: Tuesday, July 01, 2003 3:54 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Free copies of mcgaffees spamkiller John, I tried it a month ago. It treats all Accessd posts as spam and requires you resend all messages to get through. Charlis -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, July 01, 2003 11:57 AM To: AccessD Subject: [AccessD] Free copies of mcgaffees spamkiller http://www.extremetech.com/article2/0,3973,1142152,00.asp John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. From Lists at theopg.com Tue Jul 1 17:27:51 2003 From: Lists at theopg.com (Mark H) Date: Tue, 1 Jul 2003 23:27:51 +0100 Subject: [AccessD] weird query def In-Reply-To: Message-ID: <00f401c34020$0260b810$880d6bd5@netboxxp> sent it off-list Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: 01 July 2003 22:25 To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def could you send me the code? John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark H Sent: Tuesday, July 01, 2003 3:06 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def Not sure if this is any help, but I just tried it using ADO with the function, query and table in db1 and the code for getting the field names from an adodb.recordset in db2 (which also referenced db1). Worked fine... Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: 01 July 2003 17:55 To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def Yes, but were you running the code inside the database with the function? I am talking about a wizard where the code is external to the query db. It opens the database, sets a querydef and looks at the field collection. >From OUTSIDE the db that has the query and function it is not working here (in A2K). Function QryFldLst(strDBName As String, strQryName As String) As String On Error GoTo Err_QryFldLst Dim wks As DAO.Workspace Dim dbs As DAO.Database Dim fld As DAO.Field Dim str As String Dim qdf As DAO.QueryDef Set wks = DBEngine(0) Set dbs = wks.OpenDatabase(strDBName) Set qdf = dbs.QueryDefs(strQryName) For Each fld In qdf.Fields If Len(str) > 0 Then str = str & ";" End If str = str & fld.Name Next If Len(str) = 0 Then MsgBox strQryName & " NOT FOUND in " & "QryFldLst" Else QryFldLst = str End If Exit_QryFldLst: On Error Resume Next Set fld = Nothing If Not (dbs Is Nothing) Then dbs.Close: Set dbs = Nothing If Not (wks Is Nothing) Then wks.Close: Set wks = Nothing Exit Function Err_QryFldLst: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function Module1.QryFldLst" Resume Exit_QryFldLst End Select Resume 0 '.FOR TROUBLESHOOTING End Function John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark H Sent: Tuesday, July 01, 2003 12:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] weird query def John I just tried it using Access XP and a recordset and it worked. I created a query with a column called "X" which was the result of a function which multiplies table columns a and c. I then created an adodb.recordset, cycled through the fields and managed to debug.print each fields name. "X" was there... hth Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikedorism at ntelos.net Tue Jul 1 17:45:50 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Tue, 1 Jul 2003 18:45:50 -0400 Subject: [AccessD] Converting a string to a double in an SQL query. In-Reply-To: <200307012047.h61KlPQ14049@databaseadvisors.com> Message-ID: <000901c34022$88ffff50$b5340cd8@hargrove.internal> Check your query... Access probably stuck Expr1 in for the name instead of BillingAmount. 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 Michael Tucker Sent: Tuesday, July 01, 2003 4:48 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Converting a string to a double in an SQL query. Thanks for the reply. That did what I was looking for. However, I'm seeing another problem when basing a report off of this query. I am seeing the following error message when trying to preview the report I am creating... "Column (BillingAmount) was used in a CALC expression but is not defined in a rowset." I'm not really doing anything fancy except trying to sum the new "Billing" field which is =Convert(money, dbo.Transactions.BillingAmount). In fact, I get the error message even when I take the "Billing" field off of the report. Anyone know what may cause the error message? Thank you. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike and Doris Manning Sent: Tuesday, July 01, 2003 2:59 PM To: 'Access Developers discussion and problem solving' Convert(money, dbo.Transactions.BillingAmount) 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 Michael Tucker Sent: Tuesday, July 01, 2003 1:17 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Converting a string to a double in an SQL query. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkins at iglou.com Tue Jul 1 17:48:33 2003 From: harkins at iglou.com (Susan Harkins) Date: Tue, 1 Jul 2003 18:48:33 -0400 Subject: [AccessD] updating PivotChart's query Message-ID: <000f01c34022$fea72b20$f8ecffcc@SusanOne> I based a PivotChart form on a query. Then, I returned to the query and added additional fields to it -- but the PivotChart's Field List won't reflect the new fields. Is there anyway to update the fields or do you just have to start over? That seems a bit convoluted. :( Susan H. From artful at rogers.com Tue Jul 1 17:56:26 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 1 Jul 2003 18:56:26 -0400 Subject: [AccessD] DSUM - full solution for those interested - RE: subquery assistance In-Reply-To: <104AB6116A2DD511A7580008C7097A9821996E@AARDBEI> Message-ID: <00e001c34024$00513c30$8e01a8c0@Rock> I haven't had to deal with this before, but wouldn't this be a good application for a pair of UDFs that transform dates to and from USA format? Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps Sent: July 1, 2003 2:51 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] DSUM - full solution for those interested - RE: subquery assistance Hi Gustav/David. I'm not sure of that. Date do pose gigantic problems in everything that looks like a SQL statement in VBA. If the date structure of your country is not american you gonna get real trouble. SQL string in VBA need to be build with American dates. I believe there are ways to use ISO dates but than you need to format to. Never use half or long dates line 1 jun 2003. If the windows is set to other language it will crash. At least when using SQL server for this last issue. Erwin -----Oorspronkelijk bericht----- Van: Gustav Brock [mailto:gustav at cactus.dk] Verzonden: zondag 29 juni 2003 14:15 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] DSUM - full solution for those interested - RE: subquery assistance Hi David As you have specified datStartDate and datEndDate as date/time there should really be no reason to use Format() wrapped in crosses (#) as that just leaves you with the date/time value again. If StartDate and EndDate are names of date/time fields of the table, this should do as you compare date/time values with date/time values: strCriteria = "(CampusID=" & intCampus _ & ") AND (StartDate > " datStartDate & ") " _ & "AND (EndDate < " & datEnddate & ")" /gustav Public Function TotalHolidayWeeks(intCampus As Integer, datStartDate As Date, datEnddate As Date) As Integer 'Calculates the number of weeks holiday for a campus between two given dates Dim strCriteria As String strCriteria = "(CampusID=" & intCampus _ & ") AND ((StartDate) > #" & Format(datStartDate, "dd/mmm/yyyy") & "#) " _ & "AND ((EndDate) < #" & Format(datEnddate, "dd/mmm/yyyy") & "#)" TotalHolidayWeeks = Nz(DSum("Weeks", "tblCourseHolidays", strCriteria), 0) End Function _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Jul 1 18:07:27 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 09:07:27 +1000 Subject: [AccessD] DSUM - full solution for those interested - RE: subquery assistance In-Reply-To: <00e001c34024$00513c30$8e01a8c0@Rock> References: <104AB6116A2DD511A7580008C7097A9821996E@AARDBEI> Message-ID: <3F02A0CF.9969.506B1A@localhost> I always use .... DateValue('" & myDate & "')......... when building SQL strings. That way it doesn't matter what the local date settings are and I don't need to worry about whether myDate is a string from a textbox or a value from a date variable. I've never had it break yet. On 1 Jul 2003 at 18:56, Arthur Fuller wrote: > I haven't had to deal with this before, but wouldn't this be a good > application for a pair of UDFs that transform dates to and from USA format? > > Arthur > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps > Sent: July 1, 2003 2:51 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] DSUM - full solution for those interested - RE: > subquery assistance > > > Hi Gustav/David. > > I'm not sure of that. > Date do pose gigantic problems in everything that looks like a SQL statement > in VBA. If the date structure of your country is not american you gonna get > real trouble. SQL string in VBA need to be build with American dates. I > believe there are ways to use ISO dates but than you need to format to. > > Never use half or long dates line 1 jun 2003. If the windows is set to other > language it will crash. At least when using SQL server for this last issue. > > Erwin > > > > > > -----Oorspronkelijk bericht----- > Van: Gustav Brock [mailto:gustav at cactus.dk] > Verzonden: zondag 29 juni 2003 14:15 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] DSUM - full solution for those interested - RE: > subquery assistance > > > Hi David > > As you have specified datStartDate and datEndDate as date/time there should > really be no reason to use Format() wrapped in crosses (#) as that just > leaves you with the date/time value again. > > If StartDate and EndDate are names of date/time fields of the table, this > should do as you compare date/time values with date/time values: > > strCriteria = "(CampusID=" & intCampus _ > & ") AND (StartDate > " datStartDate & ") " _ > & "AND (EndDate < " & datEnddate & ")" > > /gustav > > > Public Function TotalHolidayWeeks(intCampus As Integer, datStartDate As > Date, datEnddate As Date) As Integer > > 'Calculates the number of weeks holiday for a campus between two given > dates > > Dim strCriteria As String > > strCriteria = "(CampusID=" & intCampus _ > & ") AND ((StartDate) > #" & Format(datStartDate, "dd/mmm/yyyy") & > "#) " _ > & "AND ((EndDate) < #" & Format(datEnddate, "dd/mmm/yyyy") & "#)" > > TotalHolidayWeeks = Nz(DSum("Weeks", "tblCourseHolidays", strCriteria), > 0) > > End Function > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From cfoust at infostatsystems.com Tue Jul 1 18:14:53 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 1 Jul 2003 16:14:53 -0700 Subject: [AccessD] DSUM - full solution for those interested - RE:subquery assistance Message-ID: I think you might have a problem if the data was being exchanged between sources that used different date languages, since the myDate string might not be recognized as a date under a different regional setting. Charlotte Foust -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Tuesday, July 01, 2003 3:07 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] DSUM - full solution for those interested - RE:subquery assistance I always use .... DateValue('" & myDate & "')......... when building SQL strings. That way it doesn't matter what the local date settings are and I don't need to worry about whether myDate is a string from a textbox or a value from a date variable. I've never had it break yet. On 1 Jul 2003 at 18:56, Arthur Fuller wrote: > I haven't had to deal with this before, but wouldn't this be a good > application for a pair of UDFs that transform dates to and from USA > format? > > Arthur > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps > Sent: July 1, 2003 2:51 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] DSUM - full solution for those interested - RE: > subquery assistance > > > Hi Gustav/David. > > I'm not sure of that. > Date do pose gigantic problems in everything that looks like a SQL > statement in VBA. If the date structure of your country is not > american you gonna get real trouble. SQL string in VBA need to be > build with American dates. I believe there are ways to use ISO dates > but than you need to format to. > > Never use half or long dates line 1 jun 2003. If the windows is set to > other language it will crash. At least when using SQL server for this > last issue. > > Erwin > > > > > > -----Oorspronkelijk bericht----- > Van: Gustav Brock [mailto:gustav at cactus.dk] > Verzonden: zondag 29 juni 2003 14:15 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] DSUM - full solution for those interested - RE: > subquery assistance > > > Hi David > > As you have specified datStartDate and datEndDate as date/time there > should really be no reason to use Format() wrapped in crosses (#) as > that just leaves you with the date/time value again. > > If StartDate and EndDate are names of date/time fields of the table, > this should do as you compare date/time values with date/time values: > > strCriteria = "(CampusID=" & intCampus _ > & ") AND (StartDate > " datStartDate & ") " _ > & "AND (EndDate < " & datEnddate & ")" > > /gustav > > > Public Function TotalHolidayWeeks(intCampus As Integer, datStartDate > As Date, datEnddate As Date) As Integer > > 'Calculates the number of weeks holiday for a campus between two > given dates > > Dim strCriteria As String > > strCriteria = "(CampusID=" & intCampus _ > & ") AND ((StartDate) > #" & Format(datStartDate, > "dd/mmm/yyyy") & > "#) " _ > & "AND ((EndDate) < #" & Format(datEnddate, "dd/mmm/yyyy") & "#)" > > TotalHolidayWeeks = Nz(DSum("Weeks", "tblCourseHolidays", > strCriteria), > 0) > > End Function > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgoodhall at comcast.net Tue Jul 1 20:31:40 2003 From: sgoodhall at comcast.net (Steve Goodhall) Date: Tue, 1 Jul 2003 21:31:40 -0400 Subject: [AccessD] Two front end databases with one user interface? In-Reply-To: Message-ID: Perhaps not easy, but if you have 2 FEDB's, you can register one of them as a "library" of the other one. This will allow you do invoke functions in the 2nd DB (the "library") from the 1st db. You can use these functions to open forms, etc. I haven't ever done much with this, other than build some simple function libraries. You will probably have to have both FEDB's linked to the tables in the BE. Note that you cannot, unfortunately, create a circular reference to permit the 2nd db to invoke functions in the 1st. I had done this only in A2K, so just to be sure, I built a Q&D test set in A97 and it seems to work. Regards, Steve Goodhall -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Tuesday, July 01, 2003 1:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Two front end databases with one user interface? I have never found an easy way to do this but thanks for asking the question. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 1:04 PM To: Access List Subject: [AccessD] Two front end databases with one user interface? I have a "vanilla" Access 97 application that is used at multiple sites. If a particular site want a modification --- e.g., a customized version that I do NOT want to incorporate into the vanilla version, is there a way that I can create a separate front end (to hold these custom objects) yet still have one user interface? I don't want them to have to open two separate applications. Hope this makes sense! Thanks, Barb Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From tracy at ak.planet.gen.nz Tue Jul 1 23:22:06 2003 From: tracy at ak.planet.gen.nz (Tracy) Date: Wed, 2 Jul 2003 16:22:06 +1200 Subject: [AccessD] Form Filtering not working References: Message-ID: <00c601c34051$802fa2c0$864114ca@Notebook> Hi Charlotte When opening the form using VBA code as below: DoCmd.OpenForm "Quote", , , "[QuoteNumber] = Forms![Quote - list]![QuoteNumber]" Using Access 2000 on Windows 2000 SP3 Thabks Tracy ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, July 02, 2003 8:31 AM Subject: RE: [AccessD] Form Filtering not working > When you say "filter", is that actually what you mean? It sounds more > like you're using some kind of find or seek to locate the record > instead, and that isn't the same thing at all. What version of Access > are you using. > > Charlotte Foust > > -----Original Message----- > From: Tracy [mailto:tracy at ak.planet.gen.nz] > Sent: Tuesday, July 01, 2003 12:23 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Form Filtering not working > > > Hi Listers > I'm having a weird problem with one of my forms. > > When filtering the form, the filter works the first time ie: it goes to > the correct record. But the second and subsequent times it remains at > the record that was filtered the first time. > > I know the code that I use to filter the record is 100% correct as the > app has been used for the last 5 years and this code hasn't been > changed. > > Has anybody come across anything like this before ? > > I have tried removing the filter from the form then applying the new > filter criteria in code but this has the same result as above ie: works > the first time but not the second and subsequent times. > > Any help appreciated > > Cheers Tracy > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tracy at ak.planet.gen.nz Tue Jul 1 23:24:02 2003 From: tracy at ak.planet.gen.nz (Tracy) Date: Wed, 2 Jul 2003 16:24:02 +1200 Subject: [AccessD] Free copies of mcgaffees spamkiller References: Message-ID: <00d901c34051$c4dd9350$864114ca@Notebook> For an even better spam solution - check out Mozilla browser and Thunderbird Mail (Mozillas mail client) Cheers Tracy ----- Original Message ----- From: "Porter, Mark" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, July 02, 2003 10:11 AM Subject: RE: [AccessD] Free copies of mcgaffees spamkiller > For an excellent spam solution, check out Mailwasher. > > Mark > > -----Original Message----- > From: John Colby [mailto:jcolby at colbyconsulting.com] > Sent: Tuesday, July 01, 2003 1:29 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Free copies of mcgaffees spamkiller > > > LOL. I just thought I'd lighten the load on the accessD list for awhile > while everyone figured it out. > > > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charles Hise > Sent: Tuesday, July 01, 2003 3:54 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Free copies of mcgaffees spamkiller > > > John, I tried it a month ago. It treats all Accessd posts as spam and > requires you resend all messages to get through. > Charlis > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby > Sent: Tuesday, July 01, 2003 11:57 AM > To: AccessD > Subject: [AccessD] Free copies of mcgaffees spamkiller > > http://www.extremetech.com/article2/0,3973,1142152,00.asp > > John W. Colby > www.colbyconsulting.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > This transmittal may contain confidential information intended solely for > the addressee. If you are not the intended recipient, you are hereby > notified that you have received this transmittal in error; any review, > dissemination, distribution or copying of this transmittal is strictly > prohibited. If you have received this communication in error, please notify > us immediately by reply or by telephone (collect at 907-564-1000) and ask to > speak with the message sender. In addition, please immediately delete this > message and all attachments. Thank you. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From hsimpson88 at hotmail.com Tue Jul 1 23:28:44 2003 From: hsimpson88 at hotmail.com (Henry Simpson) Date: Tue, 01 Jul 2003 22:28:44 -0600 Subject: [AccessD] AutoNumbers in historical tables Message-ID: Susan: I can't make head or tail out of your last post and John hasn't offered any clarification on his earlier comments. Arthur's comment about a confusion between OLTP and OLAP systems may have some bearing on the why of autonumbers in archiving but has no bearing on how autonumbers may be manipulated which is the matter I was addressing. What is it you mean by not really appending the existing Autonumber value being different from allowing the historical AN to fill in that value? Where is it that 'missing' autonumbers are an issue and I'm not sure what you mean about existing values. Clearly you cannot have duplicate values in an autonumber field but you can insert records from any table into an archive table in any order you wish and in doing so set the archive autonumber to any value that is valid in the source table. I was not talking about setting any seed value. The previous example posted involved setting a table record with two fields, one of which was an autonumber, and inserting that record into another table at any arbitrary value without resetting any seed value. I'll try another example that assumes any table of records with an autonumber field and a table with duplicate structure but no records. You can add an Order By clause for any arbitrary field and the table will fill in any autonumber sequence that that field sort is and all the records identified by an autonumber in the original table will be identically identified in the archive table. Just substitute any table names to try this out: Sub archiveTable() Dim rstSrc As Recordset Dim rstDst As Recordset Dim db As Database Dim lngI As Long Dim lngCount As Long Set db = CurrentDb Set rstSrc = db.OpenRecordset("tblCompany") Set rstDst = db.OpenRecordset("tblCompanyArchive") lngCount = rstSrc.Fields.Count - 1 Do While Not rstSrc.EOF rstDst.AddNew For lngI = 0 To lngCount rstDst(lngI) = rstSrc(lngI) Next rstDst.Update rstSrc.MoveNext Loop rstSrc.Close rstDst.Close Set rstSrc = Nothing Set rstDst = Nothing Set db = Nothing End Sub Hen >From: "Susan Harkins" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] AutoNumbers in historical tables >Date: Mon, 30 Jun 2003 17:43:05 -0400 > >What about missing AutoNumber values in the records you're appending? What >I'm saying is, you're not really appending the existing AutoNumber value, >you're just allowing the historical table's AN to fill in that value. So, >even though you can reset the AN seed value, how would you accommodate the >"existing" values, whatever they are, as you're appending the remaining >records? > >Susan H. > > > > I was responding to the statement: > > > > ...Supposing you were required to preserve the Autonumber -- how >would > > you go about appending records as you archive -- you couldn't I'm > > guessing... > > > > And now you say: > > > > ...I wasn't talking about forcing a new AutoNumber -- I was talking > > about appending records that already have an AutoNumber... > > > > The implication in both cases is: you can't set a record's autonumber >to >an > > arbitrary value. That is not true. What you do is force the AN of the > > resulting archive record to the value in the originating table in the > > append. There is no need to add and delete blank records to force AN >values > > which is the only interpretation I can place on what John said: > > > > ... if you do a restore you MUST go get the last number, add 1 to >it, > > and insert a fake record with that number, then delete that fake record >back > > out... > > > > John's suggestion could work for the situation where you were archiving > > additions to the end of a table and one or more consecutive records >ending > > with the last were deleted but the approach reinforces the implication >that > > one can't simply set the value as required. > > > > Good thing this issue is moot but a casual surveyor of the archive may >pick > > up some misconceptions or may be led to believe that list members don't > > understand autonumbers. > > > > If you have a table tblArk with 10 records and a FirstName field and an > > Autonumber field named PK and you need to write a record that has an > > existing AN of 45: > > > > Dim db as Database > > Set db = CurrentDb > > db.Execute("Insert Into tblArk(PK, FirstName) Values(45, 'Joe')") > > MsgBox db.RecordsAffected > > > > If you add and delete a thousand records, you can still run the code >above > > and you will have 1 record added provided that the number 45 isn't >already > > taken and notwithstanding that the next automatic number would be over >1000. > > In any case where the AN 45 is not already used, the example code >above > > will insert a record and set its autonumber value. If you have a >record > > with an existing autonumber that needs to be changed, you can insert the > > field values into a new record and set the desired autonumber for the > > duplicate and then delete the old record. While you cannot directly >edit >an > > existing AN, you can readily achieve the result. > > > > There is no need to get into the question of why one would want to >change >or > > set an autonumber. I was merely attempting to prevent repetition of a >too > > often repeated misconception. > > > > Hen > > > > > > > > > > > > The main point I was making was that I understood Susan to imply >that > > >one > > > > can not set the value of an autonumber field to any arbitrary valid > > >value > > > > and that is not accurate. > > > > > >============== I don't remember what I said, but I'm sure that's not >what >I > > >meant. :) I wasn't talking about forcing a new AutoNumber -- I was >talking > > >about appending records that already have an AutoNumber... > > > > > >Susan H. > > > > _________________________________________________________________ > > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > > http://join.msn.com/?page=features/featuredemail > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From gustav at cactus.dk Wed Jul 2 01:14:05 2003 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 2 Jul 2003 08:14:05 +0200 Subject: [AccessD] weird query def In-Reply-To: <00f401c34020$0260b810$880d6bd5@netboxxp> References: <00f401c34020$0260b810$880d6bd5@netboxxp> Message-ID: <111894424.20030702081405@cactus.dk> Hi Mark and John Hey, nice couple you two! Thanks for the insight. /gustav > sent it off-list > Mark > could you send me the code? > John W. Colby > Not sure if this is any help, but I just tried it using ADO with the > function, query and table in db1 and the code for getting the field > names from an adodb.recordset in db2 (which also referenced db1). Worked > fine... > Mark From mwp.reid at qub.ac.uk Wed Jul 2 02:37:40 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 2 Jul 2003 08:37:40 +0100 Subject: [AccessD] OT Java VM References: <8B98F8EA48F8BA47A2F24E0D0AF40CF403897A1E@xlivmbx12.aig.com> Message-ID: <001901c3406c$d0fb4680$9111758f@aine> Its banking software. Already done and will not work with Sun VM. Martin ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" ; "Mitsules, Mark" Sent: Tuesday, July 01, 2003 9:57 PM Subject: RE: [AccessD] OT Java VM > Just be aware that the link will get you a copy of the last MS VM issued, > and that MS will NOT support it, issue patches for it or fix any security > vulnerabilities that come to light. > > You say that "stuff I am doing will not work with" the Sun VM. Is this > because your working with MS J++? The law suite was all about MS making > changes to the VM spec, thus blowing out of the water the notion of Java > being a universal, write once, run everywhere language. > > > -----Original Message----- > > From: Mwp.Reid at Queens-Belfast.AC.UK [SMTP:Mwp.Reid at Queens-Belfast.AC.UK] > > Sent: Tuesday, July 01, 2003 3:13 PM > > To: Access Developers discussion and problem solving; Mitsules, Mark > > Subject: RE: [AccessD] OT Java VM > > > > Thanks Mark > > > > That was it > > > > Martin > > > > > > Quoting "Mitsules, Mark" : > > > > > Martin, > > > > > > Q: How can I get the Microsoft VM now? > > > A: Microsoft provides updates to existing Microsoft VM installations > > > through > > > Windows Update. > > > > > > > > > ...but I think I found it here: > > > http://tech-help.llcoop.net/downloads/msjavx86.exe > > > > > > > > > HTH, > > > > > > > > > Mark > > > > > > > > > -----Original Message----- > > > From: Mwp.Reid at Queens-Belfast.AC.UK > > > [mailto:Mwp.Reid at Queens-Belfast.AC.UK] > > > Sent: Tuesday, July 01, 2003 1:40 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] OT Java VM > > > > > > > > > I need a copy of the Java VM for IE 6. Anyone know where it lives? Been > > > to > > > MS > > > and all the usual places but no luck. SOme legal case meant MS had to > > > stop > > > downloading it. > > > > > > Martin > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From mwp.reid at qub.ac.uk Wed Jul 2 02:39:42 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 2 Jul 2003 08:39:42 +0100 Subject: [AccessD] OT Have to share References: Message-ID: <002501c3406d$1a198980$9111758f@aine> Hi Charles Not sure yet. I have two days with Microsoft and some other people I have been working with. Other than that I had planned ot spend the rest of the time in San Degio. Martin ----- Original Message ----- From: "Wortz, Charles" To: "Access Developers discussion and problem solving" Sent: Tuesday, July 01, 2003 8:31 PM Subject: RE: [AccessD] OT Have to share > Martin, > > Are you sure that you can stand staying with Rocky for a week? > Do you know your schedule for your time on this side of the pond? So of > the rest of us might be able to do a face-to-face with you. > > Charles Wortz > Software Development Division > Texas Education Agency > 1701 N. Congress Ave > Austin, TX 78701-1494 > 512-463-9493 > CWortz at tea.state.tx.us > > > > -----Original Message----- > From: Mwp.Reid at Queens-Belfast.AC.UK > [mailto:Mwp.Reid at Queens-Belfast.AC.UK] > Sent: Tuesday 2003 Jul 01 14:18 > To: Access Developers discussion and problem solving > Subject: [AccessD] OT Have to share > > In October I am going to the USA for a week to stay with Rocky. Cant > believe > it. At last after all these years on AccessD I actually get to meet > someone of > this list and perhaps more than one. > > > Martin > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Wed Jul 2 02:42:22 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 17:42:22 +1000 Subject: [AccessD] Grab data from another window? In-Reply-To: <111894424.20030702081405@cactus.dk> References: <00f401c34020$0260b810$880d6bd5@netboxxp> Message-ID: <3F03197E.21505.227DBEA@localhost> I recall that someone recently said they had some code to grab data from another application's window, but I can't remember who (I've got a feeling it may have been Drew) I can't find the original message and I've just come across a requirement to extract a series of strings from a listbox created by another application. I'd appreciate any assistance from whoever it was. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From Lists at theopg.com Wed Jul 2 03:04:28 2003 From: Lists at theopg.com (Mark H) Date: Wed, 2 Jul 2003 09:04:28 +0100 Subject: [AccessD] weird query def In-Reply-To: <111894424.20030702081405@cactus.dk> Message-ID: <000601c34070$8f950a10$9839fc3e@netboxxp> Nice to help (for a change :O). The codes pretty simple and is in two mdb's. Do you want a copy? Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 02 July 2003 07:14 To: Access Developers discussion and problem solving Subject: Re: [AccessD] weird query def Hi Mark and John Hey, nice couple you two! Thanks for the insight. /gustav > sent it off-list > Mark > could you send me the code? > John W. Colby > Not sure if this is any help, but I just tried it using ADO with the > function, query and table in db1 and the code for getting the field > names from an adodb.recordset in db2 (which also referenced db1). > Worked fine... Mark _______________________________________________ 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 2 03:11:26 2003 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 2 Jul 2003 10:11:26 +0200 Subject: [AccessD] weird query def In-Reply-To: <000601c34070$8f950a10$9839fc3e@netboxxp> References: <000601c34070$8f950a10$9839fc3e@netboxxp> Message-ID: <288934897.20030702101126@cactus.dk> Hi Mark OK. Thanks but I don't have a specific need right now. It was out of curiosity - it would be nice to have look. Couldn't you just post the relevant code here - also for the benefice of others following this thread? /gustav > Nice to help (for a change :O). The codes pretty simple and is in two > mdb's. Do you want a copy? > Mark > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 02 July 2003 07:14 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] weird query def > Hi Mark and John > Hey, nice couple you two! Thanks for the insight. > /gustav >> sent it off-list >> Mark >> could you send me the code? >> John W. Colby >> Not sure if this is any help, but I just tried it using ADO with the >> function, query and table in db1 and the code for getting the field >> names from an adodb.recordset in db2 (which also referenced db1). >> Worked fine... Mark From gustav at cactus.dk Wed Jul 2 03:20:20 2003 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 2 Jul 2003 10:20:20 +0200 Subject: [AccessD] Grab data from another window? In-Reply-To: <5626105713165113243d0567@global.net.pg> References: <00f401c34020$0260b810$880d6bd5@netboxxp> <5626105713165113243d0567@global.net.pg> Message-ID: <1699469626.20030702102020@cactus.dk> Hi Stuart Could very well have been Drew (where is he by the way?). Look up "HELP!!!! Click another windows button" around Aug. 2002 in the archive. /gustav > I recall that someone recently said they had some code to grab data > from another application's window, but I can't remember who (I've got > a feeling it may have been Drew) > I can't find the original message and I've just come across a > requirement to extract a series of strings from a listbox created by > another application. > I'd appreciate any assistance from whoever it was. From Lists at theopg.com Wed Jul 2 03:57:22 2003 From: Lists at theopg.com (Mark H) Date: Wed, 2 Jul 2003 09:57:22 +0100 Subject: [AccessD] weird query def In-Reply-To: <288934897.20030702101126@cactus.dk> Message-ID: <001101c34077$f3b1d670$9839fc3e@netboxxp> Sorry, I should have done it last night. I'd had a few beers and just zipped up the mdb's and sent them to John (wasn't sure about sending attachments to the list). Here's the code then.... It's simple and a bit rough, just to show it could be done. In db1.mdb there is a simple function that multiplies one value by another. There is also a query which uses the function as column "X" (could be anything). In db2.mdb... Sub mTest() 'References set to ADO 2.1 and to db1.mdb (where the query and function are) Dim rs As ADODB.Recordset Dim strCon As String Dim fld As ADODB.Field strCon = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=E:\Data\db1.mdb" Set rs = New ADODB.Recordset rs.Open "SELECT * FROM Query1", strCon 'Note: you should set the where clause to return 'no records - make it quicker, data not needed anyway For Each fld In rs.Fields Debug.Print fld.Name Next Set rs = Nothing strCon = "" End Sub Cheers Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 02 July 2003 09:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] weird query def Hi Mark OK. Thanks but I don't have a specific need right now. It was out of curiosity - it would be nice to have look. Couldn't you just post the relevant code here - also for the benefice of others following this thread? /gustav From paul.hartland at fsmail.net Wed Jul 2 04:14:48 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 2 Jul 2003 9:14:48 +0000 Subject: [AccessD] Muliple-step operation error - VB6 FE SQL BE Message-ID: <20030702091448.UGTC18836.fep01-svc.ttys.com@localhost> To all, I have a Visual Basic 6 form which is connected to a SQL Server 7.0 database using an ADO control, all of the fields are either text or date with the exception of one, which is numeric. If I enter a numeric value in this everything is fine, but if I enter text or delete the contents and then try to save the recordset I get the following error message : Multiple-step operation generated errors. Check each status value. Anyone have any ideas on why this happens ? Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From gustav at cactus.dk Wed Jul 2 04:23:10 2003 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 2 Jul 2003 11:23:10 +0200 Subject: [AccessD] weird query def In-Reply-To: <001101c34077$f3b1d670$9839fc3e@netboxxp> References: <001101c34077$f3b1d670$9839fc3e@netboxxp> Message-ID: <15713239417.20030702112310@cactus.dk> Hi Mark Thanks Mark! But this was my suspicion: > 'References set to .. db1.mdb (where the query and function are) That's the trick. If you do so, I guess DAO will work fine as well. /gustav > Sorry, I should have done it last night. I'd had a few beers and just > zipped up the mdb's and sent them to John (wasn't sure about sending > attachments to the list). Here's the code then.... It's simple and a bit > rough, just to show it could be done. > In db1.mdb there is a simple function that multiplies one value by > another. There is also a query which uses the function as column "X" > (could be anything). > In db2.mdb... > Sub mTest() > 'References set to ADO 2.1 and to db1.mdb (where the query and function > are) > Dim rs As ADODB.Recordset > Dim strCon As String > Dim fld As ADODB.Field > strCon = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data > Source=E:\Data\db1.mdb" > Set rs = New ADODB.Recordset > rs.Open "SELECT * FROM Query1", strCon > 'Note: you should set the where clause to return > 'no records - make it quicker, data not needed anyway > For Each fld In rs.Fields > Debug.Print fld.Name > Next > Set rs = Nothing > strCon = "" > End Sub > Cheers > Mark > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 02 July 2003 09:11 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] weird query def > Hi Mark > OK. Thanks but I don't have a specific need right now. It was out of > curiosity - it would be nice to have look. Couldn't you just post the > relevant code here - also for the benefice of others following this > thread? From Lists at theopg.com Wed Jul 2 04:34:20 2003 From: Lists at theopg.com (Mark H) Date: Wed, 2 Jul 2003 10:34:20 +0100 Subject: [AccessD] weird query def In-Reply-To: <15713239417.20030702112310@cactus.dk> Message-ID: <000201c3407d$1d31d2c0$a839fc3e@netboxxp> I think John is creating an Addin - I did it as simple mdb's just to show it could be done. I tried using DAO and even with the reference to db1 it failed as described by John. I'm not sure, I don't use addins generally as most of my generic stuffs in a DLL. I presume registering an addin creates a reference too??? Cheers Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 02 July 2003 10:23 To: Access Developers discussion and problem solving Subject: Re: [AccessD] weird query def Hi Mark Thanks Mark! But this was my suspicion: > 'References set to .. db1.mdb (where the query and function are) That's the trick. If you do so, I guess DAO will work fine as well. /gustav > Sorry, I should have done it last night. I'd had a few beers and just > zipped up the mdb's and sent them to John (wasn't sure about sending > attachments to the list). Here's the code then.... It's simple and a > bit rough, just to show it could be done. > In db1.mdb there is a simple function that multiplies one value by > another. There is also a query which uses the function as column "X" > (could be anything). > In db2.mdb... > Sub mTest() > 'References set to ADO 2.1 and to db1.mdb (where the query and > function > are) > Dim rs As ADODB.Recordset > Dim strCon As String > Dim fld As ADODB.Field > strCon = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data > Source=E:\Data\db1.mdb" > Set rs = New ADODB.Recordset > rs.Open "SELECT * FROM Query1", strCon > 'Note: you should set the where clause to return > 'no records - make it quicker, data not needed anyway > For Each fld In rs.Fields > Debug.Print fld.Name > Next > Set rs = Nothing > strCon = "" > End Sub > Cheers > Mark > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: 02 July 2003 09:11 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] weird query def > Hi Mark > OK. Thanks but I don't have a specific need right now. It was out of > curiosity - it would be nice to have look. Couldn't you just post the > relevant code here - also for the benefice of others following this > thread? _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Wed Jul 2 06:34:59 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Wed, 2 Jul 2003 07:34:59 -0400 Subject: [AccessD] weird query def In-Reply-To: <111894424.20030702081405@cactus.dk> Message-ID: Gustav, The code he sent was an ado version of what you were doing (more or less). The reason he sent it off list is that it was two dbs as attachments which of course don't go to the list. However AFAICT the reason it worked is that he referenced the main FE from what will be the library and that is unfortunately illegal - if not literally, at least in practice. Referencing the FE allowed the wizard to "see" the function that the query in the FE was trying to execute, at least that's my take on it. The wizard needs to be available from any of one or many different applications at once so to reference all of those apps simply doesn't make sense. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Wednesday, July 02, 2003 2:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] weird query def Hi Mark and John Hey, nice couple you two! Thanks for the insight. /gustav > sent it off-list > Mark > could you send me the code? > John W. Colby > Not sure if this is any help, but I just tried it using ADO with the > function, query and table in db1 and the code for getting the field > names from an adodb.recordset in db2 (which also referenced db1). Worked > fine... > Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Wed Jul 2 06:44:05 2003 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 2 Jul 2003 07:44:05 -0400 Subject: [AccessD] Two front end databases with one user interface? References: Message-ID: <002501c3408f$408eb0a0$a2c50a44@hr.cox.net> Steve.... Once the 2nd .mdb is registered as a library of the 1st .mdb, can it be modified easily (i.e., additional objects added)?? I am assuming that all object names within the 2 databases must be unique? Can you point me to any documentation on setting this up? Thanks, Barb Ryan ----- Original Message ----- From: Steve Goodhall To: Access Developers discussion and problem solving Sent: Tuesday, July 01, 2003 9:31 PM Subject: RE: [AccessD] Two front end databases with one user interface? Perhaps not easy, but if you have 2 FEDB's, you can register one of them as a "library" of the other one. This will allow you do invoke functions in the 2nd DB (the "library") from the 1st db. You can use these functions to open forms, etc. I haven't ever done much with this, other than build some simple function libraries. You will probably have to have both FEDB's linked to the tables in the BE. Note that you cannot, unfortunately, create a circular reference to permit the 2nd db to invoke functions in the 1st. I had done this only in A2K, so just to be sure, I built a Q&D test set in A97 and it seems to work. Regards, Steve Goodhall -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Tuesday, July 01, 2003 1:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Two front end databases with one user interface? I have never found an easy way to do this but thanks for asking the question. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 1:04 PM To: Access List Subject: [AccessD] Two front end databases with one user interface? I have a "vanilla" Access 97 application that is used at multiple sites. If a particular site want a modification --- e.g., a customized version that I do NOT want to incorporate into the vanilla version, is there a way that I can create a separate front end (to hold these custom objects) yet still have one user interface? I don't want them to have to open two separate applications. Hope this makes sense! Thanks, Barb Ryan ------------------------------------------------------------------------------ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Lists at theopg.com Wed Jul 2 06:50:50 2003 From: Lists at theopg.com (Mark H) Date: Wed, 2 Jul 2003 12:50:50 +0100 Subject: [AccessD] weird query def In-Reply-To: Message-ID: <001601c34090$2f562970$878e6351@netboxxp> Ooops sorry, got the fe and be confused... Too many beers :O( mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: 02 July 2003 12:35 To: Access Developers discussion and problem solving Subject: RE: [AccessD] weird query def Gustav, The code he sent was an ado version of what you were doing (more or less). The reason he sent it off list is that it was two dbs as attachments which of course don't go to the list. However AFAICT the reason it worked is that he referenced the main FE from what will be the library and that is unfortunately illegal - if not literally, at least in practice. Referencing the FE allowed the wizard to "see" the function that the query in the FE was trying to execute, at least that's my take on it. The wizard needs to be available from any of one or many different applications at once so to reference all of those apps simply doesn't make sense. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Wednesday, July 02, 2003 2:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] weird query def Hi Mark and John Hey, nice couple you two! Thanks for the insight. /gustav > sent it off-list > Mark > could you send me the code? > John W. Colby > Not sure if this is any help, but I just tried it using ADO with the > function, query and table in db1 and the code for getting the field > names from an adodb.recordset in db2 (which also referenced db1). > Worked fine... Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 2 06:51:22 2003 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 2 Jul 2003 13:51:22 +0200 Subject: [AccessD] weird query def In-Reply-To: References: Message-ID: <18922131633.20030702135122@cactus.dk> Hi John Yes, that may be an "illegal" trick. However, it should be possible to dynamically add/remove a reference to the foreign mdb, but I'm not sure how reliable that would be. /gustav > Gustav, > The code he sent was an ado version of what you were doing (more or less). > The reason he sent it off list is that it was two dbs as attachments which > of course don't go to the list. However AFAICT the reason it worked is that > he referenced the main FE from what will be the library and that is > unfortunately illegal - if not literally, at least in practice. Referencing > the FE allowed the wizard to "see" the function that the query in the FE was > trying to execute, at least that's my take on it. > The wizard needs to be available from any of one or many different > applications at once so to reference all of those apps simply doesn't make > sense. > John W. Colby > www.colbyconsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Wednesday, July 02, 2003 2:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] weird query def > Hi Mark and John > Hey, nice couple you two! Thanks for the insight. > /gustav >> sent it off-list >> Mark >> could you send me the code? >> John W. Colby >> Not sure if this is any help, but I just tried it using ADO with the >> function, query and table in db1 and the code for getting the field >> names from an adodb.recordset in db2 (which also referenced db1). Worked >> fine... >> Mark From artful at rogers.com Wed Jul 2 06:52:35 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 2 Jul 2003 07:52:35 -0400 Subject: [AccessD] Converting a string to a double in an SQL query. In-Reply-To: <200307011716.h61HGnQ19492@databaseadvisors.com> Message-ID: <010e01c34090$6ddd6500$8e01a8c0@Rock> Look in BOL under CAST and/or CONVERT. The former should work for you, and the latter is useful in some similar situations. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Tucker Sent: July 1, 2003 1:17 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Converting a string to a double in an SQL query. Hi everyone, I'm dealing with an Access Project that is connecting to an SQL Server database. I'm trying to produce a query (and a report that reads this query) to totals a billing amount. Simple stuff, right? Well, the designer of the database decided to make the data type of the BillingAmount field a string (specifically varchar(15)), thus I cannot sum this field. I've been trying to create a calculated field in my query that just converts the BillingAmount field to a number using the function "CDbl(dbo.Transactions.BillingAmount)". When I try to run the query however I get the "CDbl is not a valid function" error. This would be easy stuff if I were messing with native Access tables but since these are SQL Server tables then I'm a little out of my experience. Anyone know how I can do what I'd like to do here? Thanks. From jcolby at colbyconsulting.com Wed Jul 2 07:00:50 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Wed, 2 Jul 2003 08:00:50 -0400 Subject: [AccessD] weird query def In-Reply-To: <18922131633.20030702135122@cactus.dk> Message-ID: And it simply makes no sense, particularly if I can simply parse the SQL string from the query def to get the field names. I'll get back to you on that one. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Wednesday, July 02, 2003 7:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] weird query def Hi John Yes, that may be an "illegal" trick. However, it should be possible to dynamically add/remove a reference to the foreign mdb, but I'm not sure how reliable that would be. /gustav > Gustav, > The code he sent was an ado version of what you were doing (more or less). > The reason he sent it off list is that it was two dbs as attachments which > of course don't go to the list. However AFAICT the reason it worked is that > he referenced the main FE from what will be the library and that is > unfortunately illegal - if not literally, at least in practice. Referencing > the FE allowed the wizard to "see" the function that the query in the FE was > trying to execute, at least that's my take on it. > The wizard needs to be available from any of one or many different > applications at once so to reference all of those apps simply doesn't make > sense. > John W. Colby > www.colbyconsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Wednesday, July 02, 2003 2:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] weird query def > Hi Mark and John > Hey, nice couple you two! Thanks for the insight. > /gustav >> sent it off-list >> Mark >> could you send me the code? >> John W. Colby >> Not sure if this is any help, but I just tried it using ADO with the >> function, query and table in db1 and the code for getting the field >> names from an adodb.recordset in db2 (which also referenced db1). Worked >> fine... >> Mark _______________________________________________ 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 2 07:01:12 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 2 Jul 2003 08:01:12 -0400 Subject: [AccessD] Two front end databases with one user interface? In-Reply-To: Message-ID: <011001c34091$a20a3780$8e01a8c0@Rock> I recently had to "fork" an app, such that branch had total functionality and the other a very limited subset. Since I use the switchboard for the main UI, it was quite simple to achieve what I wanted. I made a tiny mod to the switchboard code so that it accepts an OpenArgs argument which is the initial switchboard to open. In its standard implementation, the code looks for the word "(Default)" in the switchboard items table. (Open the code module and search for that, and you'll see what I mean.) I simply modified this code to search for the OpenArgs argument instead. Then I created a hidden form that opens the switchboard with an OpenArgs argument. THus both versions have the entire app, but the limited one shows only a part of the functionality. I change the value of a variable on the hidden form, then create an MDE, overriding its name. Then I change the variable again, create another MDE and change its name slightly. hth, Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: July 1, 2003 1:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Two front end databases with one user interface? I do something kind of similar with an app. Its a PITA! It entails using a login (which I have happen automatically based on the windows login if it matches the staff table info). I then hold info in variables about about what the person can see and if necessary how they see it. So for instance if the forms a person is allowed to see, based the department they work for and their "security" (my built in security-not access's) then they just don't get the icons for the other forms displayed. When there is a choice of forms to use for the same info they get "their" version of the form. How the position their forms is called everytime a form opens and reset to the postion when it closes. I store some of this info (personal choices for UI settings) in the registry and other info (such as security-which is required in case they login into someone elses PC) in the "staff" table. BTW did I mention that its a PITA? I suppose you could get it set up in a class framework but I haven't gone there yet. HTH JB PS: did I mention that its a PITA? :o) -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuart at lexacorp.com.pg Wed Jul 2 07:06:37 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 22:06:37 +1000 Subject: [AccessD] Grab data from another window? In-Reply-To: <1699469626.20030702102020@cactus.dk> References: <5626105713165113243d0567@global.net.pg> Message-ID: <3F03576D.10498.319C93B@localhost> On 2 Jul 2003 at 10:20, Gustav Brock wrote: > Hi Stuart > > Could very well have been Drew (where is he by the way?). > Look up "HELP!!!! Click another windows button" around Aug. 2002 in > the archive. > Not that long ago just a week or so, I found it it the archive. Drew Wutka DWUTKA at marlow.com Wed Jun 25 16:58:13 CDT 2003 Just an FYI, yesterday I built a little VB program that will write the contents of a listbox to a file. Not an Access listbox, but a Listbox class window. So if you have software that you would like to copy the listbox contents from, give me a holler, I'll send you the code. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From mikedorism at ntelos.net Wed Jul 2 07:12:55 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 2 Jul 2003 08:12:55 -0400 Subject: [AccessD] Form Filtering not working In-Reply-To: <00c601c34051$802fa2c0$864114ca@Notebook> Message-ID: <001e01c34093$482636e0$423c0cd8@hargrove.internal> The problem is you have the form reference in quotes. Try this instead... DoCmd.OpenForm "Quote", , , "[QuoteNumber] = " & Forms![Quote - list]![QuoteNumber] 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 Tracy Sent: Wednesday, July 02, 2003 12:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form Filtering not working Hi Charlotte When opening the form using VBA code as below: DoCmd.OpenForm "Quote", , , "[QuoteNumber] = Forms![Quote - list]![QuoteNumber]" Using Access 2000 on Windows 2000 SP3 Thabks Tracy ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, July 02, 2003 8:31 AM Subject: RE: [AccessD] Form Filtering not working > When you say "filter", is that actually what you mean? It sounds more > like you're using some kind of find or seek to locate the record > instead, and that isn't the same thing at all. What version of Access > are you using. > > Charlotte Foust > > -----Original Message----- > From: Tracy [mailto:tracy at ak.planet.gen.nz] > Sent: Tuesday, July 01, 2003 12:23 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Form Filtering not working > > > Hi Listers > I'm having a weird problem with one of my forms. > > When filtering the form, the filter works the first time ie: it goes > to the correct record. But the second and subsequent times it remains > at the record that was filtered the first time. > > I know the code that I use to filter the record is 100% correct as the > app has been used for the last 5 years and this code hasn't been > changed. > > Has anybody come across anything like this before ? > > I have tried removing the filter from the form then applying the new > filter criteria in code but this has the same result as above ie: > works the first time but not the second and subsequent times. > > Any help appreciated > > Cheers Tracy > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkins at iglou.com Wed Jul 2 07:16:04 2003 From: harkins at iglou.com (Susan Harkins) Date: Wed, 2 Jul 2003 08:16:04 -0400 Subject: [AccessD] AutoNumbers in historical tables References: Message-ID: <008201c34093$b67c5e80$afe6ffcc@SusanOne> Nevermind, but thank you. Susan H. > Susan: I can't make head or tail out of your last post and John hasn't > offered any clarification on his earlier comments. Arthur's comment about a > confusion between OLTP and OLAP systems may have some bearing on the why of > autonumbers in archiving but has no bearing on how autonumbers may be > manipulated which is the matter I was addressing. > > What is it you mean by not really appending the existing Autonumber value > being different from allowing the historical AN to fill in that value? > Where is it that 'missing' autonumbers are an issue and I'm not sure what > you mean about existing values. Clearly you cannot have duplicate values in > an autonumber field but you can insert records from any table into an > archive table in any order you wish and in doing so set the archive > autonumber to any value that is valid in the source table. I was not > talking about setting any seed value. The previous example posted involved > setting a table record with two fields, one of which was an autonumber, and > inserting that record into another table at any arbitrary value without > resetting any seed value. I'll try another example that assumes any table > of records with an autonumber field and a table with duplicate structure but > no records. You can add an Order By clause for any arbitrary field and the > table will fill in any autonumber sequence that that field sort is and all > the records identified by an autonumber in the original table will be > identically identified in the archive table. Just substitute any table > names to try this out: > > Sub archiveTable() > Dim rstSrc As Recordset > Dim rstDst As Recordset > Dim db As Database > Dim lngI As Long > Dim lngCount As Long > > Set db = CurrentDb > Set rstSrc = db.OpenRecordset("tblCompany") > Set rstDst = db.OpenRecordset("tblCompanyArchive") > lngCount = rstSrc.Fields.Count - 1 > Do While Not rstSrc.EOF > rstDst.AddNew > For lngI = 0 To lngCount > rstDst(lngI) = rstSrc(lngI) > Next > rstDst.Update > rstSrc.MoveNext > Loop > rstSrc.Close > rstDst.Close > Set rstSrc = Nothing > Set rstDst = Nothing > Set db = Nothing > End Sub > > Hen > > >From: "Susan Harkins" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] AutoNumbers in historical tables > >Date: Mon, 30 Jun 2003 17:43:05 -0400 > > > >What about missing AutoNumber values in the records you're appending? What > >I'm saying is, you're not really appending the existing AutoNumber value, > >you're just allowing the historical table's AN to fill in that value. So, > >even though you can reset the AN seed value, how would you accommodate the > >"existing" values, whatever they are, as you're appending the remaining > >records? > > > >Susan H. > > > > > > > I was responding to the statement: > > > > > > ...Supposing you were required to preserve the Autonumber -- how > >would > > > you go about appending records as you archive -- you couldn't I'm > > > guessing... > > > > > > And now you say: > > > > > > ...I wasn't talking about forcing a new AutoNumber -- I was talking > > > about appending records that already have an AutoNumber... > > > > > > The implication in both cases is: you can't set a record's autonumber > >to > >an > > > arbitrary value. That is not true. What you do is force the AN of the > > > resulting archive record to the value in the originating table in the > > > append. There is no need to add and delete blank records to force AN > >values > > > which is the only interpretation I can place on what John said: > > > > > > ... if you do a restore you MUST go get the last number, add 1 to > >it, > > > and insert a fake record with that number, then delete that fake record > >back > > > out... > > > > > > John's suggestion could work for the situation where you were archiving > > > additions to the end of a table and one or more consecutive records > >ending > > > with the last were deleted but the approach reinforces the implication > >that > > > one can't simply set the value as required. > > > > > > Good thing this issue is moot but a casual surveyor of the archive may > >pick > > > up some misconceptions or may be led to believe that list members don't > > > understand autonumbers. > > > > > > If you have a table tblArk with 10 records and a FirstName field and an > > > Autonumber field named PK and you need to write a record that has an > > > existing AN of 45: > > > > > > Dim db as Database > > > Set db = CurrentDb > > > db.Execute("Insert Into tblArk(PK, FirstName) Values(45, 'Joe')") > > > MsgBox db.RecordsAffected > > > > > > If you add and delete a thousand records, you can still run the code > >above > > > and you will have 1 record added provided that the number 45 isn't > >already > > > taken and notwithstanding that the next automatic number would be over > >1000. > > > In any case where the AN 45 is not already used, the example code > >above > > > will insert a record and set its autonumber value. If you have a > >record > > > with an existing autonumber that needs to be changed, you can insert the > > > field values into a new record and set the desired autonumber for the > > > duplicate and then delete the old record. While you cannot directly > >edit > >an > > > existing AN, you can readily achieve the result. > > > > > > There is no need to get into the question of why one would want to > >change > >or > > > set an autonumber. I was merely attempting to prevent repetition of a > >too > > > often repeated misconception. > > > > > > Hen > > > > > > > > > > > > > > > > The main point I was making was that I understood Susan to imply > >that > > > >one > > > > > can not set the value of an autonumber field to any arbitrary valid > > > >value > > > > > and that is not accurate. > > > > > > > >============== I don't remember what I said, but I'm sure that's not > >what > >I > > > >meant. :) I wasn't talking about forcing a new AutoNumber -- I was > >talking > > > >about appending records that already have an AutoNumber... > > > > > > > >Susan H. > > > > > > _________________________________________________________________ > > > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > > > http://join.msn.com/?page=features/featuredemail > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From mdh at theopg.com Wed Jul 2 08:14:24 2003 From: mdh at theopg.com (Mark Hayes) Date: Wed, 2 Jul 2003 14:14:24 +0100 Subject: [AccessD] OT ADOX - Cycle though columns in a view Message-ID: <004201c3409b$db8f3550$878e6351@netboxxp> Hello I am trying to get at the views in an adox.catalog (using XP) Sub bTest() 'uses adox Dim strCon As String Dim cat As ADOX.Catalog Dim vw As ADOX.View Dim Conn As New ADODB.Connection strCon = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=E:\Data\db1.mdb" Conn.Provider = "MSDASQL" Conn.Open strCon Set cat = New ADOX.Catalog cat.ActiveConnection = Conn For Each vw In cat.Views debug.Print vw.Name Next End Sub I can get at the tables in the same way but not queries. I read that queries in mdb's are listed as tables, but they still don't show up in the tables collection. Cat.views.count always comes back 0 Is this because mdbs aren't fully supported by adox perhaps? Any ideas much appreciated Mark From accessd666 at yahoo.com Wed Jul 2 08:54:48 2003 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 2 Jul 2003 06:54:48 -0700 (PDT) Subject: [AccessD] Application Review =Please Advise= Message-ID: <20030702135448.50222.qmail@web10003.mail.yahoo.com> Hi Group, (pardon my english...) I just started with my new job as a VB(A) developer/ analyst. Today is my second day and I've got a new project allready. I need to revise an Access 2000 application. It has 2 db's. DB1 has all the tables DB2 has all the forms and stuff and the tables from DB1 are linked to it. It uses DAO, but ADO is also checked in the references. I received all documentation of the app and I attached it to this mail...yes this is sarcastic since there is NO documentation, except for the few comments in the code...very few that is! There are no tables/queries added to the relationship form. Questions: - How can I check if there are tables/queries that aren't used? - How can I check if ADO is used somewhere along the DAO code? Any other tips are greatly appreciated!! Regards, VisualSander __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com From accessd666 at yahoo.com Wed Jul 2 08:58:24 2003 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 2 Jul 2003 06:58:24 -0700 (PDT) Subject: [AccessD] Relink tables? Message-ID: <20030702135824.19234.qmail@web10010.mail.yahoo.com> Hi Group, does anybody know how i can automaticle relink tables? info: i've got an A2K application that uses 2 db's. 1 db (DB_BE) has all the data (tables/queries) 1 db (DB_FE) has all the forms and the tables from DB_BE linked to it. I want to relink these tables every time the app starts. Any ideas? Regards, visualsander __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com From BBarabash at TappeConstruction.com Wed Jul 2 09:01:47 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 2 Jul 2003 09:01:47 -0500 Subject: [AccessD] Jet OLEDB provider - deprecated? Message-ID: <426071E0B0A6D311B3C0006008B0AB2338C825@TAPPEEXCH01> While trying to solve an ADO-related problem, I ran across the following page on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ ado_deprecated.asp in which it says: Jet and Replication Objects (JRO) The Microsoft Jet OLE DB Provider and other related components were removed from MDAC 2.6. Microsoft has deprecated the Microsoft Jet Engine, and plans no new releases or service packs for this component. As a result, the Jet and Replication Objects (JRO) is being deprecated in this release and will not be available in any future MDAC releases. Huh? AFAIK, our machines have MDAC 2.6 installed, and I use Jet 4.0 as an OLEDB provider without any issues. Am I in for a nasty surprise? I can understand the "no new releases or service packs", but what about the "removed from MDAC 2.6" part? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From EdTesiny at oasas.state.ny.us Wed Jul 2 09:03:09 2003 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 2 Jul 2003 10:03:09 -0400 Subject: [AccessD] Relink tables? Message-ID: Why do you want to relink every time the app starts? Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Wednesday, July 02, 2003 9:58 AM To: accessd at databaseadvisors.com Subject: [AccessD] Relink tables? Hi Group, does anybody know how i can automaticle relink tables? info: i've got an A2K application that uses 2 db's. 1 db (DB_BE) has all the data (tables/queries) 1 db (DB_FE) has all the forms and the tables from DB_BE linked to it. I want to relink these tables every time the app starts. Any ideas? Regards, visualsander __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lists at theopg.com Wed Jul 2 09:06:48 2003 From: Lists at theopg.com (Mark H) Date: Wed, 2 Jul 2003 15:06:48 +0100 Subject: [AccessD] Application Review =Please Advise= In-Reply-To: <20030702135448.50222.qmail@web10003.mail.yahoo.com> Message-ID: <004701c340a3$2d6b00a0$878e6351@netboxxp> To check if ADO is used remove the tick from the reference and then compile the project (DEBUG - COMPILE) - if it compiles its not used. To check for unused tables is not so simple (I think) - Tables may be referenced in query, forms reports, modules and macros. I had a similar situation once and just bit the bullet and went through all the objects creating a list of referenced tables - anything not on the list got renamed and then the app got tested. It was very painful Good luck Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: 02 July 2003 14:55 To: accessd at databaseadvisors.com Subject: [AccessD] Application Review =Please Advise= Hi Group, (pardon my english...) I just started with my new job as a VB(A) developer/ analyst. Today is my second day and I've got a new project allready. I need to revise an Access 2000 application. It has 2 db's. DB1 has all the tables DB2 has all the forms and stuff and the tables from DB1 are linked to it. It uses DAO, but ADO is also checked in the references. I received all documentation of the app and I attached it to this mail...yes this is sarcastic since there is NO documentation, except for the few comments in the code...very few that is! There are no tables/queries added to the relationship form. Questions: - How can I check if there are tables/queries that aren't used? - How can I check if ADO is used somewhere along the DAO code? Any other tips are greatly appreciated!! Regards, VisualSander __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Wed Jul 2 09:11:11 2003 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Wed, 2 Jul 2003 15:11:11 +0100 Subject: [AccessD] Application Review =Please Advise= Message-ID: <61F915314798D311A2F800A0C9C83188047C5F74@dibble.observatory.donnslaw.co.uk> You could speed up your hunt for references to the tables using Find and Replace or another similar tool. Roz -----Original Message----- From: Mark H [mailto:Lists at theopg.com] Sent: 02 July 2003 15:07 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Application Review =Please Advise= To check if ADO is used remove the tick from the reference and then compile the project (DEBUG - COMPILE) - if it compiles its not used. To check for unused tables is not so simple (I think) - Tables may be referenced in query, forms reports, modules and macros. I had a similar situation once and just bit the bullet and went through all the objects creating a list of referenced tables - anything not on the list got renamed and then the app got tested. It was very painful Good luck Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: 02 July 2003 14:55 To: accessd at databaseadvisors.com Subject: [AccessD] Application Review =Please Advise= Hi Group, (pardon my english...) I just started with my new job as a VB(A) developer/ analyst. Today is my second day and I've got a new project allready. I need to revise an Access 2000 application. It has 2 db's. DB1 has all the tables DB2 has all the forms and stuff and the tables from DB1 are linked to it. It uses DAO, but ADO is also checked in the references. I received all documentation of the app and I attached it to this mail...yes this is sarcastic since there is NO documentation, except for the few comments in the code...very few that is! There are no tables/queries added to the relationship form. Questions: - How can I check if there are tables/queries that aren't used? - How can I check if ADO is used somewhere along the DAO code? Any other tips are greatly appreciated!! Regards, VisualSander __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 ntelos.net Wed Jul 2 09:19:59 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 2 Jul 2003 10:19:59 -0400 Subject: [AccessD] Jet OLEDB provider - deprecated? In-Reply-To: <426071E0B0A6D311B3C0006008B0AB2338C825@TAPPEEXCH01> Message-ID: <000901c340a5$0a365420$423c0cd8@hargrove.internal> Each MDAC install contains update/upgrade information which is added to the previous version. You may have MDAC 2.6 checked but the system is really using JET 4.0 from MDAC 2.5 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 Brett Barabash Sent: Wednesday, July 02, 2003 10:02 AM To: 'accessd at databaseadvisors.com' Subject: [AccessD] Jet OLEDB provider - deprecated? While trying to solve an ADO-related problem, I ran across the following page on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ ado_deprecated.asp in which it says: Jet and Replication Objects (JRO) The Microsoft Jet OLE DB Provider and other related components were removed from MDAC 2.6. Microsoft has deprecated the Microsoft Jet Engine, and plans no new releases or service packs for this component. As a result, the Jet and Replication Objects (JRO) is being deprecated in this release and will not be available in any future MDAC releases. Huh? AFAIK, our machines have MDAC 2.6 installed, and I use Jet 4.0 as an OLEDB provider without any issues. Am I in for a nasty surprise? I can understand the "no new releases or service packs", but what about the "removed from MDAC 2.6" part? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Wed Jul 2 09:21:06 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 2 Jul 2003 10:21:06 -0400 Subject: [AccessD] Application Review =Please Advise= In-Reply-To: <004701c340a3$2d6b00a0$878e6351@netboxxp> Message-ID: <000a01c340a5$3066f0a0$423c0cd8@hargrove.internal> To find unused tables, just put a "z" in front of each of the table names and you will quickly find out which ones are used and which ones aren't... 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 Mark H Sent: Wednesday, July 02, 2003 10:07 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Application Review =Please Advise= To check if ADO is used remove the tick from the reference and then compile the project (DEBUG - COMPILE) - if it compiles its not used. To check for unused tables is not so simple (I think) - Tables may be referenced in query, forms reports, modules and macros. I had a similar situation once and just bit the bullet and went through all the objects creating a list of referenced tables - anything not on the list got renamed and then the app got tested. It was very painful Good luck Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: 02 July 2003 14:55 To: accessd at databaseadvisors.com Subject: [AccessD] Application Review =Please Advise= Hi Group, (pardon my english...) I just started with my new job as a VB(A) developer/ analyst. Today is my second day and I've got a new project allready. I need to revise an Access 2000 application. It has 2 db's. DB1 has all the tables DB2 has all the forms and stuff and the tables from DB1 are linked to it. It uses DAO, but ADO is also checked in the references. I received all documentation of the app and I attached it to this mail...yes this is sarcastic since there is NO documentation, except for the few comments in the code...very few that is! There are no tables/queries added to the relationship form. Questions: - How can I check if there are tables/queries that aren't used? - How can I check if ADO is used somewhere along the DAO code? Any other tips are greatly appreciated!! Regards, VisualSander __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hshhp.org Wed Jul 2 09:22:56 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 2 Jul 2003 10:22:56 -0400 Subject: [AccessD] Jet OLEDB provider - deprecated? Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F041@TTNEXCHSRV1.hshhp.com> I thought they removed Jet from MDAC but made it a separate download. HTH, Jim DeMarco -----Original Message----- From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] Sent: Wednesday, July 02, 2003 10:20 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Jet OLEDB provider - deprecated? Each MDAC install contains update/upgrade information which is added to the previous version. You may have MDAC 2.6 checked but the system is really using JET 4.0 from MDAC 2.5 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 Brett Barabash Sent: Wednesday, July 02, 2003 10:02 AM To: 'accessd at databaseadvisors.com' Subject: [AccessD] Jet OLEDB provider - deprecated? While trying to solve an ADO-related problem, I ran across the following page on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ ado_deprecated.asp in which it says: Jet and Replication Objects (JRO) The Microsoft Jet OLE DB Provider and other related components were removed from MDAC 2.6. Microsoft has deprecated the Microsoft Jet Engine, and plans no new releases or service packs for this component. As a result, the Jet and Replication Objects (JRO) is being deprecated in this release and will not be available in any future MDAC releases. Huh? AFAIK, our machines have MDAC 2.6 installed, and I use Jet 4.0 as an OLEDB provider without any issues. Am I in for a nasty surprise? I can understand the "no new releases or service packs", but what about the "removed from MDAC 2.6" part? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 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 jimdettman at earthlink.net Wed Jul 2 09:24:18 2003 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 2 Jul 2003 10:24:18 -0400 Subject: [AccessD] Relink tables? In-Reply-To: <20030702135824.19234.qmail@web10010.mail.yahoo.com> Message-ID: I've got some relink code, but it's too large to post. Send me an e-mail and I'll sent it along. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Sad Der Sent: Wednesday, July 02, 2003 9:58 AM To: accessd at databaseadvisors.com Subject: [AccessD] Relink tables? Hi Group, does anybody know how i can automaticle relink tables? info: i've got an A2K application that uses 2 db's. 1 db (DB_BE) has all the data (tables/queries) 1 db (DB_FE) has all the forms and the tables from DB_BE linked to it. I want to relink these tables every time the app starts. Any ideas? Regards, visualsander __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Wed Jul 2 09:25:48 2003 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 2 Jul 2003 10:25:48 -0400 Subject: [AccessD] Application Review =Please Advise= In-Reply-To: <20030702135448.50222.qmail@web10003.mail.yahoo.com> Message-ID: Checkout Total Access Detective at www.fmsinc.com Best tool for the job on #1. As to #2, just uncheck the ADO reference and see if you can do a compile. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Sad Der Sent: Wednesday, July 02, 2003 9:55 AM To: accessd at databaseadvisors.com Subject: [AccessD] Application Review =Please Advise= Hi Group, (pardon my english...) I just started with my new job as a VB(A) developer/ analyst. Today is my second day and I've got a new project allready. I need to revise an Access 2000 application. It has 2 db's. DB1 has all the tables DB2 has all the forms and stuff and the tables from DB1 are linked to it. It uses DAO, but ADO is also checked in the references. I received all documentation of the app and I attached it to this mail...yes this is sarcastic since there is NO documentation, except for the few comments in the code...very few that is! There are no tables/queries added to the relationship form. Questions: - How can I check if there are tables/queries that aren't used? - How can I check if ADO is used somewhere along the DAO code? Any other tips are greatly appreciated!! Regards, VisualSander __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Wed Jul 2 09:27:29 2003 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 2 Jul 2003 10:27:29 -0400 Subject: [AccessD] Jet OLEDB provider - deprecated? In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173F041@TTNEXCHSRV1.hshhp.com> Message-ID: Jim, Yeah that's right. From 2.4 (or was it 2.5?) on up, JET is now a separate download. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, July 02, 2003 10:23 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Jet OLEDB provider - deprecated? I thought they removed Jet from MDAC but made it a separate download. HTH, Jim DeMarco -----Original Message----- From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] Sent: Wednesday, July 02, 2003 10:20 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Jet OLEDB provider - deprecated? Each MDAC install contains update/upgrade information which is added to the previous version. You may have MDAC 2.6 checked but the system is really using JET 4.0 from MDAC 2.5 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 Brett Barabash Sent: Wednesday, July 02, 2003 10:02 AM To: 'accessd at databaseadvisors.com' Subject: [AccessD] Jet OLEDB provider - deprecated? While trying to solve an ADO-related problem, I ran across the following page on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ ado_deprecated.asp in which it says: Jet and Replication Objects (JRO) The Microsoft Jet OLE DB Provider and other related components were removed from MDAC 2.6. Microsoft has deprecated the Microsoft Jet Engine, and plans no new releases or service packs for this component. As a result, the Jet and Replication Objects (JRO) is being deprecated in this release and will not be available in any future MDAC releases. Huh? AFAIK, our machines have MDAC 2.6 installed, and I use Jet 4.0 as an OLEDB provider without any issues. Am I in for a nasty surprise? I can understand the "no new releases or service packs", but what about the "removed from MDAC 2.6" part? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 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". **************************************************************************** ******* _______________________________________________ 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 2 09:29:22 2003 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 2 Jul 2003 16:29:22 +0200 Subject: [AccessD] Jet OLEDB provider - deprecated? In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173F041@TTNEXCHSRV1.hshhp.com> References: <22F1CCD5171D17419CB37FEEE09D5F990173F041@TTNEXCHSRV1.hshhp.com> Message-ID: <9631611464.20030702162922@cactus.dk> Hi Jim Nope. Jet 4.0 is included in MDAC 2.6. Don't know about the "JRO components" though. /gustav > I thought they removed Jet from MDAC but made it a separate download. > HTH, > Jim DeMarco > -----Original Message----- > From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] > Sent: Wednesday, July 02, 2003 10:20 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Jet OLEDB provider - deprecated? > Each MDAC install contains update/upgrade information which is added to the > previous version. You may have MDAC 2.6 checked but the system is really > using JET 4.0 from MDAC 2.5 > 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 Brett Barabash > Sent: Wednesday, July 02, 2003 10:02 AM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] Jet OLEDB provider - deprecated? > While trying to solve an ADO-related problem, I ran across the following > page on MSDN: > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ > ado_deprecated.asp > in which it says: > Jet and Replication Objects (JRO) > The Microsoft Jet OLE DB Provider and other related components were removed > from MDAC 2.6. Microsoft has deprecated the Microsoft Jet Engine, and plans > no new releases or service packs for this component. As a result, the Jet > and Replication Objects (JRO) is being deprecated in this release and will > not be available in any future MDAC releases. > Huh? AFAIK, our machines have MDAC 2.6 installed, and I use Jet 4.0 as an > OLEDB provider without any issues. Am I in for a nasty surprise? I can > understand the "no new releases or service packs", but what about the > "removed from MDAC 2.6" part? > Brett Barabash, MCP > Tappe Construction, Co. > Eagan, MN > bbarabash at tappeconstruction.com > (651) 256-6831 > "One thing a computer can do that most humans can't is be sealed up in a > cardboard box and sit in a warehouse." -Jack Handey From jim.hale at fleetpride.com Wed Jul 2 09:29:28 2003 From: jim.hale at fleetpride.com (Hale, Jim) Date: Wed, 2 Jul 2003 09:29:28 -0500 Subject: [AccessD] Application Review =Please Advise= Message-ID: <869379ABF177D4118D3100508B5EF8730676C293@corp-es00> I would compile first to make sure that the code works as delivered. Then uncheck the ADO reference and try compiling. If it compiles you know the ADO reference is not used. If it doesn't compile you know it broke because ADO code is used somewhere. BTW FMS has a database analyzer that can help you figure out the database. Good luck Jim Hale -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Wednesday, July 02, 2003 9:11 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Application Review =Please Advise= You could speed up your hunt for references to the tables using Find and Replace or another similar tool. Roz -----Original Message----- From: Mark H [mailto:Lists at theopg.com] Sent: 02 July 2003 15:07 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Application Review =Please Advise= To check if ADO is used remove the tick from the reference and then compile the project (DEBUG - COMPILE) - if it compiles its not used. To check for unused tables is not so simple (I think) - Tables may be referenced in query, forms reports, modules and macros. I had a similar situation once and just bit the bullet and went through all the objects creating a list of referenced tables - anything not on the list got renamed and then the app got tested. It was very painful Good luck Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: 02 July 2003 14:55 To: accessd at databaseadvisors.com Subject: [AccessD] Application Review =Please Advise= Hi Group, (pardon my english...) I just started with my new job as a VB(A) developer/ analyst. Today is my second day and I've got a new project allready. I need to revise an Access 2000 application. It has 2 db's. DB1 has all the tables DB2 has all the forms and stuff and the tables from DB1 are linked to it. It uses DAO, but ADO is also checked in the references. I received all documentation of the app and I attached it to this mail...yes this is sarcastic since there is NO documentation, except for the few comments in the code...very few that is! There are no tables/queries added to the relationship form. Questions: - How can I check if there are tables/queries that aren't used? - How can I check if ADO is used somewhere along the DAO code? Any other tips are greatly appreciated!! Regards, VisualSander __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jdemarco at hshhp.org Wed Jul 2 09:37:32 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 2 Jul 2003 10:37:32 -0400 Subject: [AccessD] Jet OLEDB provider - deprecated? Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F044@TTNEXCHSRV1.hshhp.com> Must be MDAC 2.7 then. Thanks, Jim DeMarco -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Wednesday, July 02, 2003 10:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet OLEDB provider - deprecated? Hi Jim Nope. Jet 4.0 is included in MDAC 2.6. Don't know about the "JRO components" though. /gustav > I thought they removed Jet from MDAC but made it a separate download. > HTH, > Jim DeMarco > -----Original Message----- > From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] > Sent: Wednesday, July 02, 2003 10:20 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Jet OLEDB provider - deprecated? > Each MDAC install contains update/upgrade information which is added to the > previous version. You may have MDAC 2.6 checked but the system is really > using JET 4.0 from MDAC 2.5 > 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 Brett Barabash > Sent: Wednesday, July 02, 2003 10:02 AM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] Jet OLEDB provider - deprecated? > While trying to solve an ADO-related problem, I ran across the following > page on MSDN: > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ > ado_deprecated.asp > in which it says: > Jet and Replication Objects (JRO) > The Microsoft Jet OLE DB Provider and other related components were removed > from MDAC 2.6. Microsoft has deprecated the Microsoft Jet Engine, and plans > no new releases or service packs for this component. As a result, the Jet > and Replication Objects (JRO) is being deprecated in this release and will > not be available in any future MDAC releases. > Huh? AFAIK, our machines have MDAC 2.6 installed, and I use Jet 4.0 as an > OLEDB provider without any issues. Am I in for a nasty surprise? I can > understand the "no new releases or service packs", but what about the > "removed from MDAC 2.6" part? > Brett Barabash, MCP > Tappe Construction, Co. > Eagan, MN > bbarabash at tappeconstruction.com > (651) 256-6831 > "One thing a computer can do that most humans can't is be sealed up in a > cardboard box and sit in a warehouse." -Jack Handey _______________________________________________ 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 rusty.hammond at cpiqpc.com Wed Jul 2 09:38:13 2003 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 2 Jul 2003 09:38:13 -0500 Subject: [AccessD] Application Review =Please Advise= Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A03305E1F@cpixchng-1.cpiqpc.net> Jim, Do you mean Total Access Analyzer? I think the Detective is for comparing objects to find differences. Rusty -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, July 02, 2003 9:26 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Application Review =Please Advise= Checkout Total Access Detective at www.fmsinc.com Best tool for the job on #1. As to #2, just uncheck the ADO reference and see if you can do a compile. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Sad Der Sent: Wednesday, July 02, 2003 9:55 AM To: accessd at databaseadvisors.com Subject: [AccessD] Application Review =Please Advise= Hi Group, (pardon my english...) I just started with my new job as a VB(A) developer/ analyst. Today is my second day and I've got a new project allready. I need to revise an Access 2000 application. It has 2 db's. DB1 has all the tables DB2 has all the forms and stuff and the tables from DB1 are linked to it. It uses DAO, but ADO is also checked in the references. I received all documentation of the app and I attached it to this mail...yes this is sarcastic since there is NO documentation, except for the few comments in the code...very few that is! There are no tables/queries added to the relationship form. Questions: - How can I check if there are tables/queries that aren't used? - How can I check if ADO is used somewhere along the DAO code? Any other tips are greatly appreciated!! Regards, VisualSander __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Susan.Klos at fldoe.org Wed Jul 2 09:44:25 2003 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Wed, 2 Jul 2003 10:44:25 -0400 Subject: [AccessD] Force a subreport with no data to show on the main report Message-ID: <8213C1F49875D61195DA0002A5412A030140708E@mail.doe.state.fl.us> I have a main report which contains 4 subreports. Many times a couple of the subreports will not have any data. However I need the headings for the subreport to print anyway and then I need for certain textboxes on the report to show up. I can get the subreport to open outside of the main report and the correct information shows on the subreport. But when I open the main report it does not. Currently the subreport is linked to the main report by child field - eventID, master field - invoiceno. Here is the query that the subreport is based on: SELECT tblFacilityUse.EventID, tblFacilityUse.Amtper, Weekday([date],1) AS FacilityUseDay, tblFacilityUse.Number, Count(tblFacilityUse.Date) AS CountOfDate, tblFacilityUse.Total FROM tblFacilityUse GROUP BY tblFacilityUse.EventID, tblFacilityUse.Amtper, Weekday([date],1), tblFacilityUse.Number, tblFacilityUse.Total; I have the following code in the OnNoData event: Me.Rate.Visible = False Me.Guests.Visible = False Me.NoNights.Visible = False Me.Total.Visible = False Me.txtTotal.Visible = False Me.txtRate.Visible = True End Sub I would appreciate any help. From jimdettman at earthlink.net Wed Jul 2 10:01:48 2003 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 2 Jul 2003 11:01:48 -0400 Subject: [AccessD] Application Review =Please Advise= In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A03305E1F@cpixchng-1.cpiqpc.net> Message-ID: Rusty, Yes, I may have them mixed up. Always seem to forget which is which. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of rusty.hammond at cpiqpc.com Sent: Wednesday, July 02, 2003 10:38 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Application Review =Please Advise= Jim, Do you mean Total Access Analyzer? I think the Detective is for comparing objects to find differences. Rusty -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, July 02, 2003 9:26 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Application Review =Please Advise= Checkout Total Access Detective at www.fmsinc.com Best tool for the job on #1. As to #2, just uncheck the ADO reference and see if you can do a compile. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Sad Der Sent: Wednesday, July 02, 2003 9:55 AM To: accessd at databaseadvisors.com Subject: [AccessD] Application Review =Please Advise= Hi Group, (pardon my english...) I just started with my new job as a VB(A) developer/ analyst. Today is my second day and I've got a new project allready. I need to revise an Access 2000 application. It has 2 db's. DB1 has all the tables DB2 has all the forms and stuff and the tables from DB1 are linked to it. It uses DAO, but ADO is also checked in the references. I received all documentation of the app and I attached it to this mail...yes this is sarcastic since there is NO documentation, except for the few comments in the code...very few that is! There are no tables/queries added to the relationship form. Questions: - How can I check if there are tables/queries that aren't used? - How can I check if ADO is used somewhere along the DAO code? Any other tips are greatly appreciated!! Regards, VisualSander __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Jul 2 10:13:46 2003 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 2 Jul 2003 11:13:46 -0400 Subject: [AccessD] Jet OLEDB provider - deprecated? In-Reply-To: <9631611464.20030702162922@cactus.dk> Message-ID: Gustav, Actually if you look back at Brett's original post, he has a link to the article I was thinking of. However I was still off. MDAC 2.5 was the last release that contained the JET components. 2.6 did not have JET. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Wednesday, July 02, 2003 10:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet OLEDB provider - deprecated? Hi Jim Nope. Jet 4.0 is included in MDAC 2.6. Don't know about the "JRO components" though. /gustav > I thought they removed Jet from MDAC but made it a separate download. > HTH, > Jim DeMarco > -----Original Message----- > From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] > Sent: Wednesday, July 02, 2003 10:20 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Jet OLEDB provider - deprecated? > Each MDAC install contains update/upgrade information which is added to the > previous version. You may have MDAC 2.6 checked but the system is really > using JET 4.0 from MDAC 2.5 > 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 Brett Barabash > Sent: Wednesday, July 02, 2003 10:02 AM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] Jet OLEDB provider - deprecated? > While trying to solve an ADO-related problem, I ran across the following > page on MSDN: > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ > ado_deprecated.asp > in which it says: > Jet and Replication Objects (JRO) > The Microsoft Jet OLE DB Provider and other related components were removed > from MDAC 2.6. Microsoft has deprecated the Microsoft Jet Engine, and plans > no new releases or service packs for this component. As a result, the Jet > and Replication Objects (JRO) is being deprecated in this release and will > not be available in any future MDAC releases. > Huh? AFAIK, our machines have MDAC 2.6 installed, and I use Jet 4.0 as an > OLEDB provider without any issues. Am I in for a nasty surprise? I can > understand the "no new releases or service packs", but what about the > "removed from MDAC 2.6" part? > Brett Barabash, MCP > Tappe Construction, Co. > Eagan, MN > bbarabash at tappeconstruction.com > (651) 256-6831 > "One thing a computer can do that most humans can't is be sealed up in a > cardboard box and sit in a warehouse." -Jack Handey _______________________________________________ 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 2 10:28:45 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 2 Jul 2003 08:28:45 -0700 Subject: [AccessD] OT ADOX - Cycle though columns in a view Message-ID: You're using two different provider strings for no reason I can see. Use the Jet OLEDB provider. You don't need MSDASQL for this. "Queries" are either views or stored procedures in ADO in 2000, although I seem to recall XP having a Queries collection as well. You won't find them in the tables collection of a Jet database using ADO. Charlotte Foust -----Original Message----- From: Mark Hayes [mailto:mdh at theopg.com] Sent: Wednesday, July 02, 2003 5:14 AM To: 'Accessd at Databaseadvisors. Com' Subject: [AccessD] OT ADOX - Cycle though columns in a view Hello I am trying to get at the views in an adox.catalog (using XP) Sub bTest() 'uses adox Dim strCon As String Dim cat As ADOX.Catalog Dim vw As ADOX.View Dim Conn As New ADODB.Connection strCon = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=E:\Data\db1.mdb" Conn.Provider = "MSDASQL" Conn.Open strCon Set cat = New ADOX.Catalog cat.ActiveConnection = Conn For Each vw In cat.Views debug.Print vw.Name Next End Sub I can get at the tables in the same way but not queries. I read that queries in mdb's are listed as tables, but they still don't show up in the tables collection. Cat.views.count always comes back 0 Is this because mdbs aren't fully supported by adox perhaps? Any ideas much appreciated Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lists at theopg.com Wed Jul 2 10:39:06 2003 From: Lists at theopg.com (Mark H) Date: Wed, 2 Jul 2003 16:39:06 +0100 Subject: [AccessD] OT ADOX - Cycle though columns in a view In-Reply-To: Message-ID: <005901c340b0$12504ca0$878e6351@netboxxp> Thanks Charlotte - will try again Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 02 July 2003 16:29 To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT ADOX - Cycle though columns in a view You're using two different provider strings for no reason I can see. Use the Jet OLEDB provider. You don't need MSDASQL for this. "Queries" are either views or stored procedures in ADO in 2000, although I seem to recall XP having a Queries collection as well. You won't find them in the tables collection of a Jet database using ADO. Charlotte Foust -----Original Message----- From: Mark Hayes [mailto:mdh at theopg.com] Sent: Wednesday, July 02, 2003 5:14 AM To: 'Accessd at Databaseadvisors. Com' Subject: [AccessD] OT ADOX - Cycle though columns in a view Hello I am trying to get at the views in an adox.catalog (using XP) Sub bTest() 'uses adox Dim strCon As String Dim cat As ADOX.Catalog Dim vw As ADOX.View Dim Conn As New ADODB.Connection strCon = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=E:\Data\db1.mdb" Conn.Provider = "MSDASQL" Conn.Open strCon Set cat = New ADOX.Catalog cat.ActiveConnection = Conn For Each vw In cat.Views debug.Print vw.Name Next End Sub I can get at the tables in the same way but not queries. I read that queries in mdb's are listed as tables, but they still don't show up in the tables collection. Cat.views.count always comes back 0 Is this because mdbs aren't fully supported by adox perhaps? Any ideas much appreciated Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lists at theopg.com Wed Jul 2 10:55:41 2003 From: Lists at theopg.com (Mark H) Date: Wed, 2 Jul 2003 16:55:41 +0100 Subject: [AccessD] OT ADOX - Cycle though columns in a view In-Reply-To: Message-ID: <005c01c340b2$635a1430$878e6351@netboxxp> Was sloppy copy and pasting... Took out the extra provider setting and it still wont play. Cheers Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 02 July 2003 16:29 To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT ADOX - Cycle though columns in a view You're using two different provider strings for no reason I can see. Use the Jet OLEDB provider. You don't need MSDASQL for this. "Queries" are either views or stored procedures in ADO in 2000, although I seem to recall XP having a Queries collection as well. You won't find them in the tables collection of a Jet database using ADO. Charlotte Foust -----Original Message----- From: Mark Hayes [mailto:mdh at theopg.com] Sent: Wednesday, July 02, 2003 5:14 AM To: 'Accessd at Databaseadvisors. Com' Subject: [AccessD] OT ADOX - Cycle though columns in a view Hello I am trying to get at the views in an adox.catalog (using XP) Sub bTest() 'uses adox Dim strCon As String Dim cat As ADOX.Catalog Dim vw As ADOX.View Dim Conn As New ADODB.Connection strCon = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=E:\Data\db1.mdb" Conn.Provider = "MSDASQL" Conn.Open strCon Set cat = New ADOX.Catalog cat.ActiveConnection = Conn For Each vw In cat.Views debug.Print vw.Name Next End Sub I can get at the tables in the same way but not queries. I read that queries in mdb's are listed as tables, but they still don't show up in the tables collection. Cat.views.count always comes back 0 Is this because mdbs aren't fully supported by adox perhaps? Any ideas much appreciated Mark _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jim.hale at fleetpride.com Wed Jul 2 11:29:08 2003 From: jim.hale at fleetpride.com (Hale, Jim) Date: Wed, 2 Jul 2003 11:29:08 -0500 Subject: [AccessD] updating PivotChart's query Message-ID: <869379ABF177D4118D3100508B5EF8730676C342@corp-es00> Did you create it using the Pivot table wizard? If so I have never found a way to add fields after the fact that the pivot table would recognize. I've quit using the wizard altogether and have gone to excel templates that I refresh through code. These spreadsheets can easily be changed to accommodate new fields. Jim Hale -----Original Message----- From: Susan Harkins [mailto:harkins at iglou.com] Sent: Tuesday, July 01, 2003 5:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] updating PivotChart's query I based a PivotChart form on a query. Then, I returned to the query and added additional fields to it -- but the PivotChart's Field List won't reflect the new fields. Is there anyway to update the fields or do you just have to start over? That seems a bit convoluted. :( Susan H. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From harkins at iglou.com Wed Jul 2 11:58:27 2003 From: harkins at iglou.com (Susan Harkins) Date: Wed, 2 Jul 2003 12:58:27 -0400 Subject: [AccessD] updating PivotChart's query References: <869379ABF177D4118D3100508B5EF8730676C342@corp-es00> Message-ID: <008101c340bb$694298a0$aee6ffcc@SusanOne> RE: [AccessD] updating PivotChart's queryYes, used the wizard. ;( I'll try PivotChart view and do it manually and see what happens. Susan H. Did you create it using the Pivot table wizard? If so I have never found a way to add fields after the fact that the pivot table would recognize. I've quit using the wizard altogether and have gone to excel templates that I refresh through code. These spreadsheets can easily be changed to accommodate new fields. Jim Hale -------------- next part -------------- An HTML attachment was scrubbed... URL: From BBarabash at TappeConstruction.com Wed Jul 2 12:25:35 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 2 Jul 2003 12:25:35 -0500 Subject: [AccessD] Jet OLEDB provider - deprecated? Message-ID: <426071E0B0A6D311B3C0006008B0AB2338C826@TAPPEEXCH01> So, it is probably working because all of these machines are running Windows 2000, which by default would have a Jet 4.0 provider installed. Good to know. Thanks for the info. -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, July 02, 2003 10:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Jet OLEDB provider - deprecated? Gustav, Actually if you look back at Brett's original post, he has a link to the article I was thinking of. However I was still off. MDAC 2.5 was the last release that contained the JET components. 2.6 did not have JET. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Wednesday, July 02, 2003 10:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet OLEDB provider - deprecated? Hi Jim Nope. Jet 4.0 is included in MDAC 2.6. Don't know about the "JRO components" though. /gustav > I thought they removed Jet from MDAC but made it a separate download. > HTH, > Jim DeMarco > -----Original Message----- > From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] > Sent: Wednesday, July 02, 2003 10:20 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Jet OLEDB provider - deprecated? > Each MDAC install contains update/upgrade information which is added to the > previous version. You may have MDAC 2.6 checked but the system is really > using JET 4.0 from MDAC 2.5 > 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 Brett Barabash > Sent: Wednesday, July 02, 2003 10:02 AM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] Jet OLEDB provider - deprecated? > While trying to solve an ADO-related problem, I ran across the following > page on MSDN: > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ > ado_deprecated.asp > in which it says: > Jet and Replication Objects (JRO) > The Microsoft Jet OLE DB Provider and other related components were removed > from MDAC 2.6. Microsoft has deprecated the Microsoft Jet Engine, and plans > no new releases or service packs for this component. As a result, the Jet > and Replication Objects (JRO) is being deprecated in this release and will > not be available in any future MDAC releases. > Huh? AFAIK, our machines have MDAC 2.6 installed, and I use Jet 4.0 as an > OLEDB provider without any issues. Am I in for a nasty surprise? I can > understand the "no new releases or service packs", but what about the > "removed from MDAC 2.6" part? > Brett Barabash, MCP > Tappe Construction, Co. > Eagan, MN > bbarabash at tappeconstruction.com > (651) 256-6831 > "One thing a computer can do that most humans can't is be sealed up in a > cardboard box and sit in a warehouse." -Jack Handey _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From tracy at ak.planet.gen.nz Wed Jul 2 13:51:15 2003 From: tracy at ak.planet.gen.nz (Tracy) Date: Thu, 3 Jul 2003 06:51:15 +1200 Subject: [AccessD] Form Filtering not working References: <001e01c34093$482636e0$423c0cd8@hargrove.internal> Message-ID: <002501c340ca$eb9667a0$994114ca@Notebook> Hi Doris Thanks for your reply. I've tracked it down to Jet SP7 After using windows update and installing this - the form filtering stopped working. Cheers Tracy ----- Original Message ----- From: "Mike and Doris Manning" To: "'Access Developers discussion and problem solving'" Sent: Thursday, July 03, 2003 12:12 AM Subject: RE: [AccessD] Form Filtering not working > The problem is you have the form reference in quotes. Try this instead... > > DoCmd.OpenForm "Quote", , , "[QuoteNumber] = " & Forms![Quote - > list]![QuoteNumber] > > 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 Tracy > Sent: Wednesday, July 02, 2003 12:22 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Form Filtering not working > > > Hi Charlotte > When opening the form using VBA code as below: > > DoCmd.OpenForm "Quote", , , "[QuoteNumber] = Forms![Quote - > list]![QuoteNumber]" > > Using Access 2000 on Windows 2000 SP3 > > Thabks Tracy > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, July 02, 2003 8:31 AM > Subject: RE: [AccessD] Form Filtering not working > > > > When you say "filter", is that actually what you mean? It sounds more > > like you're using some kind of find or seek to locate the record > > instead, and that isn't the same thing at all. What version of Access > > are you using. > > > > Charlotte Foust > > > > -----Original Message----- > > From: Tracy [mailto:tracy at ak.planet.gen.nz] > > Sent: Tuesday, July 01, 2003 12:23 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Form Filtering not working > > > > > > Hi Listers > > I'm having a weird problem with one of my forms. > > > > When filtering the form, the filter works the first time ie: it goes > > to the correct record. But the second and subsequent times it remains > > at the record that was filtered the first time. > > > > I know the code that I use to filter the record is 100% correct as the > > app has been used for the last 5 years and this code hasn't been > > changed. > > > > Has anybody come across anything like this before ? > > > > I have tried removing the filter from the form then applying the new > > filter criteria in code but this has the same result as above ie: > > works the first time but not the second and subsequent times. > > > > Any help appreciated > > > > Cheers Tracy > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jim.hale at fleetpride.com Wed Jul 2 14:18:43 2003 From: jim.hale at fleetpride.com (Hale, Jim) Date: Wed, 2 Jul 2003 14:18:43 -0500 Subject: [AccessD] updating PivotChart's query Message-ID: <869379ABF177D4118D3100508B5EF8730676C3A4@corp-es00> When you you look at the properties of the objects on the form created by the wizard I've never been able to figure out how to "get at" the pivot table object to manipulate it. Actually your question would be a great one to send to Acceess Office Advisor VB or Smart Access. I've seen very little written that describes what the wizard is doing under the hood. Jim Hale -----Original Message----- From: Susan Harkins [mailto:harkins at iglou.com] Sent: Wednesday, July 02, 2003 11:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] updating PivotChart's query Yes, used the wizard. ;( I'll try PivotChart view and do it manually and see what happens. Susan H. Did you create it using the Pivot table wizard? If so I have never found a way to add fields after the fact that the pivot table would recognize. I've quit using the wizard altogether and have gone to excel templates that I refresh through code. These spreadsheets can easily be changed to accommodate new fields. Jim Hale -------------- next part -------------- An HTML attachment was scrubbed... URL: From rusty.hammond at cpiqpc.com Wed Jul 2 15:15:50 2003 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 2 Jul 2003 15:15:50 -0500 Subject: [AccessD] Two front end databases with one user interface? Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A03305E22@cpixchng-1.cpiqpc.net> Barbara, I've sent you two mdb files with the code and some sample objects offline. Rusty -----Original Message----- From: Barbara Ryan [mailto:BarbaraRyan at cox.net] Sent: Tuesday, July 01, 2003 2:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Two front end databases with one user interface? Rusty.... This sounds like something that would work really well for me. I would love to have a sample of the code...........Thanks, Barb ----- Original Message ----- From: rusty.hammond at cpiqpc.com To: accessd at databaseadvisors.com Sent: Tuesday, July 01, 2003 2:46 PM Subject: RE: [AccessD] Two front end databases with one user interface? I've never done it but how about something like this: Put some functionality in the vanilla version that checks for the existence of a custom.mdb in the same directory as the vanilla front end. If it's there, then open it and import the custom objects into the working interface. You could have a Custom options menu item on your main menu that would open another menu that would drive your Custom options. This Custom options menu would exist in the custom.mdb and be imported with the other custom objects. If you will be importing objects from the custom.mdb that have the same names as objects in your vanilla front end, your code will need to delete the object in the vanilla front end before importing the custom object. If you are running the front end on the local hard drive, you could copy the custom.mdb to their hard drive as well. Then you are only modifying the copy of the front end. The master copy of the vanilla front end remains untouched. Any additional customizations are added to the custom.mdb which is then copied down to the local hard drive. You would need code to: A. Search for the existence of custom.mdb in the same directory as your running front end B. Spin through the list of objects in the custom.mdb and compare the names to the list of objects in the vanilla front end AND if any match, delete them in the vanilla front end. C. Import the objects from the custom.mdb I've already setup a test.mdb and a custom.mdb and will be working on the code to do this so if you need a sample let me know and I'll try to have something for you soon. HTH Rusty -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, July 01, 2003 12:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Two front end databases with one user interface? I have never found an easy way to do this but thanks for asking the question. John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Tuesday, July 01, 2003 1:04 PM To: Access List Subject: [AccessD] Two front end databases with one user interface? I have a "vanilla" Access 97 application that is used at multiple sites. If a particular site want a modification --- e.g., a customized version that I do NOT want to incorporate into the vanilla version, is there a way that I can create a separate front end (to hold these custom objects) yet still have one user interface? I don't want them to have to open two separate applications. Hope this makes sense! Thanks, Barb Ryan _____ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgoodhall at comcast.net Wed Jul 2 17:19:59 2003 From: sgoodhall at comcast.net (Steve Goodhall) Date: Wed, 2 Jul 2003 18:19:59 -0400 Subject: [AccessD] Relink tables? In-Reply-To: Message-ID: My reason is that I occasionally got crossed up when promoting an new front end to production status but failing to relink to the production tables, so I just made it an autoexec function. Regards, Steve Goodhall -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tesiny, Ed Sent: Wednesday, July 02, 2003 10:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Relink tables? Why do you want to relink every time the app starts? Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Wednesday, July 02, 2003 9:58 AM To: accessd at databaseadvisors.com Subject: [AccessD] Relink tables? Hi Group, does anybody know how i can automaticle relink tables? info: i've got an A2K application that uses 2 db's. 1 db (DB_BE) has all the data (tables/queries) 1 db (DB_FE) has all the forms and the tables from DB_BE linked to it. I want to relink these tables every time the app starts. Any ideas? Regards, visualsander __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgoodhall at comcast.net Wed Jul 2 17:19:59 2003 From: sgoodhall at comcast.net (Steve Goodhall) Date: Wed, 2 Jul 2003 18:19:59 -0400 Subject: [AccessD] Relink tables? In-Reply-To: <20030702135824.19234.qmail@web10010.mail.yahoo.com> Message-ID: On my website (http://www.goodhall.info/steve/) click on useful software and download the second item. Regards, Steve Goodhall -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Sad Der Sent: Wednesday, July 02, 2003 9:58 AM To: accessd at databaseadvisors.com Subject: [AccessD] Relink tables? Hi Group, does anybody know how i can automaticle relink tables? info: i've got an A2K application that uses 2 db's. 1 db (DB_BE) has all the data (tables/queries) 1 db (DB_FE) has all the forms and the tables from DB_BE linked to it. I want to relink these tables every time the app starts. Any ideas? Regards, visualsander __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.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 Wed Jul 2 17:51:50 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 03 Jul 2003 08:51:50 +1000 Subject: [AccessD] Relink tables? In-Reply-To: <20030702135824.19234.qmail@web10010.mail.yahoo.com> Message-ID: <3F03EEA6.5077.323675@localhost> On 2 Jul 2003 at 6:58, Sad Der wrote: > Hi Group, > > does anybody know how i can automaticle relink tables? > Here's the code that I use. It assumes that the BE and FE are in the same directory. As someone pointed out on the list the "If Left$(tdfloop.Connect, 10) = ";DATABASE=" " can fail under certain circumstances (I can't remember the details, but under some setups, there is another parameter bfore the "DATABASE" - can anyone refresh my memory?). This has always worked in my apps though. Option Compare Database Option Explicit Function RelinkTables() As Long Dim tdfloop As TableDef With CurrentDb For Each tdfloop In .TableDefs If Left$(tdfloop.Connect, 10) = ";DATABASE=" Then _ tdfloop.Connect = ";DATABASE=" & ApplDir & _ filename(Mid$(tdfloop.Connect, 11)) tdfloop.RefreshLink End If Next tdfloop End With End Function Function pathname(fullpath As String) As String Dim STemp As String pathname = Left$(fullpath, InStrRev(fullpath, "\")) End Function Function filename(fullpath As String) As String Dim STemp() As String STemp() = Split(fullpath, "\") filename = STemp(UBound(STemp)) End Function Static Function ApplDir() As String Dim strApplDir As String Dim strTemp As String If strApplDir = "" Then strTemp = DBEngine(0)(0).Name strApplDir = Left$(strTemp, InStrRev(strTemp, "\")) End If ApplDir = strApplDir End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From martyconnelly at shaw.ca Wed Jul 2 18:49:57 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 02 Jul 2003 16:49:57 -0700 Subject: [AccessD] Jet OLEDB provider - deprecated? References: <22F1CCD5171D17419CB37FEEE09D5F990173F044@TTNEXCHSRV1.hshhp.com> Message-ID: <3F036FA5.30008@shaw.ca> MDAC 2.5 has Jet SP3; after that no Jet install with MDAC. You must have SP3 installed to install follow up SP's, latest is SP 7.0 just out this week. They are cumulative patches; for example SP6 has patches for SP4 and SP5 included Jet 4.0 Service Pack 7 (SP7) Replication File Update - KB321076 http://www.microsoft.com/downloads/details.aspx?FamilyID=0185ceec-e3b2-4a3f-8afd-e0cbf2b4a0bb&DisplayLang=en Jet 4.0 Service Pack 7 (SP7) Full for all OS's http://support.microsoft.com/?KBID=282010 winXP SP7.0 downloadable install rather than Windows update http://www.microsoft.com/downloads/details.aspx?FamilyID=6c1780c0-3f8f-4650-b6ad-11badf3f4dab&DisplayLang=en If you installed the Beta for SP 7.0 deinstall before installing approved SP7 You need SP7 installed before installing Refresh or Part2 of Beta 2 Office 2003 Double-click Add/Remove Programs. In the list of currently installed programs, select Windows 2000 Hotfix (SP4) Q816056 or Windows XP Hotfix (SP2) Q816056, and then remove to deinstall Beta of SP 7.0 I found the WindowsUpdate site did a really slow install of SP7 (45 minutes) for WinXP much quicker using using the last url above for WinXP. I found after this install, JRO.engine database conversion to higher version no longer works. No great loss as you can still convert through DAO, just a problem if you only use VB6.0 Jim DeMarco wrote: >Must be MDAC 2.7 then. > >Thanks, > >Jim DeMarco > > >-----Original Message----- >From: Gustav Brock [mailto:gustav at cactus.dk] >Sent: Wednesday, July 02, 2003 10:29 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Jet OLEDB provider - deprecated? > > >Hi Jim > >Nope. Jet 4.0 is included in MDAC 2.6. >Don't know about the "JRO components" though. > >/gustav > > > > >>I thought they removed Jet from MDAC but made it a separate download. >> >> > > > >>HTH, >> >> > > > >>Jim DeMarco >> >> > > > > >>-----Original Message----- >>From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] >>Sent: Wednesday, July 02, 2003 10:20 AM >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] Jet OLEDB provider - deprecated? >> >> > > > > >>Each MDAC install contains update/upgrade information which is added to the >>previous version. You may have MDAC 2.6 checked but the system is really >>using JET 4.0 from MDAC 2.5 >> >> > > > >>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 Brett Barabash >>Sent: Wednesday, July 02, 2003 10:02 AM >>To: 'accessd at databaseadvisors.com' >>Subject: [AccessD] Jet OLEDB provider - deprecated? >> >> > > > > >>While trying to solve an ADO-related problem, I ran across the following >>page on MSDN: >>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ >>ado_deprecated.asp >> >> > > > >>in which it says: >> >> > > > >>Jet and Replication Objects (JRO) >>The Microsoft Jet OLE DB Provider and other related components were removed >>from MDAC 2.6. Microsoft has deprecated the Microsoft Jet Engine, and plans >>no new releases or service packs for this component. As a result, the Jet >>and Replication Objects (JRO) is being deprecated in this release and will >>not be available in any future MDAC releases. >> >> > > > >>Huh? AFAIK, our machines have MDAC 2.6 installed, and I use Jet 4.0 as an >>OLEDB provider without any issues. Am I in for a nasty surprise? I can >>understand the "no new releases or service packs", but what about the >>"removed from MDAC 2.6" part? >> >> > > > > >>Brett Barabash, MCP >>Tappe Construction, Co. >>Eagan, MN >>bbarabash at tappeconstruction.com >>(651) 256-6831 >>"One thing a computer can do that most humans can't is be sealed up in a >>cardboard box and sit in a warehouse." -Jack Handey >> >> > >_______________________________________________ >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". >*********************************************************************************** > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > From andrew.haslett at ilc.gov.au Wed Jul 2 18:57:43 2003 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Thu, 3 Jul 2003 09:27:43 +0930 Subject: [AccessD] Jet OLEDB provider - deprecated? Message-ID: ditto on the slow update with XP. PITA! -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Thursday, 3 July 2003 9:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet OLEDB provider - deprecated? MDAC 2.5 has Jet SP3; after that no Jet install with MDAC. You must have SP3 installed to install follow up SP's, latest is SP 7.0 just out this week. They are cumulative patches; for example SP6 has patches for SP4 and SP5 included Jet 4.0 Service Pack 7 (SP7) Replication File Update - KB321076 http://www.microsoft.com/downloads/details.aspx?FamilyID=0185ceec-e3b2-4a3f- 8afd-e0cbf2b4a0bb&DisplayLang=en Jet 4.0 Service Pack 7 (SP7) Full for all OS's http://support.microsoft.com/?KBID=282010 winXP SP7.0 downloadable install rather than Windows update http://www.microsoft.com/downloads/details.aspx?FamilyID=6c1780c0-3f8f-4650- b6ad-11badf3f4dab&DisplayLang=en If you installed the Beta for SP 7.0 deinstall before installing approved SP7 You need SP7 installed before installing Refresh or Part2 of Beta 2 Office 2003 Double-click Add/Remove Programs. In the list of currently installed programs, select Windows 2000 Hotfix (SP4) Q816056 or Windows XP Hotfix (SP2) Q816056, and then remove to deinstall Beta of SP 7.0 I found the WindowsUpdate site did a really slow install of SP7 (45 minutes) for WinXP much quicker using using the last url above for WinXP. I found after this install, JRO.engine database conversion to higher version no longer works. No great loss as you can still convert through DAO, just a problem if you only use VB6.0 Jim DeMarco wrote: >Must be MDAC 2.7 then. > >Thanks, > >Jim DeMarco > > >-----Original Message----- >From: Gustav Brock [mailto:gustav at cactus.dk] >Sent: Wednesday, July 02, 2003 10:29 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Jet OLEDB provider - deprecated? > > >Hi Jim > >Nope. Jet 4.0 is included in MDAC 2.6. >Don't know about the "JRO components" though. > >/gustav > > > > >>I thought they removed Jet from MDAC but made it a separate download. >> >> > > > >>HTH, >> >> > > > >>Jim DeMarco >> >> > > > > >>-----Original Message----- >>From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] >>Sent: Wednesday, July 02, 2003 10:20 AM >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] Jet OLEDB provider - deprecated? >> >> > > > > >>Each MDAC install contains update/upgrade information which is added to the >>previous version. You may have MDAC 2.6 checked but the system is really >>using JET 4.0 from MDAC 2.5 >> >> > > > >>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 Brett Barabash >>Sent: Wednesday, July 02, 2003 10:02 AM >>To: 'accessd at databaseadvisors.com' >>Subject: [AccessD] Jet OLEDB provider - deprecated? >> >> > > > > >>While trying to solve an ADO-related problem, I ran across the following >>page on MSDN: >>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/ht m/ >>ado_deprecated.asp >> >> > > > >>in which it says: >> >> > > > >>Jet and Replication Objects (JRO) >>The Microsoft Jet OLE DB Provider and other related components were removed >>from MDAC 2.6. Microsoft has deprecated the Microsoft Jet Engine, and plans >>no new releases or service packs for this component. As a result, the Jet >>and Replication Objects (JRO) is being deprecated in this release and will >>not be available in any future MDAC releases. >> >> > > > >>Huh? AFAIK, our machines have MDAC 2.6 installed, and I use Jet 4.0 as an >>OLEDB provider without any issues. Am I in for a nasty surprise? I can >>understand the "no new releases or service packs", but what about the >>"removed from MDAC 2.6" part? >> >> > > > > >>Brett Barabash, MCP >>Tappe Construction, Co. >>Eagan, MN >>bbarabash at tappeconstruction.com >>(651) 256-6831 >>"One thing a computer can do that most humans can't is be sealed up in a >>cardboard box and sit in a warehouse." -Jack Handey >> >> > >_______________________________________________ >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". >*************************************************************************** ******** > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From bbruen at bigpond.com Wed Jul 2 23:35:40 2003 From: bbruen at bigpond.com (Bruce Bruen) Date: Thu, 03 Jul 2003 14:35:40 +1000 Subject: [AccessD] Form Open Events Message-ID: <000001c3411c$901b64f0$5400a8c0@bbb888> Hi List, I'm back after a small delay caused by XP destroying my system. Today's problem is this. I have a form that runs quite a lengthy (minutes) process, so I am developing a trace logger that shows the user the progress of the process. The logger is an unbound form with a single text box in it into which I add progress messages. The user sees (or should see) the following appear as the process executes: Opening Outlook Session Checking for new part supply emails There are 4 new eMail items to process Processing email from "" at