Discussion Locked

How can I MS Access to do what I want?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am using MS Access to keep track of our networking IP addresses(which would be awesome if it would work). But is there a way that I can make it in access that the first 3 sets of bits always say the same? I.E. - 000.000.000.XXX.XXX
Where the x's are are where I am to put in the remaining numbers but where the 0's are at, no matter what, those numbers stay the same. Thanks smdobbs

3 replies

by njpirate

Try using a default value for the field. It is located in the 'design' view on the 'general' tab at the bottom of the screen.

by jamarifam

Try using an input mask. That should do the trick. You won't be making calculations with the IP adds so treat the constant sets of zeros as literal. The input mask can let you format data entry to avoid "garbage" records.

Hope that helps :)

by udilevy

In the table that this data is to be stored, you will need to set the field Data Type to TEXT and add the following to the Input Mask.

"000-000-000-"000\-000

When entering data into the table it should come out as 000-000-000-123-456.

Good Luck

This discussion is closed to new replies.