Search results

  1. Cliff67

    [Form] Can I press a button to run 2 queries?

    You have a missing library reference Launch your VBA window then from the tools menu select references . Look for the Mircrosoft Office 15.0 Object Library and select it. Then compile your code and that should go away Good luck
  2. Cliff67

    [Form] Can I press a button to run 2 queries?

    Yes, the only thing I can think is that there is a missing library link
  3. Cliff67

    [Form] Can I press a button to run 2 queries?

    put at the top On error goto ErrHand ' this turns the error handling on Code is here then at the bottom on error goto 0 'this turns the error handling off exit sub ErrHand: 'this is the error handler and will give you an error code and description of the error MsgBox Err.Number &" " &...
  4. Cliff67

    Excel running Access VBA

    Hi SiGill it could be that reference to "Microsoft Access 12.0 Object Library" is not set on your database. I had a similar problem a while back on my current database took me ages to find it. Open your database, open any VBA module and select Tools at the top, then select References and tick...
  5. Cliff67

    [Form] Can I press a button to run 2 queries?

    Hi MajP yes you are correct in what you are saying, this was meant as a rough and ready example for a small scale db to get the user started. I use used this approach only on small tables of say less than 100 records anything bigger gives a performance hit on a server thanks for the feed back :)
  6. Cliff67

    [Form] Can I press a button to run 2 queries?

    Here you go I can do the link now https://www.youtube.com/playlist?list=PLYMOUCVo86jEeMMdaaq03jQ_t9nFV737s Cliff
  7. Cliff67

    [Form] Can I press a button to run 2 queries?

    In that code you need to replace EndIf with End If. Don't forget to compile your code as you go and use Option Explicit at the beginning of any form code or modules you write. This tells access that you must explicitly declare all variables by using the Dim or ReDim statements
  8. Cliff67

    [Form] Can I press a button to run 2 queries?

    Everything he does in 2013 should apply to 2016 as well
  9. Cliff67

    [Form] Can I press a button to run 2 queries?

    If you are using A2013 then there is a very good youtube tutorial done by a guy call Steve Bishop it's called Programming in Microsoft Access 2013 and VBA. He gives real world examples as he has been going through major developments. I can't post the link I would recommend you have a look at it
  10. Cliff67

    [Form] Can I press a button to run 2 queries?

    Which version are you using?
  11. Cliff67

    [Form] Can I press a button to run 2 queries?

    Hello How's your VBA skills. You can open a recordset and check if the visitor name is in the table. Try somnething like the code below 'lets open the form find and add the data from my form 'check if the visitor exists Set db = CurrentDb Set Rs = db.OpenRecordset("MyTableName") Rs.MoveFirst...
  12. Cliff67

    Strobe Effect - VBA

    It also seems to work in A2013 but don't quote me on that. Thanks for the post I can think of a few areas I need to add this when a user enters an invalid value etc
  13. Cliff67

    Solved Linked Tables Closing Access 2013

    Hi All after trying several methods to link tables I have used a macro that opens the Link Table Manager with a message box advising use. (Not perfect but manageable) however I still have the same problem that the db will not open when the be has been moved/renamed. I get the open database...
  14. Cliff67

    Solved Linked Tables Closing Access 2013

    Hi I've tried that Access just doesn't open to get that far. The system status says that it is compacting and then closes from what I can see
  15. Cliff67

    Solved Linked Tables Closing Access 2013

    Hi All I've got a BE db for my front end, I have a splash screen that just shows the db name and welcome message, times out and opens a switchboard. the problem I'm having is that even though I have specified the linked table location as \\server\foldername\subfoldername\BEname.accdb when run...
  16. Cliff67

    Hi from the UK

    Hi Everyone I have been programming in Access since way back in version 2 now using 2013. I've have a few years break form Databases but now back in swing of things. I work for a High Speed Video camera company (slow Mo to everyone else) and I'm currently writing a database to handle the...
Back
Top Bottom