TraceSL
Registered User.
- Local time
- Yesterday, 22:29
- Joined
- Sep 12, 2017
- Messages
- 51
Thanks Pat
Going to give this a try. I am having a learning curve therefore studying at night to sharpen my skills. I appreciate the help and patience. I work with the syntax which has been part of my issue as well. Tracy
Going to give this a try. I am having a learning curve therefore studying at night to sharpen my skills. I appreciate the help and patience. I work with the syntax which has been part of my issue as well. Tracy
What event is Form_Load2()? I'm pretty sure this isn't valid. If you want something to run when the form loads, it needs to go into the Form_Load() event. There is only a single load event for a form.
The DLookup() is not formatted correctly:
strVersion = DLookup("[LocalversionNbr]", "xx_tbl_SkyViewFP_SysVersionLocal") & ("[versionNumber]", "xx_tbl_SkyViewFP_SysVersion")
I'm not sure I can identify which of your names to use where so I'll substitute.
strVersion = DLookup("[LocalversionNbr]", "xx_tbl_SkyViewFP_SysVersionLocal", "LocalversionNbr = '" & yourremoteversionnumber & "'")
Even though there is only a single row in the version table, this code is using criteria to return that row ONLY if it matches the remote version number. That means that you need to either add a preceding DLookup() to get yourremoteversionnumber OR substitute an embedded DLookup() to get it in the expression like this:
strVersion = DLookup("[LocalversionNbr]", "xx_tbl_SkyViewFP_SysVersionLocal", "LocalversionNbr = '" & DLookup("RemoteVersionNbr", "xx_tbl_SkyViewFP_SysVersionRemote") & "'")
As with all air code, this may contain syntax errors.