I have 25000 Rows, that needs to be inserted into Oralce table from MsAccess
When i run below code, i am not getting any error message, Still records are not inserting into destination table.
I am not sure what things i am missing in my code.
Dim objConn As ADODB.Connection
Dim objSourceRs As ADODB.Recordset
Dim objFld As ADODB.Field
Dim strSQL As String
Dim objDt As Date
On Error GoTo Err_Execute
objDt = Forms!frm_IFRS_Main!txt_Cobdate.Value '---> Date passing From MsAccess form
strSQL = "INSERT INTO EUSADMIN_IFRS_FXSPOT2 (FXSPOT_DATE, CCY, CONV_RATE, COUNTRY_ENTITY, CURRENCY, ADP_CODE, ADP_SYMBOL) SELECT '" & objDt & "', CCY, ConV_Rate, Country_Entity, Currency, ADP_Code , ADP_Symbol FROM FxRate"
Set objConn = New ADODB.Connection
Set objSourceRs = New ADODB.Recordset
objConn.CommandTimeout = 10000
objConn.Open "dsn=caldev2.world", "eusadmin", "eusadmin#06"
MsgBox ("database connected")
On Error Resume Next
objConn.Execute (strSQL)
I would appreciate if you guide me.
2 8664
I have 25000 Rows, that needs to be inserted into Oralce table from MsAccess
When i run below code, i am not getting any error message, Still records are not inserting into destination table.
I am not sure what things i am missing in my code.
Dim objConn As ADODB.Connection
Dim objSourceRs As ADODB.Recordset
Dim objFld As ADODB.Field
Dim strSQL As String
Dim objDt As Date
On Error GoTo Err_Execute
objDt = Forms!frm_IFRS_Main!txt_Cobdate.Value '---> Date passing From MsAccess form
strSQL = "INSERT INTO EUSADMIN_IFRS_FXSPOT2 (FXSPOT_DATE, CCY, CONV_RATE, COUNTRY_ENTITY, CURRENCY, ADP_CODE, ADP_SYMBOL) SELECT '" & objDt & "', CCY, ConV_Rate, Country_Entity, Currency, ADP_Code , ADP_Symbol FROM FxRate"
Set objConn = New ADODB.Connection
Set objSourceRs = New ADODB.Recordset
objConn.CommandTimeout = 10000
objConn.Open "dsn=caldev2.world", "eusadmin", "eusadmin#06"
MsgBox ("database connected")
On Error Resume Next
objConn.Execute (strSQL)
I would appreciate if you guide me.
Hi. objDT is not a field in FxRate so cannot be selected as you have written.
Hi,
So if i want to insert COB date which user enter in form along with other details, then how to pass the string into query?
I have made this change to exisiting query to_date(" & objDt & "',"MM/DD/YYYY"),
Is there any way to insert all the records in one shot? currently i am able to insert into oracle table by each recordset passing to string in Loop.
Please advise.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Fons Dijkstra |
last post by:
Hello,
I'm using the mx.ODBC.Windows package in order to read/write a MSAccess
database. Everything works fine apart from the DATE format handling. I'm
using the default "datetimeformat" (i.e....
|
by: X |
last post by:
Howdy:
To follow up on a problem with MS Access (2000)
and Oracle 9i (9.2.0.x) -
History:
I am trying to import tables from my Oracle 9i database on
RedHat Linux 7.2 to MS Access (2000) on...
|
by: Raj Kotaru |
last post by:
Hi,
In sqlplus, I can insert a single row using:
insert into employee
(name, salary, hiredate)
values
('xyz', '86378', sysdate);
Is there a modification of the insert command that will...
|
by: Andrea M. Segovia |
last post by:
Hello,
I am a newbie to Oracle databases....
We have a visualization front-end tool connected to an Oracle back-end
database on a Tru64 UNIX server. We also have clients with MS access...
|
by: Pedro Maria Ferro da Cunha |
last post by:
I spend a lot of time making 2 thousand pictures and saving them as an
article name. jpg.
I have a table with the article name and name of the file in jpg (format).
How can I make an...
| |
by: Charles Wilt |
last post by:
I have a IBM iSeries (aka AS-400) running v5r3 of OS/400 that I access
via a linked server from SQL Server 2000.
The following select works fine:
select * from...
|
by: clinttoris |
last post by:
Hello,
If someone could help me it would be appreciated as I am not having
much luck.
I'm struggling with my asp code and have some questions relating to asp
and oracle database.
First...
|
by: Reedsp |
last post by:
Version: MSAccess 2003 SP2
Explination: I have a database that connects to an oracle database. I have setup an ODBC connection under the System DSN tab in the ODBC Source Administrator. The...
|
by: kashif khan |
last post by:
Hi All,
I have created a form in MSAccess and linked that form with a table.
now in the run mode if i am entering any thing in the textbox and closing the form with out clicking on add record...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |