473,739 Members | 4,930 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ODBC creating nulls?

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


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

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

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

DataPG.Recordse t.AddNew
DataPG.Recordse t("pricebookid" ) = MaxID & ""
DataPG.Recordse t("partnumber ") = Apb("partnumber ") & ""
DataPG.Recordse t("secondarypar tnumber") = ""
DataPG.Recordse t("grouping") = ""
DataPG.Recordse t("Description" ) = Apb("Descriptio n") & ""
DataPG.Recordse t("suppliercode ") = Apb("supplierco de") & ""
DataPG.Recordse t("categorycode ") = Apb("categoryco de") & ""
DataPG.Recordse t("orderunit" ) = Apb("orderunit" ) & ""
DataPG.Recordse t("pkgunitquant ity") = Apb("pkgunitqua ntity") & ""
DataPG.Recordse t("orderqty") = Apb("orderqty") & ""
DataPG.Recordse t("movementcode ") = Apb("movementco de") & ""
DataPG.Recordse t("supersededto ") = Apb("superseded to") & ""
DataPG.Recordse t("cost") = Apb("cost") & ""
DataPG.Recordse t("retail") = Apb("retail") & ""
DataPG.Recordse t("dtstamp") = "6/8/2004"
DataPG.Recordse t("upccode") = ""
MaxID = MaxID + 1
DataPG.Recordse t.Update

Any help would be greatly appreciated.



Jul 19 '05 #1
0 1899

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

Similar topics

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 http://www.egenix.com/files/python/mxODBC.html#Hints
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 (VB5) ODBC connection I get:
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 Access 2000 under Win98, I have been running a Make Table or Append query against this ODBC table and producing an extracted Access table. Any fields that are NULL on the source ODBC table show as NULL on the output table. The query also has an...
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 server database but the ODBC error tha tis returned is not very polite to the user since it mentions the sql field not the nice label. Is there a way for me to modify this error or put the check in access?
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
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 still get nulls in any field without data. Even the secondary part number which is set to "".
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 data. If I moved the memo field to the end and executed the same SQL the data was retrieved propery. Also if I specified the column name by itself (E.g. select phone from table' ), the data was retrieved.
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. We have been using oracle client with it's odbc for a while without problem. The problem arose when we decided to reconnect all the tables and save password. Some query became suddenly very slow. Then I've discovered that the tables...
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. There is a close button on this form that has the following code in it's OnClose event: "DoCmd.close"
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.