Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003
    Posts
    30

    Unanswered: Unable to Bind Field or Datamember

    Hello,

    I am using Visual Basic and ACCESS 2002. Everything works fine except that when I use a MaskEdBox to display a date I get the error message:

    Unable to bind Field or Datamember:

    If I use a TextBox instead of a MaskEdBox I get no error message.

    I really want to use a MaskEdBox because I need the user to see the separations of the date e.g. dd/mm/yyyy and I don't want the user to enter the / . That's why a MaskEdBox suits me well.

    I already have 2 MaskEdBoxes working fine in the same way in the same for. But the last one would not work.

    Error is caused at these lines.

    Set FormEmployee.TextDerniereDate.DataSource = Rs
    FormEmployee.TextDerniereDate.DataField = "DerniereDate"

    Any Idea?

    Thanks

    Mark

  2. #2
    Join Date
    Oct 2003
    Posts
    30
    Seem there's a problem with the MASK in the MaskEdBox,

    The mask is as follows:

    ##/##/####

    and when I remove the Mask it works fine.

    I don't know if the problem might be related to the database but I store the date as TEXT and it works for the 2 other maskedbox I have

    Mark

Posting Permissions

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