12345678
08-01-2009, 12:02 AM
How can I fill the empty cells in a table with a number , for example "-999" or text, such as" na".
|
View Full Version : fill the empty cells in a table 12345678 08-01-2009, 12:02 AM How can I fill the empty cells in a table with a number , for example "-999" or text, such as" na". khawar 08-01-2009, 01:10 AM You can use update query to fill empty cells GalaxiomAtHome 08-01-2009, 05:04 AM Why do you need to fill the records in the table? If required you can usually deal with these null values when generating a report from the data. HAMMAMABUARQOUB 08-01-2009, 05:36 AM As Mr. Khawar suggests... Fill them with an Update Query and the where Condition should be "=Null" Example,,,, UPDATE Table1 SET Table1.Numb = "A", Table1.[NAMES] = "A", Table1.SAL = "A", Table1.NOTES = "A" WHERE (((Table1.Numb)=Null) AND ((Table1.NAMES)=Null) AND ((Table1.SAL)=Null) AND ((Table1.NOTES)=Null)); GalaxiomAtHome 08-01-2009, 06:48 AM As Mr. Khawar suggests... Fill them with an Update Query and the where Condition should be "=Null" The condition to find empty records in a field is "Is Null" (without the quotes). Access does not work with either = or <> as a Null comparator. "=Null" certainly does not return records with the Null in that field. If I remember correctly Acess 2003 returns an error. However Access 2007 accepts =Null (even capitalises the n) although it does not work to find Nulls. Perhaps it does now mean something. Anyone know? Couldn't find any reference online other than sites saying it doesn't work. ByteMyzer 08-01-2009, 08:34 PM Perhaps it does now mean something. Anyone know? Couldn't find any reference online other than sites saying it doesn't work. No, you are right, GalaxiomAtHome. The correct syntax is: WHERE [MyField] Is Null |