Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Accessing MSAccess db with ODBC - column titles format

Posted on 2000-05-02
2
Medium Priority
?
210 Views
Last Modified: 2013-12-18
Hi all,
I'm having problems accessing particular columns in a MSAccess db table, if the column titles contain gaps, commas etc. For example, to retrieve data from column called "Ready for T/O" I'm using the following formula:
@DbLookup("ODBC";"U2STAT";"";"";"sh1";"Ready for T/O";"p3";"684" )
and notes returns an error. The only way how to make it work I found, is to go to the Access db and rename the column into "Ready_for_TO". It is pretty annoying when the db contains some queries, forms etc... - you have to change them as well and the owner of the database is not always willing to do that..... Is there any trick how to enter the column title into the formula, so that notes would accept it?
Thanks a lot!
0
Comment
Question by:koze767301
2 Comments
 

Expert Comment

by:brooklynegg
ID: 2769466
I'm just starting to do this myself so I'm not sure of your answer, but I have some suggestions.  See if @DBColumn works. If so, have the administrator set up a query that places the information in a table, then query the table row and column number.  That way you won't have to keep asking for design changes.

If @DbColumn does not work, I can get you a copy of an LotusScript agent that I am adapting to import an archive into Notes.  It uses this technique, which you should be able to adapt for this purpose.  Let me know.
0
 
LVL 3

Accepted Solution

by:
Simon_Hendry earned 150 total points
ID: 2771239
You need to place quotes around the filed name , but as this is script you should use \"

so your line should read

@DbLookup("ODBC";"U2STAT";"";"";"sh1";"\"Ready for T/O\"";"p3";"684" )

0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question