Not a clue since I did not write the code but DBEngine(0)(0) works for me. Instead of using DAO, try running your sql like this...
DBEngine(0)(0).QueryTimeout = 0
DoCmd.RunSQL "UPDATE myTable SET blah blah blah... ;"
DBEngine(0)(0).QueryTimeout = 60
I had to Cdbl instead of Cint to get mine to work plus the Nz function.
Nz(Cdbl(Closed]),0)/(Nz(Cdbl([Closed]),0)+Nz(Cdbl([Open]),0)+Nz(Cdbl([Retired]),0))
That is correct. I have a group of remote users who connect wirelessly to the network when they are out of the office. I know that some are still accessing the database wirelessly even though I have told them not to do it. I need to be able to identify if the user opens their front end...
Simon_MT, thanks for testing the code. Bummer that it is not working. I just found this bit of code that might do what I want. Could you test this and see if it returns True for you? I get False which should be correct since I am not connected wirelessly if this code really works.
Private...
Anyone have a fail proof way to detect if a user has opened a database with a wireless connection? I found this code @ http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_23102110.html but I am not able to test it since I do not have access to a wireless...
How are you defining the values for the sTo and sCC strings? In my sample code I posted I am hard coding them in the example.
sTo = "johndoe@widgets.com; marysmith@widgets.com"
sCC = "me@widgets.com"
Please post your entire code for creating your email so we can try to spot the problem.
Then you want to delete the value of the field that had the focus before you clicked your delete [Clear] button. This should do it...
Application.Screen.PreviousControl = ""
Not sure, I always avoid using references to specific versions of office apps. Use the code I pointed you to and you will not have to worry about what version of access your users have.