473,385 Members | 1,324 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.

Expanding memo field to larger form

I have an Access adp linked to an SQL db that's tracking tasks. On the
primary data entry form, there's a fair whack of info, so the memo
field for entering details about the task to be completed is
relatively small. I was trying to place a button on the form that,
when clicked, would open another form with just the contents of the
current task details in it. I used the button wizard in forms design
to create it, as it seemed to do what I wanted it to, but I'm getting
an error.

Here is the code the wizard created for the button:

Private Sub cmdExpandDetails_Click()
On Error GoTo Err_cmdExpandDetails_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmTaskDetailsExpanded"

stLinkCriteria = "[TaskDetails]=" & Me![TaskDetails]
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_cmdExpandDetails_Click:
Exit Sub

Err_cmdExpandDetails_Click:
MsgBox Err.Description
Resume Exit_cmdExpandDetails_Click

End Sub

Here is the error I get when I click the button:
There was a problem accessing a property or method of the OLE object.

I've tried doing a newsgroup google on this, but none of the threads
I'm turning up seem to have a fix detailed, though I could be missing
something. Anyway, thanks for any help you can give me. :)

--
Siobhan Perricone
Systems Developer
Vermont Agency of Natural Resources
(my comments are my own, not my employers)
Nov 12 '05 #1
2 2260
My first guess would be that you have a Field named "TaskDetails" in the
Table/Query and also a Control on your form bound to that Field, with the
same name. Try renaming your Control to txtTaskDetails, changing the code to
reflect that, and see if that solves the problem.

Larry Linson
Microsoft Access MVP
"Siobhan Perricone" <si***************@nostatespam.vt.us> wrote in message
news:vo********************************@4ax.com...
I have an Access adp linked to an SQL db that's tracking tasks. On the
primary data entry form, there's a fair whack of info, so the memo
field for entering details about the task to be completed is
relatively small. I was trying to place a button on the form that,
when clicked, would open another form with just the contents of the
current task details in it. I used the button wizard in forms design
to create it, as it seemed to do what I wanted it to, but I'm getting
an error.

Here is the code the wizard created for the button:

Private Sub cmdExpandDetails_Click()
On Error GoTo Err_cmdExpandDetails_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmTaskDetailsExpanded"

stLinkCriteria = "[TaskDetails]=" & Me![TaskDetails]
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_cmdExpandDetails_Click:
Exit Sub

Err_cmdExpandDetails_Click:
MsgBox Err.Description
Resume Exit_cmdExpandDetails_Click

End Sub

Here is the error I get when I click the button:
There was a problem accessing a property or method of the OLE object.

I've tried doing a newsgroup google on this, but none of the threads
I'm turning up seem to have a fix detailed, though I could be missing
something. Anyway, thanks for any help you can give me. :)

--
Siobhan Perricone
Systems Developer
Vermont Agency of Natural Resources
(my comments are my own, not my employers)

Nov 12 '05 #2
On Mon, 20 Oct 2003 22:19:18 GMT, "Larry Linson"
<bo*****@localhost.not> wrote:
My first guess would be that you have a Field named "TaskDetails" in the
Table/Query and also a Control on your form bound to that Field, with the
same name. Try renaming your Control to txtTaskDetails, changing the code to
reflect that, and see if that solves the problem.

Hrm, didn't change a thing. Maybe the statement being plonked in for
the openform command won't work in SQL. I'll pound on that for a
while. Thanks for the try! :)
"Siobhan Perricone" <si***************@nostatespam.vt.us> wrote in message
news:vo********************************@4ax.com.. .
I have an Access adp linked to an SQL db that's tracking tasks. On the
primary data entry form, there's a fair whack of info, so the memo
field for entering details about the task to be completed is
relatively small. I was trying to place a button on the form that,
when clicked, would open another form with just the contents of the
current task details in it. I used the button wizard in forms design
to create it, as it seemed to do what I wanted it to, but I'm getting
an error.

Here is the code the wizard created for the button:

Private Sub cmdExpandDetails_Click()
On Error GoTo Err_cmdExpandDetails_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmTaskDetailsExpanded"

stLinkCriteria = "[TaskDetails]=" & Me![TaskDetails]
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_cmdExpandDetails_Click:
Exit Sub

Err_cmdExpandDetails_Click:
MsgBox Err.Description
Resume Exit_cmdExpandDetails_Click

End Sub

Here is the error I get when I click the button:
There was a problem accessing a property or method of the OLE object.

I've tried doing a newsgroup google on this, but none of the threads
I'm turning up seem to have a fix detailed, though I could be missing
something. Anyway, thanks for any help you can give me. :)

--
Siobhan Perricone
Systems Developer
Vermont Agency of Natural Resources
(my comments are my own, not my employers)

--
Siobhan Perricone
Systems Developer
Vermont Agency of Natural Resources
(my comments are my own, not my employers)
Nov 12 '05 #3

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

Similar topics

2
by: Kevin | last post by:
Thanks for the very quick response posting that I can use a memo datatype to store large amounts of text. I understand that I can turn on "Can Grow" for a memo type, but is there either a...
1
by: Donald Grove | last post by:
My client wants to print reports that include a memo field. Sometimes there is just a little data there, and sometimes it is quite long. Is there code to resize a report control bound to a memo...
2
by: milka | last post by:
I'm using Access 2002. I have a few memo fields on a form and have just noticed that the memo field's vertical scroll bar disappears when I change the left margin setting of the memo field - I...
11
tdw
by: tdw | last post by:
Hi all, I have tried a few different methods to accomplish this, but with no luck. I will post the code for the latest attempt at the end of this post. I work at a land surveying company. This...
1
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...
0
isladogs
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...
0
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...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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...

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.