Search results

  1. M

    Syntax for TCP Connection

    Thanks for the link...so the correct version is: ODBC;DRIVER=ODBC Driver 13 for SQL Server;SERVER=tcp:127.0.0.1,1433;DATABASE=myDatabaseName;Trusted_Connection=Yes;TABLE=dbo.Customers Can I just add that it's very important to get the lastest ODBC driver for the clients using Windows 10...
  2. M

    Syntax for TCP Connection

    Hi, Does anyone know the correct syntax to create a TCP connection to a default instance of a Sql Server. I've tried: ODBC;DRIVER=SQL Server Native Client 11.0;SERVER=127.0.0.1,1433;DATABASE=myDatabaseName;Trusted_Connection=Yes;;TABLE=dbo.Customers That doesn't work. Regards
  3. M

    Access 2016 - mdb not opening, just container window.

    I rebooted the server and that seems to have resolved it. Thanks for your input Minty. Regards Melt
  4. M

    Access 2016 - mdb not opening, just container window.

    It opens up as normal, and I'm using Access 2016 locally. Regards
  5. M

    Access 2016 - mdb not opening, just container window.

    Hi Minty, The thing is, I've tried clicking the mdb file, not the shortcut, it doesn't open the db file, just the container window. Regards Melt
  6. M

    Access 2016 - mdb not opening, just container window.

    Hi all, Using Access 2016 installed on a Terminal Server - I have one user where the shortcut I created no longer opens the database, it just opens the Access Container window. The apps opens for other logged in users. No error messages, I can't even Shift+ Click into the database. Anyone got...
  7. M

    Passing Access constant as argument

    Thanks sneuberg, that does work. I just wanted to check if it could be done without parsing. Thanks for your help Regards Melt
  8. M

    Passing Access constant as argument

    No, I want to remove all the sub code from my navigation buttons and replace with the single GoToRecord function which is called from the OnClick event of the button using =GoToRecord("acLast"). The purpose is to clean up my code for simple navigation tasks. I can remove 5 subs for First...
  9. M

    Passing Access constant as argument

    Sorry, no, that doesn't work. The problem seems to be Access adding quotes or brackets around the argument, like this =GoToRecord([acLast]) or =GoToRecord("acLast") which are not the same as the Access constant. I know I could write an if statement to check the passed value, but I was hoping...
  10. M

    Passing Access constant as argument

    Hi all, Is it possible to pass an access constant as a argument to a function? I have a button called Last with a sub on the click event that runs DoCmd.GoToRecord , , acLast I want to replace that with a call to a Function like this =GoToRecord("acLast") -- passing in the access constant...
  11. M

    Generic error handler

    Thanks for the replies. So, if I have Form with 10 subs, is the recommendation to add an error handler to each sub, or just add one and let the error event bubble-up? Regards Melt
  12. M

    Generic error handler

    Below is a simple error handler that I usually wrap most of my sub code in. Is it possible to have this error handler called without hard-coding it into every sub? - so all my sub code runs in an error-handling wrapper automatically. Thanks Melt On Error GoTo Error_Handler 'Run code here...
  13. M

    Retrieve data using code only

    Thanks Paul, I'll look into using the ADO recordset. Regards Melt
  14. M

    Retrieve data using code only

    Paul, will it work for a continuous Form, not just a single record? Regards Melt
  15. M

    Retrieve data using code only

    Hi all, Is it possible to retrieve a dataset from a Sql Server database using code only? -- there can be no table or query in the navigation pane as they can be opened and data copied. So, a Form is opened and its OnLoad/OnOpen event goes and gets the data? Thanks Melt
  16. M

    Run procedure any time ANY Form is opened?

    Thanks a lot arnelgp, that'll work. Reagrds Melt
  17. M

    Run procedure any time ANY Form is opened?

    I have an old database I need to clean up and I want to see what Forms are still being actively used. So, I'm going to create a log table and, if a Form is opened, log that event. I could write a public procedure -- open every Form and call the procedure in the OnOpen() event -- but, I was...
  18. M

    VBA to open Outlook

    Does your company have a web site? Have you considered using the mail server of your web host to send the emails and bypass all the Outlook shenanigans. You would have to register a dll on each machine. Regards Melt
  19. M

    Form will not save

    You need OrderId in the recordsource of the subform. Edit the query in the subform and add OrderId from tblOrderItems -- then the subform will synch with the main form. Regards Melt
  20. M

    page break

    The easiest solution is to add the line numbers control to your reports then make txtLineNums invisible under properties -- the event code will still work. Regards Melt
Top Bottom