Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2010
    Posts
    84

    Unanswered: Tarnsfer data between forms

    Hello everyone,
    I have a problem I was not clear.
    So we've got the form of User Data. In it there is a button that opens form of Payment. The database is not normalized and it is necessary to form the User in the form of Payment as the default data transfer User.UserID-> Payment.User, User.NameOfUser-> Payment.Paid and User.Accaunt-> Payment.AccountNumber.

    The problem occurs in transfers "User.NameOfUser-> Payment.Paid"
    I do not see what happens!
    Attached Files Attached Files
    Last edited by eremija; 07-31-11 at 10:17.

  2. #2
    Join Date
    Mar 2009
    Posts
    5,442
    Provided Answers: 14
    Try:
    Code:
        Forms(stDocName).Paid.DefaultValue = Chr(34) & sPaid & Chr(34)
    Have a nice day!

  3. #3
    Join Date
    Nov 2010
    Posts
    84
    Thank you very much.
    Although we are still not clear where the problem is, because this next code line works

    Forms(stDocName).AccountNumber.DefaultValue = sAccount
    Last edited by eremija; 07-31-11 at 15:28.

  4. #4
    Join Date
    Mar 2009
    Posts
    5,442
    Provided Answers: 14
    As I can understand, this is because the textbox is bound to a Text column in the bound table. What you assign to the DefaultValue of a TextBox must be interpreted (it could be something else than a litteral value).
    Have a nice day!

Posting Permissions

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