troubleshooting Question

set value for textfield in a adp project

Avatar of darwin02
darwin02 asked on
Microsoft AccessMicrosoft SQL Server
3 Comments1 Solution315 ViewsLast Modified:
It is the first time I use an adp project (access 2003 front-end and sql server 2000) and I have a lot of suprises, because things I normaly did in Access, does not work anymore :

eg In the OnOpen event of a form, I regulary set the value for a textfield on the form
say txtfield (bound to a table) is txtUserName.
Then I set this as follows:
Me.txtUserName = gbl_UserName  
(where gbl_UserName is a global that is initiated at start-up)
or
Me.txtUserName = "Bill"
This to avoid that users need to enter this value.
When I try this in my adp project, I get an errror "you can't assign a value to this object....."

I would be very pleased if someone could tell me how I can solve this problem.




ASKER CERTIFIED SOLUTION
darwin02

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros