PDA

Click to See Complete Forum and Search --> : Allow only numbers in a DBGrid column


pmeredith
Sep 24th, 1999, 12:35 AM
How can I make sure that only nunbers are entered into a specific column in a dbgrid?
Can I then format it as Currency?

pmeredith
Sep 24th, 1999, 01:03 AM
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..