473,473 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Unable to go to a new record when opening a new form

11 New Member
I am using MS Access 2010 and have a database.accdb.
I had a Macro to go to a new record when the form loaded.
Form_Load
Action: GoToRecord
Object Type: Form
Object Name: RFP
Record: New

For unknown reasons, this now stopped working, giving me an error "GoToRecord" action isn't available now. You may be in a read-only db or an unconverted db from an earlier version OR The type of object the action applies to isn't currently selected or isn't in the active view." Use only commands and macro actions that are currently available for this db"

I've looked through many forums and responses and have tried all the suggestions and it still doesn't work.

I have also tried VBA and that doesn't work either.

Examples of what I have tried:

1.
On a command button to open the form I used
Private Sub cmdOpenRFP_Click()
Dim stDocName As String
stDocName = "RFP"

DoCmd.OpenForm stDocName, , , , acFormAdd

This doesn't work.

2.
On Private Sub Form_Current()
Me.cboFindProposal.Value = Me.txtProjectTitle
DoCmd.GoToRecord acDataForm, "RFP", acNewRec
Me.Refresh

This didn't work.
3.
Private Sub Form_Load()
DoCmd.GoToRecord acDataForm, "RFP", acNewRec
End Sub

This didn't work.

My "Data Entry" is set to "Yes". I've copied my database to a new database. I've compacted and repaired it.

Any suggestions are welcome!
Feb 28 '12 #1
0 1120

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Paul Fairless | last post by:
I have a form called frmCustSearch to search for customers against an SQL Server database. The form contains a simple textbox into which the Customers surname is typed, and a datagrid then...
0
by: choste11 | last post by:
I just installed VB.NET on a PC running Windows XP. The install went fine, but when I start a new project and try and open form1.vb by either double clicking it or right click, View Desginer, I get...
0
by: Ronald Colijn via .NET 247 | last post by:
Hello all you people, Thanks for reading this. I hve a strange thing which annoys me noend. I am using VS.NET with MS-Access DB, framework version 1.1,Windows XP Pro, IIS 5.1. In my webforms I...
2
by: Ray | last post by:
Stop me if you've heard this, but I am running Access 2002 and all of a sudden, if I design a particular form (it's been working fine for ages), Access crashes rather than open it in design view. ...
12
by: swingingming | last post by:
Hi, in the NorthWind sample database, when clicking on the next navigation button on the new order record with nothing on the subform (order details), we got an order with nothing ordered. How can...
2
by: Manny | last post by:
Hi All I need to default to the Last Record when a form opens. Can someone please help me on how to do this? Much appreciatiated
2
by: Ian | last post by:
I am trying to save the current record on a form before opening a report, doesn’t sound to hard does it? The code on a buttons on click event goes like this: DoCmd.DoMenuItem acFormBar,...
4
by: dstorms | last post by:
Hi, I'm trying to create a form with a list box with 2 columns and a button that opens the selected record in the appropriate form. In the sample below, the first column lists the type of equipment...
2
DonRayner
by: DonRayner | last post by:
This one has me stumped. I'm getting a "Type Mismatch" error on one of my forms when it's being opened. It's hapening before the forms "On Open" event, I stuck a msgbox in there to check and I'm...
1
by: munkee | last post by:
I have a sub form within my main form which displays all records from a table in an overviewed format. Within the design view in the sub form I added a "View full record" button. When you click this...
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,...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
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...

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.