Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2003
    Location
    Richmond, VA
    Posts
    2

    Unanswered: Input mask for IP address

    Can anyone help me figure out how to make an input mask for an IP address. I'm also trying to insert 0 when there is only 1 digit in a section of it. like 192.168.0.1. Would like it to fill as 192.168.000.001. Right fill.


    Thanks,
    Dave
    (not a DB guy)

  2. #2
    Join Date
    Jul 2003
    Location
    Amsterdam, Nederland
    Posts
    450

    Cool Try this 1

    format( YourRecordset,"###.###.###.###")

  3. #3
    Join Date
    Sep 2003
    Location
    Richmond, VA
    Posts
    2
    But how would the leading zeros be filled for ip addresses that only have 1 digit? And for some reason the ! for right to left fill is not working.

    Dave

  4. #4
    Join Date
    Jul 2003
    Location
    Amsterdam, Nederland
    Posts
    450

    Wink Anser to question

    if you wanna have leading zero you'll have to change the number-sign "#" into zero's "0" otherwise there will be no leading number the number-sing forces numbers but if none is given there will be none


    the right to left is a property of your controle, out of my head it is a boolean property so you'll have to set that 1 to false

Posting Permissions

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