Hi,
I've recently upsized an Access database to SQL Server and am working through all the bugs that have now ppeared as a reesult.
The code belwo worked fine in an Access only DB but now the form reference at the end of the statement is n't accepted.
DoCmd.RunSQL "INSERT INTO dbo.[tblpartnercosts] ([unique ID]) " _
& "select [tblPartnerCostsPrevious].[unique ID] " _
& "from [tblPartnerCostsPrevious] " _
& "Where [tblPartnerCostsPrevious].[unique ID] = [Forms].[frminstallationOutlook].[Unique ID]"
Do I need to do something different now with SQL Server if I want to use the value of a form's control as part of a statement?
Thanks
I've recently upsized an Access database to SQL Server and am working through all the bugs that have now ppeared as a reesult.
The code belwo worked fine in an Access only DB but now the form reference at the end of the statement is n't accepted.
DoCmd.RunSQL "INSERT INTO dbo.[tblpartnercosts] ([unique ID]) " _
& "select [tblPartnerCostsPrevious].[unique ID] " _
& "from [tblPartnerCostsPrevious] " _
& "Where [tblPartnerCostsPrevious].[unique ID] = [Forms].[frminstallationOutlook].[Unique ID]"
Do I need to do something different now with SQL Server if I want to use the value of a form's control as part of a statement?
Thanks