Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 16th, 2004, 07:10 AM
Registered User
 
Join Date: Jul 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling functions

Is it possible to call a function from within a function but not wait for the called function to complete before completing the orriginal function? In other words Function1 calls Function2, but Function1 doesn't wait for Function2 to complete so Function1 may finish before Function2.
 
Old July 16th, 2004, 09:12 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

That’s not a bad description of multitasking; unfortunately, to pull something like that off, you need a language that allows you to spawn, manage, and kill your own threads. VBA doesn’t directly support multi-threading, but there are some VB6 dll’s out there (like half-Time Technologies Thread Factory) that enable you to create multi-threaded VBA applications using apartment threaded COM components. The .NET languages super-simplify the process with the framework’s new Thread class that has Start, Sleep, Suspend, Abort, Resume, etc. methods, and C/C++ programmer’s have always been able to call the Win32 API CreateThread function. Can’t be done directly in Access VBA, though. :(

HTH,

Bob


 
Old July 16th, 2004, 10:03 AM
Registered User
 
Join Date: Jul 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Although disappointing, thanks for the info!

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help calling and using a functions in visual c++ 6 method Visual C++ 0 July 8th, 2006 05:20 PM
calling functions form another window geogomez Javascript How-To 2 November 29th, 2005 07:20 AM
Calling PHP functions from ASP Smoobly Classic ASP Basics 4 January 10th, 2005 06:11 PM
calling functions with conditions Toka1 Javascript How-To 2 February 5th, 2004 09:29 AM
Calling functions in Windows? jacob C# 0 November 5th, 2003 03:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.