Results 1 to 3 of 3

Thread: Error in Dataset Code

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2011
    Posts
    6

    Error in Dataset Code

    Hi Guys

    Ive recently made a simple amendment to my dataset in that i assigned a primary key field to my postcode column. In order to do this i needed to unassign a primary key from a column named b_dmref.

    Since ive done this im getting the error on the following line of code.

    If Me.PostTableAdapter.GetData(0).IsB_DMRefNull Then

    The error states
    'IsB_DMRefNull' is not a member of 'PostMap.DataSet1.PostRow'.

    However when i check the dataset the column is still there. I have loads of these queries in my code its only this ref that causes the issue. Any ideas why it would lose the ability to check the is""null value?

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Dunmow,Essex,England
    Posts
    898

    Re: Error in Dataset Code

    The obvious one to me is that you have likely got a record with an empty postcode. A primary Key cannot be null.

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2011
    Posts
    6

    Re: Error in Dataset Code

    Hi Bill

    I did a check on this and the each record in the postcode column contains a value, it seems to be stating that for some reason out of around 15 columns im unable to run a isB_DMREFnull. However all the other is""null calls from the posttable work fine. Im going to try and rename my current post table and recreate in within my dataset and see what happens.

Posting Permissions

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



Click Here to Expand Forum to Full Width