Hi @Pat Hartman@Moosak welcome aboard. You are relatively new but haven't posted much. Can you explain why you would recommend using a Windows API call rather than native Access code? Is there something about it that is better, in which case we'd love to know that.
Had to look that one up...!At times like these I wonder what Moss and Roy would do.![]()
When I was in the Merchant Navy, a 'professional 3rd engineer' (an engineer who never took any of the exams and hence could not go any higher than 3rd) used to give me stick, as I went to college as a cadet to pass my exams and then move on to get my 2nd Engineers ticket.
Stick was along the lines of 'you youngsters only know it in theory'. I have been doing this for years.
One day he called me to ask for help, as the A/C was not working well. I was the Cargo Engineer at the time, looking after the refigeration of the gas cargo, Propane & Butane or Ammonia.
I switched the machine on and ran a few tests, then pointed to a particular head on the compressor and said 'Those valves are broken'
Are you sure he said.
Yes I said, positive
He then said, I don't want to strip it down only to find there is nothing wrong with them.
Up to you I said, but I'll give you a hand if you want.
So we took the head off and sure enough, the valves were bust. Put in two sets of spares, boxed it up, purged it and got it running.
Bingo, all working great again. The ship can break down in the middle of the ocean and noone gives a damn, if the A/C goes down, there is a riot.
After that, I never heard a peep out of him.rofl
My son got me into the IT Crowd. My word, it's funny.Had to look that one up...!
A rare occurrence in my world...you're luckyAll very simple and painless, and super helpful IT guy.
It can't be unusual now for a database to want to send/receive ftp files.I have a client that needed to be able to fire an sFTP transfer from Access.
The Client lead (a senior partner) made sure that the Head of IT was talking to me about what I needed.
He got his head IT technician to talk to me, and the sFTP program gets added to their white list of approved software.
All very simple and painless, and super helpful IT guy. I can pretty much get him to assist me with anything provided I explain the end goal clearly. Great working relationship.
Is there any worries from using APIs?That's fine but the previous poster posted the Access version of the API which works just fine and is one line of code. I was just wondering if you had any information to suggest that the API was somehow BETTER than the Access method. It sounds like you don't so that's fine. Usually when a question has been answered, we don't offer alternate but equal solutions unless the poster asks for one because he can't get the first one to work unless we know that our method is somehow better.
No. Except when the bitness changes and then you have to modify your API calls. I use API's but ONLY when Access has no internal method. The Access internal method was recommended and we presume that it worked for the OP since he hasn't been back. So my question was, since there was already an acceptable answer, why would you post some alternative that took more code and was not in any way superior. I think we can be done with discussion since it is going nowhere and is not in any way productive.Is there any worries from using APIs?
Just curious, does FollowHyperlink work?
Code:Application.FollowHyperlink myPath
Dim myPath As String
myPath = "H:\QA90PRO32\QA90PRO.exe"
Application.FollowHyperlink myPath