473,404 Members | 2,213 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,404 software developers and data experts.

Edit currentrecord without effecting the rest of the colum/row

I have a this code

Set rst = db.OpenRecordset("select raad from blub where arnr = " & arnr & " ", dbOpenDynaset)

eid = rst!raad - a(is a number)

If eid <= 0 Then
MsgBox "Het raad: " & rst!raad

Else

Me.Total.Value =
Me.verprice.Value * Me.a.Value

End If

When I can the value of total, it changes for every row. I want only the current record of total to be effected. I looked here around and on google. I did found few great things but I couldn't get it working for me after like 4 hours of search and trail. Hopefully you kind people can save me! Thank you
Jun 7 '14 #1
4 1059
jimatqsi
1,271 Expert 1GB
The text box is changing for every row because it is not bound to any data item. In a continuous form it is not possible to have an unbound text box in the detail that does not behave like that.

Jim
Jun 7 '14 #2
I did fix it, but later I deleted the whole code by accident because I thought that was the non working code and I found it out too late. was something like that u had to add.


=[Test] & " ," & " Record " & [CurrentRecord] & " of " & IIf([NewRecord];[CurrentRecord];Count([Test]))
Jun 7 '14 #3
The solution which is freaking way easier is to use the following in the source code part

=[First field]*[second field]

this effects the current row without effecting the others
Jun 8 '14 #4
jimatqsi
1,271 Expert 1GB
Glad you could work through it to a successful end.
Jun 8 '14 #5

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

Similar topics

1
by: Sam | last post by:
Hello, Is there a way to have access to the text buffer of an Edit box from it hwnd. I can use SetWindowText, but this function triggers the control to be painted with the new text. I want to...
2
by: Sky | last post by:
Hello: Another question about trying to wring functionality from a DataGrid... Have a DB table of "Contacts" -- 14 or more fields per record Show in datagrid -- but only 5 columns (First,Last,...
8
by: silangdon | last post by:
Hi, I've just got round to trying VB in .Net 2003 (since MS pulled the rug from under VB6) and... it wont let me edit and continue??? In fact it wont even let me edit whilst debugging ...
0
by: MarkAurit | last post by:
I have a gridview that has some ButtonFields for delete, edit, etc. When the user clicks on delete the row is marked for deletion in the database and the gridview is refreshed, showing the row is...
5
by: mail | last post by:
Urgent help needed! I moved an application from ASP+ACCESS to ASP+MS SQLSERVER and I have the following problem: If the join on two tables results on duplicate colum names (which appear in...
1
by: ortega.rad | last post by:
I have a form which allows you to select a record. That record has other records asscociated with it via a table. The asscociated records of the record selected on the main form are shown in a...
5
JamesDC
by: JamesDC | last post by:
Hey all, I'm working with Access 2002, and I have a subform which gives access to a Table called Product_Values. This subform's purpose is to allow the user to edit the $ values of the products...
3
by: Tony1701 | last post by:
Hi, I'm new to thescripts.com. I'm also new to MS Access and I have been struggling with what seems to be an easy task. I have a subform that displays query results. I am wanting to be able to get...
1
by: agarwalsunitadhn | last post by:
I am creating gridview using connectionstring. i am passing different queries to bind grid as per condition. Now the problem I am facing on editing the grid. I am not able to use boundfield or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
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...

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.