473,385 Members | 1,769 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,385 software developers and data experts.

Using Form to Write to a Table

I'm using a form to append records to a Request table. On the form is
a Text Box for users to enter the description of the request and it
can be quite lengthy. When I use an append query to capture the
content of the form (each element mapped to a specific field in the
Request table) the record will be appended perfectly as long as the
text box content (request description) is short. This text box is
mapped to a memo field in the table but the limiting factor is the
query. It is only limited to 255 characters (actually half that). Is
there a way to append a record to a table through another means, a way
to increase the query's memory size to fill the memo field or is there
a feature that I should be aware of??? Thanks in advance!
Nov 12 '05 #1
4 10235
Why don't you use a form bound (in its RecordSource) either to the Table or
to a Query including the table? Truly, that is a lot easier than using an
unbound form as you seem to be doing.

Larry Linson
Microsoft Access MVP

"Louis" <lo*******@lycos.com> wrote in message
news:13*************************@posting.google.co m...
I'm using a form to append records to a Request table. On the form is
a Text Box for users to enter the description of the request and it
can be quite lengthy. When I use an append query to capture the
content of the form (each element mapped to a specific field in the
Request table) the record will be appended perfectly as long as the
text box content (request description) is short. This text box is
mapped to a memo field in the table but the limiting factor is the
query. It is only limited to 255 characters (actually half that). Is
there a way to append a record to a table through another means, a way
to increase the query's memory size to fill the memo field or is there
a feature that I should be aware of??? Thanks in advance!

Nov 12 '05 #2
You can't directly execute a query which has a reference to a field which
is more than 255 chars.

What you must do is create a string as a query statement which already
resolves the form references. Something like (hope I get the quotes
right!)

strSQL = "INSERT INTO Mytbl( myID, mymemofield ) " & _
"VALUES (""" & Me!MyID & """, """ & Me!mymemofield & """);"

CurrentDb.Execute strSQL, dbFailOnError

Regards

Peter Russsell

Louis previously wrote:
I'm using a form to append records to a Request table. On the form is
a Text Box for users to enter the description of the request and it
can be quite lengthy. When I use an append query to capture the
content of the form (each element mapped to a specific field in the
Request table) the record will be appended perfectly as long as the
text box content (request description) is short. This text box is
mapped to a memo field in the table but the limiting factor is the
query. It is only limited to 255 characters (actually half that). Is
there a way to append a record to a table through another means, a way
to increase the query's memory size to fill the memo field or is there
a feature that I should be aware of??? Thanks in advance!


Nov 12 '05 #3
Any reason for not using bound forms?
Nov 12 '05 #4
Thank you all for your responses. I'm using unbounded form due to my
custom auto number routine. I have a query where, depending on the
type of requst submitted, the request ID generates a prefix (i.e.
AP1001, RD1001 and so on) so that I can classifiy the record with the
prefix in addition to the request type.

That's besides the point. Anyways, the solution that I came up with
was to create a temporary table that my form can bound to then use an
append query to copy from the query generated Request ID and the temp
table to the Request table. It works wonderfully and I actually got
the idea from another questions that someone wrote on this forum which
wasn't related to my question but the solution fit perfectly!

pi********@hotmail.com (Pieter Linden) wrote in message news:<bf**************************@posting.google. com>...
Any reason for not using bound forms?

Nov 12 '05 #5

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

Similar topics

0
by: Pat Patterson | last post by:
I'm having serious issues with a page I'm developing. I just need some simple help, and was hoping someone might be able to help me out in here. I have a form, that consists of 3 pages of...
3
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
1
by: Daveyk0 | last post by:
Hello there, I have a front end database that I have recently made very many changes to to allow off-line use. I keep copies of the databases on my hard drive and link to them rather than the...
0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
1
by: ratnakarp | last post by:
Hi, I have a search text box. The user enters the value in the text box and click on enter button. In code behind on button click i'm writing the code to get the values from the database and...
6
by: MrHelpMe | last post by:
Hello experts, O.k I give up on this. I have an LDAP query from asp working correctly. It is returning data fine. Now I need to know how to take this data and then submitt it into the...
3
by: anthonybrough | last post by:
I have an asp page that has a form to collect user data in a form. when the user clicks submit the input is validated. If any fields are not acceptable the user clicks on a button to go back to...
221
Atli
by: Atli | last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t. In situations where your PHP application...
12
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I am a newbie to Struts and JSP...I have been working on the code below for 5 hours now..I googled a lot but couldn't get much help so finally I am here.. Hoping of getting my problem solved. Please...
0
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,...
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: 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...
0
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...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.