473,386 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Help With Delimiting Text

In one of my applications I need help delimiting text in the following
situation.

User needs to be able to enter things like LADDER 12' or BOLT 2" into a
text box on one of the forms. I have some code that needs to work with
the text box value on various events. Some of these events require a
DLookUp of the contents of the text box in one or more of the tables in
the application. When I code DLookUp("FieldName","[TableName]",
[OtherField] = '" & Me.TextBoxName.Value & "'") I (quite obviously) get
errors because of the single and or double quotes in the text box entry.
Can someone please help me out of the brain fart I am having and point
me in the right direction to accomplish the underlying objective to look
up the FieldName value in the TableName table?

Thanks,
DB
Aug 26 '06 #1
1 1360
Try double quotes like
DLookUp("FieldName","[TableName]", [OtherField] = """ & Me.TextBoxName
& """")

Aug 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: tdl | last post by:
Hi everybody, I'm a regular expressions newbie; I read many tutorials, but need more experience before becoming indipendent in this field. I need a little help from you. How can I split such a...
7
by: Sam Lowry | last post by:
Greetings. I am trying to do something which should elementary for Perl, but I have only been able to find bits and pieces on it. When I put the bits together they do not work. Maybe I am going...
6
by: Jeff | last post by:
Hi, does anyone know why this: <a onclick="insertatcaret(window.opener.document.formname.fieldname,'<td class="header">')">text</a> returns a "Unterminated String Constant" error message in IE...
8
by: yerk5 | last post by:
Does js have some way of doing what I want here: I want to paste a multiline block of text into a TEXTAREA form field, and there is data in the block of text that I want to extract into a...
9
by: santosh | last post by:
Hello all, I've put together a small program to count the number of characters and 'words' in a text file. The minimum length of a word, (in terms of no. of characters), as well as word...
8
by: manochavishal | last post by:
Hi I am writing a Program in which i get input as #C1012,S,A#C1013,S,U I want to get C1012,S,A using strtok and then pass this to function CreateVideo which will further strtok this...
0
by: derik | last post by:
04:57:10 172.16.30.239 GET /name/Admin.aspx 200 04:57:10 172.16.30.239 GET /name/Admin_topbanner.aspx 200 can any one help me in delimiting this these text should be placed in a data grid...
1
by: keri | last post by:
I have this code; Sub lstcallage_Click() ..Execute "UPDATE (allaccounts) SET callage = Forms!callsmade!lstcallage WHERE accountid = forms!callsmade!accountid" End Sub But I am getting...
3
by: charli | last post by:
SQL: SELECT COUNT(month) as c FROM pool WHERE = "GP06NHL" AND = "43.38" AND = "NORMAL UNLEADED" AND = #01/04/2009# Gives 'Data Type Mismatch' because the 43.38 is delimited as a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.