Search results

  1. RonPaii

    Label not showing on subform if value is 0

    Put a label behind each sub-form with the message you want when the sub-form is empty. If the sub-form is empty, set it's Visible property to False.
  2. RonPaii

    What pc hardware/software to speed up Microsoft Access?

    I think you are looking for some hardware magic bullet that will run software fast no matter how it's written. There is no such thing! For example, an earlier post with sample code to calculate perfect numbers for 2 to 10000 ran in a 5 seconds on a 4 year old i7 with 32 GB memory and P2 drive...
  3. RonPaii

    VBA not working for saved query parameters

    The second opening of query did not wipe out the parameters, it is completely independent of the first. The only way to set parameters of a query opened with docmd is form variables or temp variables.
  4. RonPaii

    VBA not working for saved query parameters

    Your function could be as simple as this. Dim strQueryName As String TempVars![parExamFreq] = "Weekly" TempVars![parExamPeriod] = Date strQueryName = "qry_Par_Start_Date_In_Range" e with CurrentDb with .QueryDefs(strQueryName) with .OpenRecordset(dbOpenDynaset)...
  5. RonPaii

    VBA not working for saved query parameters

    The easiest is with temp vars per my example in post #15. You will always need to pre-fill the temp vars before opening a query referencing a temp var.
  6. RonPaii

    VBA not working for saved query parameters

    This should work using temp vars. Dim db As DAO.Database Dim qdf As DAO.QueryDef Dim strQueryName As String Dim rs As DAO.RecordSet Dim prm As DAO.Parameter Dim sFreq As String Dim dDate As Date sFreq = "Weekly" dDate = Date TempVars![parExamFreq] = sFreq...
  7. RonPaii

    VBA not working for saved query parameters

    Those are 2 independent instances of the same query; setting parameters in 1 instance has no affect on another.
  8. RonPaii

    VBA not working for saved query parameters

    A 2nd look at your function, you opened the query 2 times, the 2nd time without providing values for the parameters. 1st time as a record set with the parameters pre-filled. Set db = CurrentDb Set qdf = db.QueryDefs(strQueryName) qdf.Parameters(sPar1).Value = sFreq...
  9. RonPaii

    Query with multiple parameters but don't bring up duplicate rows?

    Ken said "Another problem is that the IN operator does not accept a parameter as its argument." Instead of a function, wouldn't it be great if Microsoft allow us to pass IN as a parameter.
  10. RonPaii

    VBA not working for saved query parameters

    So did adding the defined parameters help? Adding line breaks makes it much easer to see what you are doing. PARAMETERS [parExamFreq] Text ( 255 ), [parExamPeriod] Text ( 255 ); SELECT tblEquipment.EquipmentID FROM tblEquipment WHERE ((([parExamFreq])="Weekly") AND...
  11. RonPaii

    What pc hardware/software to speed up Microsoft Access?

    x64 will give you a large memory space. P2, one of the single board style drive that connects directly to the motherboard as opposed to an SSD that plugs in like a HHD. Core speed would be more important than count with Access.
  12. RonPaii

    VBA not working for saved query parameters

    so you are saying ([parExamFreq]) = "Weekly") will not exist in your final query? I would think something like ([tblEquipment].[ExamFreq] =[parExamFreq]) would be more likely.
  13. RonPaii

    VBA not working for saved query parameters

    Try defining the parameters at the top of your query. PARAMETERS [parExamFreq] Text ( 255 ), [parExamPeriod] Text ( 255 ) SELECT tblEquipment.EquipmentID, ( DatePart("yyyy", [tblEquipment].[StartOfServiceDate]) * 1000 ) + DatePart("ww", [tblEquipment].[StartOfServiceDate])...
  14. RonPaii

    VBA not working for saved query parameters

    Leave out the brackets in the parameter name string. sPar1 = "parExamFreq" sPar2 = "parExamPeriod"
  15. RonPaii

    Query with multiple parameters but don't bring up duplicate rows?

    You can use a sub-select to git rid of the district SELECT tblCompanies.CompanyName FROM tblCompanies WHERE tblCompanies.CompanyID In (SELECT JobTypeID.CompanyID FROM JobTypeID WHERE JobTypeID.JobTypeName IN ("Plumbing","HVAC"));
  16. RonPaii

    What pc hardware/software to speed up Microsoft Access?

    Stable hardwired connection 1gb or better to the server hosting your FE. Optimize your application performance for core users. Probably do more for performance on modern computers then high end hardware Access x64 Fast P2 hard drive 16gb or more memory Fast single core speed on your processor.
  17. RonPaii

    Other user can't open SQL Table in Access

    Try adding Encrypt=No to the connection string.
  18. RonPaii

    Other user can't open SQL Table in Access

    We have been using ODBC driver 18 with Access for almost a year. Verify each user has the driver called out in the connection string. If possible have your IT push it out to all users.
  19. RonPaii

    5 Aluminum discs on the Espresso Maker Base?

    It looks like a fastener for the base that is machined with the base after attachment. Note the groves align.
  20. RonPaii

    Output data from tables into a directory or phonebook

    The OP stated. "I'm wanting what the Report does - grouping of individuals within the Household name - in a format I can export and then merge into a Word document or something like that."
Back
Top Bottom