I have tried to search the forum but kept getting blank page so I apologise if this has already been posted somewhere.
I am a GIS officer and we use a mapping software called Exponare Public which is web based and allows non mapping people to view our datasets without being able to change them.
Within this software we can do hyperlinks out. What I would like to do is have a link which opens up a form with all the asset information in it, including photos and maintenance etc.
looking around I have found that the best way probably to do this is write the asset ID out into a command line switch, witch will then open up the database and hopefully write the asset ID in so that the form opens to the correct data.
The command line is;
"\\kangaroo\gro ups\$Technical Services\Asset Management\$Cur rent AM Documents\Asset Condition Assessments\Bui ldings Condition Assessments\con dition assesment 2007\Gannawarra V3.mdb" /cmd "12"
where i am opening a mdb called gannawarra V3 and trying to pass the asset_ID of 12 into the db.
Within the MDB I have writen a function as follows:
Function CheckCommandLin e()
Dim stLinkCriteria As String
stLinkCriteria = Command()
DoCmd.OpenForm "assets", , , "[AssetID] = " & stLinkCriteria
End Function\
I then have an autoexec macro which runs the function.
This is as far as I get as it doesn't seem to be passing the asset id in at all. I have tried variant, string and integer but none of them work. it is crashing at the asset ID = "part with a runtime error '3075' syntax error (missing operator_ in query expression '[AsserID] = '
Not sure where is is wrong, If anyone has done this before and can help out that would be absolutly fantastic, if anyone has any other way to do this that would be apreciated too.
Cheers,
Laura
I am a GIS officer and we use a mapping software called Exponare Public which is web based and allows non mapping people to view our datasets without being able to change them.
Within this software we can do hyperlinks out. What I would like to do is have a link which opens up a form with all the asset information in it, including photos and maintenance etc.
looking around I have found that the best way probably to do this is write the asset ID out into a command line switch, witch will then open up the database and hopefully write the asset ID in so that the form opens to the correct data.
The command line is;
"\\kangaroo\gro ups\$Technical Services\Asset Management\$Cur rent AM Documents\Asset Condition Assessments\Bui ldings Condition Assessments\con dition assesment 2007\Gannawarra V3.mdb" /cmd "12"
where i am opening a mdb called gannawarra V3 and trying to pass the asset_ID of 12 into the db.
Within the MDB I have writen a function as follows:
Function CheckCommandLin e()
Dim stLinkCriteria As String
stLinkCriteria = Command()
DoCmd.OpenForm "assets", , , "[AssetID] = " & stLinkCriteria
End Function\
I then have an autoexec macro which runs the function.
This is as far as I get as it doesn't seem to be passing the asset id in at all. I have tried variant, string and integer but none of them work. it is crashing at the asset ID = "part with a runtime error '3075' syntax error (missing operator_ in query expression '[AsserID] = '
Not sure where is is wrong, If anyone has done this before and can help out that would be absolutly fantastic, if anyone has any other way to do this that would be apreciated too.
Cheers,
Laura
Comment