Solved

MS Access How can I delete empty columns?

Posted on 2013-01-11
12
334 Views
Last Modified: 2013-01-11
Problem:
When viewing the table in a form, there are 10 extra columns which reflects the actual table.
(these columns are grayed out, not being used)

How can I delete the columns I'm not using?
0
Comment
Question by:DJPr0
  • 6
  • 4
  • 2
12 Comments
 
LVL 30

Expert Comment

by:hnasr
ID: 38768131
How to tell which column to delete?. This will change the table structure. Explain more.
0
 

Author Comment

by:DJPr0
ID: 38768185
There are a bunch of columns on the right of my table/form datasheet view grayed out, not being used. I would like to delete these blank columns to prevent scrolling to the right and seeing blank columns.

I will post an example if needed.
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 38768198
use a query as record source of the form
in the query, DO NOT include those fields that are not used or empty
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 38768200
or open the form in design view and delete those controls
0
 

Author Comment

by:DJPr0
ID: 38768286
I not aware of any controls.

Sample attached - please look at the projects table - why is there a lot of scrolling to the right? This affects my form due to the scrolling coming along.

How do I eliminate all this blank space to the right?
Database10.accdb
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 38768323
you only have a table in the the db, where is the form?
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:DJPr0
ID: 38768357
OK, form enclosed.
Database10.accdb
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 38768406
so which column you don't want to see?

open the form, right click on the column you don't want to see and select hide column

to resize wide columns select column size

save the form
Database10.accdb
0
 

Author Comment

by:DJPr0
ID: 38768448
I want to view all of my columns - not the blank space to the right which causes scrolling.

If your monitor/window doesn't fit all of the columns being used it provides a lot of empty space to the right.
0
 
LVL 119

Assisted Solution

by:Rey Obrero
Rey Obrero earned 250 total points
ID: 38768507
as i stated in my first post, create a query and use it as recordsource of the form

see the form query1, based on a query query1
Database10.accdb
0
 
LVL 30

Accepted Solution

by:
hnasr earned 250 total points
ID: 38769092
In your sample database you have 12 columns.
Do you want to show all the records fitting the width of your monitor?
Explain more like:
1 open form
2 You see columns ID, ...
3 I want to see columns, ....
4 I want columns .... to be hidden
5 I want the column ... to fit the width of the display
......
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 38769447
@DJPro,

how did a set of questions got accepted as an answer to your question?
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now