Input Mask - IP Address

  • Thread starter Thread starter Jai_Friday
  • Start date Start date
J

Jai_Friday

Good morning,

I am trying to creat an input mask for an ip address field in a customer
database I am running, so it forces the full stops inbetween the numbers for
easier user entry

I have tried creating one 000.000.000.000;;_ but of course the issue arises
where by it is expecting it to be filled out with three digits when the ip
address may conitain 1 or 2 in each part.

Is there a way of getting around this or is there possibly other input mask
pluggins I can download?

thanks in advance

Jai
 
Use 4 fields of type Number, size Byte.

On your form/report, place the 4 text boxes side-by-side, with just a dot in
the labels between them.

An IP address is a 4-byte value (perhaps 6 in the future), so that's the
simplest way to interface four unsigned bytes.
 
Have you tried 099.099.099.099

It doesn't perform any vaildation (eg no octet greater than 255) so Allen
Browne's answer is probably better, but it should work nevertheless.
 
Back
Top