How to make it autofill a cell in a table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HotKgon
    New Member
    • Nov 2007
    • 12

    How to make it autofill a cell in a table

    I've attached a picture to aid me in explaining my problem.

    attached picture

    When making a new row, S3Score automatically has a 0 in it while P1Score doesn't. How do I make it so that P1Score also gets a 0 automatically when I'm creating a new row?

    Thank you in advance!
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    Is P1Score a bound control or a calculated control? What type of datatype is it? How is it populated?

    Welcome to TheScripts!

    Linq ;0)>

    Comment

    • HotKgon
      New Member
      • Nov 2007
      • 12

      #3
      Well the way it works is that I have a frame with check boxes in it. When you check a box, it'll fill it with a number. So I'm guessing that is a bound control?
      You don't need to press a button for it to be calculated.

      Thanks for the welcome.

      Comment

      • HiTechCoach
        New Member
        • Nov 2007
        • 30

        #4
        I would recommend first looking at the table design and check to so see if the field's default value is set to 0

        Originally posted by HotKgon
        I've attached a picture to aid me in explaining my problem.

        attached picture

        When making a new row, S3Score automatically has a 0 in it while P1Score doesn't. How do I make it so that P1Score also gets a 0 automatically when I'm creating a new row?

        Thank you in advance!

        Comment

        • missinglinq
          Recognized Expert Specialist
          • Nov 2006
          • 3533

          #5
          Which was why I asked if it was bound. Zero is normally set as the default value in a table when a numeric field is created.

          Linq ;0)>

          Comment

          • NeoPa
            Recognized Expert Moderator MVP
            • Oct 2006
            • 32633

            #6
            Look at the properties of the field that the control (P1Score) is bound to (I'm assuming it's a bound control for now). One of them should be the default value.

            Comment

            • HotKgon
              New Member
              • Nov 2007
              • 12

              #7
              Thank you missinglinq, HiTechCoach and NeoPa for your help. I was first reading it all and I'm like... I can't get to the properties! Then I re-read HiTechCoach's post which told me to get into the design view. Only After that I understood how to change the properties and set the default value. Now it is working and it looks like my database is slowly taking shape!
              Cheers all!

              Comment

              • missinglinq
                Recognized Expert Specialist
                • Nov 2006
                • 3533

                #8
                Glad we could help!

                Linq ;0)>

                Comment

                • NeoPa
                  Recognized Expert Moderator MVP
                  • Oct 2006
                  • 32633

                  #9
                  Good for you HotKgon. Glad you're making progress.
                  BTW Where does HotKgon come from? It seems a strange kind of name.

                  Comment

                  • HotKgon
                    New Member
                    • Nov 2007
                    • 12

                    #10
                    Originally posted by NeoPa
                    Good for you HotKgon. Glad you're making progress.
                    BTW Where does HotKgon come from? It seems a strange kind of name.
                    Just something I thought up when I was in primary school about 10 years ago. gon for dragon, hot because dragons breathe fire and k for the first letter of my name. As you can see I was a very logical boy when I was a kid ;)

                    Comment

                    • NeoPa
                      Recognized Expert Moderator MVP
                      • Oct 2006
                      • 32633

                      #11
                      Not a typo of HotKong then (as I'd surmised)?
                      Logical is good. We like that here ;)

                      Comment

                      Working...