Search results

  1. D

    between And Dates in Query Criteria

    You have a Null "DateSubmitted", as Bob had suspected, for a record in Innovative. Also, of you remove the format of "Short Date" at the Table design level for DateSubmitted, you will see that your DateSubmitted does indeed have times associated with the record (as I suggested in an earlier post...
  2. D

    between And Dates in Query Criteria

    ... Also, understand that parameters that are not specifically given a datatype, will be first interpretted as Text. Most often, Access knows how to coerce the text into a the data type that the user wants, however, Access is not always successfull. So ... along with Bob's example of using...
  3. D

    between And Dates in Query Criteria

    >> it is a date/time field , but i have no times associated withthis field << Times are ALWAYS associated with a Date/Time field. The value of a date/time field is stored as an 8 byte floating point number (ie: a Number/Double). The whole number portion is the number of days away from the...
  4. D

    Access's Yes/No Field=1 bit, VBA's boolean type=2 bytes?

    Yes ... I know this is an old thread, but a discussion over at UtterAccess between Banana and myself had prompted a re-visit to this thread. In short, if you don't want to read it all, its seems that Banana and I were able to conclude (in separate tests) that Access's Yes/No datatype (Jet/ACE...
  5. D

    Serious bloating

    Hey ... that code looks familiar! .. :) .. ---- I used your db in A2010. The db size stayed right at 13mg after about 20 opens and closes ... with the FlexGrid and me selecting different nodes on the Tv. ---- Also ... with respect to the side bar discussion about the difference between...
  6. D

    View Users Currently Logged In Sample Database

    Does the debugger take to you a specific line of code? What version of Access are you using? --- The error text you have indicated seems to point to an issue with ADO. It may be worth going into VBA and checking the references in order to ensure that the MS ActiveX Data Objects library is...
  7. D

    Run-time Error 5 "Invalid Procedure Call or Argument"

    >> Do you know the reason why it worked on some computers but not on others? << The comparison method that VBA uses is often indicated at the top of the Module with a statement that looks like this: Option Compare Database What that means is that text comparisons are based on the locale...
  8. D

    Query between 1st and 15th of month

    I am unsure of the specific code contained in the Sum() function that the Jet/ACE database engine calls upon. It is likely that no one really does, outside of MS. So, to help us assume the process that Sum() uses, I derived a test using a local table with 668391 records in it, and a small code...
  9. D

    Pass through query with a stored password

    post to "bump", so the change to my previous post is noted by the OP.
  10. D

    Question Export A Form's Recordset To Excel (only export visible datasheet fields)

    I know I am late to the party, but I will add some info that does not negate any of the fine advice received by Bob and vbaInet. A SubForm control DOES NOT have its SourceObject property set to a Form object. You can set the property to a Table or Query object as well. When that is done, MS...
  11. D

    2 unrelated tables in vb2008

    >> and the other is frozen << And what does that mean exactly ... >> What do i need to do to get both working? << You are really not giving us much to work on to guide you effectivly as you develop this assignment. --- Also, your title indicates vb2008 (makeing me think VB.net and the...
  12. D

    Pass through query with a stored password

    >> #1 - my pass through query is referring referring to a table per below but it is giving me an ODBC error. << Your Passthrough Query has no clue as to what Access Objects are, so you can not refer to them within your PT queries SQL statement. If you PT query records records, you CAN use the...
  13. D

    Question: How do you turn off autocal in a form?

    Well, a pivot chart is an form of an aggregate query, so if you know your values will be repeating and you just want that value, you may be able to use the First() aggregate function.
  14. D

    Detect if File Open

    What type of files are you working with? If you are working with Excel, Word, PDF's and such, you can use the VBA methods: FileCopy() Kill() And if you try to manipulate a file opened by Word, Excel, Adobe, etc. you will get a trappable run-time error (I beleive it has an error number of 70).
  15. D

    Looping through files in a directory

    Any reason why you want to use the FileSystemObject library? Public Sub LoopFiles() Dim strPath As String Dim strFilename As String strPath = "C:\Windows\*.dll" strFilename = Dir(strPath) Do Until strFilename = "" Debug.Print strFilename...
  16. D

    Docmd.RunSQL with a select query

    >> it won't open due to 'syntax errors' (where it keeps changing ( to [ for the nested stuff) << If the Query objects SQL does not change, you can write the SQL Statement with the nested stuff in parenthesis ... So this (statement A): SELECT * FROM [SELECT * FROM someTable]. AS vTable...
  17. D

    Question What is the problem with my connection string?

    >> Last edited by boblarson; Today at 09:46 AM.. Reason: disable smilies << LOL! .. I put it in code tags at the same time to attempt to fix! ... thanks Bob! PS> Hello! ... and good to 'see' ya!
  18. D

    Question What is the problem with my connection string?

    You do not have a delimiter to separate your JET OLEDB:Password argument. To help me not forget that little gem of a character, I will often lead a new line with each argument: cn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0" & _ ";Data Source=" & App.Path & "\users.accdb" & _ ";Jet...
  19. D

    Convert Date Range to Date List

    Yes ... First ... create a query of contiguous dates. There are a couple of ways to do this. One method can be found by clicking here. Or from a more generic mindset of always needing a series of contiguous values for something, I will often create a single table in my db's called...
  20. D

    On Error GoTo - Need Help

    First in foremost, you do realize that you are trying to build the same relationship twice in your "CreateRelationships" code right? -------- Assuming you did realize that, the second thing I see is will be just reinforcing what Dave (the one with the husky dog named Gemma :) ) said --- you...
Back
Top Bottom