dbTalk Databases Forums  

Can't reference value in unbound control

comp.database.ms-access comp.database.ms-access


Discuss Can't reference value in unbound control in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Trevor Hughes
 
Posts: n/a

Default Can't reference value in unbound control - 07-29-2004 , 04:05 AM






I am using Access 2000.

I have a form which when opened does the following:
1. Gets the currently logged on Windows users code
2. Sets that user to a value on an unbound control on the form
3. Undertakes a Dlookup in a linked SQL Server table to get that users
access rights.
4. Assigns the user rights to another unbound control on the form.

A subform lists queries which can be run. The running of each query
is determined by the "user rights" in the unbound control on the form.

The problem I have is when I run the code to run the query it cannot
determine the value in the unbound control, however if I manually type
the "user rights" in the unbound control, then the code does work
properly.

I have tried to Refresh the form, Repaint the form, but this has no
affect.

Can some-one suggest a solution to this problem.

TIA

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.