I have a private SelectionChange and Change sub routine in my VBA code which works well once initiated, the problem I have is that I am having a hard time triggering these events when clicking on the pull down arrow of a "Data Validation" List. Excel does not seem to recognize clicking a list...
If I'd like to access my data from an Access database instead of an Oracle database would I need to change the subject function drastically? Or will I just need to change the connection string?
In case you were wondering why I was having a difficult time yesterday, it was because there was a "/" in the User Id portion of the connection string which I did not know to exclude.
cnn.Open "Driver={Microsoft ODBC for Oracle};" & _
"Server=" & sServer & ";" & _...
Okay so I've finally got this thing connected to my database. Now how to I modify the Where statement sSQL = sSQL & "WHERE ROUTE_CODE = '" & Trim(sPN) & "'"?
I would like to say Where ROUTE_CODE = 'CAL0002'. Also I'm trying to return the value of my query to sheet1 of my workbook by calling...
Thanks for the help, it seems I'm going to have to back track here because I don't know how to use the immediate window, I've never had too. Up until now I've been using VBA to manipulate and compute data in Excel as a result importing to Excel from an Oracle database is foreign to me...
and this is the EXACT code that you are using and that is not workgin for you???????
Common, quit wasting time!
Aside from the x's this is the exact code I'm using. It's kinda fustrating know because when I use the Excel wizard to connect to this server with my user name and password it works...
Per your request.
Function GetPastDueRQ(sPN As String, Optional sNG As String = "") As Integer
'SkipVought/2007 Sep 06/
'--------------------------------------------------
' Access: DWPROD.FRH_MRP.READ
'--------------------------------------------------
':this function returns Past Due...
Gentlemen I am encountering an error (Run-time error Automation error) as I'm attempting to connect to my server. Did I change all the require variables per the code below. By the way I forgot to mention that I trying to extract the content of serveral colums in orcale and importing it into...
I think I should be fine, I only have read access, basically I'm intending on using the input box as my user interface. Regarding the code Skip wrote, I going to have to study it before I start changing it. I am only trying to return columns, not rows. Thanks all, I learn a lot here.
Thanks this helps a lot. Regarding my question as to whether or not I can use the Input Box method to assign a value to the Where statement, can it be done?
I'd like to query an Oracle database through my VBA code how would I go about doing that in the simplest way possible? I would also like to assign the Where statement value by means of an Input Box, in other words I'd like to pass the value of the Input Box to be the value of the "Where" query...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.