Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
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 October 29th, 2014, 05:41 PM
Registered User
 
Join Date: Jan 2014
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Does main subroutine "wait" for a called sub to finish, or not?

Hi,
I'm working on code that involved streaming data into a Table through an API.
It's a lot of data that is being streamed, and at times it receives multiple records per second.

so speed is my concern.

here's my question:

when I call a subroutine, does the main code "wait" for the subroutine to finish its computations, or not?

for example:

Public Sub start()

..do stuff
..do stuff

' cal another sub
dosomethingelse()

..do more stuff
.. do more stuff
end sub

Public Sub dosomethingelse()
..do something
..do something
end sub

Does Sub Start() wait until Sub dosomethingelse is finished "do something"
before it continues "do more stuff" ??

if it does, is there a way that "do more stuff" can continue without having to wait for Sub dosomethingelse() ???


thanks.
I have a feeling this is a dumb question, but it is becoming very important to me.

Last edited by pthegr8; October 29th, 2014 at 05:43 PM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2, pg 82. "R.layout.main" Error Nick Makin BOOK: Beginning Android 4 Application Development 1 July 17th, 2013 08:45 PM
presence type "unavailabe" called automaticaly:Please help sudhansu BOOK: Professional XMPP Programming with JavaScript and jQuery 11 November 27th, 2012 04:35 AM
Exception in thread "main" javax.crypto.BadPadd?ingException: pad block corrupted boy18nj BOOK: Beginning Cryptography with Java 9 June 6th, 2011 12:50 AM
MSXSL gives error message for "for" inside "select" ilyaz XSLT 1 December 9th, 2010 05:02 PM
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 04:56 AM





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