Search results

  1. S

    Runtime error 1004: Application-defined or object-defined error.

    Fuga, replace the separator ; in your formula with ,
  2. S

    Data not updating before print report

    Hi, first some remarks: 1. when you declare multiple variables on one line, you've to give them all the type, like: Dim i As Integer, j As integer. When you declare: Dim i, j As Integer: i would be a variant and not an integer. 2. Why do you use a workspace? You set it and close it, but that's...
  3. S

    Data from another database

    Glad to help you :)
  4. S

    Data from another database

    Glad it works! I'd think the table you imported has always the same name, so you can bound your form to it or use: =DLookUp("Field"; "TableName"; "Criteria")
  5. S

    Opening Excel file from Access button

    Dave, I looked at it. It works in that way, but I attached a modified version and I'll think this works quicker, because you don't have to create an ExcelObject Greetz, Bert
  6. S

    Data from another database

    I'm sorry, as ObjectType you must select 'Table', but Helps tells me it work with Exporting a query, so I'm not sure it will work with Importing. You can have a look at "TransferDatabase" in Help
  7. S

    SelStart and SelLength

    Ok, I didn't see directly that is was in a numeric field. Than it gives more problems, because of the Notation (ie #,##0.00), so sometimes a part of the field is selected... I use it in Access 2002. Can you attach a copy/extraction of the db with the problem, then I'll have a look at it
  8. S

    Data from another database

    Hi, In a macro, you can do it with TransferDatabase. That action creates in your database a table with the query-data, which table you can delete after using it. You can also let the table stay, because next time you run TransferDatabase, this table will be overwritten. See Help for more info...
  9. S

    Focus problems

    From where's that code running? Is it from the form "Bid - Master Form" or not? If not, you may have to select the form first with Forms![Bid - Master Form].Setfocus
  10. S

    Data from another database

    Hi, Maybe this?Function CallQuery() Dim wrk As DAO.Workspace Dim dbs As DAO.Database Dim rst As DAO.Recordset Set wrk = CreateWorkspace("", "admin", "") Set dbs = wrk.OpenDatabase("C:\MyDatabase.mdb") Set rst = dbs.OpenRecordset("QueryInMyDatabase") Do Until rst.EOF...
  11. S

    Multiselect property

    No, you can run it from a module. Put it in a public sub or function and call that from your forms' code
  12. S

    don't want to "Enter Parameter Value"

    While you was doing, I did something like that :D Private Sub Report_Open(Cancel As Integer) On Error Resume Next Dim ctl As Control Dim var As Variant Dim rst As DAO.Recordset Set rst = CurrentDb.OpenRecordset(Me.RecordSource) For Each ctl In Me.Controls var =...
  13. S

    Multiselect property

    Oh, now I read the help for this topic. This property can only be changed in designmode of the form... DoCmd.OpenForm "MyForm", acDesign Forms!MyForm!lstFOAP.MultiSelect = 2 DoCmd.OpenForm "MyForm", acNormal
  14. S

    don't want to "Enter Parameter Value"

    You assign different recordsources to the report (you're speaking about different tables, how's that?) If Yes, how do you do that?
  15. S

    Previewing Outlook Email

    Hi, You may have set Word as your default E-maileditor (this can be set in the Options of Outlook), so that'll be the reason it 'looks like' Word... For that question about Saving: you must delete the line "EmailApp.Quit" from your code, because your code then tries to close the preview also...
  16. S

    How to get get data from one table to another?

    Can you attach a copy of the database? It must work in the way Fuga declared...
  17. S

    don't want to "Enter Parameter Value"

    Ok, How do you change the recordsource of the report? At that time you can check (or know) which fields are in it and you can set the controlsource to a zero-lenth string.
  18. S

    don't want to "Enter Parameter Value"

    Keep in mind that you also can leave the 'controlsource'-property blank...
  19. S

    Multiselect property

    Hi, Gives it an error when the code not runs? Try this: Forms![Order entry]!Country.MultiSelect = 2
  20. S

    Question about input boxes

    Oh I see we were here at the same time, Fornation :D :D In addition to your loop:Do Until Inputbox("Give value") <> "" MsgBox "You must give in a value!" Loop
Back
Top Bottom