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

Problem with Docmd.GoToRecord and FileDialog

Hi

I can't make a code work.What i do is that i'm creating a fileDialog object and later
in the same function i use a Docmd.GoToRecord.I've notice that after i use the '.show' property within the function i get the 2499 error (You can't use the Docmd.GoToRecord action or method on an object in design view)
The form from were i call the fucntion has to be a PopUp form.Everything works fine
if the form is not set as a PopUp.

Does anyone knows how to help me?
I'll be thankfull...
May 23 '07 #1
2 2762
MMcCarthy
14,534 Expert Mod 8TB
Hi

I can't make a code work.What i do is that i'm creating a fileDialog object and later
in the same function i use a Docmd.GoToRecord.I've notice that after i use the '.show' property within the function i get the 2499 error (You can't use the Docmd.GoToRecord action or method on an object in design view)
The form from were i call the fucntion has to be a PopUp form.Everything works fine
if the form is not set as a PopUp.

Does anyone knows how to help me?
I'll be thankfull...
You will have to actually post the code you are using.
May 25 '07 #2
Thats ok i have found the solution i was looking for.
The problem was the arguments of docmd.I was using it as:
DoCmd.GoToRecord ,, acNewRec .
Idon't know why but when i ided all the arguments like:
DoCmd.GoToRecord acDataForm, "ADV_FORM", acNewRec
Everything worked fine

thanks all...
May 29 '07 #3

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

Similar topics

3
by: Eric | last post by:
What's the best way to cancel the new record when doCmd.GoToRecord , , acNewRec is executed and before the new record is actually written to the database. I'm maintaining an existing Access 97...
0
by: Timppa | last post by:
Hi, I'm converting ACCESS 2000 database to SQL Server. I have .adp project. In the .mdb I have form where I'll insert rows into two different tables using docmd.GoToRecod ,,acNewRec. In .adp...
5
by: Prakash | last post by:
I have a continuous form in which I don't want to allow more than 255 rows. There is a field called sub_tran_no which is of the type "BYTE" & hence the restriction. My Problem: -----------...
1
by: hedgracer | last post by:
I have a strange problem with a docmd.transfertext statement. I have set up an import specification to transfer in a .txt file by fixed width. When I do the import using the specification the file...
1
by: Ryan | last post by:
Hello. I was hoping that someone may be able to assist with an issue that I am experiencing. I have created an Access DB which imports an Excel File with a particular layout and field naming. ...
2
Rabbit
by: Rabbit | last post by:
I have a tbl_Demo that is linked one to many to tbl_Services on DemoID. I have a form for tbl_Demo with a continuous subform for tbl_Services. Referential Integrity is turned on. Before ever...
3
by: Lazster | last post by:
Hello People, I am a newbie here, and if I make some stupid mistakes please forgive me :) I have found this site very helpful, and was hoping someone could solve a problem I have. I have...
3
by: Kalaine | last post by:
Access 2003: The following code is intended to delete the current record and all child records but results in an error, help please, thx. Private Sub CmdDelBSR_Click() On Error GoTo...
3
martintallett
by: martintallett | last post by:
Help! I am trying to replace the Access Find button functionality on an old database. I can make it work when I use a basic form with bound fields and a button which shows a popup form which...
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: 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: 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...
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...
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...
0
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...

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.