473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ODBC creating nulls?


From: "Dan Perlman" <da*@dpci.NOSPAM.us>
Subject: ODBC creating nulls?
Date: Friday, July 09, 2004 10:43 AM

Hi,

Below is my VB6 code that writes data from an Access 2000 table to a PG
table.

The " & "" " on the right of each line should prevent nulls from being
passed to PG.
For some reason I still get nulls in any field without data. Even the
secondary part number which is set to "".

I had a system crash and had to reload a lot os stuff including the PG ODBC
driver.

Is there some setting in the DSN that I need to change?

DataPG.Recordset.AddNew
DataPG.Recordset("pricebookid") = MaxID & ""
DataPG.Recordset("partnumber") = Apb("partnumber") & ""
DataPG.Recordset("secondarypartnumber") = ""
DataPG.Recordset("grouping") = ""
DataPG.Recordset("Description") = Apb("Description") & ""
DataPG.Recordset("suppliercode") = Apb("suppliercode") & ""
DataPG.Recordset("categorycode") = Apb("categorycode") & ""
DataPG.Recordset("orderunit") = Apb("orderunit") & ""
DataPG.Recordset("pkgunitquantity") = Apb("pkgunitquantity") & ""
DataPG.Recordset("orderqty") = Apb("orderqty") & ""
DataPG.Recordset("movementcode") = Apb("movementcode") & ""
DataPG.Recordset("supersededto") = Apb("supersededto") & ""
DataPG.Recordset("cost") = Apb("cost") & ""
DataPG.Recordset("retail") = Apb("retail") & ""
DataPG.Recordset("dtstamp") = "6/8/2004"
DataPG.Recordset("upccode") = ""
MaxID = MaxID + 1
DataPG.Recordset.Update

Any help would be greatly appreciated.

Thanks,

Dan

Jul 19 '05 #1
0 1866

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marco Aschwanden | last post by:
Hi - Win2000 - Python 2.3.3 - py2exe 0.5.0 - eGenix Comercial & Base Package I am developing an app using mxODBC. On the home page they say ...
7
by: RS200Phil | last post by:
Hi all, I've spent hours trying to find the error in the following SQL 2000 command: ALTER TABLE ADD CONSTRAINT PRIMARY KEY CLUSTERED () On Every time I try to "Execute" this from my...
0
by: LesM | last post by:
This is a change of behaviour between Access 2000 SP3 and Access 2002 SP3. I have Progress table that is linked via ODBC into Access using OpenLink Lite for Progress 9.0b. For over a year, using...
4
by: Rich | last post by:
I have a access form that is connected to linked sql table via odbc. I have some fields that I dont want to allow nulls when data is entered via the form. I can set the null checking on the SQL...
6
by: Andi Reisenhofer | last post by:
Hallo C# folks, Somebody know how to create a ODBC DSN dynamically in c# program. Also interesting for me would be the connectionstring for an Access Database. Thinks a lot Andreas
0
by: Dan Perlman | last post by:
Hi, Below is my VB6 code that writes data from an Access 2000 table to a PG table. The " & "" " on the right of each line should prevent nulls from being passed to PG. For some reason I...
3
by: Costas Menico | last post by:
I have an Access database and a table. One of the columns was a memo field. If I execute a 'select * from table', all the rows would be retrieved but the columns after the memo column had null...
11
by: funky | last post by:
hello, I've got a big problem ad i'm not able to resolve it. We have a server running oracle 10g version 10.1.0. We usually use access as front end and connect database tables for data extraction....
1
by: sdavis1970 | last post by:
I am working on an Access 2002 database where one of the tables has five required fields making up the key. There is a form that is linked to this table which is used for adding new records. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
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...
0
isladogs
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.