A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Trying to add new Transaction code



 
 
Thread Tools Display Modes
  #31  
Old January 4th, 2005, 04:51 PM
Andi Mayer
external usenet poster
 
Posts: n/a
Default

On Tue, 4 Jan 2005 11:14:19 -0500, "Jan Il"
wrote:


I'm using a sample test copy, which has limited files for test purposes, so
it's only 166 KB zipped.

then send it to my adress, but don't forget the magic word, else the
message gets deleted without reaching me.

---
If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW
  #32  
Old January 4th, 2005, 06:07 PM
Jan Il
external usenet poster
 
Posts: n/a
Default

then send it to my adress, but don't forget the magic word, else the
message gets deleted without reaching me.


'k...on it's way...but, without the quotes. Right?

Jan


---
If you expect an answer to a personal mail, add the word "manfred" to the

first 10 lines in the message
MW



  #33  
Old January 4th, 2005, 07:23 PM
Andi Mayer
external usenet poster
 
Posts: n/a
Default

On Tue, 4 Jan 2005 13:07:49 -0500, "Jan Il"
wrote:

then send it to my adress, but don't forget the magic word, else the
message gets deleted without reaching me.


'k...on it's way...but, without the quotes. Right?

one time would have been enough, with or without quotes in the middle
of a single word, this all doesnt matter, luckely the spammers didn't
use this german name (only one I got delivered till now)

mm.dd.yyyy hh:nn" P"

how can you use this in a table field format? Without seeing it I
would have never thought about this.

You should store it as a normal date and use this format only on
forms, to show this.

Are you using Access97? because it is cluttered with DoCmd.DoMenuItem

look for Manfred in the sourceCode, I changed a few things when I
walked into errors and I added to every form to lines on top:
Option Compare Database
Option Explicit
and found a few typos as expected.

The db will be on the way right now.




---
If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW
  #34  
Old January 5th, 2005, 12:30 AM
Jan Il
external usenet poster
 
Posts: n/a
Default

Hi Andi :-)

Are you using Access97? because it is cluttered with DoCmd.DoMenuItem


No.....I'm using Access 2002 XP

look for Manfred in the sourceCode, I changed a few things when I
walked into errors and I added to every form to lines on top:
Option Compare Database
Option Explicit
and found a few typos as expected.

The db will be on the way right now.


I have received the zip file. However......I do not find any Manfred at all
in the db. Nor, do I find any changes that you mention.

Thank you for your time and help. I appreciate it.

Jan







---
If you expect an answer to a personal mail, add the word "manfred" to the

first 10 lines in the message
MW



  #35  
Old January 5th, 2005, 10:18 AM
Andi Mayer
external usenet poster
 
Posts: n/a
Default

On Tue, 4 Jan 2005 19:30:05 -0500, "Jan Il"
wrote:

Hi Andi :-)

Are you using Access97? because it is cluttered with DoCmd.DoMenuItem


No.....I'm using Access 2002 XP


Then you should change it

I have received the zip file. However......I do not find any Manfred at all
in the db. Nor, do I find any changes that you mention.


go to the vba press ctlr-F ; change to whole project and type in my
name, you will find it at least 10 times.



---
If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW
  #36  
Old January 5th, 2005, 04:23 PM
Jan Il
external usenet poster
 
Posts: n/a
Default

Hi Andi :-)


I have received the zip file. However......I do not find any Manfred at

all
in the db. Nor, do I find any changes that you mention.


go to the vba press ctlr-F ; change to whole project and type in my
name, you will find it at least 10 times.


I have now found the name items, and 2 log tables I assume you created.

I am still getting the error message Error: Data type conversion error on
with the frmCkEntry form when trying to enter a new record in the
Transaction field.

I am now getting the error message "Error: The field
'MYCreditCardRegister.TransactionDate' cannot contain a Null value because
the required property for the field is set to True. Enter a value in this
field" for the frmCreditCardEntry form when trying to enter a new record. I
also get "Error: 'MYSavingsRec.TransactionDate' cannot contain a Null value
because the required property for the field is set to True. Enter a value in
this field." When I try to enter a new record in the Transaction field on
this form.

Thank you.

Jan


  #37  
Old January 5th, 2005, 05:04 PM
Andi Mayer
external usenet poster
 
Posts: n/a
Default

On Wed, 5 Jan 2005 11:23:41 -0500, "Jan Il"
wrote:

I am still getting the error message Error: Data type conversion error on
with the frmCkEntry form when trying to enter a new record in the
Transaction field.

got to the debugger:

go to:
Private Sub cmbTransaction_NotInList(NewData As String, Response As
Integer)

on this line press F9, this sets a break-point

add something new to your combobox

with F8 you step through your code

and then see what your code is doing:
it is calling himself

due to the maximizing you don't see how much forms are open.

do this with all your problems to see where your error is, but first
comment the On error goto ... out that you know which line

---
If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW
  #38  
Old January 5th, 2005, 09:32 PM
Jan Il
external usenet poster
 
Posts: n/a
Default

I am still getting the error message Error: Data type conversion error on
with the frmCkEntry form when trying to enter a new record in the
Transaction field.

got to the debugger:

go to:
Private Sub cmbTransaction_NotInList(NewData As String, Response As
Integer)

on this line press F9, this sets a break-point

add something new to your combobox

with F8 you step through your code

and then see what your code is doing:
it is calling himself

due to the maximizing you don't see how much forms are open.

do this with all your problems to see where your error is, but first
comment the On error goto ... out that you know which line


In the frmCkEntry form, doing as you suggested, after creating the break
point, and adding a new name into the Transaction field and tabbing to the
next field, I get the ...add it? message, clicking ok opens the debugger to
the code, and when I press F8, it settles on the line here and fires the
error message again. Set rst = CurrentDb.OpenRecordset("MyCheckRegister").
continuing with the F8, it gets to here .Fields("TransactionDate") =
Format(Me.txtTransactionDate, "mm\.dd\.yyyy\ hh\:nn\ P") and give a RunTime
error of 3421, Data type conversion error. When I click End, a message box
comes up that says 'The text you entered is not an item in the list. Select
an item from the list, or enter text that matches one of the items listed.'

It won't debug any further.

Set rst = CurrentDb.OpenRecordset("MySavingsRec") - same error

Next is here in the same form: Update, and the error is: 'The text you
entered is not an item in the list. Select an item from the list, or enter
text that matches one of the items listed.' I can go no further.

and he Set rst = CurrentDb.OpenRecordset("MyCreditCardRegister") -
triggers the add it message. Upon click I get the message of a RunTime
error 3314.

Next is he Update - and the error is: 'The text you entered is not an
item in the list. Select an item from the list, or enter text that matches
one of the items listed.' I can go no further here either.

Jan






  #39  
Old January 6th, 2005, 12:25 PM
Andi Mayer
external usenet poster
 
Posts: n/a
Default

On Wed, 5 Jan 2005 16:32:05 -0500, "Jan Il"
wrote:

look at your mail, I changed this sub totally.

---
If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW
  #40  
Old January 6th, 2005, 02:58 PM
Jan Il
external usenet poster
 
Posts: n/a
Default

Hi Andi :-)

look at your mail, I changed this sub totally.

Yes...I have it now. The form is working correctly now. Very interesting.

Thank you very much for all your time and help, I truly appreciate it. :-)

Jan


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Barcodes TarponZeke General Discussion 4 October 25th, 2004 08:04 PM
Form to generate a Report code Pat Coleman Setting Up & Running Reports 4 July 16th, 2004 12:58 PM
Hide or show Control Button on Form in Access 97 Pete Sperling Using Forms 8 July 13th, 2004 04:13 PM
Is it possible to include Begin And End Transaction code in VBA ? Jean New Users 10 June 29th, 2004 11:31 PM


All times are GMT +1. The time now is 07:55 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.