Recent content by Nirious

  1. N

    Upsert?

    Hi, Does access have a syntax for an upsert query. I mean insert record, if key already exists than do an update of the fields for that record?
  2. N

    Question updating mdb file outside of access using dumpfile?

    I only need to update data. No changes to schema. Just delete some rows, insert some rows, update some rows on a couple of tables. There are no forms in the mdb. The 3000 pcs have each their own "personal" db with local info contained in it. Though they all start from the same mdb file that is...
  3. N

    Question updating mdb file outside of access using dumpfile?

    Hi, I need to update an existing base mdb database on approximately 3000 pc based systems. According to the configuration of the particular system, I have multiple possible changes that change in the database. I was wondering if there exists a program that alows me to: 1)dump the access file...
  4. N

    Accessing a form by formname?

    I currently am trying to do this: dim a as form a = me.form I get the following error: "Invalid use of property" Is there a function that lets you select a form using its name. eg: makeactiveform("NameOftheForm") Or alternatively if there is a function that gets the activeform. (it's for...
  5. N

    form move event ?

    I have this one form that I'm using to put all kinds of buttons on. It rests always on top in my access app. (Something like the button bar in your IE) Now I have all kinds of other forms, and I don't want them to be hidden by the button bar or overlap the buttonbar. I don't want any other...
  6. N

    resize form to application window

    I have a form without any toolbars etc, that contains the logo of the company. It has to be always on the background. And needs to be the same size as the application window. I can't maximize the form because that means that my other forms will also be maximized. And they weren't designed for...
  7. N

    errors while deleting a record

    You know what. I couldn't get it to work like I wanted it too with this code. So I just deleted the records directly within the DB. That does work! I will never again use acCmdDeleteRecord. It's not worth the throuble. Now I use this code. Works like a charm. Dim cmd As New ADODB.Command...
  8. N

    errors while deleting a record

    I have the following code which I use to delete records.The code works just fine on my old laptop. I recently got myself a new laptop and reinstalled the whole bunch. Now I'm having the all kinds of errors thrown at me that I didn't have before. 3021 : No current record 2046 : The command...
  9. N

    Setting a title?

    I know that you can change the title of your application in the startup options in Access. But can it also be done by vba code at runtime?
  10. N

    Auto Text

    Take a look at the file posted on this thread. It should get you started. You only need to make a small modification to make it do what you want it to do. http://www.access-programmers.co.uk/forums/showthread.php?t=63766
  11. N

    an updateable recordset?

    try it like this (plain and simple or are you planning on multiuser?): dim myrs as object set myrs = currentdb.openrecordset("Mytable or sql string") myrs.addnew myrs!myfield = "somevalue" myrs!mysecondfield = 33215 myrs.update myrs.close set myrs = nothing
  12. N

    make a new xls-file

    thx The docmd.outputto command will probably do the job. Just one more question, is it possible to make a new document empty from within access somewhere on the harddrive? Like when you would right mouseclick in the directory and choose new->Microsoft Excel Worksheet Anyway, thanks for helping
  13. N

    make a new xls-file

    Hi, I am allowing the user to make an export of some tables to excel, With some help I can now open a saveFileDialog which returns a path and a filename. I can also transfer tables to an excel-file But, how do you create the file itself to transfer to? or is it done automatically with the...
  14. N

    I need to have a save dialog window

    Yes it is. :) Thank you.
  15. N

    I need to have a save dialog window

    I tried to use msoFileDialogSaveAs but it appeared that that doesn't work in MSAccess. So is there something that can replace it. I want the user to be able to export a table from access to a new excel file. Does anyone know a way to do that. Maybe api or something?
Top Bottom