Jumat, 03 Agustus 2012

[MS_AccessPros] Re: OLE Object

 

Can you post the site you copied the code from? Maybe one of us can spot something.

Regards,
Bill Mosca, Founder - MS_Access_Professionals
http://www.thatlldoit.com
Microsoft Office Access MVP
https://mvp.support.microsoft.com/profile=C4D9F5E7-BB03-4291-B816-64270730881E
My nothing-to-do-with-Access blog
http://wrmosca.wordpress.com

--- In MS_Access_Professionals@yahoogroups.com, "ann nony mutz" <hispanya@...> wrote:
>
> Hi!
>
> I´m doing an example copied from Microsoft site and pasted on my new database. But when I try to run it I receive this error "2465 Runtime error Microsft access can´t find '|' field To that reference in its expression becomes
>
> I´m using Access 2002 without any service pack. The code is
>
> Private Sub cmdLoadOLE_Click()
> Dim MyFolder As String Dim MyExt As String Dim MyPath As String Dim MyFile As String Dim strCriteria As String
> MyFolder = Me!SearchFolder ' Get the search path. MyPath = MyFolder & "\" & "*." & [SearchExtension] ' Get the first file in the path containing the file extension. MyFile = Dir(MyPath, vbNormal) Do While Len(MyFile) <> 0 [OlePath] = MyFolder & "\" & MyFile [OleFile].Class = [OleClass] [OleFile].OLETypeAllowed = acOLEEmbedded [OleFile].SourceDoc = [OlePath] [OleFile].Action = acOLECreateEmbed ' Check for next OLE file in the folder. MyFile = Dir ' Go to new record on form. DoCmd.RunCommand acCmdRecordsGoToNew Loop
> End Sub
>
> Any help will be apreciated
>
> PS: The error was translated from Spanish version and maybe my english is poor.
>
>
> __________________________________________________________
> Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
> http://login.mail.lycos.com/r/referral?aid=27005
>

__._,_.___
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar