Results 1 to 14 of 14
  1. #1
    alihassan is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    lahore
    Posts
    8

    How i can find and use DataGrid in MS ACCESS 2010 on Form.


    i want to use DataGrid in MS ACCESS 2010 Form. where i find DataGrid control? and how to use it? kindly explain and help me, i am new in MS ACCESS development.

    Thanks in Advance.

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,929
    what do you mean by DataGrid? Do you mean a datasheet subform? If so, just drag a table or query onto your form.

    If you mean an activeX datagrid control then in form design, click on this button to get access to activeX controls
    Click image for larger version. 

Name:	Capture.JPG 
Views:	31 
Size:	20.5 KB 
ID:	21267
    then scroll through the list to find it - however I don't think there is one unless you install a commercial product. I've no idea how to use it if it exists

  3. #3
    alihassan is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    lahore
    Posts
    8
    Thanks for the reply..

    I am talking about ActiveX DataGrid not for the "DataSheet" subform. I did not find any ActiveX control as you had mentioned above. ActiveX controls are not there.

    One more request kindly send me the source how to use ActiveX DataGrid control in MS ACCESS Forms?

  4. #4
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,929
    Sorry, I don't have it - suggest you google 'access datagrid' or similar

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    ActiveX DataGrid is not provided with Access. Requires a 3rd-party add-in. http://10tec.com/articles/ms-access-grid-control.aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    alihassan is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    lahore
    Posts
    8
    Our Requirements are,
    1. Change the color of cell based on condition.
    2. Change the color of whole row based on any condition.
    3. Sum of TWO columns show to the next column etc.

    We needed just like "DataGrid" where we can set all the rows and columns based on conditions/values are set by Programmatically.

    Kindly Suggest me the Control that is best with our scenario.

    Thanks in Advance.

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Use a form in continuous or datasheet view or build a report. Possibly even a subform or subreport.

    Textboxes and comboboxes have Conditional Formatting available. VBA code can programmatically set control formatting but will not work right on a form set for continuous or datasheet view.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    alihassan is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    lahore
    Posts
    8
    Any 3rd party datagird control for MS Access 2010.
    That we use that 3rd party Datagrid control on Ms Access forms and dynamically /programmatically change the cells styles based on conditions.
    Conditions are
    If cell value is Negative then cell color is red many more conditions thats why we need DataGrid and apply those conditions programmatically on cells and on Rows.
    Kindly help me with this.
    Thanks.

  9. #9
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I have never used any third-party controls. Already referred you to one source. If that's what you want, you are on your own from here.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  10. #10
    alihassan is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    lahore
    Posts
    8
    The condition that i had mentioned above post can we set the color of cell in datasheet using VBA code.?

    When the datasheet load on form as subform if cell value is 0 then cell color is red.

    If yes then kindly share the source.

  11. #11
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    As already suggested, use textbox Conditional Formatting. In form or report design view, select the textbox then on the ribbon Format tab, click Conditional Formatting.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  12. #12
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,929
    see this link - for 2010 the code you want starts about halfway down

    https://support.microsoft.com/en-us/kb/304104

    alternatively, without code see this link

    http://stackoverflow.com/questions/1...ffecting-row-b

    here are some other links

    http://bytes.com/topic/access/insigh...imited-colours
    https://www.youtube.com/watch?v=7jF81HZHtxo

  13. #13
    alihassan is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    lahore
    Posts
    8
    I really appreciate your help.
    THANK YOU. :-)

  14. #14
    alihassan is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    lahore
    Posts
    8
    Is iGrid 3rd party control draw a specific number of column and specific number of rows and then put the data in each cell by using the column index in loop at run time on MS Access Form load?

    Our requirements is Create a fix number of columns (for exp, 5 Columns) and fix number of rows (for exp, 20 Rows) in Grid and then put the data using index of the columns in loop at run time in MS Access 2010 forms.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 04-19-2013, 07:07 PM
  2. ACCESS 2010 can't find ACWZTOOL
    By cptNemo in forum Access
    Replies: 5
    Last Post: 09-28-2012, 11:42 AM
  3. Replies: 6
    Last Post: 09-10-2012, 11:29 AM
  4. Datagrid in access?
    By BasilM in forum Forms
    Replies: 6
    Last Post: 09-01-2012, 11:23 AM
  5. How to find all in Access 2010?
    By bugme in forum Access
    Replies: 3
    Last Post: 06-12-2012, 11:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums