Search results

  1. T

    syntax error in function

    Yes that is a string. I read this code as: we have a form frmAccounts, with a subform Register. The subform has a control CkDate. We're setting fld to CkDate's name. That seems equivalent to: fld = "CkDate" When you hit Debug > Compile, which line of code is highlighted, and what is the error...
  2. T

    syntax error in function

    > strRange = GetDateRange("CkDate", cboDate.Value) You're sending cboDate.Value to RangeType As Integer Is that really what you wanted? Note that today's date expressed as a number is 46005, which would overflow the integer data type. (in the immediate window) ?CInt(Date) Overflow ?CLng(Date)...
  3. T

    Late Control binding to make Forms Field independant.

    I share my mother tongue with the OP so I understood right away. Same for the UI elements in Dutch. I should have translated "map" for you.
  4. T

    Late Control binding to make Forms Field independant.

    Then you did not follow the instructions from the OP. See #24. Note that the MDE is compiled for 32-bit.
  5. T

    Setting Recordsource when there are two or more forms open

    Too bad, so sad, but we do not have access to local variables from VBA (a comparatively VERY simple language). That's why we have to pass them into our function. Python: name = "Alice" age = 30 print(f"My name is {name} and I am {age} years old.") VBA: Debug.Print StringFormat("My name is {0}...
  6. T

    Setting Recordsource when there are two or more forms open

    That is indeed what function modStrings.StringToDictionary is for.
  7. T

    Setting Recordsource when there are two or more forms open

    Re OpenArgs, I highly recommend borrowing modStrings from the Northwind 2 Developer template, and using it to parse the several OpenArgs arguments that are passed as name/value pairs. I talk about it in this YouTube video, at 35:34.
  8. T

    Edited record vanishes from filtered recordset

    One possible solution would be to implement a MRU list like we did in Northwind 2 Developer Edition. That gives user a different way to access the 20-or so most recently edited records again.
  9. T

    Late Control binding to make Forms Field independant.

    That is the biggest rub for me so far. It leads to more clicks and more forms popping up to get things done. For many of my customers high-speed data entry is very important. Plus, the aesthetics of it: no dropdowns, no checkboxes, no radio button groups etc. I know beauty is in the eye of the...
  10. T

    OutputTo Excel error

    You don't have to delete it every time; you can set the SQL property and use it again. I do this all the time for passthrough queries to SQL Server. I create ptTemporary1 through 10, and round-robin pick one, set the SQL statement (usually a call to a recordset returning stored procedure) and...
  11. T

    Late Control binding to make Forms Field independant.

    @Imb: I entered a few persons and groups, then tried to associate a person to a group. Clicking on New PersonGroup I get this form, with yellow textboxes where I was expecting comboboxes. I read that you mostly use textboxes. Are we supposed to type the names here? I found out that in other...
  12. T

    Late Control binding to make Forms Field independant.

    @DHookom: the app compiles for me (A365-32). Do you need to decompile?
  13. T

    Recommendations on appending or linking historical data into a new dataset

    Then pull it ONCE. Something like: insert into myLocalTable select * from mySapTable where myDateField > DMax(myDateField, myLocalTable)
  14. T

    Access not 'receiving' command line passed to it in batch file

    I think you need to prefix the path to your database with the path to msaccess.exe
  15. T

    Hello, I'm new to access and this forum

    Welcome Malcolm. That sounds like an ambitious project. Ask lots of questions in this forum, especially about the correct database design. As an engineer you will appreciate that the best homes are built on solid foundations.
  16. T

    Late Control binding to make Forms Field independant.

    Zip files can be attached as well.
  17. T

    I'm sure there is a simple solution asset tracking MY NEW PROJECT.

    The junction table (we could call it MachineParts) with the Tag field will likely have several records, one for each machine/part combination. That is good! Your desire to have all the tags in one field is likely because you are thinking ahead, to a time where you're creating a report with all...
  18. T

    I'm sure there is a simple solution asset tracking MY NEW PROJECT.

    Good for you for asking questions early on. Getting the database design correct is an absolutely essential step. What I am hearing is that you have machines, and each machine has zero or more parts, and those parts can be of different kinds (e.g. LI or PT). You need a table to list the...
  19. T

    Solved SSMS22 Application Itself Slower Than SSMS21

    One more suggestion: SSMS > Tools > Import and Export Settings > Reset all Settings.
  20. T

    Warehouse inventory and sites

    Oh Chatty... You don't understand the scope of "advanced" and "comprehensive", and you have not read the "Features not covered" section on this NW2 help page. In fact, the inventory system in NW2 is VERY BASIC, and not meant for any real-world business.
Back
Top Bottom