removing blank records

M

melhale

I created a database to print receipts and copy info from excel. Every time
i import new info, i get several blank records before the new info appears.
The receipts are to be in order by receipt #. How can I remove the blanks
without removing those receipt #'s???

Access 2007
 
D

Douglas J. Steele

You could run a Delete query:

DELETE FROM MyTable WHERE SomeField IS NULL
 
M

Maarkr

you could either filter out blanks using a query as your form or report
source ( put a * as criteria in the rec_no field); or you could run a delete
query after the import to delete blanks, like, DELETE * from TblName where
Rec_no is null
 
M

melhale

Thanks - will this keep my receipt numbers in order - if receipt # 12 is
blank and 13 is filled out, would 13 become 12 when i delete 12? I can't
have missing receipt numbers...
 
D

Douglas J. Steele

If you're talking about an AutoNumber field, the answer is no. Gaps will
exist in the numbering.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top