Microsoft
Software
Hardware
Network
Question : How to get max value from table (Access 2003 vs VB.net 2005)
Dear Experts,
i have 1 table (tbl_reg) with 2 fields (reg_no, reg_name) in access 2003.
in VB.net 2005, i want to get the max value for reg_no.
pleas help, how to code this?
thanks!
Answer : How to get max value from table (Access 2003 vs VB.net 2005)
If you want to fetch it after fill to datatable u can use Compute as following
MessageBox.Show(ds.Tables(
0).Compute
("MAX(EmpI
D)", ""))
Random Solutions
Upgrading from Vista Basic to Windows 7
dateadd function returns weekends even when weekday "w" is specified
Linked tables and Sql Server Password
How to edit a column in a list box control and update back to the Table in Access.
Can I read the stdout from a Shell() call back into VBA?
Missing values exporting SSRS to Excel
RDP causes blue screen
SQL String error. 'Too few parameters. Expected 1.'
Replace SBS Server 2003 SATA RAID hard drives with bigger ones
Check if there is a specific message for an event in the message queue in VB.NET