you will need an update query to do that
update TableX
set [FieldName]=Month([DateFie
Main Topics
Browse All TopicsExperts,
I have an Access table that was imported from a proprietary program. It comes across with blank cells in some of the records. Is there a way without exporting it to Excel to populate the cells with the correct data.
There are two ways to get the data. It is the month of the record. So I could just specify in the code the exact value I want, or if it is possible to grab the value from one of the other records and then populate the blank cells.
I hope this makes sense. Hopefully very possible.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I tried both of your suggestions as you have typed them and they both return an error
"Syntax Error in Query. Incomplete Query Clause"
Here is Capricorns version as I have wrote it.
UPDATE 'tableX'
SET ['Range Month']="2009/09" where ['Range Month'] is null
Yes I did change the table name to the correct table name before I ran the query. I do appreciate your quick responses.
matthews - yours returned the same error
Ok, the reason that I kept getting the error is that my table name had a space in it?!? Anyway, I renamed the table to one word and it ran just as you had it. Then I tried putting brackets around the table name after I renamed it back and it worked that way too.
Easy 500 eh Capricorn?
Thanks for your help!
Business Accounts
Answer for Membership
by: matthewspatrickPosted on 2009-10-30 at 08:54:39ID: 25704190
Hello austintre,
You can run update queries, such as:
UPDATE SomeTable
SET Field1 = "something"
WHERE Trim(Nz([FIeld1], "")) = ""
That takes care of nulls, zero-length strings, and entries with nothing but spaces.
Regards,
Patrick