Jump to content

_accessQueryLike MSAccess UDF


Recommended Posts

The array is comming back as $adfull correct? When I put that in my msg box its saying I havn't declared it.

I'm currently using the UDF to store information I want to take it to the next step and pull that out for display.

I'm sure I'm just using the Syntax a nuge would be great.

If you bothered reading the header you would have noticed that it returns an array

CODE;

$test = _accessQueryLike($database, "tbl_call","desc","test")

If IsArray($test) Then

For $i = 1 To Ubound($test) -1

MsgBox(0,"test",$test[$i])

Next

EndIf

;

EDIT: Please post support questions in the support forum, not as a new thread in Example scripts. Now I'll see if I can get some nice Mod to move this one.

Edited by BryonR
Link to comment
Share on other sites

The array is comming back as $adfull correct? When I put that in my msg box its saying I havn't declared it.

I'm currently using the UDF to store information I want to take it to the next step and pull that out for display.

I'm sure I'm just using the Syntax a nuge would be great.

The variable $adfull is not used in the code posted. What are you talking about?

^_^

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

[/code]
#include <Access.au3>

$database = "c:\database\support.mdb"
$test = _accessQueryLike($database, "tbl_call","date","test")
MsgBox(0,"test",$adFull)
[code]

Its in the Access.au3 incude file, unless I'm just way off base and not thinking correctly. ^_^

-Bryon

Edited by BryonR
Link to comment
Share on other sites

[/code]
#include <Access.au3>

$database = "c:\database\support.mdb"
$test = _accessQueryLike($database, "tbl_call","date","test")
MsgBox(0,"test",$adFull)
[code]

Its in the Access.au3 incude file, unless I'm just way off base and not thinking correctly. ^_^

-Bryon

$test is an array and if you had read the header for that function you would have seen that. I'm re-writing that function anyway but it won't break what you have now.

#include <Access.au3>
#include<array.au3>
$database = "c:\database\support.mdb"
$test = _accessQueryLike($database, "tbl_call","date","test")
_ArrayDisplay($test, "Returned Array")

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Thank you GeoSoft... I was getting tunnle vision and didn't think about adding the extra include.

BTW great UDF I use it quite a bit at least the store part ^_^

-Bryon

YW. I just used the extra file for _ArrayDisplay() You could also have done it by looping through the elements. The important part is that it returns an array, not a string.

BTW; If you have been using this for a while, make sure you go back to the site and download the latest version so it will work with Access 2007

Edited by GEOSoft

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...