AccessGuruCarl
Programmer
Can someone please tell me what I'm doing wrong here.
I'm using this code from 'The Access Web' with Access 2000
Link to code:
In Form Load and Activate, I've tried using this call.
This code causes an err msg when try to leave the line:
Compile Error:
Expected: =
Tried this next...
No errors, but not working!
Then This...
Same thing, No Errors, but not working!
What am I missing here?????
Do I need to declare frmIcon as a Byte or something?
Everytime I open the form, it's still the 'form' default.
I know the icon is valid, I set it in the Startup's App Icon, and ticked the Use on Forms & Reports, and it worked fine, except it's the SAME.
Thanks
AccessGuruCarl
Programmers helping programmers
you can't find a better site.
I'm using this code from 'The Access Web' with Access 2000
Link to code:
In Form Load and Activate, I've tried using this call.
Code:
SetFormIcon(0, strIconPath)
Compile Error:
Expected: =
Tried this next...
Code:
Call SetFormIcon(0, strIconPath)
Then This...
Code:
Dim frmIcon
Dim strIconPath As String 'Use a custom icon on the form
strIconPath = "C:\DEV\Com.ico"
frmIcon = SetFormIcon(0, strIconPath)
What am I missing here?????
Do I need to declare frmIcon as a Byte or something?
Everytime I open the form, it's still the 'form' default.
I know the icon is valid, I set it in the Startup's App Icon, and ticked the Use on Forms & Reports, and it worked fine, except it's the SAME.
Thanks
AccessGuruCarl
Programmers helping programmers
you can't find a better site.