G
Guest
i used MakeTable query to split a table containing an entire year-worth of
data into 12 sub-tables, corresponding to each month in the year. In each of
the tables, I have a column for generic sales invoice number that I made up.
The generic sales invoice number looks lik "SO#_For_Month1" (for Month 1
table), "SO#_For_Month2" (for Month2 table), etc. As you can see, for a
given month, the same sales invoice number is used for all data.
I would like to use an Update Query and do a Search and Replace function to
replace the "#" sign in "SO#_For_Month1" with the corresponding row number in
the table. For example, row 1 in the data table would the "SO1_For_Month1",
row 2 would be "SO2_", and etc.
I want to use <Replace([DataColumnName],"#",ROW()>. However, the Excel
function ROW() does not work in Access.
Does anyone have any suggestions/recommendations?
Thanks.
data into 12 sub-tables, corresponding to each month in the year. In each of
the tables, I have a column for generic sales invoice number that I made up.
The generic sales invoice number looks lik "SO#_For_Month1" (for Month 1
table), "SO#_For_Month2" (for Month2 table), etc. As you can see, for a
given month, the same sales invoice number is used for all data.
I would like to use an Update Query and do a Search and Replace function to
replace the "#" sign in "SO#_For_Month1" with the corresponding row number in
the table. For example, row 1 in the data table would the "SO1_For_Month1",
row 2 would be "SO2_", and etc.
I want to use <Replace([DataColumnName],"#",ROW()>. However, the Excel
function ROW() does not work in Access.
Does anyone have any suggestions/recommendations?
Thanks.