Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

I need help hiding a column in an Access datasheet

Posted on 2015-01-06
1
Medium Priority
?
238 Views
Last Modified: 2015-01-07
Hi Experts,
I use the code below to load an unlinked datasheet in my Access 2013 application.  I want to be able to hide the first column in the datasheet (the JobID.Column).  How can I do this?
Private Sub LoadJobVenues()
    Dim strSQL As String

    strSQL = "SELECT tblJob.JobID, tblJob.JobName, tblJob.JobtartDate,, tblJob.JobEndDate FROM tblJob WHERE (((tblJob.JobID)= " & intJobID & "));"
    
    Me.dataDisplaySubform.SourceObject = "Query.qryJobs"
    Me.dataDisplaySubform.Form.RecordSource = strSQL
    Me.dataDisplaySubform.Requery
    
    Me.dataDisplaySubform.Form.AllowEdits = False
    Me.dataDisplaySubform.Form.AllowAdditions = False
    Me.dataDisplaySubform.Form.AllowDeletions = False
End Sub

Open in new window


Thanks in advance,
mrotor
0
Comment
Question by:mainrotor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 2000 total points
ID: 40535035
you need to try something like  

Me.FieldName.ColumnHidden = True


refer for more details

http://www.mrexcel.com/forum/microsoft-access/520734-hide-field-column-subform-datasheet-view.html
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

636 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