Results 1 to 2 of 2

Thread: Allow only numbers in a DBGrid column

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Location
    Chester, NJ, Morris
    Posts
    12

    Post

    How can I make sure that only nunbers are entered into a specific column in a dbgrid?
    Can I then format it as Currency?

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Location
    Chester, NJ, Morris
    Posts
    12

    Post

    Answered part of it..

    x= specific column index

    If DBGrid1.Col = x Then

    If Not IsNumeric(Chr(KeyAscii)) And KeyAscii <> vbKeyBack Then KeyAscii = 0

    End If

    now how do I format this for currency..hmmm..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width