Advertisement

07.30.2007 at 08:50AM PDT, ID: 22729207
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

Bloomberg Subscribe Function on Access Database

Asked by greep in Access Coding/Macros, Microsoft Access Database, VB Database Programming

Tags:

Hi,
I have inherited some Excel Sheets and Access databases which use the BLP Add-ins to retrive data from Bloomberg.
The Access database is using the Subscribe method - example code below.
      '---------------------------------------------------------------------------------------------------
                     Public WithEvents objBloomberg As BLP_DATA_CTRLLib.BlpData
      Public Sub MakeDataRequest(Security() As String, Fields() As String, Optional OverFields As Variant, Optional OverValues As Variant)
      '  Where Security is an array of Security Numbers,
                     'Fields is an array of Bloomberg field mnemonics,
                     'OverFields and OverValues are not used -no idea what they are supposed to do.
      Dim nCount As Long
      Dim nMaxCount As Long
      nMaxCount = UBound(Security, 1)
      objBloomberg.AutoRelease = False
      For nCount = 0 To nMaxCount
                       objBloomberg.Subscribe Security(nCount), nCount, Fields, OverFields, OverValues, Monitor:=False
               nSendCount = nSendCount + 1
      Next nCount
      objBloomberg.Flush
      End Sub
      'data is then received by a sub called DataCallback, and this works ok.
      Public Sub DataCallback(nCookie As Long, vtData As Variant)
      '---------------------------------------------------------------------------------------------------
This all works fine for retreiving current data.
 My problem is that I need to be able to retreive data for a different Settlement Date.  

In Excel with the BLP function, this is easy as the required date can be passed as part of the field array e.g.
BLP(123456 CORP,[SETTLE_DT=20070720,GOVT_IDX_RATIO])

Is there a way to do something similar with the Access Subscribe function?
 
Start Free Trial
 
Loading Advertisement...
 
[+][-]07.30.2007 at 11:02AM PDT, ID: 19594402

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2007 at 03:31AM PDT, ID: 19824177

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2007 at 03:33AM PDT, ID: 19824182

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, Microsoft Access Database, VB Database Programming
Tags: bloomberg
Sign Up Now!
Solution Provided By: ry_ashpool
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32