This worked for me>
Sub Populate_Product()
Dim conn As ADODB.Connection
On Error GoTo ErrorHandler
Set conn = CurrentProject.Connection
conn.Execute "UPDATE Final_Table SET Product = 'Shell' WHERE Product Is Null;"
Application.RefreshDatabaseWindow
ExitHere...
The result is the same. It takes out the rows that had an empty "Product" field. I tried "" also, as in IIf([Merged_Pricelist_with_Inventory]![Product]="","Shell",[Merged_Pricelist_with_Inventory]![Product]) , that does the same thing. Am I better of using ADO and SQL Update statments in VBA...
This is giving me a pain.
I have a source table with a text field that some values are empty. In my create table query, I want to populate the empty fields with "Shell" when ran.
I am playing with this design view criteria...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.