AutoHotkey Community

It is currently May 25th, 2012, 11:20 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: January 30th, 2008, 9:01 pm 
Offline

Joined: April 17th, 2007, 1:37 pm
Posts: 761
Location: Florida
I'm using the following criteria on the data source for a control on a form so I can only choose contacts from the location I select in the previous control:
[forms].[frm_ticket_tracking_v2].[field_Location]

I want to have multiple versions of this form, so would have to specify the exact name in that query to match the name of the form's version... I know there's a way to do this with something like:
[me].[field_location] or [forms].[me].[field_location]

But I am having no luck, and Google searches aren't helping too much... Anyone know what the syntax is?

_________________
[Join IRC!]
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2008, 11:34 pm 
Offline

Joined: July 16th, 2005, 11:39 am
Posts: 96
Here's one way to do it in VBA:

strCriteria = "[SomeFieldFromATable]=" & "'" & Me![txtMyTextbox] & "'"

_________________
“yields falsehood when preceded by its quotation” yields falsehood when preceded by its quotation.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group