So I'm doing this class project and although it doesn't require access it's the simplest solution for a database on my localhost.
I have a schema like this:
member{
UserID, PK
Username,
Password
}
And in mysql I would insert a row like this:
INSERT INTO member VALUES(NULL, 'bitWISE', '1234')
What do I put in place of NULL to get Access to autogenerate the next PK value? Can it do that?
Access question
Damnit...one query just refuses to work right:
VB.NET using a helper class to cut down on the redundancy of ASP's databasing.
Code: Select all
aspBoard.InsertQuery("INSERT INTO post (ForumID,ThreadID,UserID,Text,Timestamp) VALUES(" & forumId & "," & threadId & "," & userId & ",'" & post & "','" & Now() & "')")Then again, you are using VB.NET. So I don't know if the OLE driver (I guess that's what VB.NET is using to work with Access) you're using would include that already in the parser.
Worth a shot
Worth a shot
[size=85]yea i've too been kind of thinking about maybe a new sig but sort of haven't come to quite a decision yet[/size]
Well I have a similar query that works. But you're right. I bet Text is fucking me over. Ill try changing it.mjrpes wrote:Then again, you are using VB.NET. So I don't know if the OLE driver (I guess that's what VB.NET is using to work with Access) you're using would include that already in the parser.
Worth a shot