Search results

  1. F

    Saving all data to an Access Table using ADODB

    Thank you both. Ended up using part of June7's response. Set rcs = cmd.Execute If rcs.EOF Then 'Do nothing if no data returns. This is handled outside... after this module runs. Else rcs.MoveFirst Do Until rcs.EOF = True DoCmd.RunSQL "insert...
  2. F

    Saving all data to an Access Table using ADODB

    Hi All, I am having trouble finding a solution to my problem on the internet. I need help moving all the data from the recordset to a table. I am good looping if it cant be done with with one command just keep in mind there are multiple columns and rows in my recordset. I also already have...
  3. F

    Msg: Access has stopped working

    Hi Doc, I have also tried to open the report manually and sometimes it crashes. Funny thing is, it might open good one time but if I try again it crashes and I get the same message. It happens on and off, frustrating. The database is only 3 MB. The database has compact on close and I have also...
  4. F

    Msg: Access has stopped working

    I have a database that runs everyday and does the exact thing everytime. It runs a query and exports a couple report to my C drive. I cant explain why sometimes it crashes when it gets to the export vba line and crash with a "Microsoft Access has stopped working". This issues does not happen all...
  5. F

    Update Statement not working if value contains a apostrophe

    Issue was due to the Where condition. I only had where field is null but forgot to include, or field = ''.
  6. F

    Update Statement not working if value contains a apostrophe

    Hi everyone I have a statement which works fine if the value of the cell does not contain any special characters. The problem is if the value contains a ' symbol than it does not work. How can I work around this? DoCmd.RunSQL "UPDATE tbl_Audit_summary INNER JOIN tbl_area_list_tmp ON...
  7. F

    Help Error 3146 ODBC call failed

    Hi guys I am having an issue with a database when creating a Oracle DSN. I am getting an error 3146 ODBC call failed. Source DAO.dbEngine This is only happening on 1 computer, I've tried on 9 others and they work fine, only this specific error on 1 computer. I have call a module to create the...
  8. F

    Excel code to close an already openend access database

    That's a pretty good explanation, I guess I still have a lot to learn. thanks Doc
  9. F

    Excel code to close an already openend access database

    My goal is to close an already opened access database when Excel Opens. Before anyone asks why I am doing this, its because my excel file has a connection tied to this specific db that is opened. The connection data that my excel file contains does not refresh if the db that is trying to connect...
  10. F

    Using a sql inside IN condition for parameters

    Where will I place the inner join? I haven't really used this
  11. F

    Using a sql inside IN condition for parameters

    I have a sql to run and I have to use many values as parameters (over 1000), which is why I am trying to use a SQL inside a IN condition. I am testing the sql with only 1 value for now. The parameter I am using will be 2208287. This returns in a matter of seconds. Select a.po_id, a.sku12...
  12. F

    Sort Form from List Box

    Ok lets go back and make it easier. I say just keep the text box and add a button on the side. me.lstitems.requery Add this code to your button on event On click. This should do the trick. The list will update only when the user clicks on the button.
  13. F

    Sort Form from List Box

    yes add that below your refresh list code to see it it works after each letter you type on the text box
  14. F

    Sort Form from List Box

    Np, I mean Refresh the form. me.form_name.requery
  15. F

    Sort Form from List Box

    Try: me.form.requery
  16. F

    Sort Form from List Box

    You have to do a On change event on your textbox. add this code on that event list_name.Requery
  17. F

    Sort Form from List Box

    1. Create a text box to use as your filter 2. Open your query that is tied to your list box. 3. Tie the field to your text box which will act like a filter... Like [Forms]![form_name]![text_box_name] & "*" 4. Go back to your text box and add code On Change event or After Update. 5. On your...
  18. F

    Option Group Label

    Thank you guys for the info. I actually didn't find anything on the web so I decided to try this.
  19. F

    Option Group Label

    I have an option group, with of course the button where you select and beside that is the label name. On click this runs a query but my boss only wants it to run when you hit the actual select button and not the label name. how can I disable the label name or unreferenced this to the...
  20. F

    VbA code to find previous date

    This will remove a day from today and from there you can do whatever you need to do. variable= DateAdd("d", -1, Date) if variable = (bankholiday date) then 'code here else 'code here end if
Top Bottom