Hey all,
I have a table like this
Unit.........unitCount........WoNum
F001....... 1........xxxx
F001....... 2........
F002....... 1........xxxxx
F002....... 2........
F002....... 3........xxxxx
F002....... 4........
F003....... 1........xxxxx
F004....... 1........xxxxx
etc
I need to write an update query something like.....
"Update table set WoNum = myVariable where
Unit = myUnitVariable AND
unitCount is the largest" <-- this being my confusion.
WoNum is not required so may be empty so ...
where woNum = "" will not always work.
Any suggestions out there.
Thanks everyone.
PB
I have a table like this
Unit.........unitCount........WoNum
F001....... 1........xxxx
F001....... 2........
F002....... 1........xxxxx
F002....... 2........
F002....... 3........xxxxx
F002....... 4........
F003....... 1........xxxxx
F004....... 1........xxxxx
etc
I need to write an update query something like.....
"Update table set WoNum = myVariable where
Unit = myUnitVariable AND
unitCount is the largest" <-- this being my confusion.
WoNum is not required so may be empty so ...
where woNum = "" will not always work.
Any suggestions out there.
Thanks everyone.
PB