Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

windows API

Status
Not open for further replies.

zrzr

Programmer
May 22, 2003
83
0
0
FR
Hi all!!

Sorry for asking such an esay question ... but what do i have to do to use windows api functions into an VBA access module ?

I think I have to include a library, but which one ??

thx in advance
 
It will depend on what API you are using.

The API function has to be declared in a module or a class. It will look something like this

Private Declare Function ReadFile Lib "kernel32" (ByVal hFile As Long, _
lpBuffer As Any, ByVal nNumberOfBytesToRead As Long, _
lpNumberOfBytesRead As Long, ByVal lpOverlapped As Long) As Long

Then you can use it in your code.

Best of Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top