TIA!
I recently moved some forms from an a2k mdb file to an a2k adp. There is
now an error when opening one of the forms 'the isnull function requires 2
arguments', but I only find references to IsNull() having 1 argument. Here
is an example of the offending code:
-----------------------------
Private Sub AEnd_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "EngData (Port Editor)"
If IsNull(Me!ID) Then
Exit Sub
Else
stLinkCriteria = "[ID]=" & Me![ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End If
End Sub
------------------------------
Also, related to moving forms from an mdb to an adp, I get this error:
"No column was specified for column 2 of 'DRVD_TBL'"
This error shows up on a form/subform when run together; when the forms are
run seperately, no error.
master field: LanEquipment.ID
child field: LanAssignment.LanEquipment_ID
....so, if someone would be so kind as to help a brother out, I would be
quite grateful.
Regards,
Eric J Owens
AT&T Business Services/MasterCard LCM
Network Design Engineering ej*********************@att.com 6 10776
Try
If Me!ID Is Null Then
or (probably better in this case)
If Len(Trim(Me!ID & "")) < 1 Then
Terry
"Eric J Owens" <ej*********************@att.com> wrote in message
news:br**********@kcweb01.netnews.att.com... TIA!
I recently moved some forms from an a2k mdb file to an a2k adp. There is now an error when opening one of the forms 'the isnull function requires 2 arguments', but I only find references to IsNull() having 1 argument.
Here is an example of the offending code:
----------------------------- Private Sub AEnd_DblClick(Cancel As Integer)
Dim stDocName As String Dim stLinkCriteria As String
stDocName = "EngData (Port Editor)" If IsNull(Me!ID) Then Exit Sub Else stLinkCriteria = "[ID]=" & Me![ID] DoCmd.OpenForm stDocName, , , stLinkCriteria End If
End Sub ------------------------------
Also, related to moving forms from an mdb to an adp, I get this error:
"No column was specified for column 2 of 'DRVD_TBL'"
This error shows up on a form/subform when run together; when the forms
are run seperately, no error.
master field: LanEquipment.ID child field: LanAssignment.LanEquipment_ID
...so, if someone would be so kind as to help a brother out, I would be quite grateful.
Regards,
Eric J Owens AT&T Business Services/MasterCard LCM Network Design Engineering ej*********************@att.com
On Tue, 16 Dec 2003 11:50:34 -0600 in comp.databases.ms-access, "Eric
J Owens" <ej*********************@att.com> wrote: TIA!
I recently moved some forms from an a2k mdb file to an a2k adp. There is now an error when opening one of the forms 'the isnull function requires 2 arguments', but I only find references to IsNull() having 1 argument. Here is an example of the offending code:
----------------------------- Private Sub AEnd_DblClick(Cancel As Integer)
Dim stDocName As String Dim stLinkCriteria As String
stDocName = "EngData (Port Editor)" If IsNull(Me!ID) Then Exit Sub Else stLinkCriteria = "[ID]=" & Me![ID] DoCmd.OpenForm stDocName, , , stLinkCriteria End If
End Sub ------------------------------
Also, related to moving forms from an mdb to an adp, I get this error:
"No column was specified for column 2 of 'DRVD_TBL'"
This error shows up on a form/subform when run together; when the forms are run seperately, no error.
master field: LanEquipment.ID child field: LanAssignment.LanEquipment_ID
...so, if someone would be so kind as to help a brother out, I would be quite grateful.
It's probably not complaining about your VBA code, in VBA IsNull takes
1 argument, perhaps you have IsNull in your query (which is now a SQL
view?), in T-SQL IsNull() is the equivelant of VBA's Nz().
--
A)bort, R)etry, I)nfluence with large hammer.
Thnx for the insight!
ejo
On Wed, 17 Dec 2003 18:49:26 +0000, Trevor Best <bouncer@localhost> wrote: On Tue, 16 Dec 2003 11:50:34 -0600 in comp.databases.ms-access, "Eric J Owens" <ej*********************@att.com> wrote:
TIA!
I recently moved some forms from an a2k mdb file to an a2k adp. There is now an error when opening one of the forms 'the isnull function requires 2 arguments', but I only find references to IsNull() having 1 argument. Here is an example of the offending code:
----------------------------- Private Sub AEnd_DblClick(Cancel As Integer)
Dim stDocName As String Dim stLinkCriteria As String
stDocName = "EngData (Port Editor)" If IsNull(Me!ID) Then Exit Sub Else stLinkCriteria = "[ID]=" & Me![ID] DoCmd.OpenForm stDocName, , , stLinkCriteria End If
End Sub ------------------------------
Also, related to moving forms from an mdb to an adp, I get this error:
"No column was specified for column 2 of 'DRVD_TBL'"
This error shows up on a form/subform when run together; when the forms are run seperately, no error.
master field: LanEquipment.ID child field: LanAssignment.LanEquipment_ID
...so, if someone would be so kind as to help a brother out, I would be quite grateful.
It's probably not complaining about your VBA code, in VBA IsNull takes 1 argument, perhaps you have IsNull in your query (which is now a SQL view?), in T-SQL IsNull() is the equivelant of VBA's Nz().
That was my thought as well, but it would only be an issue if the database is
an ADP or ADE. Otherwise, the expression service would forward the IsNull
call to the expression service which would hand it off to VBA.
Of couse, in any quuery, JET or T-SQL, you can and should use the IS NULL
operator to check for nulls, not the IsNull function.
Example:
SELECT * FROM tblFoo Where [FooName] Is Null
On Fri, 19 Dec 2003 06:11:35 GMT in comp.databases.ms-access, Steve
Jorgensen <no****@nospam.nospam> wrote: That was my thought as well, but it would only be an issue if the database is an ADP or ADE.
It was just moved to an ADP.
--
A)bort, R)etry, I)nfluence with large hammer.
On Sat, 20 Dec 2003 12:59:19 +0000, Trevor Best <bouncer@localhost> wrote: On Fri, 19 Dec 2003 06:11:35 GMT in comp.databases.ms-access, Steve Jorgensen <no****@nospam.nospam> wrote:
That was my thought as well, but it would only be an issue if the database is an ADP or ADE.
It was just moved to an ADP.
Ah - right.
Sorry, I didn't read the initial post correctly. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Penn Markham |
last post by:
Hello all,
I am writing a script where I need to use the system() function to call
htpasswd. I can do this just fine on the command line...works great
(see attached file, test.php). When my...
|
by: Matik |
last post by:
Hello to all,
Below the sample code:
declare @arg_szMsgText ntext
set @arg_szMsgText = isnull(@arg_szMsgText, N'unknown message')
Now the error message I get:
"The assignment operator...
|
by: Kevin |
last post by:
Hi every one.
I want to use marco '#define' define a function like printf that have
variable arguments, do it possible?
it may be like that, I write a function
foo(int LineNo, char * fmt, ...)
I...
|
by: Alfonso Morra |
last post by:
How can this work ?
I have the following declarations in a header:
Header
=========
typedef void (*VFPTR)(void) ;
void FOO_Callback(void*, char*, char*, int, unsigned long, void*,void*);...
|
by: Fredrik Tolf |
last post by:
If I have a variable which points to a function, can I check if certain
argument list matches what the function wants before or when calling it?
Currently, I'm trying to catch a TypeError when...
|
by: Beta What |
last post by:
Hello,
I have a question about casting a function pointer. Say I want to make
a generic module (say some ADT implementation) that requires a function
pointer from the 'actual/other modules'...
|
by: John Friedland |
last post by:
My problem: I need to call (from C code) an arbitrary C library
function, but I don't know until runtime what the function name is,
how many parameters are required, and what the parameters are. I...
|
by: Hexman |
last post by:
Hello All,
In SS EE I have nulls in a column. I want to select and eventually change to a zero (its a smallint column). I've tried selecting 'null', 'dbnull',
etc. Then I read about the ISNULL...
|
by: mdh |
last post by:
May I ask the following.
By K&R's own admission, the example used to describe function pointers
is complex ( on P119). In addition, the use of casts has been stated
by some on this group as...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
| |