Recent content by mulderm

  1. M

    Save en closing all open Excel-files

    Thank you. mulderm
  2. M

    Save en closing all open Excel-files

    Hello, I want to place vba-code in module1 to do all excel-files who is open to save and to close. I thought: Sub test() Dim ex As New Excel.Application For Each w In ex.Workbooks w.Close savechanges:=True Next w End Sub but this is not working. Any idea? mulderm
  3. M

    Export query to Excel-files

    Hello, I have a query called ´ExportQuery´, and I want to make a macro with VBA-code do to the follow: Copy all the data of the query to the existing excel-files sorting with the fieldname `Filename`. See the attachment. Who can help me? Greetings, mulderm
  4. M

    Error number: 2176

    What´s the code do put the filenames in a table of a new mdb file? mulderm
  5. M

    Error number: 2176

    Hello, I have a form with a Combobox and the follow code: Private Sub Form_Load() Dim bestand As String Dim lijst As String Dim pad As String pad = "c:\bal" bestand = Dir(pad & "NN*.xls") Do Until bestand = "" lijst = lijst & bestand & ";" bestand = Dir() Loop...
  6. M

    No writing a value in a cel of Excel

    Hello, In Access I have the follow VBA-code: sub test() Dim ex as New Excel.Application ex.DisplayAlerts =False ex.Workbooks.Open "c:\test.xls ex.Range("A1").value= "Example" ex.ActiveWorkbook.Save ex.Quit ex.DisplayAlerts = True Set ex = Nothing End Sub If Excel is get starting and the...
  7. M

    Backcolor in text field for each record

    Thank you guy´s. it works fine. mulderm
  8. M

    Backcolor in text field for each record

    Hello, I have the following code for changing the back-color of a field: Private Sub txttekst1_AfterUpdate() Dim lngRed As Long Dim lngGreen As Long lngGreen = RGB(0, 255, 0) lngRed = RGB(255, 0, 0) If Me.txttekst1 < 100 Then Me.txttekst1.BackColor =...
  9. M

    Form with 3 users

    Thank you for the information. mulderm
  10. M

    Form with 3 users

    Hi,Labantek, But can the users also working at the same form at the same time? What will happen if they add a new record on the same time? mulderm
  11. M

    Form with 3 users

    Hello, Question 1: Is it possible to use the same form, from the access database on the server, working with 3 users on 3 different pc's? Question 2: How can I send data, wich is in the cells of an Excel file, to an Access database in a table? I have a machine that put data in an Excel-file...
  12. M

    Reading parameters and sent to debug venster

    Hello, I have a form with a lot of records with parameters. Record 1: Parameter 1 = 200 Parameter 2 = 400 Parameter 3 = 600 Record 2: Parameter 1 = 150 Parameter 2 = 360 Parameter 3 = 450 etc. etc. Now I want place a buttom on the form so...
  13. M

    Reading parameters and sent to debug venster

    Hello, I have a form with a lot of records with parameters. Record 1: Parameter 1 = 200 Parameter 2 = 400 Parameter 3 = 600 Record 2: Parameter 1 = 150 Parameter 2 = 360 Parameter 3 = 450 etc. etc. Now I want place a buttom on the form so...
Back
Top Bottom