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

Being able to view the record number from SQL table

Dpot
30
I have a database that I'm trying to play with the idea of having it located in a folder on a network drive and just putting a shortcut to it on other peoples desktops. This will make it easier for me when I do updates so I don't have to update everyone's computer. We're using the database for record entry, and often times they need the record number of the entry they're making. We have a text box called "Record #" on the forms they use where the ID shows. It works fine on a stand alone database. As soon as we switch it over to SQL it doesn't show. Show I put a button with code that refreshes the record and it will show the record number. The problem we're having is this; Now that we're playing with the idea of putting the database in a network folder we've been noticing that if more than one person is using the database, it won't give the user a record number at all, it'll flash wicked quickly upon entering but that's about it. Any thoughts? Would there possibly be a user setting I'm missing in the database options? Any help is appreciated.
May 6 '15 #1

✓ answered by Seth Schrock

Instead of refreshing the record, try just saving it. Usually that works. The code would be DoCmd.RunCommand acCmdSaveRecord.

2 1362
Seth Schrock
2,965 Expert 2GB
Instead of refreshing the record, try just saving it. Usually that works. The code would be DoCmd.RunCommand acCmdSaveRecord.
May 6 '15 #2
Dpot
30
Thank you! I was using
Expand|Select|Wrap|Line Numbers
  1. With DoCmd
  2. .Save
  3. .RefreshRecord
  4. End With
Guessing it's the refresh that was holding it up. Thanks so much!
May 6 '15 #3

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

Similar topics

2
by: mickeyg | last post by:
How do I update all row with the record number. I want to do something like this update phone set id=recordnumber;
3
by: John Ortt | last post by:
> I have a table of dates in ascending order but with varying intervals. I > would like to create a query to pull out the date (in field 1) and then pull > the date from the subsequent record...
1
by: Scott269 | last post by:
So I've got an old MS Works database I imported into Access. I needed a primary key so I created a record number field that was just the record number I manually inserted when I entered it in the...
12
by: Martin Heuckeroth | last post by:
Hi Any idea on how to get a row number from the original table? We do a query and get a result. The row number from the result is different from the rownumber of the table the result originated...
1
by: | last post by:
How can I obtain the record number or row number for a record while in form view? Thank you in advance for any information. R. L.
16
by: usenet | last post by:
I want to be able to use the record numbers of a sub-form, are they available anyhow in VB (Access 2003)? I want to use the sub-form record number as *part* of the primary key for the table...
2
by: sudhashekhar30 | last post by:
hi all i am using form view. i want to display record in form view from different table. like 1rst time its showing record from tableemp. 2nd time i want to show record of tableSalary in same form...
0
code green
by: code green | last post by:
Anybody know how to SELECT a running total of the records being returned from a query when the line number is not provided. I am downloading product lines belonging to an order from a table using...
5
by: Becker | last post by:
I want my database to open automatically to the last record that was being viewed on a form when it was closed. I was thinking of having the current record number saved to a textbox in a table so...
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: 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: 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...
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,...

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.