B
bifteki via AccessMonster.com
I have written this code:
sql_str = "UPDATE dbo.tbl_soft_items " & _
"SET dbo.tbl_soft_items.fld_upgraded = 1 " & _
"WHERE dbo.tbl_soft_items.fld_software_item_id = dbo.
view_software_upg_from.fld_upgraded_from_item_id"
Debug.Print sql_str
DoCmd.RunSQL sql_str
However when I run it, an error occurs, which reads:
The column prefix "dbo.view_software_upg_from" does not match with a table
name or alias name used in the query.
I guess there' s a problem with using a view inside a query. How can I do
this without getting an error?
sql_str = "UPDATE dbo.tbl_soft_items " & _
"SET dbo.tbl_soft_items.fld_upgraded = 1 " & _
"WHERE dbo.tbl_soft_items.fld_software_item_id = dbo.
view_software_upg_from.fld_upgraded_from_item_id"
Debug.Print sql_str
DoCmd.RunSQL sql_str
However when I run it, an error occurs, which reads:
The column prefix "dbo.view_software_upg_from" does not match with a table
name or alias name used in the query.
I guess there' s a problem with using a view inside a query. How can I do
this without getting an error?
