If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Tarnsfer data between forms

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-31-11, 05:42
eremija eremija is offline
Registered User
 
Join Date: Nov 2010
Posts: 61
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
File Type: zip TransferDataBetweenFormsProblem.zip (37.7 KB, 7 views)
__________________
skype: zoran.eremija
www.it4you.com.au

Last edited by eremija; 07-31-11 at 09:17.
Reply With Quote
  #2 (permalink)  
Old 07-31-11, 13:38
Sinndho Sinndho is offline
Registered User
 
Join Date: Mar 2009
Posts: 3,446
Try:
Code:
    Forms(stDocName).Paid.DefaultValue = Chr(34) & sPaid & Chr(34)
__________________
Have a nice day!
Reply With Quote
  #3 (permalink)  
Old 07-31-11, 14:23
eremija eremija is offline
Registered User
 
Join Date: Nov 2010
Posts: 61
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
__________________
skype: zoran.eremija
www.it4you.com.au

Last edited by eremija; 07-31-11 at 14:28.
Reply With Quote
  #4 (permalink)  
Old 07-31-11, 14:57
Sinndho Sinndho is offline
Registered User
 
Join Date: Mar 2009
Posts: 3,446
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!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On