K
Karen
I have a front-end database that just has forms and a back-end database with
the data. I have to programmatically create a new table in the back-end
database, link that new table to my front-end and then insert an initial
value into the table. I can create the table and link the table but I can't
use the following code to insert the initial value.
Dim strSQL As String
Dim strVersion As String
THIS CODE WORKS AND CREATES THE EXTERNAL TABLE
'Create the new VersionInfoTable and link it
Call CreateVersionInfoTable("C:\Program
Files\InvestigatorNerd\InvestigatorNerd_be.mdb", "VersionInfo")
THIS CODE WORKS AND LINKS THE TABLE TO THE FRONT-END
Call CreateLinkedAccessTable("C:\Program
Files\InvestigatorNerd\InvestigatorNerd.mdb", _
"C:\Program Files\InvestigatorNerd\InvestigatorNerd_be.mdb",
"VersionInfo", "VersionInfo")
THIS CODE BELOW IS NOT WORKING AND NOT PRODUCING AN ERROR MESSAGE
'update the version number
strVersion = "Beta"
strSQL = "INSERT INTO VersionInfo(Version) " & _
"VALUES( """ & strVersion & """)"
DoCmd.Close acForm, Me.Name
ANY SUGGESTIONS WILL BE GREATLY APPRECIATED.
Karen
the data. I have to programmatically create a new table in the back-end
database, link that new table to my front-end and then insert an initial
value into the table. I can create the table and link the table but I can't
use the following code to insert the initial value.
Dim strSQL As String
Dim strVersion As String
THIS CODE WORKS AND CREATES THE EXTERNAL TABLE
'Create the new VersionInfoTable and link it
Call CreateVersionInfoTable("C:\Program
Files\InvestigatorNerd\InvestigatorNerd_be.mdb", "VersionInfo")
THIS CODE WORKS AND LINKS THE TABLE TO THE FRONT-END
Call CreateLinkedAccessTable("C:\Program
Files\InvestigatorNerd\InvestigatorNerd.mdb", _
"C:\Program Files\InvestigatorNerd\InvestigatorNerd_be.mdb",
"VersionInfo", "VersionInfo")
THIS CODE BELOW IS NOT WORKING AND NOT PRODUCING AN ERROR MESSAGE
'update the version number
strVersion = "Beta"
strSQL = "INSERT INTO VersionInfo(Version) " & _
"VALUES( """ & strVersion & """)"
DoCmd.Close acForm, Me.Name
ANY SUGGESTIONS WILL BE GREATLY APPRECIATED.
Karen