CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2000
    Posts
    200

    Using Masked Edit Control

    When I replace the regular text edit control (which bound correctly to my access database)with the masked edit control, I get the error . . .

    "Unable to bind to field: DateOfTransfer"

    DateOfTransfer is the name of my edit control. Appreciate any help.

    Thanks!




  2. #2
    Join Date
    Sep 2000
    Posts
    200

    Re: Using Masked Edit Control

    Here's more information. I'm using Jet 4.0 DB OLE Provider, making connection with DataEnvironment. In database, I have a date/time field MM/DD/YY. I'm using form to add records to the table. Then I'm using a DataGrid to view the data. Works fine if I bind the date field to the regular edit control, but when I replace it with the MaskedEdit Control, I get the error mentioned. I've tried to change the types from DateTime to Text, & other combinations, but get the error. Is there another way to get a date mask without using this control? Thanks for any input.

    John


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

Featured