Hide text fields in subform

foxtet

Registered User.
Local time
Today, 10:41
Joined
May 21, 2011
Messages
129
Hi Every one.
I have a tab control TabCtl49 on frmCargo Master.On the TabCtl49 there is a sub form frmInvDetails. This form display as a data sheet.
I want hide ID and InvNo field from this sub form. Even if we hide those fields it should save in tabInvDetails table.

I tried different methods not yet successful. Can any one give me a quick solution for this? for reference db is attached.

foxtet
 

Attachments

Put the fields you want hidden in the form header in design view.
 
Set the "Visible" property on the datasheet columns you with to hide to False or No. Visible, or not, those controls will be saved appropriately.
 
Hmm - by me it is, see attached pictures.
Could you please clarify?
 

Attachments

  • tblinvDetails before.jpg
    tblinvDetails before.jpg
    65.9 KB · Views: 285
  • tblinvDetails after.jpg
    tblinvDetails after.jpg
    94.8 KB · Views: 186
In your subforms Load Event:

Me.ID.ColumnHidden = True
Me.InvNo.ColumnHiddent=True
 

Users who are viewing this thread

Back
Top Bottom