Which Database system do you use? Which connection components?
If the field in the database is declared as "Integer", it should never contain a Space character. It could be NULL, which means it doesn't contain any value. Most database access components will translate NULL to the value 0, so an empty field should not raise an exception.
Which value do you expect in case the field is NULL?
To be save, you can test for empty fields yourself:
var F : TField;
F := Qry.FindField('IntegerField');
if Assigned(F) and (not F.IsNull) then
aObject.IntValue := F.AsInteger
else
aObject.IntValue := -1; // or whatever value you choose in case of an empty field.