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

Home Posts Topics Members FAQ

ac goto problem

xpun
39 New Member
Ok here is the situation, I have a form that allows a user to create and edit a customer record. When a user wants to edit a member’s record they have to use the record navigation buttons I have set up to get to the necessary record. This isn’t practical if you have 100 or more records and need to edit record 50 since the record nave progresses sequentially
Expand|Select|Wrap|Line Numbers
  1. Dim gt As Long
  2. gt = inputbox("enter the member number you wish to navigate to")
  3.  
  4.     DoCmd.GoToRecord , "customer entry", acGoTo, gt
  5.  
Now what I have now works but this uses record numbers, what I would like to do is use the members id number instead. is this possible.
???

note: findrecord does not work
Any help is greatly appreciated
-xpun access 2003 win xp
Jul 24 '07 #1
5 1445
missinglinq
3,532 Recognized Expert Specialist
ADezii gives you three different methods of doing this in his tutorial:

http://www.thescripts.com/forum/thread667899.html

Good Luck!

Linq ;0)>
Jul 24 '07 #2
xpun
39 New Member
hmm ok i kinda see where hes going but im not that familiar with dao recordset, how would i implement this into a text box ?

Expand|Select|Wrap|Line Numbers
  1. Private Sub Text170_AfterUpdate()
  2.   Dim strCriteria As String
  3.  
  4.   Dim rst As DAO.Recordset
  5.  
  6.   Set rst = Me.RecordsetClone
  7.  
  8.  
  9.  
  10.   strCriteria = "[Membernum] = " & Me![Text170]
  11.  
  12.   rst.FindFirst strCriteria
  13.  
  14.   Me.Bookmark = rst.Bookmark
  15. End Sub
  16.  
this produces a data type mismatch in criteria expression error
dosent make any sence there all text
Sorry for not looking through the tutorial
Jul 24 '07 #3
missinglinq
3,532 Recognized Expert Specialist
I suspect that the error is caused by the datatype for Membernum being text, in which case Line # 10 needs to be strCriteria = "[Membernum]='" & Me![Text170] & "'"
The code you have would work if Membernum was numeric.

Linq
Jul 24 '07 #4
xpun
39 New Member
I suspect that the error is caused by the datatype for Membernum being text, in which case Line # 10 needs to be strCriteria = "[Membernum]='" & Me![Text170] & "'"
The code you have would work if Membernum was numeric.

Linq
AWESOME it works , i was fooling around with that statement because i knew membernum wasent numeric, but couldent get the syntax right.

thanks alot linq
i owe ya one
Jul 24 '07 #5
missinglinq
3,532 Recognized Expert Specialist
Glad we could help!

Linq ;0)>
Jul 24 '07 #6

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

Similar topics

36
by: Michael | last post by:
Hi, I know I know its notoriously bad! I don't want to use it. I was wondering, does it still exist? If it does, I really don't understand how!? like what happens if you just goto halfway through...
52
by: Rick | last post by:
Hi, For portability, can an issue arise if we use while(1) for an infinite loop in C? If so, should we then use for(;;)? Thanks, Rick
28
by: Vishal Naidu | last post by:
i m new to the C world... i ve been told by my instructors not to use goto stmt.. but no one could give me a satisfactory answer as to why it is so.. plz help me out of this dilemma, coz i use...
17
by: SUMIT | last post by:
I wrote a program for removing comment from C source file for which i... 1.first constructed a DFA 2.used goto statement to write a program. now it was very easy to model DFA using goto & i...
19
by: Dave | last post by:
I'm building a research application that needs to be a super speed demon. I decided that one way to do this is to use goto loops instead of while() loops when I need them. that way, instead of...
77
by: M.B | last post by:
Guys, Need some of your opinion on an oft beaten track We have an option of using "goto" in C language, but most testbooks (even K&R) advice against use of it. My personal experience was that...
34
by: electrician | last post by:
Perl has it, Basic has it, Fortran has it. What is so difficult about creating a goto command for JavaScript. Just set up a label and say go to it.
67
by: Rui Maciel | last post by:
I've been delving into finite state machines and at this time it seems that the best way to implement them is through an intense use of the goto statement. Yet, everyone plus their granmother is...
17
by: SoftEast | last post by:
Hi Buddies, I have read a lot of stuffs regarding not using GOTO statements to opt a good programming style http://david.tribble.com/text/goto.html]. Can anybody give a particular lines of code...
59
by: raashid bhatt | last post by:
why are GOTO's not used they just a simple JMP instructions what's bad about them
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...
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
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
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.